/* =====================================================================
   The Experience style, shared (2026-10-01). Pedro, after The Experience went live: "it looks awesome, it looks
   beautiful. Let's keep this style for the other pages." This file holds the parts every page in that style shares;
   each page keeps only its own sections in its inline <style>. The Experience itself (ritual.html) still carries its own
   copy of these rules in ritual-v3.css.
   - grounds: light cream, a tint, and night; a band of the other colour starts on a gentle wave (one full S, like the
     line through a yin-yang); the hero and the close split dark and light down a tall S
   - type: Cinzel headings, Montserrat text, the gold tokens from common.css (never redeclared here)
   - rich dark cards with gold line drawings that play once (scripts/xp.js adds .is-on); one quiet buy line per section
   - every animation runs once when its part comes into view; with reduced motion everything simply shows, finished
   ===================================================================== */
html, body { overflow-x: clip !important; }
:root { --xp-ink: #F5EFE6; --xp-ink-soft: #CFC6B8; --xp-card: #26211B; --xp-seam: clamp(30px, 4.4vw, 66px);
    --xp-gut: max(20px, 6vw, calc((100vw - 1180px) / 2)); --xp-pad: clamp(64px, 8vw, 104px); }
/* the split hero is dark on the left, so the nav starts solid instead of see-through */
nav, nav.nav-scrolled { background: rgb(28 25 20 / 0.95); }
.xp h2, .xp h3, .xp-hero h1 { font-family: 'Cinzel', serif; }
.xp-kicker { font-family: 'Montserrat', sans-serif; font-weight: 600; font-size: 0.8rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--gold-deep); margin: 0 0 12px; }
.xp-dark .xp-kicker, .xp-hero .xp-kicker, .xp-close-side .xp-kicker { color: var(--gold); }
.xp-wrap { max-width: 1140px; margin: 0 auto; position: relative; }
.xp-h2 { font-size: clamp(2rem, 1.2rem + 2.6vw, 3.4rem); line-height: 1.08; margin: 0 0 14px; color: var(--text-on-light); text-wrap: balance; }
.xp-dark .xp-h2 { color: var(--xp-ink); }
.xp-h3 { font-size: clamp(1.4rem, 1.1rem + 0.8vw, 1.8rem); margin: clamp(40px, 5vw, 60px) 0 16px; color: var(--text-on-light); }
.xp-dark .xp-h3 { color: var(--xp-ink); }
.xp-lede { font-size: clamp(1rem, 0.94rem + 0.3vw, 1.15rem); line-height: 1.6; color: var(--text-muted-light); max-width: 42rem; margin: 0; }
.xp-dark .xp-lede { color: var(--xp-ink-soft); }
.xp-lede a, .xp-link { color: var(--gold-deep); font-weight: 600; text-decoration: underline; text-underline-offset: 0.22em; }
.xp-dark .xp-lede a, .xp-dark .xp-link { color: var(--gold); }
.xp-light, .xp-tint, .xp-dark { position: relative; padding: var(--xp-pad) max(20px, 6vw); }
.xp-light { background: var(--bg-light); color: var(--text-on-light); }
.xp-tint { background: var(--bg-light-tint); color: var(--text-on-light); }
.xp-dark { background: var(--bg-dark-warm); color: var(--xp-ink); }
.has-seam { padding-top: calc(var(--xp-pad) + var(--xp-seam) * 0.7); }

/* the seams */
.xp-seam { position: absolute; left: 0; top: -1px; width: 100%; height: var(--xp-seam); display: block; pointer-events: none; }
.xp-seam path, .xp-yy--h path { fill: var(--seam-c); }
.xp-seam--flip { transform: scaleX(-1); }
.xp-yy { position: absolute; pointer-events: none; display: block; }
.xp-yy--v { top: 0; bottom: 0; height: 100%; width: clamp(56px, 7vw, 124px); }
.xp-yy--v path { fill: var(--bg-dark-warm); }
.xp-yy--h { display: none; }

