/* ==========================================================================
   Lulu Shaman — design system
   ========================================================================== */
:root {
  --bg: #07051a;
  --bg-2: #110a2b;
  --bg-3: #1b1140;
  --violet: #8b5cf6;
  --violet-soft: #c4b5fd;
  --rose: #e879f9;
  --gold: #e8c374;
  --gold-soft: #f6e2a8;
  --text: #f1ecfb;
  --muted: #b9b0d6;
  --faint: #8a80ad;
  --glass: rgba(255, 255, 255, 0.045);
  --glass-strong: rgba(255, 255, 255, 0.08);
  --line: rgba(232, 195, 116, 0.2);
  --line-soft: rgba(196, 181, 253, 0.14);
  --radius: 22px;
  --serif: "Cormorant Garamond", "Noto Serif", Georgia, serif;
  --sans: "Jost", "Noto Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --max: 1180px;
  --ease: cubic-bezier(.2, .8, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  font-weight: 300;
  font-size: 17px;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
  min-height: 100vh;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 500; line-height: 1.12; margin: 0; letter-spacing: .01em; }
p { margin: 0 0 1em; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 6px; }

/* ---------- Cosmic background ---------- */
#sky {
  position: fixed; inset: 0; width: 100%; height: 100%;
  z-index: -2; pointer-events: none;
}
.nebula {
  position: fixed; inset: 0; z-index: -3; pointer-events: none;
  background:
    radial-gradient(60vw 50vh at 85% 8%, rgba(139, 92, 246, .28), transparent 70%),
    radial-gradient(55vw 55vh at 5% 40%, rgba(232, 121, 249, .14), transparent 70%),
    radial-gradient(70vw 50vh at 50% 105%, rgba(232, 195, 116, .12), transparent 70%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 55%, var(--bg) 100%);
}

/* ---------- Layout helpers ---------- */
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 22px; }
section { position: relative; padding: 110px 0; }
.eyebrow {
  font-family: var(--sans); font-size: 12.5px; font-weight: 500;
  letter-spacing: .32em; text-transform: uppercase; color: var(--gold);
  display: inline-flex; align-items: center; gap: 12px; margin-bottom: 18px;
}
.eyebrow::before, .eyebrow::after { content: ""; width: 28px; height: 1px; background: linear-gradient(90deg, transparent, var(--gold)); }
.eyebrow::after { transform: scaleX(-1); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 64px; }
.section-head h2 { font-size: clamp(34px, 5vw, 56px); margin-bottom: 18px; }
.section-head p { color: var(--muted); font-size: 18px; }
.gold-text {
  background: linear-gradient(100deg, var(--gold-soft), var(--gold) 40%, #fff3d1 60%, var(--gold));
  background-size: 200% auto;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: shimmer 8s linear infinite;
}
@keyframes shimmer { to { background-position: 200% center; } }

/* ---------- Buttons ---------- */
.btn {
  --pad: 16px 30px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: var(--pad); border-radius: 999px; border: 1px solid transparent;
  font-family: var(--sans); font-size: 15px; font-weight: 500; letter-spacing: .06em;
  text-decoration: none; cursor: pointer; transition: transform .35s var(--ease), box-shadow .35s var(--ease), background .35s;
  -webkit-tap-highlight-color: transparent;
}
.btn-gold {
  color: #1a1230;
  background: linear-gradient(135deg, #fbe7b0, var(--gold) 50%, #c99a3e);
  box-shadow: 0 0 0 1px rgba(255, 236, 190, .4) inset, 0 10px 40px -10px rgba(232, 195, 116, .7);
}
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 0 0 1px rgba(255, 236, 190, .6) inset, 0 16px 50px -10px rgba(232, 195, 116, .9); }
.btn-ghost { color: var(--text); background: rgba(255, 255, 255, .04); border-color: var(--line); backdrop-filter: blur(10px); }
.btn-ghost:hover { border-color: var(--gold); transform: translateY(-2px); }
.btn:active { transform: scale(.97); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  padding-top: env(safe-area-inset-top);
  transition: background .4s, border-color .4s, backdrop-filter .4s;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled { background: rgba(9, 6, 28, .72); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-color: var(--line-soft); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 78px; gap: 18px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-mark { width: 44px; height: 44px; flex: none; filter: drop-shadow(0 0 10px rgba(232, 195, 116, .45)); }
.brand-mark svg { width: 100%; height: 100%; animation: spin 60s linear infinite; }
.brand-name { font-family: var(--serif); font-size: 26px; font-weight: 600; letter-spacing: .04em; line-height: 1; white-space: nowrap; }
.brand-name small { display: block; font-family: var(--sans); font-size: 9.5px; font-weight: 400; letter-spacing: .38em; text-transform: uppercase; color: var(--gold); margin-top: 5px; }
.nav { display: flex; align-items: center; gap: 30px; }
.nav a { position: relative; text-decoration: none; font-size: 14px; letter-spacing: .08em; color: var(--muted); transition: color .3s; padding: 6px 0; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--gold); transform: scaleX(0); transition: transform .35s var(--ease); }
.nav a:hover, .nav a.active { color: var(--text); }
.nav a.active::after, .nav a:hover::after { transform: scaleX(1); }
.header-tools { display: flex; align-items: center; gap: 12px; }
.lang-select {
  appearance: none; -webkit-appearance: none;
  font-family: var(--sans); font-size: 13.5px; color: var(--text);
  background: rgba(255, 255, 255, .05) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23e8c374' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center;
  border: 1px solid var(--line); border-radius: 999px; padding: 9px 34px 9px 16px; cursor: pointer;
}
.lang-select option { background: var(--bg-3); color: var(--text); }
.burger { display: none; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: rgba(255, 255, 255, .04); color: var(--text); cursor: pointer; }
.burger span, .burger span::before, .burger span::after { display: block; width: 18px; height: 1.5px; background: currentColor; margin: 0 auto; position: relative; transition: transform .3s; }
.burger span::before, .burger span::after { content: ""; position: absolute; left: 0; }
.burger span::before { top: -6px; } .burger span::after { top: 6px; }
.menu-open .burger span { background: transparent; }
.menu-open .burger span::before { top: 0; transform: rotate(45deg); }
.menu-open .burger span::after { top: 0; transform: rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { min-height: 100vh; min-height: 100svh; display: grid; place-items: center; text-align: center; padding: 140px 0 90px; overflow: hidden; }
.hero h1 { font-size: clamp(64px, 13vw, 150px); font-weight: 400; line-height: .95; letter-spacing: .02em; margin-bottom: 26px; text-shadow: 0 0 60px rgba(139, 92, 246, .55); }
.hero h1 em { font-style: italic; font-weight: 300; }
.hero .lead { font-family: var(--serif); font-size: clamp(21px, 2.6vw, 28px); font-style: italic; color: var(--violet-soft); max-width: 640px; margin: 0 auto 44px; line-height: 1.45; }
.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.hero-portrait {
  width: 190px; height: 190px; margin: 0 auto 30px; border-radius: 50%; position: relative;
  filter: drop-shadow(0 0 40px rgba(232, 195, 116, .35));
}
.hero-portrait::before {
  content: ""; position: absolute; inset: -8px; border-radius: 50%;
  background: conic-gradient(from 0deg, var(--gold), var(--violet), var(--rose), var(--gold));
  animation: spin 12s linear infinite; filter: blur(1px);
}
.hero-portrait img, .hero-portrait .glyph-fallback { position: relative; width: 100%; height: 100%; border-radius: 50%; object-fit: cover; object-position: center; border: 4px solid var(--bg); background: var(--bg-3); }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { padding: 180px 0 70px; text-align: center; }
.page-hero h1 { font-size: clamp(46px, 8vw, 92px); font-weight: 400; margin-bottom: 22px; text-shadow: 0 0 50px rgba(139, 92, 246, .5); }
.page-hero p { color: var(--muted); font-size: 19px; max-width: 680px; margin: 0 auto; }

/* ---------- Glass cards ---------- */
.card {
  position: relative; background: linear-gradient(160deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .02));
  border: 1px solid var(--line-soft); border-radius: var(--radius); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  transition: transform .5s var(--ease), border-color .5s, box-shadow .5s;
}

/* ---------- Traditions ---------- */
.traditions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.trad {
  --c: var(--gold);
  overflow: hidden; display: flex; flex-direction: column; text-decoration: none; color: inherit;
}
.trad:hover { transform: translateY(-8px); border-color: color-mix(in srgb, var(--c) 60%, transparent); box-shadow: 0 30px 70px -30px color-mix(in srgb, var(--c) 70%, transparent); }
.trad::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, transparent, var(--c), transparent); z-index: 2; }
.trad-media { position: relative; aspect-ratio: 4 / 4.4; overflow: hidden; background: radial-gradient(circle at 50% 40%, color-mix(in srgb, var(--c) 35%, transparent), transparent 70%), var(--bg-3); }
.trad-media img { width: 100%; height: 100%; object-fit: cover; object-position: center 18%; transition: transform 1.2s var(--ease); }
.trad:hover .trad-media img { transform: scale(1.06); }
.trad-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(12, 8, 32, .95)); }
.glyph-fallback { display: none; place-items: center; width: 100%; height: 100%; font-size: 92px; color: var(--c, var(--gold)); text-shadow: 0 0 40px currentColor; font-family: var(--serif); }
.img-missing img { display: none; }
.img-missing .glyph-fallback { display: grid; }
.trad-symbol { position: absolute; z-index: 2; left: 24px; bottom: 16px; font-size: 40px; color: var(--c); text-shadow: 0 0 22px var(--c); line-height: 1; }
.trad-body { padding: 22px 26px 28px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.trad-body h3 { font-size: 30px; }
.trad-body p { color: var(--muted); font-size: 15.5px; margin: 0; flex: 1; }
.trad-link { margin-top: 12px; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--c); display: inline-flex; gap: 8px; align-items: center; }
.trad-link span { transition: transform .35s var(--ease); }
.trad:hover .trad-link span { transform: translateX(6px); }
[dir="rtl"] .trad-link span { transform: scaleX(-1); }

