/* SAGE revision of v4.0 C, 3 Nov 2026: the temple wall from 2.0 in place of the lotus.
   The lotus stays on the ladder only, where Christopher wants the chakras. */

/* Home: no lotus bloom behind any scene except the ladder */
.v4-home .lo-scene:not(.v4-ladder-scene) .lo-bloom { display: none; }

/* Hero: hieroglyph wall, warm glow, embers, the cut-out portrait */
.v4-home .lo-first { position: relative; overflow: hidden; isolation: isolate; margin-top: 0; }
.v4-home .lo-first > .lo-open__grid { position: relative; z-index: 2; }
.rv-wall { position: absolute; inset: 0; z-index: 0; background: url(../img/egyptian-plate.webp) center / cover; opacity: .5; filter: sepia(.45) saturate(.8) brightness(.75); }
.v4-home .lo-first::before { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(100deg, rgba(18,12,23,.82) 0%, rgba(18,12,23,.42) 48%, rgba(18,12,23,.12) 100%),
              radial-gradient(60% 70% at 72% 55%, rgba(201,161,90,.16), transparent 70%); }
.v4-home .lo-first::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 22vh; z-index: 1; pointer-events: none; background: linear-gradient(to bottom, transparent, var(--ink, #120c17)); }
.rv-cut { margin: 0; align-self: end; justify-self: center; display: flex; justify-content: center; }
.rv-cut img { display: block; height: min(84vh, 820px); width: auto; max-width: 100%; object-fit: contain;
  -webkit-mask-image: linear-gradient(to bottom, #000 78%, transparent 100%); mask-image: linear-gradient(to bottom, #000 78%, transparent 100%);
  filter: drop-shadow(0 30px 60px rgba(0,0,0,.45)); }
.v4-home .lo-open__grid { align-items: end; }
.v4-home .lo-open__copy { align-self: center; }

.rv-embers { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.rv-embers i { position: absolute; bottom: -10px; width: 4px; height: 4px; border-radius: 50%; background: #E9C27A; box-shadow: 0 0 10px 3px rgba(233,194,122,.55); opacity: 0; animation: rv-ember 14s linear infinite; }
.rv-embers i:nth-child(1) { left: 8%;  animation-delay: 0s; }
.rv-embers i:nth-child(2) { left: 22%; animation-delay: 3s;  animation-duration: 17s; }
.rv-embers i:nth-child(3) { left: 37%; animation-delay: 6s; }
.rv-embers i:nth-child(4) { left: 51%; animation-delay: 1.5s; animation-duration: 19s; }
.rv-embers i:nth-child(5) { left: 64%; animation-delay: 8s; }
.rv-embers i:nth-child(6) { left: 76%; animation-delay: 4.5s; animation-duration: 16s; }
.rv-embers i:nth-child(7) { left: 88%; animation-delay: 10s; }
.rv-embers i:nth-child(8) { left: 95%; animation-delay: 2s;  animation-duration: 21s; }
@keyframes rv-ember { 0% { transform: translate(0, 0); opacity: 0; } 10% { opacity: .9; } 80% { opacity: .5; } 100% { transform: translate(-30px, -95vh); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .rv-embers { display: none; } }

/* Story and Pixie scenes: the wall, quieter, in place of the coloured veils */
.v4-home #story .lo-veil img, .v4-home #us .lo-veil img { display: none; }
.v4-home #story .lo-veil, .v4-home #us .lo-veil { background: url(../img/egyptian-plate.webp) center / cover; opacity: .16; mix-blend-mode: luminosity; filter: sepia(.4); }

/* Teachings cards: a glyph where the lotus was */
.rv-know__glyph { display: block; width: 30px; height: 30px; margin-bottom: .9rem; color: var(--gold-lit, #D9A648); }

/* Glyph rail down the right edge, as on 2.0 */
.rv-rail { position: fixed; right: clamp(.75rem, 1.6vw, 1.6rem); top: 50%; transform: translateY(-50%); z-index: 40; display: flex; flex-direction: column; gap: 1.6rem; padding: 1rem 0; }
.rv-rail::before { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 1px; background: linear-gradient(to bottom, transparent, rgba(217,166,72,.45), transparent); }
.rv-rail a { position: relative; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: rgba(18,12,23,.85); border: 1px solid rgba(217,166,72,.28); color: rgba(231,231,231,.6); transition: color .3s, border-color .3s; }
.rv-rail a:hover, .rv-rail a:focus-visible { color: #E9C27A; border-color: rgba(233,194,122,.8); }
.rv-rail .rv-glyph { width: 18px; height: 18px; color: inherit; transform: none; }
@media (max-width: 760px) { .rv-rail { display: none; } }

/* The Heart rung waits for its name */
.rv-rung--open .v4-rung { border: 1px dashed rgba(127,214,162,.5); border-radius: 14px; }
.rv-rung--open .v4-rung__t { font-style: italic; }
.rv-step--open .v4-step__body { border: 1px dashed rgba(127,214,162,.45); border-radius: 16px; padding: 1.2rem 1.4rem; }

/* Three Kingdom doors side by side */
.rv-doors--three { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.2rem; }
@media (max-width: 900px) { .rv-doors--three { grid-template-columns: 1fr; } }

/* The copy column carried its own dark halo; the wall gradient does that job now */
.v4-home .lo-open__copy::before { display: none; }

/* Round 2 ---------------------------------------------------------- */

/* Christopher & Pixie: the years beside the road, no sideways scrolling */
.rv-yr__grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(1.5rem, 4vw, 4rem); margin-top: 2.2rem; align-items: start; }
.rv-yr__photos { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .7rem; }
.rv-yr__photos figure { margin: 0; }
.rv-yr__photos img { display: block; width: 100% !important; height: auto !important; aspect-ratio: 1 / 1 !important; object-fit: cover; object-position: 50% 30%; border-radius: 10px; border: 1px solid rgba(217,166,72,.18); }
.rv-yr__photos li:last-child { grid-column: 1 / -1; }
.rv-yr__photos li:last-child img { aspect-ratio: 16 / 9 !important; }
.rv-yr__photos figcaption { font-size: .78rem; line-height: 1.35; margin-top: .4rem; color: rgba(231,231,231,.72); }
.rv-yr__photos figcaption b { color: var(--gold-lit, #D9A648); margin-right: .3rem; }
.rv-yr__road { position: sticky; top: 6rem; }
.rv-yr__h { margin-top: .2rem; }
@media (max-width: 860px) { .rv-yr__grid { grid-template-columns: 1fr; } .rv-yr__road { position: static; order: -1; } }

/* What the deeper containers include */
.rv-incl { list-style: none; margin: 1rem 0 1.2rem; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.rv-incl li { font-size: .9rem; padding: .35rem .75rem; border-radius: 999px; border: 1px solid rgba(217,166,72,.35); color: rgba(231,231,231,.85); }
.rv-mark--crown svg { width: 100%; height: 100%; }

/* My story: the link to the long read */
.rv-more { margin-top: 1.2rem; font-size: .95rem; color: rgba(231,231,231,.75); }

/* Members: kindred work */
.rv-kin { margin: 1.8rem auto 1.4rem; max-width: 34rem; text-align: center; }
.rv-kin__l { color: rgba(231,231,231,.75); margin: .2rem 0 .8rem; }
.rv-kin ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem 1.4rem; }
.rv-kin a { color: var(--gold-lit, #D9A648); }
.rv-kin span { color: rgba(231,231,231,.55); font-style: italic; }

/* In their words: four quotes, two by two */
.rv-learned { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.6rem 2.4rem; }
@media (max-width: 760px) { .rv-learned { grid-template-columns: 1fr; } }

/* Round 3 ---------------------------------------------------------- */
.rv-poem { margin: .2rem 0 1.2rem; padding-left: 1.2rem; }
.rv-poem li { font-size: 1.12rem; line-height: 1.6; margin: .35rem 0; color: var(--mirror, #E7E7E7); }
.rv-poem li::marker { color: var(--gold-lit, #D9A648); }
.rv-breath__go { justify-content: center; margin-top: 1.2rem; }

/* Round 4 ---------------------------------------------------------- */

/* The rail says where each glyph goes; the section you are in lights up */
.rv-rail a.is-current { color: #E9C27A; border-color: rgba(233,194,122,.85); box-shadow: 0 0 16px rgba(233,194,122,.32); }
.rv-rail__lb { position: absolute; right: calc(100% + .75rem); top: 50%; transform: translate(8px, -50%); white-space: nowrap;
  font: 500 .72rem/1 var(--kick, system-ui, sans-serif); letter-spacing: .14em; text-transform: uppercase; color: #E9C27A;
  background: rgba(18,12,23,.94); border: 1px solid rgba(217,166,72,.4); padding: .5rem .8rem; border-radius: 999px;
  opacity: 0; pointer-events: none; transition: opacity .3s, transform .3s; }
.rv-rail a:hover .rv-rail__lb, .rv-rail a:focus-visible .rv-rail__lb, .rv-rail a.is-telling .rv-rail__lb { opacity: 1; transform: translate(0, -50%); }
@media (prefers-reduced-motion: reduce) { .rv-rail__lb { transition: none; } }

/* Opening the Portal: the first session, said loud enough to see */
.rv-titleline { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1.1rem; }
.rv-badge { display: inline-flex; align-items: center; padding: .55rem 1.05rem; border-radius: 999px; border: 1px solid var(--t);
  background: color-mix(in srgb, var(--c) 20%, transparent); color: var(--t);
  font: 600 .9rem/1.2 var(--kick, system-ui, sans-serif); letter-spacing: .1em; text-transform: uppercase; }
.rv-step--first .v4-step__body { border: 1px solid color-mix(in srgb, var(--t) 45%, transparent); border-radius: 16px; padding: 1.2rem 1.4rem;
  background: color-mix(in srgb, var(--c) 7%, transparent); }
.v4-rung__t.rv-first { justify-self: end; padding: .35rem .7rem; border: 1px solid var(--t); border-radius: 999px; white-space: normal; text-align: center; }

/* Small notes under an offer */
.rv-note { margin: .7rem 0 0; font-size: .95rem; line-height: 1.5; color: rgba(231,231,231,.76); }
.rv-note a { color: var(--gold-lit, #D9A648); }
.rv-note--first { margin-top: .4rem; }
.rv-incl-wrap { margin-top: 1.8rem; text-align: center; }
.rv-incl-wrap .rv-incl { justify-content: center; }

/* The Crown Chakra Journey: the crowning jewel of the ladder */
.rv-step--crown .v4-step__body { border: 1px solid rgba(207,170,242,.5); border-radius: 18px; padding: 1.4rem 1.6rem;
  background: radial-gradient(120% 80% at 0% 0%, rgba(155,95,208,.18), transparent 60%), rgba(18,12,23,.35);
  box-shadow: 0 0 48px rgba(155,95,208,.2), inset 0 0 0 1px rgba(241,213,138,.08); }
.rv-crown__terms { display: flex; flex-wrap: wrap; align-items: baseline; gap: .4rem 1.6rem; }
.rv-crown__terms b { font: 400 clamp(1.7rem, 1.3rem + 1.4vw, 2.3rem)/1 var(--serif, Georgia, serif); letter-spacing: 0; color: #F1D58A; margin-right: .35rem; }

/* Members: every room is a door */
.rv-in__go { color: inherit; text-decoration: underline; text-decoration-color: rgba(217,166,72,.55); text-underline-offset: .22em; }
.rv-in__go::after { content: " \2192"; color: var(--gold-lit, #D9A648); }
.rv-in__go:hover, .rv-in__go:focus-visible { color: var(--gold-lit, #D9A648); }
.v4-in__t em { font-style: italic; opacity: .8; }
.rv-note { font-family: var(--sans, "DM Sans", sans-serif); font-style: normal; letter-spacing: 0; }
.rv-note--first { margin: .5rem 0 1.4rem; }

/* Round 5 ---------------------------------------------------------- */

/* The photo frames: a cartouche in place of the lotus petal */
.lo-frame__win {
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 150' preserveAspectRatio='none'%3E%3Cpath d='M50 0 C 78 0 100 20 100 48 L 100 102 C 100 130 78 150 50 150 C 22 150 0 130 0 102 L 0 48 C 0 20 22 0 50 0 Z'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 150' preserveAspectRatio='none'%3E%3Cpath d='M50 0 C 78 0 100 20 100 48 L 100 102 C 100 130 78 150 50 150 C 22 150 0 130 0 102 L 0 48 C 0 20 22 0 50 0 Z'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
}

/* The Temple of the Heart: its subtitle */
.rv-subtitle { margin: .35rem 0 .2rem; font: 400 clamp(1.2rem, 1rem + .8vw, 1.5rem)/1.25 var(--serif, Georgia, serif); font-style: italic; color: var(--t); }

/* WhatsApp: the hours and the boundary, on hover, focus or tap */
.rv-incl li.rv-wa { position: relative; display: inline-flex; align-items: center; gap: .45rem; cursor: help; }
.rv-wa__i { display: inline-grid; place-items: center; width: 1.05rem; height: 1.05rem; border-radius: 50%; border: 1px solid rgba(217,166,72,.7); color: var(--gold-lit, #D9A648); font: 600 .68rem/1 var(--sans, sans-serif); font-style: italic; }
.rv-wa__tip { position: absolute; left: 0; bottom: calc(100% + .6rem); z-index: 20; width: min(22rem, 78vw); padding: .85rem 1rem; border-radius: 12px;
  background: #1d1424; border: 1px solid rgba(217,166,72,.45); box-shadow: 0 14px 34px rgba(0,0,0,.45);
  font: 400 .88rem/1.5 var(--sans, sans-serif); color: rgba(231,231,231,.92); text-align: left;
  opacity: 0; visibility: hidden; transform: translateY(4px); transition: opacity .2s, transform .2s, visibility .2s; }
.rv-wa:hover .rv-wa__tip, .rv-wa:focus .rv-wa__tip, .rv-wa:focus-within .rv-wa__tip { opacity: 1; visibility: visible; transform: none; }
.rv-wa:focus-visible { outline: 2px solid var(--gold-lit, #D9A648); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { .rv-wa__tip { transition: none; } }