/* buttons */
.xp-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 26px; font-family: 'Cinzel', serif; font-size: 0.88rem;
    letter-spacing: 0.12em; text-transform: uppercase; border: 1px solid var(--gold); color: var(--gold); background: transparent; cursor: pointer; text-decoration: none;
    border-radius: 2px; transition: background-color 0.2s ease, color 0.2s ease; white-space: nowrap; }
.xp-btn:hover { background: rgb(196 152 42 / 0.14); }
.xp-btn--gold { background: var(--gold); color: var(--bg-dark-warm); }
.xp-btn--gold:hover { background: var(--gold-hover); }
.xp-btn--ink { border-color: var(--text-on-light); color: var(--text-on-light); }
.xp-btn--ink:hover { background: var(--text-on-light); color: var(--bg-light); }
.xp-btn--light { border-color: rgb(245 239 230 / 0.6); color: var(--xp-ink); }
.xp-btn--light:hover { background: var(--xp-ink); color: var(--bg-dark-warm); }
.xp-btn:focus-visible, .xp button:focus-visible, .xp summary:focus-visible, .xp a:focus-visible, .xp-hero a:focus-visible, .xp-hero button:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.xp-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ------------------------------------------ HERO: night and day, split on an S -- */
.xp-hero { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); background: var(--bg-light); min-height: min(100svh, 880px); }
.xp-hero > .xp-yy--v { left: calc(50% - 1px); }            /* 1px over the join, so no hairline shows at odd widths */
.xp-hero-copy { background: var(--bg-dark-warm); color: var(--xp-ink); display: flex; flex-direction: column; justify-content: center;
    padding: calc(88px + 3vw) clamp(24px, 3.4vw, 56px) clamp(48px, 6vw, 80px) var(--xp-gut); }