.c-pagan { --c: #7fd18b; } .c-hermetic { --c: #e8c374; } .c-egyptian { --c: #5fc8e6; }
.c-hindu { --c: #f59e4b; } .c-chinese { --c: #f06b6b; } .c-native { --c: #d98a5c; }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; counter-reset: step; }
.step { padding: 40px 32px; text-align: center; }
.step-num { width: 64px; height: 64px; margin: 0 auto 22px; border-radius: 50%; display: grid; place-items: center; font-family: var(--serif); font-size: 30px; color: var(--gold); border: 1px solid var(--line); background: radial-gradient(circle, rgba(232, 195, 116, .16), transparent 70%); }
.step h3 { font-size: 26px; margin-bottom: 12px; }
.step p { color: var(--muted); font-size: 15.5px; margin: 0; }

/* ---------- Gallery marquee ---------- */
.gallery { padding: 90px 0; overflow: hidden; }
.marquee { display: flex; gap: 22px; width: max-content; animation: marquee 70s linear infinite; padding: 10px 0; }
.marquee.reverse { animation-direction: reverse; margin-top: 22px; }
.gallery:hover .marquee { animation-play-state: paused; }
.marquee figure { margin: 0; width: 220px; height: 290px; flex: none; border-radius: 18px; overflow: hidden; border: 1px solid var(--line); box-shadow: 0 20px 40px -20px rgba(0, 0, 0, .8); }
.marquee img { width: 100%; height: 100%; object-fit: cover; }
.gallery-fade { position: relative; }
.gallery-fade::before, .gallery-fade::after { content: ""; position: absolute; top: 0; bottom: 0; width: 140px; z-index: 2; pointer-events: none; }
.gallery-fade::before { left: 0; background: linear-gradient(90deg, var(--bg-2), transparent); }
.gallery-fade::after { right: 0; background: linear-gradient(-90deg, var(--bg-2), transparent); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- CTA band ---------- */
.cta-band { text-align: center; padding: 90px 30px; overflow: hidden; }
.cta-band h2 { font-size: clamp(32px, 5vw, 58px); max-width: 780px; margin: 0 auto 20px; font-style: italic; font-weight: 400; }
.cta-band p { color: var(--muted); max-width: 560px; margin: 0 auto 36px; }
.cta-band .orb { position: absolute; width: 520px; height: 520px; border-radius: 50%; left: 50%; top: 50%; translate: -50% -50%; background: radial-gradient(circle, rgba(139, 92, 246, .35), transparent 65%); z-index: -1; animation: breathe 8s ease-in-out infinite; }
@keyframes breathe { 50% { transform: scale(1.18); opacity: .7; } }

/* ---------- Reading form ---------- */
.reading-layout { display: grid; grid-template-columns: 1fr; gap: 40px; max-width: 860px; margin: 0 auto; }
.form-card { padding: 44px; }
.trad-picker { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 34px; }
.trad-option { position: relative; }
.trad-option input { position: absolute; opacity: 0; pointer-events: none; }
.trad-option label {
  display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center;
  padding: 18px 10px; border-radius: 16px; cursor: pointer; border: 1px solid var(--line-soft);
  background: rgba(255, 255, 255, .03); transition: all .3s var(--ease); font-size: 14.5px; color: var(--muted);
}
.trad-option label b { font-size: 30px; font-weight: 400; color: var(--c); line-height: 1.1; font-family: var(--serif); }
.trad-option label:hover { border-color: color-mix(in srgb, var(--c) 50%, transparent); color: var(--text); }
.trad-option input:checked + label { border-color: var(--c); color: var(--text); background: color-mix(in srgb, var(--c) 12%, transparent); box-shadow: 0 0 30px -8px var(--c); }
.trad-option input:focus-visible + label { outline: 2px solid var(--gold); outline-offset: 2px; }
.field { margin-bottom: 24px; }
.field > .label { display: block; font-size: 12.5px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); margin-bottom: 10px; }
.field .hint { font-size: 13.5px; color: var(--faint); margin-top: 8px; }
.row { display: grid; gap: 12px; }
.row-3 { grid-template-columns: 1.4fr 1fr 1.1fr; }
.row-2 { grid-template-columns: 1fr 1fr; }
.input, .select {
  width: 100%; font: inherit; font-size: 16px; color: var(--text);
  padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line-soft);
  background-color: rgba(10, 6, 30, .55); transition: border-color .3s, box-shadow .3s;
}
.select {
  appearance: none; -webkit-appearance: none; padding-right: 40px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23e8c374' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center;
}
[dir="rtl"] .select { background-position: left 14px center; padding-right: 16px; padding-left: 40px; }
.select option { background: var(--bg-3); color: var(--text); }
.input::placeholder { color: var(--faint); }
.input:focus, .select:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(232, 195, 116, .15); }
.input:disabled, .select:disabled { opacity: .4; cursor: not-allowed; }
textarea.input { min-height: 170px; resize: vertical; }
.check { display: inline-flex; align-items: center; gap: 10px; margin-top: 12px; font-size: 14.5px; color: var(--muted); cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--gold); }
.form-error { display: none; color: #fca5a5; font-size: 14.5px; margin: -6px 0 18px; }
.form-error.show { display: block; }
.form-submit { width: 100%; --pad: 18px 30px; font-size: 16px; margin-top: 6px; }

/* ---------- Place search (inline list, never a pop-up layer over the form) ---------- */
.place-field { position: relative; }
.place-list {
  list-style: none; margin: 8px 0 0; padding: 6px; border-radius: 14px;
  border: 1px solid var(--line); background: rgba(16, 10, 40, .96); max-height: 280px; overflow-y: auto;
}
.place-list li {
  padding: 11px 14px; border-radius: 10px; cursor: pointer; font-size: 15px; color: var(--text);
}
.place-list li small { color: var(--faint); margin-inline-start: 6px; }
.place-list li:hover, .place-list li[aria-selected="true"] { background: rgba(232, 195, 116, .14); }
.place-list li.empty { cursor: default; color: var(--faint); }
.place-chosen { color: var(--gold) !important; }
.hint { font-size: 13.5px; color: var(--faint); margin: 8px 0 0; }

/* ---------- Buy card ---------- */
.buy-row { display: flex; gap: 12px; justify-content: center; align-items: stretch; flex-wrap: wrap; margin-top: 22px; }
.buy-row .select { width: auto; min-width: 190px; }
.buy-list { list-style: none; padding: 0; margin: 18px auto 4px; max-width: 520px; text-align: start; color: var(--muted); font-size: 15.5px; }
.buy-list li { padding: 5px 0 5px 28px; position: relative; }
.buy-list li::before { content: "✦"; position: absolute; left: 4px; color: var(--gold); }
[dir="rtl"] .buy-list li { padding: 5px 28px 5px 0; }
[dir="rtl"] .buy-list li::before { left: auto; right: 4px; }
.price-tag { font-family: var(--serif); font-size: 44px; color: var(--gold); line-height: 1; margin: 6px 0 2px; }

/* ---------- Reading result ---------- */
.result { display: none; }
.result.show { display: block; animation: rise .9s var(--ease) both; }
@keyframes rise { from { opacity: 0; transform: translateY(30px); } }
.result-head { text-align: center; padding: 50px 36px 40px; overflow: hidden; }
.result-head .sym { font-size: 64px; color: var(--c); text-shadow: 0 0 40px var(--c); line-height: 1; margin-bottom: 14px; font-family: var(--serif); }
.result-head h2 { font-size: clamp(32px, 5vw, 48px); margin-bottom: 12px; }
.result-head p { color: var(--muted); margin: 0 auto; max-width: 560px; }
.result-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 20px; }
.r-card { padding: 30px 26px; }
.r-card .k { font-size: 12px; letter-spacing: .24em; text-transform: uppercase; color: var(--gold); margin-bottom: 8px; }
.r-card .v { font-family: var(--serif); font-size: 32px; line-height: 1.1; margin-bottom: 12px; }
.r-card .v .g { color: var(--gold); margin-inline-end: 8px; }
.r-card p { color: var(--muted); font-size: 15.5px; margin: 0; }
.r-card .note { margin-top: 10px; font-size: 13.5px; color: var(--faint); font-style: italic; }
.lens-card { padding: 40px; margin-top: 20px; border-color: color-mix(in srgb, var(--c) 40%, transparent); }
.lens-card .v { font-size: 40px; }
.lens-card .sub { color: var(--violet-soft); font-family: var(--serif); font-style: italic; font-size: 20px; margin-bottom: 12px; }
.full-card { margin-top: 20px; padding: 44px; text-align: center; background: linear-gradient(150deg, rgba(232, 195, 116, .14), rgba(139, 92, 246, .12)); border-color: var(--line); }
.full-card h3 { font-size: 34px; margin-bottom: 12px; }
.full-card p { color: var(--muted); max-width: 560px; margin: 0 auto 10px; }
.result-actions { text-align: center; margin-top: 30px; }

