/* v31.css · cahager.com v3.1-c "The Lotus" · loaded last on every page.
 *
 * His own spine, root to crown, as the journey and the way round. On top of v3.css (his tokens,
 * his type trio, warm paper) this adds:
 *   the rail     seven lotuses (his drawing, his colours) at the left edge, a row at the thumb on a phone
 *   the lens     the four faces as a quiet filter that lights the lotuses where a face lives
 *   the scenes   the home: an opening, seven full-bleed scenes, the prayer and the threshold. Each
 *                photograph is seen through a lotus petal; his Vision cutout rises out of its tip.
 *   the layers   drawers, the letter and booking open in place over a breathing, blurred scene
 *   the film     slow breath on the petal, a soft grain, letterbox light, the cursor's light, and
 *                cross-document View Transitions (the header and rail stay, a photograph morphs)
 * Calm first: one idea per screen, generous dark, gold only where something is alive.
 * Reduced motion: no breath, no drift, no rotation, no travel; everything readable at once.
 */

:root { --lo-ground: #110714; --lo-rail: 56px; --g: clamp(1rem, 4vw, 4rem); --lo-bar: 64px; }
html { scroll-behavior: auto; }
.lo-locked, .lo-locked body { overflow: hidden; }

/* ------------------------------------------------------------- the film --- */
.lo-grain {
  position: fixed; inset: -50%; z-index: 90; pointer-events: none; opacity: .07; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .9 0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}
:root[data-theme="paper"] .lo-grain { opacity: .035; mix-blend-mode: multiply; }

@view-transition { navigation: auto; }
.lb-head { view-transition-name: lo-head; }
.lr { view-transition-name: lo-rail; }
.lb-hero__photo img, .fr-hero__fig img, #prayer-of-remembering .pr__card img { view-transition-name: lo-hero; }
.lb-hero__photo ~ .lb-hero__photo img { view-transition-name: none; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: 640ms; animation-timing-function: cubic-bezier(.22, .61, .36, 1); }
::view-transition-group(lo-hero) { animation-duration: 820ms; animation-timing-function: cubic-bezier(.22, .61, .36, 1); }
::view-transition-image-pair(lo-hero) { isolation: auto; }

/* ------------------------------------------------------------- the rail --- */
/* the rail, its tips and the lens are always dark glass, in either reading mode */
.lr-l__tip, .lens, dialog.dw { --mirror: #E7E7E7; --soft: #C9BECF; --dim: #A898B0; --gold-lit: #D9A648; --gold-line: rgba(217, 166, 72, .45); --line: rgba(231, 231, 231, .12); --line-2: rgba(231, 231, 231, .22); }
@media (max-width: 899px) { .lr { --mirror: #E7E7E7; --gold-lit: #D9A648; } }
.lr { position: fixed; z-index: 60; left: 10px; top: 50%; translate: 0 -50%; width: 44px; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.lr-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column-reverse; gap: 4px; position: relative; z-index: 1; }
.lr-l, .lr-lens {
  position: relative; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  color: var(--mirror); text-decoration: none; background: none; border: 0; padding: 0; cursor: pointer;
}
.lr-l__lotus { width: 24px; height: 24px; opacity: .5; filter: saturate(.55); transition: opacity 500ms var(--breath), transform 600ms var(--breath), filter 500ms var(--breath); }
.lr-l:hover .lr-l__lotus, .lr-l:focus-visible .lr-l__lotus { opacity: 1; filter: none; transform: scale(1.18); }
.lr-l[aria-current="true"] .lr-l__lotus { opacity: 1; filter: drop-shadow(0 0 8px var(--c)); transform: scale(1.42); }
.lr-stem { position: absolute; left: 50%; top: 22px; bottom: 72px; width: 1px; translate: -.5px 0; background: rgba(231, 231, 231, .14); }
.lr-stem__fill { position: absolute; inset: 0; transform-origin: 50% 100%; transform: scaleY(var(--rise, 0));
  background: linear-gradient(to top, #C8242B, #E8732A, #F2C230, #3FA86A, #2C5FC4, #5A47C2, #9B5FD0); transition: transform 900ms var(--breath); }
.lr-lens svg { fill: none; stroke: var(--gold-lit); stroke-width: 1.4; opacity: .75; transition: opacity 400ms var(--breath), transform 600ms var(--breath); }
.lr-lens svg circle { fill: var(--gold-lit); stroke: none; }
.lr-lens:hover svg, .lr-lens[aria-expanded="true"] svg, :root[data-lens] .lr-lens svg { opacity: 1; transform: rotate(45deg); }
.lr-l__tip {
  position: absolute; left: 52px; top: 50%; translate: -6px -50%; white-space: nowrap; pointer-events: none; opacity: 0;
  font: 500 .8125rem/1.3 var(--kick); letter-spacing: .04em; color: var(--soft); background: rgba(17, 7, 20, .88);
  border: 1px solid var(--line); border-radius: var(--r); padding: .45rem .7rem; transition: opacity 260ms var(--breath), translate 360ms var(--breath);
}
.lr-l__tip b { color: var(--mirror); font-weight: 600; letter-spacing: .14em; text-transform: uppercase; font-size: .75rem; margin-right: .45em; }
.lr-l:hover .lr-l__tip, .lr-l:focus-visible .lr-l__tip, .lr-lens:hover .lr-l__tip, .lr-lens:focus-visible .lr-l__tip { opacity: 1; translate: 0 -50%; }
/* the lens lights the lotuses where a face lives */
:root[data-lens] .lr-l .lr-l__lotus { opacity: .18; }
:root[data-lens] .lr-l[data-lit="1"] .lr-l__lotus { opacity: .7; filter: none; }
:root[data-lens] .lr-l[data-lit="2"] .lr-l__lotus { opacity: 1; filter: drop-shadow(0 0 9px var(--gold-lit)); }
:root[data-lens] .lr-l[data-lit="2"]::after { content: ""; position: absolute; inset: 7px; border-radius: 50%; border: 1px solid rgba(217, 166, 72, .7); }

/* the lens itself */
.lens {
  position: absolute; left: 54px; bottom: 0; width: min(390px, 80vw); z-index: 2;
  background: rgba(20, 9, 24, .96); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--gold-line); border-radius: 6px; padding: 1.1rem 1.1rem 1rem; color: var(--mirror);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .5); animation: lo-pop 420ms var(--breath) both;
}
.lens[hidden] { display: none; }
.lens__h { margin: 0; font: 400 1.6rem/1.1 var(--serif); }
.lens__lede { margin: .3rem 0 .8rem; font-size: 1rem; line-height: 1.5; color: var(--soft); }
.lens__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.lens__list li { display: flex; align-items: stretch; gap: 2px; }
.lens__f { flex: 1; display: flex; align-items: center; gap: .6rem; min-height: 48px; padding: 0 .7rem; background: rgba(231, 231, 231, .04); color: var(--mirror); border: 1px solid transparent; border-radius: var(--r); cursor: pointer; text-align: left; font: inherit; }
.lens__f .fx-sign { stroke: var(--fc); fill: none; stroke-width: 1.6; flex: none; }
.lens__fn { font: 400 1.25rem/1 var(--serif); }
.lens__fe { margin-left: auto; font: 500 .75rem/1 var(--kick); letter-spacing: .14em; text-transform: uppercase; color: var(--dim); }
.lens__f:hover { background: rgba(231, 231, 231, .08); }
.lens__f[aria-pressed="true"] { border-color: var(--fc); background: color-mix(in srgb, var(--fc) 16%, transparent); }
.lens__room { display: inline-flex; align-items: center; justify-content: center; gap: .35em; min-width: 76px; white-space: nowrap; padding: 0 .5rem; font: 500 .8125rem/1 var(--kick); letter-spacing: .1em; text-transform: uppercase; color: var(--gold-lit); text-decoration: none; background: rgba(231, 231, 231, .04); border-radius: var(--r); }
.lens__room:hover { background: rgba(217, 166, 72, .14); }
.lens__now { margin: .7rem 0 0; font-size: 1rem; line-height: 1.5; color: var(--mirror); min-height: 0; }
.lens__now:empty { display: none; }
.lens__credit { margin: .7rem 0 0; font-size: .875rem; line-height: 1.5; color: var(--dim); }
.lens__foot { display: flex; gap: .6rem; justify-content: space-between; margin: .6rem 0 0; }
.lens__clear, .lens__close { min-height: 44px; padding: 0 .4rem; background: none; border: 0; color: var(--soft); font: 500 .8125rem/1 var(--kick); letter-spacing: .1em; text-transform: uppercase; cursor: pointer; }
.lens__clear:hover, .lens__close:hover { color: var(--gold-lit); }
:root:not([data-lens]) .lens__clear { visibility: hidden; }

/* where there is room, the rail keeps its own column on reading pages */
@media (min-width: 900px) and (max-width: 1279px) {
  body.lo-site:not(.lo-home) { padding-left: var(--lo-rail); }
}

/* a phone: the rail is a row at the thumb */
@media (max-width: 899px) {
  .lr { left: 0; right: 0; top: auto; bottom: 0; translate: none; width: auto; height: calc(var(--lo-bar) + env(safe-area-inset-bottom));
    padding: 0 8px env(safe-area-inset-bottom); flex-direction: row; justify-content: center; gap: 0;
    background: linear-gradient(to top, rgba(14, 6, 17, .97), rgba(14, 6, 17, .86)); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    border-top: 1px solid rgba(231, 231, 231, .08); }
  .lr-list { flex-direction: row; gap: 0; flex: 0 1 auto; justify-content: space-between; width: min(100%, 360px); }
  .lr-l__lotus { width: 26px; height: 26px; }
  .lr-l[aria-current="true"] .lr-l__lotus { transform: scale(1.3) translateY(-2px); }
  .lr-stem { left: 50%; right: auto; top: 50%; bottom: auto; width: min(calc(100% - 100px), 300px); height: 1px; translate: calc(-50% - 22px) 0; }
  .lr-stem__fill { transform-origin: 0 50%; transform: scaleX(var(--rise, 0)); background: linear-gradient(to right, #C8242B, #E8732A, #F2C230, #3FA86A, #2C5FC4, #5A47C2, #9B5FD0); }
  .lr-lens { flex: none; }
  .lr-l__tip { display: none; }
  .lens { position: fixed; left: 8px; right: 8px; bottom: calc(var(--lo-bar) + env(safe-area-inset-bottom) + 8px); width: auto; }
  body.lo-site { padding-bottom: calc(var(--lo-bar) + env(safe-area-inset-bottom)); }
}

/* ------------------------------------------------------------- the header on the home --- */
.lo-home .lb-head--over { position: absolute; background: linear-gradient(to bottom, rgba(17, 7, 20, .7), rgba(17, 7, 20, 0)); }
.lo-home .lb-head--over .lb-head__in { padding-left: max(var(--g), 64px); }
@media (max-width: 899px) { .lo-home .lb-head--over .lb-head__in { padding-left: 16px; } }
.lb-index__dot { width: 10px; height: 10px; border-radius: 50%; background: var(--gold-lit); opacity: .7; flex: none; margin-right: .2rem; }

/* ------------------------------------------------------------- the scenes --- */
.lo-home main { background: var(--lo-ground); }
.lo-scene {
  --mx: 50%; --my: 40%;
  position: relative; isolation: isolate; overflow: hidden; min-height: 100vh; min-height: 100svh;
  display: grid; grid-template-rows: 1fr auto; justify-items: center; align-items: end; gap: clamp(1.4rem, 3.4vh, 2.6rem);
  padding: clamp(5.5rem, 12vh, 8rem) var(--g) clamp(3rem, 9vh, 5.5rem); background: var(--lo-ground); color: #E7E7E7;
}
.lo-veil { position: absolute; inset: -4%; z-index: -4; }
.lo-veil img { width: 100%; height: 100%; object-fit: cover; opacity: .5; filter: saturate(.85); }
.lo-veil::before { content: ""; position: absolute; inset: 0; z-index: 1;
  background:
    radial-gradient(ellipse 60% 52% at 50% 44%, color-mix(in srgb, var(--c) 30%, transparent), transparent 70%),
    linear-gradient(to bottom, rgba(17, 7, 20, .78), rgba(17, 7, 20, .62) 40%, rgba(17, 7, 20, .9) 82%, var(--lo-ground)); }
.lo-veil::after { content: ""; position: absolute; inset: 0; z-index: 2; opacity: .55; transition: opacity 900ms var(--breath);
  background: radial-gradient(circle 32vmax at var(--mx) var(--my), color-mix(in srgb, var(--t) 14%, transparent), transparent 70%); mix-blend-mode: screen; }
/* letterbox light: the top and bottom of every scene fall to black */
.lo-scene::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(to bottom, rgba(8, 3, 10, .85), transparent 14%, transparent 84%, rgba(8, 3, 10, .9)); }
.lo-bloom { position: absolute; z-index: -2; left: 50%; top: 42%; width: min(118vmin, 1180px); aspect-ratio: 1; translate: -50% -50%; opacity: .16; mix-blend-mode: screen; pointer-events: none; }
.lo-bloom__l { width: 100%; height: 100%; animation: lo-turn 180s linear infinite; animation-play-state: paused; }
.is-in .lo-bloom__l { animation-play-state: running; }

/* the petal: every photograph is seen through one; his cutout rises out of its tip */
.lo-frame { position: relative; margin: 0; height: min(52vh, 600px); aspect-ratio: 2 / 3; max-width: 78vw; align-self: end; }
.lo-frame__breath { position: absolute; inset: 0; transform-origin: 50% 70%; animation: lo-breathe 9s cubic-bezier(.45, 0, .55, 1) infinite alternate; animation-play-state: paused; }
.is-in .lo-frame__breath { animation-play-state: running; }
.lo-frame__win { position: absolute; inset: 0; overflow: hidden; background: #0b0510;
  -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 66 22 100 58 100 98 C 100 128 78 150 50 150 C 22 150 0 128 0 98 C 0 58 34 22 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 66 22 100 58 100 98 C 100 128 78 150 50 150 C 22 150 0 128 0 98 C 0 58 34 22 50 0 Z'/%3E%3C/svg%3E") center / 100% 100% no-repeat; }
.lo-frame__win picture { display: contents; }
.lo-frame__img, .lo-frame__cut { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: var(--pos, 50% 40%); transform: scale(var(--z, 1)); transform-origin: 50% 50%; }
.lo-frame__img { filter: saturate(.92) contrast(1.03); }
.lo-frame__cut { clip-path: inset(0 0 60% 0); pointer-events: none; filter: drop-shadow(0 12px 18px rgba(0, 0, 0, .38)); }
.lo-frame__edge { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; fill: none; stroke: var(--t); stroke-opacity: .5; stroke-width: 1; vector-effect: non-scaling-stroke; filter: drop-shadow(0 0 14px var(--c)); pointer-events: none; }
.lo-frame::after { content: ""; position: absolute; left: 50%; bottom: -6%; width: 130%; height: 18%; translate: -50% 0; z-index: -1;
  background: radial-gradient(ellipse at center, color-mix(in srgb, var(--c) 45%, transparent), transparent 70%); filter: blur(12px); opacity: .7; }

/* the third eye: a light study, not a photograph */
.lo-frame--light .lo-frame__win { background: radial-gradient(ellipse at 50% 46%, #2a1650, #0b0516 72%); }
.lo-light__wall { position: absolute; inset: -6%; background: url("../img/egyptian-plate.webp") center / cover; filter: blur(1.5px) brightness(.62) saturate(.55) sepia(.25); opacity: .85; }
.lo-light__wall::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse 55% 40% at 50% 46%, rgba(90, 71, 194, .3), rgba(11, 5, 22, .5) 85%); }
.lo-light__beam { position: absolute; inset: 0; background:
  radial-gradient(ellipse 40% 26% at 50% 46%, rgba(172, 159, 242, .55), transparent 70%),
  linear-gradient(to bottom, transparent 30%, rgba(90, 71, 194, .2) 46%, transparent 62%);
  mix-blend-mode: screen; animation: lo-glow 7s ease-in-out infinite alternate; animation-play-state: paused; }
.is-in .lo-light__beam { animation-play-state: running; }
.lo-light__eye { position: absolute; left: 50%; top: 46%; width: 78%; aspect-ratio: 1; translate: -50% -50%; filter: drop-shadow(0 0 22px rgba(172, 159, 242, .7)); }

/* the words: few, and his */
.lo-copy { position: relative; display: grid; justify-items: center; text-align: center; gap: .55rem; max-width: 46rem; }
.lo-copy::before { content: ""; position: absolute; inset: -30% -18%; z-index: -1; background: radial-gradient(ellipse at center, rgba(12, 5, 14, .66), transparent 68%); pointer-events: none; }
.lo-kick { margin: 0; display: inline-flex; align-items: center; gap: .7rem; font: 500 .8125rem/1 var(--kick); letter-spacing: .24em; text-transform: uppercase; color: var(--t); }
.lo-kick__n { display: grid; place-items: center; width: 1.7rem; height: 1.7rem; border-radius: 50%; border: 1px solid color-mix(in srgb, var(--t) 60%, transparent); letter-spacing: 0; font-size: .75rem; }
.lo-kick__sk { color: rgba(231, 231, 231, .62); letter-spacing: .16em; }
.lo-q { margin: 0; font: 400 clamp(2.2rem, 1.4rem + 3.2vw, 4.4rem)/1.04 var(--serif); letter-spacing: -.012em; color: #F3EEF4; text-wrap: balance; max-width: 19ch; text-shadow: 0 2px 30px rgba(0, 0, 0, .55); }
.lo-act { margin: .55rem 0 0; display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem 1.4rem; }
.lo-open, .lo-btn, .lo-rise {
  display: inline-flex; align-items: center; gap: .7rem; min-height: 48px; padding: 0 1.25rem; border-radius: 999px; text-decoration: none; cursor: pointer;
  font: 500 .875rem/1 var(--kick); letter-spacing: .14em; text-transform: uppercase; color: #F3EEF4;
  border: 1px solid color-mix(in srgb, var(--t) 55%, transparent); background: rgba(17, 7, 20, .35); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  transition: background 500ms var(--breath), border-color 500ms var(--breath), box-shadow 600ms var(--breath);
}
.lo-open:hover, .lo-open:focus-visible { background: color-mix(in srgb, var(--c) 30%, rgba(17, 7, 20, .5)); border-color: var(--t); box-shadow: 0 0 34px color-mix(in srgb, var(--c) 45%, transparent); }
.lo-open__plus { position: relative; width: 12px; height: 12px; }
.lo-open__plus::before, .lo-open__plus::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 1.4px; translate: -50% -50%; background: currentColor; transition: rotate 600ms var(--breath); }
.lo-open__plus::after { rotate: 90deg; }
.lo-open:hover .lo-open__plus::after { rotate: 180deg; }
.lo-btn { background: var(--ankh); border-color: var(--ankh); color: #1B0C20; font-weight: 600; }
.lo-btn:hover, .lo-btn:focus-visible { background: #D9A648; border-color: #D9A648; box-shadow: 0 0 36px rgba(217, 166, 72, .4); }
.lo-lensnote { margin: .3rem 0 0; font: 500 .8125rem/1 var(--kick); letter-spacing: .16em; text-transform: uppercase; color: var(--gold-lit); }
.lo-lensnote::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: currentColor; margin-right: .6em; vertical-align: .1em; box-shadow: 0 0 10px currentColor; }
:root[data-lens] .lo-scene:not(:has(.lo-lensnote:not([hidden]))) .lo-frame { filter: saturate(.55) brightness(.75); transition: filter 900ms var(--breath); }

/* the opening */
.lo-scene.lo-first { display: block; padding-top: clamp(6rem, 13vh, 9rem); }
.lo-open__grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); align-items: center; gap: clamp(1.5rem, 4vw, 5rem); max-width: 74rem; margin: 0 auto; min-height: calc(100svh - clamp(9rem, 22vh, 14rem)); }
.lo-open__copy { justify-items: start; text-align: left; gap: .9rem; }
.lo-open__copy::before { inset: -20% -10%; }
.lo-name { margin: 0; font: 600 .875rem/1 var(--kick); letter-spacing: .3em; text-transform: uppercase; color: var(--gold-lit); }
.lo-h1 { margin: 0; font: 400 clamp(2.9rem, 1.6rem + 4.6vw, 6.2rem)/.98 var(--serif); letter-spacing: -.02em; color: #F3EEF4; text-wrap: balance; max-width: 11ch; }
.lo-h1 em { font-style: italic; color: #D9A648; }
.lo-breath { margin: .4rem 0 0; max-width: 30rem; }
.lo-breath blockquote { margin: 0; }
.lo-breath p { margin: 0; font: italic 400 clamp(1.3rem, 1.1rem + .7vw, 1.7rem)/1.4 var(--serif); color: rgba(243, 238, 244, .9); }
.lo-breath figcaption { margin-top: .5rem; font: 500 .75rem/1 var(--kick); letter-spacing: .2em; text-transform: uppercase; color: rgba(231, 231, 231, .6); }
.lo-first .lo-act { justify-content: flex-start; }
.lo-rise { border-color: rgba(217, 166, 72, .55); padding-left: .9rem; }
.lo-rise__l { width: 22px; height: 22px; border-radius: 50%; border: 1px solid #D9A648; position: relative; }
.lo-rise__l::after { content: ""; position: absolute; left: 50%; top: 5px; width: 1px; height: 10px; background: #D9A648; translate: -50% 0; animation: lo-rise 2.6s var(--breath) infinite; }
.lo-rise:hover { background: rgba(165, 118, 38, .2); }
.lo-scene.lo-first .lo-frame { height: min(70vh, 720px); justify-self: center; align-self: center; }
.lo-scene.lo-first .lo-bloom { left: 66%; top: 48%; opacity: .2; }

/* the crown opens to the prayer and the threshold */
.lo-end { position: relative; isolation: isolate; overflow: hidden; padding: clamp(5rem, 14vh, 9rem) var(--g) clamp(5rem, 12vh, 8rem); color: #E7E7E7;
  background: radial-gradient(ellipse 70% 60% at 30% 40%, rgba(155, 95, 208, .22), transparent 70%), radial-gradient(ellipse 60% 60% at 75% 60%, rgba(165, 118, 38, .14), transparent 70%), #0e0511; }
.lo-end__grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(2.5rem, 6vw, 6rem); align-items: center; max-width: 70rem; margin: 0 auto; }
.lo-end__prayer, .lo-end__door { display: grid; justify-items: center; text-align: center; gap: .7rem; }
.lo-card { display: block; width: min(250px, 58vw); border-radius: 4px; overflow: hidden; box-shadow: 0 0 0 1px rgba(207, 170, 242, .25), 0 30px 80px rgba(0, 0, 0, .55), 0 0 90px rgba(155, 95, 208, .28); transition: transform 900ms var(--breath), box-shadow 900ms var(--breath); }
.lo-card img { display: block; width: 100%; height: auto; }
.lo-card:hover, .lo-card:focus-visible { transform: translateY(-6px); box-shadow: 0 0 0 1px rgba(207, 170, 242, .45), 0 40px 90px rgba(0, 0, 0, .6), 0 0 120px rgba(155, 95, 208, .42); }
.lo-end .lo-kick { color: #CFAAF2; margin-top: .8rem; }
.lo-end__h { margin: 0; font: 400 clamp(1.6rem, 1.2rem + 1.3vw, 2.3rem)/1.12 var(--serif); color: #F3EEF4; text-wrap: balance; max-width: 18ch; }
.lo-end__door .lo-end__h { font-size: clamp(2.3rem, 1.4rem + 3vw, 4rem); }
.lo-end__hands { margin: 0 0 .6rem; width: 100%; max-width: 32rem; aspect-ratio: 16 / 10; border-radius: 50% 50% 4px 4px / 34% 34% 4px 4px; overflow: hidden; box-shadow: 0 30px 80px rgba(0, 0, 0, .5); }
.lo-end__hands img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 55%; filter: saturate(.85); }
.lo-end__door .lo-open { --t: #D9A648; --c: #A57626; }
.lo-act--two { align-items: center; }

/* ------------------------------------------------------------- the layers --- */
dialog.dw {
  --c: #A57626; --t: #D9A648;
  position: fixed; inset: 0 0 0 auto; margin: 0; padding: 0; width: min(600px, 48vw); height: 100%; max-height: none; max-width: none;
  border: 0; border-left: 1px solid color-mix(in srgb, var(--t) 30%, transparent); color: #E7E7E7; background: rgba(16, 6, 19, .965);
  box-shadow: -40px 0 120px rgba(0, 0, 0, .55); overflow: hidden;
}
dialog.dw::backdrop { background: rgba(10, 3, 12, .38); backdrop-filter: blur(7px) saturate(.8); -webkit-backdrop-filter: blur(7px) saturate(.8); }
dialog.dw[open] { animation: lo-slide 620ms var(--breath) both; }
dialog.dw[open]::backdrop { animation: lo-fade 620ms var(--breath) both; }
.dw::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse 90% 40% at 70% 0%, color-mix(in srgb, var(--c) 26%, transparent), transparent 70%); transition: background 700ms var(--breath); }
.dw-in { position: relative; height: 100%; overflow-y: auto; overscroll-behavior: contain; padding: 0 clamp(1.1rem, 3vw, 2.4rem) 2.5rem; }
.dw-bar { position: sticky; top: 0; z-index: 3; display: flex; align-items: center; justify-content: space-between; gap: .6rem; margin: 0 calc(-1 * clamp(1.1rem, 3vw, 2.4rem)) 1rem; padding: .5rem clamp(.6rem, 2vw, 1.6rem); background: linear-gradient(to bottom, rgba(16, 6, 19, .98) 70%, rgba(16, 6, 19, 0)); }
.dw-spine { list-style: none; margin: 0; padding: 0; display: flex; gap: 0; }
.dw-spine__b { display: grid; place-items: center; width: 44px; height: 44px; background: none; border: 0; border-radius: 50%; cursor: pointer; padding: 0; }
.dw-spine__l { width: 22px; height: 22px; opacity: .45; filter: saturate(.5); transition: opacity 400ms var(--breath), transform 500ms var(--breath); }
.dw-spine__b:hover .dw-spine__l { opacity: .9; filter: none; }
.dw-spine__b[aria-current="true"] .dw-spine__l { opacity: 1; filter: drop-shadow(0 0 7px var(--c)); transform: scale(1.3); }
.dw-x { position: relative; flex: none; width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(231, 231, 231, .2); background: rgba(231, 231, 231, .04); cursor: pointer; color: #E7E7E7; }
.dw-x span::before, .dw-x span::after { content: ""; position: absolute; left: 50%; top: 50%; width: 18px; height: 1.4px; background: currentColor; translate: -50% -50%; rotate: 45deg; }
.dw-x span::after { rotate: -45deg; }
.dw-x:hover { border-color: var(--t); }
.dw-p[hidden] { display: none; }
.dw-p { animation: lo-in-soft 560ms var(--breath) both; }
.dw-head { display: grid; grid-template-columns: auto 1fr; gap: 1.1rem; align-items: start; margin-bottom: 1.4rem; }
.dw-head__lotus { width: clamp(72px, 9vw, 104px); aspect-ratio: 1; filter: drop-shadow(0 0 22px color-mix(in srgb, var(--c) 60%, transparent)); }
.dw-head__l { width: 100%; height: 100%; animation: lo-turn 90s linear infinite; }
.dw-kick { margin: 0; font: 500 .75rem/1.3 var(--kick); letter-spacing: .2em; text-transform: uppercase; color: var(--t); }
.dw-h { margin: .25rem 0 .2rem; font: 400 clamp(2.2rem, 1.6rem + 2vw, 3.2rem)/1 var(--serif); color: #F3EEF4; outline: none; }
.dw-line { margin: .5rem 0 0; font: italic 400 clamp(1.25rem, 1.1rem + .5vw, 1.5rem)/1.35 var(--serif); color: #F3EEF4; }
.dw-lbl { display: block; margin-bottom: .35rem; font: 500 .75rem/1.2 var(--kick); font-style: normal; letter-spacing: .2em; text-transform: uppercase; color: rgba(231, 231, 231, .62); }
.dw-right { margin: .55rem 0 0; font-size: 1.0625rem; line-height: 1.55; color: #C9BECF; }
.dw-tiles { list-style: none; margin: 0 0 1.6rem; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
.dw-tiles li:first-child { grid-column: 1 / -1; }
.dw-tile { position: relative; display: grid; grid-template-rows: auto auto 1fr; height: 100%; text-decoration: none; color: #F3EEF4; border-radius: 4px; overflow: hidden; background: rgba(231, 231, 231, .035); border: 1px solid rgba(231, 231, 231, .08); transition: border-color 500ms var(--breath), transform 700ms var(--breath), background 500ms var(--breath); }
.dw-tile:hover, .dw-tile:focus-visible { border-color: color-mix(in srgb, var(--t) 60%, transparent); transform: translateY(-3px); background: rgba(231, 231, 231, .06); }
.dw-tile__vis { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: radial-gradient(ellipse at 50% 55%, color-mix(in srgb, var(--c) 34%, #160819), #0d0510 75%); }
.dw-tile:not(.dw-tile--img) .dw-tile__vis { background-image: radial-gradient(circle at center, rgba(231, 231, 231, .07) 1px, transparent 1.4px), radial-gradient(ellipse at 50% 60%, color-mix(in srgb, var(--c) 34%, #160819), #0d0510 75%); background-size: 7px 7px, auto; }
.dw-tiles li:first-child .dw-tile__vis { aspect-ratio: 16 / 9; }
.dw-tile__vis img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; transition: transform 1600ms var(--breath); }
.dw-tile:hover .dw-tile__vis img { transform: scale(1.05); }
.dw-tile__lotus { display: grid; place-items: center; width: 100%; height: 100%; }
.dw-tile__l { width: 40%; height: auto; aspect-ratio: 1; opacity: .85; transition: transform 1600ms var(--breath); }
.dw-tiles li:nth-child(3n) .dw-tile__l { rotate: 22deg; width: 54%; translate: 18% 14%; opacity: .7; }
.dw-tiles li:nth-child(3n+1) .dw-tile__l { width: 34%; }
.dw-tile:hover .dw-tile__l { transform: rotate(30deg) scale(1.06); }
.dw-tile__kind { padding: .75rem .9rem 0; font: 500 .75rem/1.3 var(--kick); letter-spacing: .14em; text-transform: uppercase; color: var(--t); }
.dw-tile__t { padding: .3rem .9rem .9rem; font: 400 1.35rem/1.15 var(--serif); }
.dw-tiles li:first-child .dw-tile__t { font-size: 1.7rem; }
:root[data-lens] .dw [data-faces]:not(.is-lens) { opacity: .42; transition: opacity 600ms var(--breath); }
:root[data-lens] .dw-tiles .is-lens .dw-tile { border-color: rgba(217, 166, 72, .65); box-shadow: 0 0 30px rgba(217, 166, 72, .14); }
.dw-doors { margin: 0 0 1.4rem; }
.dw-doors__row { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: .75rem; }
.dw-doors__row--stack { grid-template-columns: 1fr; }
.dw-door { padding: 1rem 1.1rem; border-radius: 4px; border: 1px solid rgba(217, 166, 72, .32); background: linear-gradient(160deg, rgba(165, 118, 38, .12), rgba(165, 118, 38, .02)); }
.dw-door--summit { border-color: rgba(217, 166, 72, .6); }
.dw-door__k { margin: 0; font: 500 .75rem/1.3 var(--kick); letter-spacing: .14em; text-transform: uppercase; color: rgba(231, 231, 231, .62); }
.dw-door__n { margin: .3rem 0 0; font: 400 1.5rem/1.1 var(--serif); color: #F3EEF4; }
.dw-door__t { margin: .35rem 0 0; font: 500 .9375rem/1.4 var(--kick); letter-spacing: .04em; color: #D9A648; }
.dw-door__acts { margin: .6rem 0 0; display: flex; flex-wrap: wrap; gap: .2rem 1.2rem; }
.dw-door__a { display: inline-flex; align-items: center; min-height: 44px; color: #D9A648; text-underline-offset: .3em; text-decoration-thickness: 1px; font-size: 1.0625rem; }
.dw-door__a:hover { color: #F3EEF4; }
.dw-all { margin: 0 0 1.2rem; border-top: 1px solid rgba(231, 231, 231, .1); border-bottom: 1px solid rgba(231, 231, 231, .1); }
.dw-all > summary { display: flex; align-items: center; justify-content: space-between; min-height: 56px; cursor: pointer; list-style: none; font: 400 1.3rem/1.2 var(--serif); color: #F3EEF4; }
.dw-all > summary::-webkit-details-marker { display: none; }
.dw-all > summary::after { content: "+"; font: 300 1.6rem/1 var(--sans); color: var(--t); transition: rotate 500ms var(--breath); }
.dw-all[open] > summary::after { rotate: 45deg; }
.dw-all__n { margin-left: .6rem; margin-right: auto; font: 500 .75rem/1 var(--kick); color: rgba(231, 231, 231, .62); letter-spacing: .1em; }
.dw-all__list { list-style: none; margin: 0 0 1rem; padding: 0; display: grid; gap: 0; }
.dw-all__list a { display: grid; gap: .1rem; padding: .55rem 0; min-height: 44px; color: #E7E7E7; text-decoration: none; border-bottom: 1px solid rgba(231, 231, 231, .06); font-size: 1.0625rem; line-height: 1.4; }
.dw-all__list a:hover { color: #D9A648; }
.dw-all__k { font: 500 .75rem/1.2 var(--kick); letter-spacing: .14em; text-transform: uppercase; color: rgba(231, 231, 231, .55); }
.dw-threads { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin: 0 0 1.6rem; }
.dw-threads .dw-lbl { width: 100%; margin: 0; }
.dw-threads__all { display: inline-flex; align-items: center; min-height: 44px; color: rgba(231, 231, 231, .7); font: 500 .8125rem/1 var(--kick); letter-spacing: .1em; text-transform: uppercase; margin-left: .3rem; }
.dw-move { display: flex; justify-content: space-between; gap: 1rem; padding-top: 1rem; border-top: 1px solid rgba(231, 231, 231, .1); }
.dw-move__b { display: inline-flex; align-items: center; gap: .5rem; min-height: 48px; padding: 0 .2rem; background: none; border: 0; cursor: pointer; color: #C9BECF; text-decoration: none; font: 500 .8125rem/1 var(--kick); letter-spacing: .14em; text-transform: uppercase; }
.dw-move__b:hover { color: #F3EEF4; }
.dw-move__b--up { color: var(--t); }
.dw-more { margin: 1.2rem 0 0; }
/* the letter and booking: smaller, centred */
dialog.dw--small { inset: 0; margin: auto; width: min(640px, calc(100vw - 2rem)); height: auto; max-height: min(88vh, 900px); border: 1px solid rgba(217, 166, 72, .35); border-radius: 8px; }
dialog.dw--small[open] { animation: lo-pop 520ms var(--breath) both; }
dialog.dw--small .dw-in { height: auto; max-height: min(88vh, 900px); padding-bottom: 2rem; }
.dw--letter .rv-letter { margin-top: 1rem; }
.dw--letter .rv-letter__p, .dw--letter .rv-letter__salute { font-size: 1.15rem; }
.dw--letter textarea { width: 100%; }

@media (max-width: 899px) {
  dialog.dw { inset: auto 0 0 0; width: 100%; height: min(90svh, 900px); border-left: 0; border-top: 1px solid color-mix(in srgb, var(--t) 34%, transparent); border-radius: 16px 16px 0 0; }
  dialog.dw[open] { animation: lo-sheet 560ms var(--breath) both; }
  dialog.dw--small { inset: auto 0 0 0; margin: 0; width: 100%; max-height: 92svh; border-radius: 16px 16px 0 0; }
  dialog.dw--small .dw-in { max-height: 92svh; }
  .dw-spine__b { width: 40px; }
  .dw-tiles { gap: .55rem; }
  .dw-tile__t { font-size: 1.15rem; padding: .25rem .7rem .8rem; }
  .dw-tile__kind { padding: .65rem .7rem 0; font-size: .75rem; letter-spacing: .08em; }
  .dw-in { padding-bottom: calc(2rem + env(safe-area-inset-bottom)); }
}
@media (max-width: 380px) { .dw-spine__b { width: 36px; } }

/* ------------------------------------------------------------- a phone: the scenes --- */
@media (max-width: 899px) {
  .lo-scene { padding: 5.5rem 16px 2.6rem; gap: 1.3rem; min-height: calc(100svh - var(--lo-bar)); }
  .lo-frame { height: min(50svh, 470px); }
  .lo-q { font-size: clamp(2rem, 1.2rem + 4.4vw, 2.8rem); }
  .lo-scene.lo-first { padding-top: 5rem; }
  .lo-open__grid { grid-template-columns: 1fr; gap: 1.6rem; min-height: 0; }
  .lo-open__grid .lo-frame { order: -1; height: min(36svh, 340px); }
  .lo-scene.lo-first .lo-frame { height: min(36svh, 340px); }
  .lo-open__copy { gap: .6rem; }
  .lo-open__copy { justify-items: center; text-align: center; }
  .lo-first .lo-act { justify-content: center; }
  .lo-h1 { font-size: clamp(2.6rem, 1.4rem + 6vw, 3.6rem); margin-inline: auto; }
  .lo-breath p { font-size: 1.2rem; }
  .lo-scene.lo-first .lo-bloom { left: 50%; top: 30%; }
  .lo-end__grid { grid-template-columns: 1fr; gap: 4rem; }
  .lo-card { width: min(200px, 52vw); }
}

/* ------------------------------------------------------------- scroll-driven reveals --- */
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .lo-scene:not(.lo-first) .lo-copy { animation: lo-up linear both; animation-timeline: view(); animation-range: entry 0% entry 85%; }
    .lo-scene:not(.lo-first) .lo-frame { animation: lo-drift linear both; animation-timeline: view(); animation-range: cover 0% cover 100%; }
    .lo-bloom { animation: lo-drift-b linear both; animation-timeline: view(); animation-range: cover 0% cover 100%; }
  }
  @supports not (animation-timeline: view()) {
    .js .lo-scene:not(.lo-first) .lo-copy { opacity: 0; translate: 0 28px; transition: opacity 1100ms var(--breath), translate 1300ms var(--breath); }
    .js .lo-scene.is-in .lo-copy { opacity: 1; translate: none; }
  }
  .lo-first .lo-open__copy > * { animation: lo-up-once 1300ms var(--breath) both; }
  .lo-first .lo-open__copy > :nth-child(2) { animation-delay: 140ms; }
  .lo-first .lo-open__copy > :nth-child(3) { animation-delay: 300ms; }
  .lo-first .lo-open__copy > :nth-child(4) { animation-delay: 520ms; }
  .lo-first .lo-frame { animation: lo-rise-in 1800ms var(--breath) both; }
}
@keyframes lo-breathe { from { transform: scale(1); } to { transform: scale(1.035); } }
@keyframes lo-turn { to { transform: rotate(360deg); } }
@keyframes lo-glow { from { opacity: .55; } to { opacity: 1; } }
@keyframes lo-up { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: none; } }
@keyframes lo-up-once { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@keyframes lo-rise-in { from { opacity: 0; transform: translateY(30px) scale(.97); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes lo-drift { from { transform: translateY(5vh); } to { transform: translateY(-5vh); } }
@keyframes lo-drift-b { from { transform: translateY(-6vh) scale(.96); } to { transform: translateY(6vh) scale(1.04); } }
@keyframes lo-rise { 0% { transform: translateY(4px); opacity: 0; } 40% { opacity: 1; } 100% { transform: translateY(-4px); opacity: 0; } }
@keyframes lo-slide { from { transform: translateX(40px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes lo-sheet { from { transform: translateY(60px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes lo-pop { from { transform: translateY(14px) scale(.985); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes lo-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes lo-in-soft { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  .lo-frame__breath, .lo-bloom__l, .lo-light__beam, .dw-head__l, .lo-rise__l::after { animation: none !important; }
  dialog.dw[open], dialog.dw[open]::backdrop, .dw-p, .lens, .lo-first .lo-open__copy > *, .lo-first .lo-frame { animation: none !important; }
  .lo-veil::after { display: none; }
  .lr-l__lotus, .lr-stem__fill, .dw-tile, .dw-tile__vis img, .lo-card { transition: none !important; }
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; }
}

/* ------------------------------------------------------------- inner pages: the petal hero, folds --- */
.lb-hero--petal .lb-hero__in { align-items: center; }
.lb-hero__petal { display: grid; place-items: center; padding-top: 2.5rem; }
.lo-petal { position: relative; }
.lo-petal .lo-frame { height: min(60vh, 560px); align-self: center; }
.lo-petal .lo-frame__breath { animation-play-state: running; }
.lb-hero--petal { position: relative; overflow: hidden; }
.lb-hero--petal::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse 40% 60% at 74% 50%, rgba(165, 118, 38, .14), transparent 70%); }
.lo-fold { border-top: 1px solid var(--line); }
.lo-fold:last-child { border-bottom: 1px solid var(--line); }
.lo-fold > summary { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 72px; cursor: pointer; list-style: none; }
.lo-fold > summary::-webkit-details-marker { display: none; }
.lo-fold__t { font: 400 clamp(1.5rem, 1.25rem + 1vw, 2.2rem)/1.15 var(--serif); color: var(--mirror); }
.lo-fold__plus { position: relative; flex: none; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-2); transition: border-color 500ms var(--breath), rotate 600ms var(--breath); }
.lo-fold__plus::before, .lo-fold__plus::after { content: ""; position: absolute; left: 50%; top: 50%; width: 14px; height: 1.4px; translate: -50% -50%; background: var(--gold-lit); }
.lo-fold__plus::after { rotate: 90deg; }
.lo-fold[open] .lo-fold__plus { rotate: 45deg; border-color: var(--gold-line); }
.lo-fold > summary:hover .lo-fold__t { color: var(--gold-lit); }
.lo-fold__in { padding: .4rem 0 2.2rem; }
.lo-fold[open] .lo-fold__in { animation: lo-in-soft 600ms var(--breath) both; }
.lb-act .lo-btn, .lb-hero__acts .lo-btn { margin-right: 1rem; }
.lb-hero__acts { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1.2rem; }
.wk-book { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.wk-nums { display: flex; flex-wrap: wrap; gap: 1.5rem 4rem; margin: 1rem 0 .4rem; }
.wk-nums p { display: grid; gap: .2rem; margin: 0; }
.wk-n { font: 400 clamp(4rem, 2.6rem + 5vw, 7.5rem)/.9 var(--serif); color: var(--gold-lit); letter-spacing: -.02em; }
.wk-l { font: 500 .875rem/1.4 var(--kick); letter-spacing: .14em; text-transform: uppercase; color: var(--soft); }
.wk-asof { margin: .6rem 0 2.4rem; font: 500 .8125rem/1 var(--kick); letter-spacing: .14em; text-transform: uppercase; color: var(--dim); }
.wk-films { scroll-margin-top: 2rem; }
.ab-years .lb-col { margin-bottom: 1.6rem; }
@media (prefers-reduced-motion: reduce) { .lo-petal .lo-frame__breath, .lo-fold[open] .lo-fold__in { animation: none !important; } }
@media (max-width: 899px) {
  .lb-hero__petal { order: -1; padding-top: .5rem; }
  .lo-petal .lo-frame { height: min(44svh, 400px); }
}
#book .lb-col { max-width: 74rem; }
@media (min-width: 1000px) { .wk-book { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 900px) { .lo-site .ys-rail { padding-inline-start: max(var(--v3-gutter), 76px); scroll-padding-inline-start: 76px; } }