.xp-hero-copy > * { animation: xp-rise 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.xp-hero-copy > :nth-child(2) { animation-delay: 0.1s; } .xp-hero-copy > :nth-child(3) { animation-delay: 0.2s; }
.xp-hero-copy > :nth-child(4) { animation-delay: 0.3s; } .xp-hero-copy > :nth-child(5) { animation-delay: 0.4s; }
@keyframes xp-rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.xp-hero .xp-kicker { margin-bottom: 18px; }
.xp-hero h1 { font-weight: 700; font-size: clamp(2.4rem, 0.9rem + 3.6vw, 4.4rem); line-height: 1.02; text-transform: uppercase; color: var(--xp-ink); margin: 0 0 22px; max-width: 12ch; text-wrap: balance; }
.xp-sub { font-size: clamp(1.05rem, 0.98rem + 0.3vw, 1.2rem); line-height: 1.6; color: var(--xp-ink-soft); margin: 0 0 28px; max-width: 31rem; }
.xp-note { margin: 20px 0 0; font-size: 0.9rem; color: var(--xp-ink-soft); letter-spacing: 0.04em; }
.xp-note b { color: var(--gold); font-weight: 600; }
.xp-hero-side { position: relative; display: flex; align-items: center; justify-content: center;
    padding: calc(88px + 3vw) var(--xp-gut) clamp(48px, 6vw, 80px) clamp(76px, 10vw, 160px); }
/* the photo wipes up, then settles */
.xp-hero-photo { margin: 0; width: min(100%, 470px); border-radius: 22px; overflow: hidden; aspect-ratio: 4 / 5; background: #E9E4DC; box-shadow: 0 40px 80px -50px rgb(60 45 20 / 0.55);
    animation: xp-wipe 1.3s cubic-bezier(0.6, 0, 0.2, 1) 0.15s both; }
.xp-hero-photo img { width: 100%; height: 100%; object-fit: cover; display: block; animation: xp-settle 2.6s cubic-bezier(0.2, 0.6, 0.2, 1) 0.15s both; }
@keyframes xp-wipe { from { clip-path: inset(100% 0 0 0 round 22px); } to { clip-path: inset(0 0 0 0 round 22px); } }
@keyframes xp-settle { from { transform: scale(1.1); } to { transform: scale(1); } }

/* ------------------------------------------------- one editorial line -- */
.xp-why { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: clamp(20px, 5vw, 72px); align-items: end; }
.xp-statement { font-family: 'Cinzel', serif; font-weight: 700; font-size: clamp(1.8rem, 1rem + 2.6vw, 3.1rem); line-height: 1.14; color: var(--text-on-light); margin: 0; text-wrap: balance; }
.xp-statement em { font-style: normal; color: var(--gold-deep); }

/* ------------------------------------------- cards with drawings that play -- */
.xp-cards { list-style: none; margin: clamp(28px, 3.6vw, 44px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 1.8vw, 22px); }
.xp-cards--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.xp-card { background: var(--xp-card); border: 1px solid rgb(196 152 42 / 0.16); border-radius: 18px; padding: 26px 24px 24px; color: var(--xp-ink); }
.xp-light .xp-card, .xp-tint .xp-card { box-shadow: 0 24px 46px -34px rgb(28 25 20 / 0.55); }
.xp-card .n { display: block; font-family: 'Cinzel', serif; font-weight: 700; font-size: 0.9rem; letter-spacing: 0.16em; color: var(--gold); margin-bottom: 10px; }
.xp-card h3 { font-size: 1.28rem; line-height: 1.2; margin: 0 0 8px; color: var(--xp-ink); }
.xp-card p { margin: 0; font-size: 0.96rem; line-height: 1.6; color: var(--xp-ink-soft); }
.xp-ic { width: 64px; height: 64px; display: block; margin: 0 0 18px; overflow: visible; }
.xp-ic * { fill: none; stroke: var(--gold); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.xp-ic .ic-fill { fill: var(--gold); stroke: none; }
.xp-ic .ic-soft { fill: rgb(196 152 42 / 0.22); }
.xp-ic .ic-box { transform-box: fill-box; transform-origin: 50% 50%; }
.xp-ic .ic-base { transform-box: fill-box; transform-origin: 50% 100%; }
/* the drawings: anything marked .xp-play draws once it gets .is-on (cards as they rise, route stops as the line reaches them) */
.xp-anim .xp-play .ic-draw { stroke-dasharray: 1; stroke-dashoffset: 1; }
.xp-anim .xp-play.is-on .ic-draw { animation: ic-draw 1.2s cubic-bezier(0.4, 0, 0.2, 1) 0.25s forwards; }
.xp-anim .xp-play.is-on .ic-late { animation-delay: 0.85s; }
@keyframes ic-draw { to { stroke-dashoffset: 0; } }
.xp-anim .xp-play .ic-pop { transform: scale(0); }
.xp-anim .xp-play.is-on .ic-pop { animation: ic-pop 0.6s cubic-bezier(0.3, 1.6, 0.5, 1) 1s forwards; }
.xp-anim .xp-play.is-on .ic-pop:nth-of-type(2n) { animation-delay: 1.2s; }
.xp-anim .xp-play.is-on .ic-pop:nth-of-type(3n) { animation-delay: 1.4s; }
@keyframes ic-pop { to { transform: scale(1); } }
.xp-anim .xp-play .ic-fadeout { animation: none; }
.xp-anim .xp-play.is-on .ic-fadeout { animation: ic-fadeout 2.4s ease 1.2s forwards; }
.xp-anim .xp-play.is-on .ic-fadeout:nth-of-type(2n) { animation-delay: 1.6s; }
.xp-anim .xp-play.is-on .ic-fadeout:nth-of-type(3n) { animation-delay: 2s; }
@keyframes ic-fadeout { 0% { opacity: 1; } 100% { opacity: 0.18; } }
.xp-anim .xp-play.is-on .ic-drip { animation: ic-drip 1.1s ease-in 0.9s 2 backwards; }
@keyframes ic-drip { 0% { transform: translateY(-6px); opacity: 0; } 30% { opacity: 1; } 100% { transform: translateY(12px); opacity: 0; } }
.xp-anim .xp-play.is-on .ic-sink { animation: ic-sink 1.6s cubic-bezier(0.4, 0, 0.2, 1) 0.6s backwards; }
@keyframes ic-sink { from { transform: translateY(-16px); } }
.xp-anim .xp-play.is-on .ic-sway { transform-box: fill-box; transform-origin: 50% 100%; animation: ic-sway 2.2s ease-in-out 1.2s; }
@keyframes ic-sway { 30% { transform: rotate(-5deg); } 70% { transform: rotate(3deg); } }
.xp-anim .xp-play.is-on .ic-clink-l { animation: ic-clink-l 1.8s cubic-bezier(0.4, 0, 0.2, 1) 0.35s backwards; }
.xp-anim .xp-play.is-on .ic-clink-r { animation: ic-clink-r 1.8s cubic-bezier(0.4, 0, 0.2, 1) 0.35s backwards; }
@keyframes ic-clink-l { 0% { transform: translateX(-6px) rotate(-6deg); } 45%, 55% { transform: rotate(6.5deg); } 100% { transform: none; } }
@keyframes ic-clink-r { 0% { transform: translateX(6px) rotate(6deg); } 45%, 55% { transform: rotate(-6.5deg); } 100% { transform: none; } }
.xp-anim .xp-play .ic-after { opacity: 0; }
.xp-anim .xp-play.is-on .ic-after { animation: ic-fadein 0.4s ease 1.2s forwards; }
@keyframes ic-fadein { to { opacity: 1; } }
.xp-anim .xp-play.is-on .ic-rise { animation: ic-up 1.6s cubic-bezier(0.25, 0.6, 0.2, 1) 0.3s backwards; }
@keyframes ic-up { from { transform: translateY(13px); } }
.xp-anim .xp-play.is-on .ic-bubble { animation: ic-bubble 1.4s ease-out 0.8s 2 backwards; }
@keyframes ic-bubble { 0% { transform: translateY(8px); opacity: 0; } 30% { opacity: 1; } 100% { transform: translateY(-10px); opacity: 0; } }
.xp-anim .xp-play.is-on .ic-steam { animation: ic-steam 1.8s ease-in-out 1s 2 backwards; }
@keyframes ic-steam { 0% { transform: translateY(4px); opacity: 0; } 40% { opacity: 1; } 100% { transform: translateY(-6px); opacity: 0.2; } }

/* rise: cards and photos come up a few at a time as they come into view */
.rise-ready .xp-rise { opacity: 0; transform: translateY(22px); transition: opacity 0.55s ease, transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1); }
.rise-ready .xp-rise.is-on { opacity: 1; transform: none; }

/* a big quote */
.xp-quote { margin: clamp(36px, 5vw, 64px) auto 0; max-width: 54rem; text-align: center; }
.xp-quote p { font-family: 'Cinzel', serif; font-weight: 700; font-size: clamp(1.35rem, 1rem + 1.4vw, 2.2rem); line-height: 1.3; color: var(--xp-ink); margin: 0 0 14px; text-wrap: balance; }
.xp-quote p::before { content: '\201C'; display: block; font-size: 3.4em; line-height: 0.6; color: var(--gold); margin-bottom: 8px; }
.xp-light .xp-quote p, .xp-tint .xp-quote p { color: var(--text-on-light); }
.xp-quote cite { font-style: normal; font-size: 0.82rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); }
.xp-light .xp-quote cite, .xp-tint .xp-quote cite { color: var(--gold-deep); }