/* ---------- About ---------- */
.pull-quote { font-family: var(--serif); font-style: italic; font-size: clamp(26px, 3.6vw, 40px); line-height: 1.3; text-align: center; max-width: 860px; margin: 0 auto; }
.pull-quote::before { content: "“"; display: block; font-size: 90px; line-height: .6; color: var(--gold); margin-bottom: 10px; }
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.value { padding: 36px 30px; }
.value .ico { font-size: 34px; color: var(--gold); margin-bottom: 14px; font-family: var(--serif); }
.value h3 { font-size: 26px; margin-bottom: 10px; }
.value p { color: var(--muted); font-size: 15.5px; margin: 0; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 30px; max-width: 980px; margin: 0 auto; }
.contact-side { padding: 40px; }
.contact-side h3 { font-size: 28px; margin-bottom: 14px; }
.contact-side p { color: var(--muted); font-size: 15.5px; }
.contact-side a.mail { color: var(--gold); word-break: break-all; }

/* ---------- Footer ---------- */
.site-footer { position: relative; padding: 80px 0 calc(40px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line-soft); margin-top: 40px; text-align: center; }
.site-footer::before { content: ""; position: absolute; top: -1px; left: 50%; translate: -50% 0; width: 50%; height: 1px; background: linear-gradient(90deg, transparent, var(--gold), transparent); }
.footer-brand { font-family: var(--serif); font-size: 36px; margin-bottom: 8px; }
.footer-tag { font-family: var(--serif); font-style: italic; color: var(--violet-soft); font-size: 19px; margin-bottom: 28px; }
.footer-nav { display: flex; justify-content: center; gap: 28px; flex-wrap: wrap; margin-bottom: 30px; }
.footer-nav a { text-decoration: none; color: var(--muted); font-size: 14px; letter-spacing: .08em; }
.footer-nav a:hover { color: var(--gold); }
.footer-small { color: var(--faint); font-size: 13px; max-width: 640px; margin: 0 auto 6px; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .12s; } .reveal[data-delay="2"] { transition-delay: .24s; }
.reveal[data-delay="3"] { transition-delay: .36s; } .reveal[data-delay="4"] { transition-delay: .48s; }
.reveal[data-delay="5"] { transition-delay: .6s; }
.no-js .reveal { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .traditions, .steps, .values, .result-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; gap: 44px; }
}
@media (max-width: 860px) {
  .burger { display: grid; place-items: center; }
  .nav {
    position: fixed; inset: 0; z-index: -1; flex-direction: column; justify-content: center; gap: 30px;
    background: rgba(7, 5, 26, .96); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
    opacity: 0; visibility: hidden; transition: opacity .4s, visibility .4s;
  }
  .nav a { font-family: var(--serif); font-size: 34px; color: var(--text); letter-spacing: .02em; }
  .menu-open .nav { opacity: 1; visibility: visible; }
  /* A blurred header would trap the fixed menu inside its own 78px box, so drop the blur while the menu is open. */
  .menu-open .site-header { backdrop-filter: none; -webkit-backdrop-filter: none; background: transparent; border-color: transparent; }
  .menu-open { overflow: hidden; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  section { padding: 80px 0; }
  .traditions, .steps, .values, .result-grid { grid-template-columns: 1fr; }
  .brand-name { font-size: 21px; }
  .brand-name small { display: none; }
  .brand-mark { width: 36px; height: 36px; }
  .lang-select { padding: 8px 28px 8px 12px; font-size: 13px; background-position: right 9px center; }
  .form-card { padding: 28px 20px; }
  .trad-picker { grid-template-columns: repeat(2, 1fr); }
  .row-3 { grid-template-columns: 1fr 1fr; }
  .row-3 > :first-child { grid-column: 1 / -1; }
  .lens-card, .full-card { padding: 30px 22px; }
  .marquee figure { width: 160px; height: 212px; }
  .gallery-fade::before, .gallery-fade::after { width: 50px; }
  .hero-portrait { width: 150px; height: 150px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .reveal { opacity: 1; transform: none; }
}

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.spin { display: inline-block; animation: spin 6s linear infinite; }

/* ---------- Legal pages ---------- */
.legal { max-width: 820px; margin: 0 auto; padding: 48px 52px; color: var(--muted); }
.legal h2 { font-size: 30px; color: var(--text); margin: 34px 0 12px; }
.legal p, .legal li { font-size: 16.5px; line-height: 1.75; }
.legal ul { padding-inline-start: 22px; }
.legal strong { color: var(--text); font-weight: 500; }
.legal a { color: var(--gold); }
.legal-lang { font-style: italic; color: var(--faint); font-size: 14px !important; }
.legal-lang:empty { display: none; }
.footer-small a { color: var(--muted); text-decoration: none; }
.footer-small a:hover { color: var(--gold); }
@media (max-width: 640px) { .legal { padding: 30px 22px; } }

/* ---------- About: the story of Lulu ---------- */
.story section { padding: 90px 0; }
.story-hero { padding: 150px 0 60px !important; }
.story-hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 60px; align-items: center; }
.story-hero h1 { font-size: clamp(48px, 7vw, 88px); font-weight: 400; margin-bottom: 20px; text-shadow: 0 0 50px rgba(139, 92, 246, .5); }
.lead-serif { font-family: var(--serif); font-style: italic; font-size: clamp(22px, 2.4vw, 28px); line-height: 1.45; color: var(--violet-soft); }
.story-hero-text p { color: var(--muted); font-size: 18px; }
.story-hero-text .lead-serif { font-size: clamp(22px, 2.4vw, 28px); color: var(--violet-soft); }
.story-hero-text .btn { margin-top: 14px; }
.arch-frame { margin: 0; position: relative; border-radius: 260px 260px 26px 26px; overflow: hidden; border: 2px solid var(--gold);
  box-shadow: 0 0 0 8px rgba(232, 195, 116, .12), 0 0 70px rgba(232, 195, 116, .25), 0 40px 90px -30px rgba(0, 0, 0, .8); aspect-ratio: 738 / 1100; background: var(--bg-3); }
.arch-frame img { width: 100%; height: 100%; object-fit: cover; display: block; }
.arch-frame.small { max-width: 420px; justify-self: center; width: 100%; }
.wide-frame { margin: 0 auto 56px; max-width: 1000px; border-radius: 26px; overflow: hidden; border: 1px solid var(--line);
  box-shadow: 0 40px 100px -40px rgba(139, 92, 246, .8); }
.wide-frame img { width: 100%; height: auto; display: block; }
.story-band { background: linear-gradient(180deg, transparent, rgba(139, 92, 246, .08), transparent); }
.story-text h2 { font-size: clamp(34px, 4.6vw, 54px); margin-bottom: 22px; }
.story-text p { color: var(--muted); font-size: 18px; line-height: 1.8; }
.story-text.center { text-align: center; max-width: 780px; margin: 0 auto; }
.story-split { display: grid; grid-template-columns: .8fr 1.2fr; gap: 70px; align-items: center; }
.story-split.reverse > figure { order: 2; }

.timeline { list-style: none; margin: 0 auto; padding: 0; max-width: 1040px; position: relative; }
.timeline::before { content: ""; position: absolute; top: 0; bottom: 0; left: 50%; width: 2px; margin-left: -1px;
  background: linear-gradient(180deg, transparent, var(--gold) 6%, var(--gold) 94%, transparent); opacity: .55; }
.tl-item { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: center; margin-bottom: 44px; }
.tl-item::before { content: ""; position: absolute; left: 50%; top: 50%; width: 16px; height: 16px; margin: -8px 0 0 -8px; border-radius: 50%;
  background: var(--gold); box-shadow: 0 0 0 6px rgba(232, 195, 116, .18), 0 0 24px var(--gold); }
.tl-year { font-family: var(--serif); font-size: clamp(30px, 4vw, 46px); color: var(--gold); text-align: end; line-height: 1.1; }
.tl-item:nth-child(even) .tl-year { order: 2; text-align: start; }
.tl-card { overflow: hidden; }
.tl-card img { width: 100%; aspect-ratio: 381 / 215; object-fit: cover; display: block; }
.tl-body { padding: 20px 24px 24px; }
.tl-body h3 { font-size: 26px; margin-bottom: 8px; }
.tl-body p { color: var(--muted); font-size: 15.5px; margin: 0; }

.motto { text-align: center; background: radial-gradient(ellipse at center, rgba(232, 195, 116, .1), transparent 65%); }
.motto-sanskrit { font-size: clamp(30px, 5vw, 54px); color: var(--gold); margin-bottom: 18px; text-shadow: 0 0 30px rgba(232, 195, 116, .5);
  font-family: "Noto Serif Devanagari", "Nirmala UI", "Mangal", serif; }
.motto-note { color: var(--faint); font-size: 15px; max-width: 640px; margin: 18px auto 0; }

.faces { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.face { margin: 0; border-radius: 18px; overflow: hidden; border: 1px solid var(--line-soft); background: var(--glass); transition: transform .5s var(--ease), border-color .5s; }
.face:hover { transform: translateY(-6px); border-color: var(--gold); }
.face img { width: 100%; aspect-ratio: 381 / 215; object-fit: cover; display: block; }
.face figcaption { padding: 12px 14px; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); text-align: center; }
.story-disclaimer { text-align: center; color: var(--faint); font-size: 14px; font-style: italic; max-width: 680px; margin: 40px auto 0; }

@media (max-width: 980px) {
  .story-hero-grid, .story-split { grid-template-columns: 1fr; gap: 40px; }
  .story-hero-grid .arch-frame { max-width: 400px; margin: 0 auto; }
  .story-split.reverse > figure { order: 0; }
  .faces { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 760px) {
  .timeline::before { left: 12px; }
  .tl-item { grid-template-columns: 1fr; gap: 12px; padding-inline-start: 40px; }
  .tl-item::before { left: 12px; top: 18px; margin-top: 0; }
  .tl-year, .tl-item:nth-child(even) .tl-year { order: 0; text-align: start; }
  .faces { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .story section { padding: 64px 0; }
}
[dir="rtl"] .timeline::before { left: auto; right: 50%; margin-left: 0; margin-right: -1px; }
[dir="rtl"] .tl-item::before { left: auto; right: 50%; margin-left: 0; margin-right: -8px; }
@media (max-width: 760px) {
  [dir="rtl"] .timeline::before { right: 12px; }
  [dir="rtl"] .tl-item::before { right: 12px; margin-right: -7px; }
}


/* ---------- Mobile fixes ---------- */
@media (max-width: 640px) {
  /* 16px stops iPhones zooming in when the language menu is tapped */
  .lang-select { font-size: 16px; max-width: 128px; }
}

/* ---------- Larger free star reading ---------- */
.reading-layout { max-width: 1060px; }
.reading-layout > .form-card { width: 100%; max-width: 860px; margin: 0 auto; }
.result-head { padding: 60px 48px 50px; }
.result-head .sym { font-size: 84px; }
.result-head h2 { font-size: clamp(38px, 6vw, 60px); }
.result-head p { font-size: 19px; max-width: 720px; }
.result-grid { gap: 24px; margin-top: 24px; }
.r-card { padding: 36px 32px; }
.r-card .k { font-size: 13.5px; }
.r-card .v { font-size: 42px; }
.r-card p { font-size: 18px; line-height: 1.7; }
.r-card .note { font-size: 15px; }
.lens-card { padding: 50px; margin-top: 24px; }
.lens-card .k { font-size: 13.5px !important; }
.lens-card .v { font-size: 52px; }
.lens-card .sub { font-size: 24px; }
.lens-card p { font-size: 19px; line-height: 1.75; }
.full-card { padding: 52px; margin-top: 24px; }
.full-card h3 { font-size: 42px; }
.full-card p, .full-card .buy-list { font-size: 18px; }
@media (max-width: 640px) {
  .result-head { padding: 40px 22px 34px; }
  .r-card { padding: 28px 22px; }
  .r-card .v { font-size: 36px; }
  .lens-card .v { font-size: 40px; }
  .lens-card, .full-card { padding: 32px 22px; }
}

/* Touch targets on phones: footer links were only ~20px tall */
@media (max-width: 760px) {
  .footer-nav { gap: 2px 14px; }
  .footer-nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 6px; }
  .footer-small a { display: inline-block; padding: 12px 6px; }
}

/* ==========================================================================
   Home hero: the ring of Lulu portraits (hero-orbit.js)
   ========================================================================== */
.orbit-hero { position: relative; height: 100vh; height: 100svh; min-height: 620px; overflow: hidden; isolation: isolate; }
.orbit-hero::after { /* soft floor so the text sits on darkness */
  content: ""; position: absolute; inset: auto 0 0 0; height: 50%; z-index: 1; pointer-events: none;
  background: linear-gradient(to top, var(--bg) 8%, rgba(7, 5, 26, .82) 42%, transparent);
}
.orbit-stage { position: absolute; inset: 0; outline: none; touch-action: pan-y; cursor: grab; user-select: none; -webkit-user-select: none; }
.orbit-stage.is-dragging { cursor: grabbing; }
.orbit-stage:focus-visible .orbit-frame { outline: 2px solid var(--gold); outline-offset: 6px; }
.orbit-ring { position: absolute; left: 50%; top: 41%; width: 0; height: 0; transform-style: preserve-3d; }
.orbit-card {
  --d: 1;
  position: absolute; left: 0; top: 0; width: var(--cw); aspect-ratio: 2 / 3; padding: 0; margin: 0;
  border: 1px solid rgba(255, 255, 255, .16); border-radius: calc(var(--cw) * .07); overflow: hidden;
  background: var(--bg-3); cursor: pointer; backface-visibility: hidden;
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .9), 0 0 0 1px rgba(232, 195, 116, .06) inset;
  filter: brightness(calc(1 - var(--d) * .35)) saturate(calc(1 - var(--d) * .25));
  opacity: 0; transition: opacity 1.2s var(--ease);
}
.is-ready .orbit-card { opacity: 1; }
.orbit-card img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.orbit-card::after { /* glass edge and a little iridescence */
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: linear-gradient(118deg, rgba(255, 255, 255, .28), transparent 26%, transparent 70%, rgba(196, 181, 253, .22) 88%, rgba(232, 121, 249, .18));
  mix-blend-mode: screen;
}
.orbit-card.is-current { opacity: .15; }
.orbit-card:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

.orbit-feature {
  --rx: 0deg; --ry: 0deg; --mx: 50%; --my: 30%; --drift: 0px;
  position: absolute; left: 50%; top: 41%; z-index: 2; width: calc(var(--cw) * 1.45); max-width: 62vw; aspect-ratio: 2 / 3;
  transform: translate(-50%, -50%) translateX(var(--drift)) perspective(1100px) rotateX(var(--rx)) rotateY(var(--ry));
  transform-style: preserve-3d; display: block; text-decoration: none;
}
.orbit-glow { position: absolute; inset: -18%; z-index: -1; pointer-events: none; }
.orbit-glow img { width: 100%; height: 100%; object-fit: cover; filter: blur(60px) saturate(1.6); opacity: .6; transition: opacity .8s; }
.orbit-frame {
  position: absolute; inset: 0; overflow: hidden; border-radius: calc(var(--cw) * .09);
  border: 1px solid rgba(246, 226, 168, .38);
  box-shadow: 0 50px 120px -30px rgba(0, 0, 0, .95), 0 0 70px -10px rgba(139, 92, 246, .55), 0 0 0 6px rgba(7, 5, 26, .55);
}
.orbit-frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.06); transition: opacity .9s var(--ease), transform 1.6s var(--ease); }
.orbit-frame img.is-on { opacity: 1; transform: scale(1); }
.orbit-sheen { /* the light warms where the cursor is */
  position: absolute; inset: 0; pointer-events: none; mix-blend-mode: soft-light;
  background: radial-gradient(circle at var(--mx) var(--my), rgba(255, 240, 200, .75), transparent 46%),
              linear-gradient(130deg, rgba(255, 255, 255, .22), transparent 35%);
}

.orbit-foot {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; pointer-events: none;
  display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 40px; align-items: end;
  padding-block: 0 max(34px, env(safe-area-inset-bottom));
  padding-left: max(32px, env(safe-area-inset-left, 0px)); padding-right: max(32px, env(safe-area-inset-right, 0px));
}
.orbit-foot a, .orbit-foot .btn { pointer-events: auto; }
.orbit-left { min-width: 0; }
.orbit-mark { margin: 0 0 6px; font-size: clamp(22px, 2.2vw, 30px); font-weight: 400; line-height: 1.1; text-shadow: none; letter-spacing: .02em; }
.orbit-mark em { font-weight: 300; }
.orbit-eyebrow { display: inline-block; margin-left: 14px; font-family: var(--sans); font-size: 12px; letter-spacing: .26em; text-transform: uppercase; color: var(--faint); vertical-align: middle; }
.orbit-name {
  font-family: var(--serif); font-weight: 400; text-transform: uppercase; letter-spacing: -.01em;
  font-size: clamp(38px, 5.6vw, 100px); line-height: .92; color: var(--text); text-wrap: balance;
  text-shadow: 0 0 60px rgba(139, 92, 246, .45);
}
.orbit-name.is-in { animation: orbitName .9s var(--ease) both; }
@keyframes orbitName { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.orbit-right { min-width: 0; max-width: 430px; justify-self: end; border-top: 1px solid var(--line); padding-top: 18px; }
.orbit-caption { margin: 0 0 10px; font-family: var(--serif); font-style: italic; font-size: 20px; line-height: 1.35; color: var(--gold-soft); min-height: 2.7em; }
.orbit-lead { margin: 0 0 20px; font-size: 15px; line-height: 1.6; color: var(--muted); }
.orbit-right .hero-actions { justify-content: flex-start; gap: 12px; }
.orbit-count { position: absolute; z-index: 3; right: max(32px, env(safe-area-inset-right, 0px)); top: 108px; font-size: 12px; letter-spacing: .3em; color: var(--faint); font-variant-numeric: tabular-nums; }

@media (max-width: 900px) {
  .orbit-ring, .orbit-feature { top: 36%; }
  .orbit-feature { width: calc(var(--cw) * 1.35); }
  .orbit-foot { grid-template-columns: 1fr; gap: 18px; padding-left: max(18px, env(safe-area-inset-left, 0px)); padding-right: max(18px, env(safe-area-inset-right, 0px)); }
  .orbit-right { justify-self: start; max-width: none; padding-top: 14px; }
  .orbit-caption { font-size: 17px; min-height: 0; }
  .orbit-lead { display: none; }
  .orbit-eyebrow { display: none; }
  .orbit-count { top: 92px; right: 18px; }
  .orbit-hero::after { height: 58%; }
}
@media (max-width: 900px) and (max-height: 760px) { .orbit-caption { display: none; } }
@media (prefers-reduced-motion: reduce) {
  .orbit-name.is-in { animation: none; }
  .orbit-frame img { transition: opacity .3s; transform: none; }
}

/* ==========================================================================
   Card Oracle (cards.html): deck picker, shuffle, fan spread, flip, reading
   ========================================================================== */
.oracle-hero { padding-bottom: 50px; }
.oracle-sec { padding-top: 0; }
.oracle-form { max-width: 980px; margin: 0 auto; padding: clamp(22px, 4vw, 44px); }
.oracle-form .label, .oracle-about > .label { display: block; font-size: 12.5px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); margin-bottom: 14px; }
.oracle-about > .label i { font-style: normal; letter-spacing: .05em; text-transform: none; color: var(--faint); }
.sublabel { display: block; font-size: 14px; color: var(--muted); margin-bottom: 8px; }
.oracle-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }

.deck-picker { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 10px; }
.deck-option { position: relative; min-width: 0; }
.deck-option input { position: absolute; opacity: 0; pointer-events: none; }
.deck-option label {
  display: flex; gap: 14px; align-items: center; height: 100%; padding: 12px; border-radius: 16px; cursor: pointer;
  border: 1px solid var(--line-soft); background: rgba(255, 255, 255, .03); transition: all .3s var(--ease); color: var(--muted);
}
.deck-thumb { flex: 0 0 52px; aspect-ratio: 2 / 3; border-radius: 7px; overflow: hidden; box-shadow: 0 6px 18px -6px #000; border: 1px solid color-mix(in srgb, var(--c) 40%, transparent); }
.deck-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.deck-txt { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.deck-txt b { font-family: var(--serif); font-weight: 400; font-size: 22px; color: var(--c); line-height: 1; margin-bottom: 4px; }
.deck-txt strong { font-family: var(--serif); font-weight: 500; font-size: 18px; color: var(--text); }
.deck-txt small { font-size: 12.5px; color: var(--faint); margin-top: 3px; }
.deck-option label:hover { border-color: color-mix(in srgb, var(--c) 50%, transparent); }
.deck-option input:checked + label { border-color: var(--c); background: color-mix(in srgb, var(--c) 12%, transparent); box-shadow: 0 0 30px -8px var(--c); }
.deck-option input:focus-visible + label { outline: 2px solid var(--gold); outline-offset: 2px; }
.oracle-about { border-top: 1px solid var(--line-soft); margin-top: 26px; padding-top: 26px; }

.focus-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span { display: inline-block; padding: 10px 18px; border-radius: 999px; border: 1px solid var(--line-soft); color: var(--muted); cursor: pointer; font-size: 14.5px; transition: all .25s var(--ease); background: rgba(255, 255, 255, .03); }
.chip span:hover { color: var(--text); border-color: var(--line); }
.chip input:checked + span { color: #1a1230; background: var(--gold); border-color: var(--gold); }
.chip input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 2px; }

/* The table */
.oracle-table { --c: var(--gold); margin: 70px auto 0; text-align: center; overflow-x: clip; padding-top: 30px; }
.oracle-prompt { font-family: var(--serif); font-style: italic; font-size: clamp(20px, 2.6vw, 28px); color: var(--gold-soft); margin: 0 0 26px; min-height: 1.4em; }
.oracle-stage {
  --ocw: clamp(78px, 11vw, 138px);
  position: relative; height: calc(var(--ocw) * 1.5 + clamp(90px, 14vw, 170px)); margin: 0 auto; max-width: 1100px;
}
.oracle-stage::before {
  content: ""; position: absolute; left: 50%; top: 40%; width: min(90%, 760px); height: 70%; transform: translate(-50%, -50%);
  background: radial-gradient(ellipse at center, color-mix(in srgb, var(--c) 22%, transparent), transparent 70%); filter: blur(20px); pointer-events: none;
}
.o-card {
  position: absolute; left: 50%; top: 40px; width: var(--ocw); aspect-ratio: 2 / 3; padding: 0; border: 0; background: none; cursor: pointer;
  perspective: 1200px; transition: transform .8s var(--ease), opacity .6s, filter .6s; -webkit-tap-highlight-color: transparent;
}
.o-card:disabled { cursor: default; }
.o-inner { position: absolute; inset: 0; transform-style: preserve-3d; transition: transform 1s cubic-bezier(.3, .7, .2, 1); }
.o-face { position: absolute; inset: 0; border-radius: 9px; overflow: hidden; backface-visibility: hidden; -webkit-backface-visibility: hidden;
  box-shadow: 0 12px 30px -10px rgba(0, 0, 0, .8), 0 0 0 1px rgba(232, 195, 116, .35); background: #120d26; }
.o-face img { width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; user-select: none; }
.o-front { transform: rotateY(180deg); }
.is-flipped .o-inner { transform: rotateY(180deg); }
.is-spread .o-card:not(:disabled):hover .o-inner, .is-spread .o-card:not(:disabled):focus-visible .o-inner { transform: translateY(-22px); }
.is-spread .o-card:not(:disabled):hover .o-face, .is-spread .o-card:focus-visible .o-face { box-shadow: 0 20px 40px -12px #000, 0 0 0 1px var(--c), 0 0 34px -4px var(--c); }
.o-card:focus-visible { outline: none; }
.is-drawn .o-card:not(.is-picked) { opacity: .18; filter: blur(2px) saturate(.4); }
.is-picked .o-face { box-shadow: 0 30px 70px -20px #000, 0 0 0 1px var(--c), 0 0 60px -6px var(--c); }

/* Riffle: alternate cards slide out and back */
.is-shuffling .o-card:nth-child(odd) .o-inner { animation: riffleL .7s var(--ease) 3; }
.is-shuffling .o-card:nth-child(even) .o-inner { animation: riffleR .7s var(--ease) 3; }
@keyframes riffleL { 0%, 100% { transform: none; } 45% { transform: translateX(-62%) rotate(-9deg); } }
@keyframes riffleR { 0%, 100% { transform: none; } 45% { transform: translateX(62%) rotate(9deg); } }

/* The reading */
.oracle-reading {
  --c: var(--gold); display: grid; grid-template-columns: minmax(0, 380px) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: start;
  max-width: 1080px; margin: 40px auto 0; padding: clamp(24px, 4vw, 52px); border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .02)); border: 1px solid color-mix(in srgb, var(--c) 30%, transparent);
  box-shadow: 0 0 80px -30px var(--c); opacity: 0; transform: translateY(30px); transition: opacity 1s var(--ease), transform 1s var(--ease); outline: none; scroll-margin-top: 90px;
}
.oracle-reading[hidden] { display: none; }
.oracle-reading.in { opacity: 1; transform: none; }
.r-card { position: sticky; top: 100px; }
.r-frame { border-radius: 16px; overflow: hidden; aspect-ratio: 2 / 3; box-shadow: 0 30px 70px -25px #000, 0 0 0 1px color-mix(in srgb, var(--c) 50%, transparent), 0 0 70px -20px var(--c); }
.r-frame img { width: 100%; height: 100%; object-fit: cover; display: block; }
.r-card .r-credit { font-size: 12.5px; line-height: 1.5; color: var(--faint); text-align: center; margin: 12px 0 0; }
.r-body { min-width: 0; }
.r-body .eyebrow { color: var(--c); }
.r-body h2 { font-size: clamp(38px, 5vw, 62px); font-weight: 400; margin: 8px 0 14px; text-wrap: balance; }
.r-kw { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0 0 22px; }
.r-kw li { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--c); border: 1px solid color-mix(in srgb, var(--c) 40%, transparent); padding: 6px 12px; border-radius: 999px; }
.r-q { margin: 0 0 20px; padding: 12px 18px; border-left: 2px solid var(--c); color: var(--muted); font-style: italic; font-family: var(--serif); font-size: 19px; }
.r-body .r-lead { font-family: var(--serif); font-size: clamp(22px, 2.4vw, 27px); line-height: 1.4; color: var(--text); margin: 0 0 8px; }
.r-body h3 { font-family: var(--sans); font-size: 12.5px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); margin: 26px 0 8px; }
.r-body p { color: var(--muted); font-size: 17px; line-height: 1.7; max-width: 62ch; margin: 0; }
.r-practice { margin: 30px 0 0; padding: 20px 22px; border-radius: 16px; background: color-mix(in srgb, var(--c) 10%, transparent); border: 1px solid color-mix(in srgb, var(--c) 30%, transparent); }
.r-practice span { font-size: 12.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--c); }
.r-body .r-practice p { margin: 8px 0 0; color: var(--text); }
.r-body .r-affirm { font-family: var(--serif); font-style: italic; font-size: clamp(24px, 3vw, 34px); line-height: 1.3; color: var(--gold-soft); text-align: center; margin: 34px auto 10px; text-wrap: balance; }
.r-body .r-bless { text-align: center; margin: 0 auto; font-size: 16px; }
.r-bless em { font-family: var(--serif); font-size: 20px; color: var(--gold); }
.r-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin: 30px 0 0; }
.r-body .r-note { font-size: 13px; color: var(--faint); text-align: center; margin: 22px auto 0; }