/* the way into the science: a small card */
.xp-science { position: relative; display: block; max-width: 34rem; margin: 6px 0 16px; padding: 16px 52px 16px 18px; border: 1px solid rgb(196 152 42 / 0.35);
    border-radius: 14px; background: var(--xp-card); text-decoration: none; transition: border-color 0.2s ease, background-color 0.2s ease; }
.xp-science::after { content: '\2192'; position: absolute; right: 18px; top: 50%; transform: translateY(-50%); color: var(--gold); font-size: 1.3rem; transition: transform 0.2s ease; }
.xp-science:hover { border-color: var(--gold); background: #2D2720; }
.xp-science:hover::after { transform: translate(4px, -50%); }
.xp-science-k { display: block; font-size: 0.7rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold); margin-bottom: 4px; }
.xp-science b { display: block; font-family: 'Cinzel', serif; font-size: 1.08rem; line-height: 1.3; color: var(--xp-ink); }
.xp-science-d { display: block; margin-top: 4px; font-size: 0.88rem; line-height: 1.5; color: var(--xp-ink-soft); }

/* the shared buy line (styles/buy.css) on dark grounds */
.xp-dark .km-cta { border-top-color: rgb(245 239 230 / 0.14); }
.xp-dark .km-cta-line { color: var(--xp-ink-soft); }
.xp-dark .km-cta-line b { color: var(--xp-ink); }
.xp-dark .km-cta-line .km-gold { color: var(--gold); }

/* --------------------------------------- CLOSE: day and night, the other way -- */
.xp-closeband { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); background: var(--bg-light); }
.xp-closeband > .xp-yy--v { right: calc(50% - 1px); }
.xp-close-copy { display: flex; flex-direction: column; justify-content: center; padding: var(--xp-pad) clamp(76px, 10vw, 160px) var(--xp-pad) var(--xp-gut); }
.xp-close-copy .xp-lede { margin: 0 0 26px; }
.xp-trust { margin: 18px 0 0; font-size: 0.85rem; letter-spacing: 0.04em; color: var(--text-muted-light); }
.xp-close-side { position: relative; background: var(--bg-dark-warm); display: flex; align-items: center; padding: var(--xp-pad) var(--xp-gut) var(--xp-pad) clamp(24px, 3vw, 48px); }
.xp-strip { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; width: min(100%, 470px); }
.xp-strip li { border-radius: 14px; overflow: hidden; aspect-ratio: 1; background: #2A2520; }
.xp-strip img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ------------------------------------------------------------- PHONES -- */
@media (max-width: 860px) {
    /* the splits stack: night on top, a wave, then day (and the other way round at the close) */
    .xp-hero, .xp-closeband { grid-template-columns: 1fr; min-height: 0; }
    .xp-hero { background: var(--bg-dark-warm); }
    .xp-yy--v { display: none; }
    .xp-yy--h { display: block; left: 0; top: -1px; width: 100%; height: var(--xp-seam); }
    .xp-hero-copy { padding: calc(76px + 4vw) 20px 34px; }
    .xp-hero h1 { max-width: none; }
    .xp-hero-side { background: var(--bg-light); padding: calc(var(--xp-seam) + 18px) 20px 44px; }
    .xp-hero-photo { width: 100%; aspect-ratio: 5 / 4; }
    .xp-close-copy { padding: clamp(56px, 12vw, 80px) 20px 36px; }
    .xp-close-side { padding: calc(var(--xp-seam) + 20px) 20px 48px; justify-content: center; }
    .xp-why { grid-template-columns: 1fr; gap: 16px; }
    .xp-cards, .xp-cards--4 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
    .xp-hero h1 { font-size: clamp(2.1rem, 10vw, 2.8rem); }
    .xp-actions { flex-wrap: nowrap; gap: 8px; }
    .xp-actions .xp-btn { flex: 1 1 0; min-width: 0; min-height: 48px; padding: 0 8px; font-size: 0.78rem; letter-spacing: 0.04em; white-space: normal; text-align: center; line-height: 1.2; }
    .xp-btn-price { display: none; }
    .xp-cards, .xp-cards--4 { grid-template-columns: 1fr; }
    .xp-card { display: grid; grid-template-columns: 52px 1fr; column-gap: 16px; padding: 20px 18px; }
    .xp-card .xp-ic { width: 52px; height: 52px; grid-row: 1 / 4; margin: 2px 0 0; }
    .xp-card h3 { font-size: 1.14rem; margin-bottom: 4px; }
    .xp-card p { font-size: 0.92rem; }
}
@media (prefers-reduced-motion: reduce) {
    .xp-hero-copy > *, .xp-hero-photo, .xp-hero-photo img { animation: none !important; }
    .rise-ready .xp-rise { transition: none !important; }
}