@media (max-width: 900px) {
  .deck-picker { grid-template-columns: 1fr 1fr; }
  .oracle-reading { grid-template-columns: 1fr; }
  .r-card { position: static; max-width: 300px; margin: 0 auto; width: 100%; }
}
@media (max-width: 560px) {
  .deck-picker, .oracle-grid { grid-template-columns: 1fr; }
  .oracle-table { margin-top: 50px; }
}
@media (prefers-reduced-motion: reduce) {
  .o-card, .o-inner, .oracle-reading { transition-duration: .01s; }
  .is-shuffling .o-inner { animation: none !important; }
}
.o-card, .r-frame { aspect-ratio: var(--ratio, 2 / 3) !important; }
.deck-group { grid-column: 1 / -1; margin: 10px 0 0; font-family: var(--serif); font-size: 20px; color: var(--text); }
.deck-group:first-child { margin-top: 0; }
.deck-group span { font-family: var(--sans); font-size: 13px; color: var(--faint); margin-left: 8px; }
.r-body .r-orig { font-family: var(--serif); font-style: italic; font-size: 19px; color: var(--c); margin: -8px 0 14px; }
.c-visconti { --c: #d9b45a; } .c-marseille { --c: #e0604f; } .c-wirth { --c: #6fa8e8; } .c-lenormand { --c: #c79bd9; }

/* ==========================================================================
   v15 visual refresh (2026-11-17)
   ========================================================================== */
:root { --muted: #cdc5e6; --faint: #a79ecb; }
body { font-weight: 400; }
section { padding: 96px 0; }
.section-head h2, .page-hero h1, .cta-band h2, .story-text h2, .home-oracle-text h2 { text-wrap: balance; }
.section-head p, .page-hero p { text-wrap: pretty; }
.footer-small { font-size: 14px; }
.site-footer { margin-top: 0; }
.cta-sec { padding-bottom: 70px; }

/* Section tones: each band gets its own faint colour so the page has rhythm */
#traditions { background: linear-gradient(180deg, transparent, rgba(139, 92, 246, .09) 30%, rgba(139, 92, 246, .09) 70%, transparent); }
.home-oracle { background: radial-gradient(60% 70% at 28% 50%, rgba(232, 195, 116, .10), transparent 70%); }
.how { background: linear-gradient(180deg, transparent, rgba(232, 121, 249, .05) 50%, transparent); padding-bottom: 80px; }

/* Moon-phase divider between sections */
.moon-divider { display: flex; align-items: center; justify-content: center; gap: 22px; max-width: 620px; margin: 0 auto; padding: 0 22px; color: var(--gold); }
.moon-divider::before, .moon-divider::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, transparent, var(--line)); }
.moon-divider::after { transform: scaleX(-1); }
.moon-divider svg { flex: none; opacity: .85; filter: drop-shadow(0 0 8px rgba(232, 195, 116, .45)); }

/* Card Oracle teaser: a fan of real cards */
.home-oracle-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.home-oracle-text h2 { font-size: clamp(34px, 4.6vw, 54px); margin-bottom: 18px; }
.home-oracle-text p { color: var(--muted); font-size: 18px; max-width: 500px; margin-bottom: 30px; }
.oracle-fan { --h: clamp(230px, 27vw, 330px); position: relative; display: block; height: calc(var(--h) * 1.22); text-decoration: none; }
.oracle-fan img {
  position: absolute; left: 50%; bottom: 4%; height: var(--h); width: auto; max-width: none; aspect-ratio: var(--ratio, 2 / 3); object-fit: cover;
  border-radius: 12px; border: 1px solid rgba(232, 195, 116, .55); background: var(--bg-3);
  box-shadow: 0 24px 50px -18px rgba(0, 0, 0, .8), 0 0 40px -12px rgba(232, 195, 116, .35);
  transform-origin: 50% 150%; transform: translateX(-50%) rotate(calc(var(--i) * 10deg));
  transition: transform .8s var(--ease);
}
.oracle-fan:hover img, .home-oracle:hover .oracle-fan img { transform: translateX(-50%) rotate(calc(var(--i) * 14deg)) translateY(-6px); }
.oracle-fan.mini { --h: 150px; height: 186px; margin: 0 auto 22px; max-width: 320px; }
.oracle-fan.mini img { border-radius: 8px; transform: translateX(-50%) rotate(calc(var(--i) * 13deg)); }

/* Steps: icons joined by a gold thread instead of three boxes */
.how .steps { position: relative; grid-template-columns: repeat(3, 1fr); max-width: 1000px; margin: 0 auto; }
.how .steps::before { content: ""; position: absolute; top: 44px; left: 16.66%; right: 16.66%; height: 1px; background: repeating-linear-gradient(90deg, var(--gold) 0 6px, transparent 6px 14px); opacity: .5; }
.how .step { background: none; border: 0; backdrop-filter: none; -webkit-backdrop-filter: none; padding: 0 18px; }
.how .step-num { position: relative; width: 88px; height: 88px; background: radial-gradient(circle, rgba(232, 195, 116, .2), transparent 72%), var(--bg-2); border-color: rgba(232, 195, 116, .45); box-shadow: 0 0 34px -8px rgba(232, 195, 116, .5); }
.step-num svg { width: 42px; height: 42px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.step-num svg .fill { fill: currentColor; stroke: none; }
.step-num b { position: absolute; top: -6px; right: -6px; min-width: 28px; height: 28px; padding: 0 6px; display: grid; place-items: center; border-radius: 14px; font: 500 15px/1 var(--serif); color: var(--bg); background: linear-gradient(135deg, var(--gold-soft), var(--gold)); }

/* Inner pages: a portrait above the headline, less empty sky */
.page-hero { padding: 140px 0 60px; }
.hero-portrait.hero-medallion { width: 124px; height: 124px; margin-bottom: 26px; }
.hero-portrait.hero-medallion::before { inset: -5px; }
.hero-portrait.hero-medallion img { border-width: 3px; }

@media (max-width: 980px) {
  .story-hero-grid .arch-frame { order: -1; max-width: 230px; }
  .story-hero { padding-top: 112px !important; }
  .story-hero-text { text-align: center; }
}
@media (max-width: 860px) {
  .home-oracle-grid { grid-template-columns: 1fr; gap: 26px; text-align: center; }
  .home-oracle-text p { margin-left: auto; margin-right: auto; }
}
@media (max-width: 700px) {
  .how .steps { grid-template-columns: 1fr; gap: 30px; max-width: 460px; }
  .how .steps::before { top: 10px; bottom: 60px; left: 35px; right: auto; width: 1px; height: auto; background: repeating-linear-gradient(180deg, var(--gold) 0 6px, transparent 6px 14px); }
  .how .step { display: grid; grid-template-columns: 72px 1fr; column-gap: 18px; text-align: start; padding: 0; }
  .how .step-num { width: 72px; height: 72px; margin: 0; grid-row: span 2; }
  .how .step-num svg { width: 34px; height: 34px; }
  .how .step h3 { font-size: 24px; margin: 4px 0 6px; }
  [dir="rtl"] .how .steps::before { left: auto; right: 35px; }
}
@media (max-width: 640px) {
  section { padding: 68px 0; }
  .section-head { margin-bottom: 40px; }
  .page-hero { padding: 112px 0 40px; }
  .hero-portrait.hero-medallion { width: 104px; height: 104px; margin-bottom: 20px; }
  /* Six traditions fit on about one screen instead of six */
  .traditions { grid-template-columns: 1fr 1fr; gap: 12px; }
  .trad-media { aspect-ratio: 1 / 1.08; }
  .trad-symbol { font-size: 26px; left: 12px; bottom: 8px; }
  .trad-body { padding: 10px 14px 16px; gap: 0; }
  .trad-body h3 { font-size: 21px; }
  .trad-body p, .trad-link { display: none; }
  .oracle-fan { --h: 200px; }
  .oracle-fan img { transform: translateX(-50%) rotate(calc(var(--i) * 9deg)); }
  .cta-band { padding: 64px 22px; }
  .cta-sec { padding-bottom: 50px; }
}
/* Fan: centre card on top, even spread either side */
.oracle-fan img:nth-child(3) { z-index: 3; }
.oracle-fan img:nth-child(2), .oracle-fan img:nth-child(4) { z-index: 2; }
.oracle-fan:not(.mini) img { transform: translateX(-50%) rotate(calc(var(--i) * 13deg)); }
.oracle-fan.mini img:nth-child(2) { z-index: 3; }
@media (max-width: 640px) { .oracle-fan:not(.mini) img { transform: translateX(-50%) rotate(calc(var(--i) * 11deg)); } }
.oracle-fan.mini img:nth-child(3) { z-index: 1; }
@media (max-width: 700px) { .how .steps::before { bottom: 96px; } }

.r-body .r-en { font-size: 14px; font-style: italic; color: var(--faint); margin: 0 0 14px; }

/* ---------- Card meanings (static pages in /meanings and /<lang>/meanings) ---------- */
.oracle-browse { text-align: center; margin: 26px 0 0; font-size: 15px; letter-spacing: .06em; }
.oracle-browse a { color: var(--gold); text-decoration: none; border-bottom: 1px solid var(--line); padding-bottom: 2px; }
.oracle-browse a:hover { color: var(--gold-soft); border-color: var(--gold); }
.meanings { --c: var(--gold); }
.meanings .page-hero h1 { font-size: clamp(38px, 6vw, 72px); }
.meanings .page-hero h1 span { color: var(--c); }
.meanings .hero-actions { margin-top: 30px; }
.m-note { font-style: italic; color: var(--faint) !important; font-size: 16px !important; margin-top: 10px !important; }
.meaning-sec { padding-top: 10px; }
.meaning-list { display: grid; gap: 26px; max-width: 980px; }
.meaning { display: grid; grid-template-columns: minmax(150px, 230px) 1fr; gap: 30px; padding: clamp(20px, 3vw, 34px); align-items: start; scroll-margin-top: 100px; }
.m-frame { display: block; aspect-ratio: var(--ratio, 2 / 3); border-radius: 12px; overflow: hidden; border: 1px solid color-mix(in srgb, var(--c) 55%, transparent); background: var(--bg-3); box-shadow: 0 18px 40px -18px rgba(0, 0, 0, .8); }
.m-frame img { width: 100%; height: 100%; object-fit: cover; display: block; }
.m-body { min-width: 0; }
.m-body h2 { font-size: clamp(28px, 3.4vw, 40px); margin-bottom: 4px; }
.m-body h3 { font-family: var(--sans); font-size: 12.5px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--c); margin: 20px 0 8px; }
.m-body p { color: var(--muted); margin: 0 0 10px; }
.m-from { font-family: var(--serif); font-style: italic; color: var(--c) !important; font-size: 17px; }
.m-msg { font-family: var(--serif); font-size: clamp(20px, 2.2vw, 24px); line-height: 1.45; color: var(--text) !important; margin: 14px 0 6px !important; }
.m-affirm { font-family: var(--serif); font-style: italic; font-size: 20px; color: var(--gold-soft) !important; margin-top: 18px !important; }
.meanings .r-kw { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 12px 0 0; padding: 0; }
.meanings .r-kw li { padding: 5px 14px; border-radius: 999px; border: 1px solid var(--line-soft); font-size: 13px; letter-spacing: .06em; color: var(--muted); }
.deck-index { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; max-width: 980px; }
.deck-tile { display: grid; grid-template-columns: 92px 1fr; gap: 20px; align-items: center; padding: 18px; text-decoration: none; color: inherit; --c: var(--gold); }
.deck-tile:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--c) 60%, transparent); }
.deck-tile .deck-txt { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.deck-tile b { color: var(--c); font-size: 22px; font-weight: 400; line-height: 1; }
.deck-tile strong { font-family: var(--serif); font-size: 24px; font-weight: 500; line-height: 1.15; }
.deck-tile small { color: var(--muted); font-size: 14px; line-height: 1.4; }
.deck-tile em { font-style: normal; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--c); margin-top: 4px; }
@media (max-width: 700px) {
  .meaning { grid-template-columns: 1fr; gap: 18px; }
  .meaning .m-frame { max-width: 190px; margin: 0 auto; }
  .deck-index { grid-template-columns: 1fr; }
}

/* ---------- Speed and stability (Nov 2026) ---------- */
/* Keep the hero text block the same height while portrait names and captions change, so the page doesn't jump. */
@media (max-width: 900px) {
  .orbit-left { display: flex; flex-direction: column; justify-content: flex-end; min-height: calc(46px + 1.84 * clamp(38px, 5.6vw, 100px)); }
  .orbit-caption { min-height: 2.7em; }
  /* The shimmer repaints text every frame; phones show the gold gradient without animating it. */
  .gold-text { animation: none; }
}
