/* Dham Yatra: a walk to the temple on a festival night. Indigo and gold.
   .dh-walk is a tall scroll track; .dh-pin sticks for its whole length and script.js moves the scene inside
   .dh-stage (a phone-wide column). Every piece of the scene is a .dh-o laid out at its full, close-up size
   and only ever given a transform. --k is one drawing unit in px: the arch art is 400 units wide.
   Without script, with reduced motion or on a very short screen (.is-flat) the stops are stacked sections. */

:root {
  --night: #05061a;
  --indigo: #0c0f38;
  --gold: #e9c46a;
  --gold-hi: #fbe7ae;
  --gold-lo: #b0842f;
  --ivory: #f7eedb;
  --dim: rgba(247, 238, 219, .74);
  --f-d: "Bellefair", "Cormorant Garamond", Georgia, serif;
  --f-t: "Crimson Pro", Georgia, serif;
  --f-h: "Tiro Devanagari Hindi", "Noto Serif Devanagari", serif;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --fx-music-bg: #0d0f36; --fx-music-ring: #e9c46a; --fx-music-ink: #fbe7ae; --fx-bg: #05061a;
}

html { background: #03040f; -webkit-text-size-adjust: 100%; }
html.shut { overflow: hidden; }
body {
  background: radial-gradient(90% 60% at 50% 0, #0b0d2e, #03040f 70%) fixed;
  color: var(--ivory); font: 300 17.5px/1.5 var(--f-t);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
h1, h2 { margin: 0; font-weight: 400; }
[lang="hi"] { font-family: var(--f-h); }
.dh-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
html.og body > svg.dh-defs { display: block !important; }

/* pieces of the drawings that answer to the scene */
.dh-hz { opacity: var(--hz, 0); }
.dh-lm { opacity: var(--lm, 1); }
.dh-df { opacity: var(--df, 1); }
.dh-hl { opacity: calc(.45 + .55 * var(--lit, 0)); }
.dh-ls { fill: none; stroke: #fff1bd; stroke-width: 7; stroke-dasharray: 0 26; stroke-linecap: round; opacity: var(--lit, 0); }

/* =================================================================== THE WALK */

.dh-walk {
  --w: min(100vw, 480px);
  --k: calc(max(var(--w) * .9, 50svh) / 400);
  position: relative; height: calc(100lvh + (var(--s) - 1) * 90svh);
}
.dh-pin { position: sticky; top: 0; height: 100lvh; overflow: hidden; }
.dh-stage {
  --lit: 0;
  position: relative; width: var(--w); height: 100%; margin: 0 auto; overflow: hidden; background: var(--night);
  box-shadow: 0 0 0 1px rgba(233, 196, 106, .1), 0 0 140px rgba(60, 60, 170, .28);
}

/* ---- sky ---- */
.dh-sky {
  position: absolute; inset: 0;
  background:
    radial-gradient(120% 46% at 50% 88%, rgba(226, 142, 66, .34), rgba(132, 70, 120, .2) 42%, transparent 74%),
    linear-gradient(#03041a, #080b34 42%, #171858 76%, #2b2468);
}
.dh-sky::before, .dh-sky::after {
  content: ""; position: absolute; inset: 0 0 34%;
  -webkit-mask-image: linear-gradient(#000 55%, transparent); mask-image: linear-gradient(#000 55%, transparent);
  background-image:
    radial-gradient(1px 1px at 12% 18%, #fff, transparent 100%), radial-gradient(1px 1px at 33% 62%, #fff, transparent 100%),
    radial-gradient(1.4px 1.4px at 56% 30%, #ffeecb, transparent 100%), radial-gradient(1px 1px at 78% 74%, #fff, transparent 100%),
    radial-gradient(1px 1px at 91% 12%, #dfe4ff, transparent 100%), radial-gradient(1.4px 1.4px at 24% 88%, #fff, transparent 100%),
    radial-gradient(1px 1px at 67% 50%, #fff, transparent 100%), radial-gradient(1px 1px at 45% 6%, #dfe4ff, transparent 100%),
    radial-gradient(1px 1px at 4% 46%, #fff, transparent 100%), radial-gradient(1px 1px at 86% 40%, #ffeecb, transparent 100%);
  background-size: 233px 233px;
}
.dh-sky::after { background-size: 151px 151px; background-position: 40px 70px; opacity: .45; animation: dhTwinkle 5s ease-in-out infinite alternate; }
.dh-sky i {                       /* five larger stars */
  position: absolute; width: 3px; height: 3px; border-radius: 50%; background: #fff7dc;
  box-shadow: 0 0 6px 1px rgba(255, 240, 200, .8); animation: dhTwinkle 3.4s ease-in-out infinite alternate;
}
.dh-sky i:nth-child(1) { left: 14%; top: 9%; }
.dh-sky i:nth-child(2) { left: 82%; top: 6%; animation-delay: -1.2s; }
.dh-sky i:nth-child(3) { left: 91%; top: 27%; animation-delay: -2.1s; width: 2px; height: 2px; }
.dh-sky i:nth-child(4) { left: 6%; top: 31%; animation-delay: -.6s; width: 2px; height: 2px; }
.dh-sky i:nth-child(5) { left: 62%; top: 3%; animation-delay: -2.8s; }
.dh-sky b { position: absolute; right: 13%; top: 10.5%; width: 26px; height: 26px; border-radius: 50%; rotate: -24deg; box-shadow: inset -6px -3px 0 0 #fbeec4; filter: drop-shadow(0 0 8px rgba(255, 236, 180, .6)); }
.dh-sky b { transition: opacity .8s; }
.dh-walk:not(.at-gate) .dh-sky b { opacity: 0; }
@keyframes dhTwinkle { from { opacity: .25; } to { opacity: 1; } }

/* ---- the scene ---- */
.dh-world, .dh-in { position: absolute; inset: 0; }
.dh-world { opacity: 0; transition: opacity 1.1s ease; }
.is-live .dh-world, .is-flat .dh-world { opacity: 1; }
.dh-in { background: #06071a; visibility: hidden; }
.dh-o {
  position: absolute; left: 50%; top: 0; width: calc(var(--wu, 400) * var(--k)); height: auto; overflow: visible;
  transform-origin: 50% calc(var(--oy) * var(--k)); visibility: hidden; color: var(--gold);
}
.dh-o > svg { display: block; width: 100%; height: auto; overflow: visible; }
.dh-temple { --wu: 1860; }
.dh-ds { --lm: var(--lit); }
.dh-ground {
  position: absolute; inset: 0; background: linear-gradient(#1b1434, #080819 30%);
}
.dh-ground::before {               /* the lit path to the steps */
  content: ""; position: absolute; inset: 0;
  -webkit-clip-path: polygon(50% 0, calc(50% + 200svh) 100svh, calc(50% - 200svh) 100svh); clip-path: polygon(50% 0, calc(50% + 200svh) 100svh, calc(50% - 200svh) 100svh);
  background: linear-gradient(rgba(244, 184, 96, .5), rgba(200, 130, 70, .12) 14%, rgba(120, 90, 120, .05) 40%);
  opacity: calc(.45 + .55 * var(--lit));
}

/* paving joints and steps: an edge that catches the light, a riser in shadow, a lamp at either side */
.dh-st {
  --wu: 900; height: calc(70 * var(--k));
  background: linear-gradient(#f0cf85, #6f4c2a 3.5%, #1b1739 9%, #0a0a22 70%);
}
.dh-st::before {                  /* far away the steps are warm stone in the temple's light */
  content: ""; position: absolute; inset: 0; opacity: var(--far, 1);
  background: linear-gradient(#ffe6a8, #c98d3c 5%, #8f5a26 40%, #6b4020);
}
.dh-st--g { --wu: 520; height: 0; background: none; border-top: calc(1.5 * var(--k)) solid rgba(233, 196, 106, .22); }
.dh-st--g::before { display: none; }
.dh-st i {
  position: absolute; top: calc(-27 * var(--k)); left: calc(50% - 222 * var(--k)); width: calc(44 * var(--k)); height: calc(44 * var(--k));
  border-radius: 50%; opacity: .05; scale: .5;
  background: radial-gradient(circle, #fff6d0 0 9%, #ffbe55 22%, rgba(255, 138, 42, .3) 46%, transparent 68%);
  transition: opacity .7s ease, scale .7s var(--ease);
}
.dh-st i + i { left: calc(50% + 178 * var(--k)); }
.dh-st--g i { left: calc(50% - 152 * var(--k)); transition-delay: calc(var(--i) * 90ms); }
.dh-st--g i + i { left: calc(50% + 108 * var(--k)); }
.dh-st.on i { opacity: 1; scale: 1; }
.lit-now .dh-st i { transition: none; }

/* the sanctum's flame is the one thing that moves on its own */
.dh-flame {
  position: absolute; left: 50%; top: 48.2%; width: calc(15 * var(--k)); height: calc(34 * var(--k)); margin-left: calc(-7.5 * var(--k));
  border-radius: 50% 50% 50% 50% / 68% 68% 32% 32%; transform-origin: 50% 100%;
  background: radial-gradient(60% 55% at 50% 72%, #fff, #ffe9a6 45%, #ffb347 78%, rgba(255, 140, 40, 0));
  animation: dhFlame 2.6s ease-in-out infinite;
}
@keyframes dhFlame { 0%, 100% { transform: scale(1) rotate(-1.5deg); } 30% { transform: scale(.94, 1.08) rotate(1.5deg); } 62% { transform: scale(1.05, .95) rotate(-.5deg); } }
.dh-sanct.blessed .dh-flame { animation: dhBless 1.4s var(--ease), dhFlame 2.6s ease-in-out 1.4s infinite; }
@keyframes dhBless { 0% { transform: scale(1); } 30% { transform: scale(1.5, 1.9); } 100% { transform: scale(1); } }

.dh-vig {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(rgba(3, 4, 20, .9), rgba(3, 4, 20, .55) 8%, transparent 17%, transparent 78%, rgba(3, 4, 20, .72));
}

/* ---- the bell ---- */
.dh-bell {
  position: absolute; left: 50%; top: 0; width: calc(70 * var(--k)); height: calc(86 * var(--k)); padding: 0;
  transform-origin: 50% 0; visibility: hidden; background: none; border: 0; cursor: pointer; touch-action: none;
  -webkit-tap-highlight-color: transparent;
}
.dh-bell::after { content: ""; position: absolute; inset: -14px -22px -22px; }
.dh-bell svg { display: block; width: 100%; height: 100%; overflow: visible; transform-origin: 50% 2%; rotate: var(--pull, 0deg); filter: drop-shadow(0 0 10px rgba(255, 196, 96, .45)); }
.dh-bell.swing svg { animation: dhSwing 2.6s cubic-bezier(.3, .1, .3, 1); }
@keyframes dhSwing { 0% { transform: rotate(0); } 9% { transform: rotate(19deg); } 26% { transform: rotate(-15deg); } 43% { transform: rotate(11deg); } 60% { transform: rotate(-7deg); } 76% { transform: rotate(4deg); } 90% { transform: rotate(-1.5deg); } 100% { transform: rotate(0); } }
.dh-bell__halo {
  position: absolute; inset: -30% -55% -42%; border-radius: 50%; pointer-events: none;
  background: radial-gradient(closest-side, rgba(255, 205, 110, .42), rgba(255, 170, 80, .12) 55%, transparent);
  animation: dhHalo 2.6s ease-in-out infinite;
}
@keyframes dhHalo { 0%, 100% { opacity: .35; transform: scale(.88); } 50% { opacity: 1; transform: scale(1.06); } }
.dh-walk:not([data-phase="idle"]) .dh-bell__halo { animation: none; opacity: .5; }
.dh-bell:focus-visible { outline: 2px solid var(--gold-hi); outline-offset: 8px; border-radius: 12px; }

/* =================================================================== WORDS */

.dh-safe { position: absolute; left: 0; right: 0; top: 0; height: 100svh; pointer-events: none; }
.dh-sc {
  position: absolute; left: 0; right: 0; padding: 0 26px; text-align: center;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden; transform: translateY(20px) scale(.97);
  transition: opacity .45s ease, transform .6s var(--ease), visibility 0s .45s;
}
.dh-sc.is-past { transform: translateY(-14px) scale(1.07); }
.dh-sc.is-on { opacity: 1; visibility: visible; transform: none; pointer-events: auto; transition: opacity .7s ease .1s, transform .9s var(--ease) .1s; }
.dh-sc > * { position: relative; max-width: 100%; }
.dh-sc::before {                  /* a pool of dark behind the words, so they never sit on line-work */
  content: ""; position: absolute; inset: -34px -10px; pointer-events: none;
  background: radial-gradient(closest-side, rgba(5, 6, 26, .9), rgba(5, 6, 26, .78) 58%, rgba(5, 6, 26, 0));
}

.dh-deva { font: 400 17px/1.4 var(--f-h); color: var(--gold); letter-spacing: .04em; }
.dh-deva--sm { font-size: 16px; opacity: .85; margin-top: 4px; }
.dh-names {
  margin: 6px 0 10px; font: 400 clamp(36px, calc(var(--w, 390px) * .125), 56px)/1.04 var(--f-d); letter-spacing: .03em;
  color: var(--ivory); text-wrap: balance; text-shadow: 0 0 34px rgba(255, 214, 140, .35);
}
.dh-names span { font: italic 300 .62em var(--f-t); color: var(--gold); padding: 0 .06em; }
.dh-date { font: 500 12.5px/1.4 var(--f-t); letter-spacing: .26em; text-transform: uppercase; color: var(--gold-hi); }
.dh-place { margin-top: 5px; font: italic 300 16px/1.35 var(--f-t); color: var(--dim); max-width: 300px; text-wrap: balance; }
.dh-lab {
  display: flex; align-items: center; gap: 12px; margin-bottom: 12px; white-space: nowrap;
  font: 500 11.5px/1.4 var(--f-t); letter-spacing: .26em; text-transform: uppercase; color: var(--gold);
}
.dh-lab span { font-size: 15px; letter-spacing: .04em; }
.dh-lab::before, .dh-lab::after { content: ""; width: 22px; height: 1px; background: linear-gradient(90deg, transparent, var(--gold)); }
.dh-lab::after { transform: scaleX(-1); }
.dh-line { max-width: 318px; text-wrap: pretty; }
.dh-pair { margin-top: 8px; font: 400 27px/1.15 var(--f-d); letter-spacing: .02em; text-wrap: balance; }
.dh-pair b { display: inline-block; font-weight: 400; }
.dh-pair span { font: italic 300 .7em var(--f-t); color: var(--gold); }
.dh-msg { margin-top: 10px; max-width: 318px; font-style: italic; font-size: 16px; color: var(--dim); }

/* 0 · the gate: the names stand in the sky above the gateway */
.dh-sc--gate { top: 0; height: calc(84.7svh - 399 * var(--k)); justify-content: flex-end; padding: 40px 22px 14px; }
.dh-sc--gate::before { display: none; }
/* 1 · the forecourt: the invitation in the sky over the spire */
.dh-sc--court { top: calc(60px + env(safe-area-inset-top)); }
.dh-sc--court::before { inset: -70px -10px -30px; background: linear-gradient(rgba(5, 6, 26, .86) 70%, rgba(5, 6, 26, 0)); }
/* 2 · the steps: the families, below the doorway */
.dh-sc--steps { top: calc(33svh + 42 * var(--k) + 8px); bottom: 50px; }
.dh-sc--steps::before { inset: -20px -10px -10px; background: linear-gradient(rgba(5, 6, 26, 0), rgba(5, 6, 26, .84) 9%, rgba(5, 6, 26, .84) 88%, rgba(5, 6, 26, 0)); }
.dh-fams { display: grid; gap: 12px; }
.dh-fam__side { font: 500 11px/1.4 var(--f-t); letter-spacing: .24em; text-transform: uppercase; color: var(--gold-lo); }
.dh-fam__name { font: 400 25px/1.15 var(--f-d); letter-spacing: .02em; text-wrap: balance; }
.dh-fam__kin { font-size: 16px; line-height: 1.3; color: var(--dim); max-width: 310px; margin: 2px auto 0; text-wrap: balance; }
.dh-fam__kin i { color: var(--gold); }
.dh-await { margin-top: 14px; font-size: 16px; line-height: 1.4; max-width: 320px; color: var(--dim); }
.dh-await b { display: block; margin-bottom: 3px; font: 500 11px/1.4 var(--f-t); letter-spacing: .2em; text-transform: uppercase; color: var(--gold); }
.dh-await span { display: inline-block; white-space: nowrap; }
.dh-await span:not(:last-child)::after { content: "·"; margin: 0 .45em; color: var(--gold-lo); }
.dh-await small { font-size: 14px; font-style: italic; opacity: .8; }
/* 3… · an arch for each function */
.dh-sc--ev { top: calc(52svh - 208 * var(--k)); bottom: 52px; padding: 0 calc(50% - 140 * var(--k)); }
.dh-sc--ev::before { inset: 0 0 0; background: radial-gradient(closest-side, rgba(5, 6, 26, .94), rgba(5, 6, 26, .86) 62%, rgba(5, 6, 26, 0)); }
.dh-ev__name { margin: 2px 0 8px; font: 400 clamp(30px, calc(var(--w, 390px) * .098), 44px)/1.06 var(--f-d); letter-spacing: .02em; text-wrap: balance; text-shadow: 0 0 30px rgba(255, 214, 140, .3); }
.dh-ev__when { font: 400 16px/1.35 var(--f-t); color: var(--gold-hi); text-wrap: balance; }
.dh-ev__where { margin-top: 8px; font-size: 16px; line-height: 1.3; color: var(--dim); text-wrap: balance; }
.dh-ev__where strong { display: block; font-weight: 500; font-size: 17.5px; color: var(--ivory); }
.dh-ev__note { margin-top: 8px; font-style: italic; font-size: 16px; line-height: 1.35; color: var(--dim); text-wrap: pretty; }
.dh-ev__dress { margin-top: 6px; font-size: 16px; }
.dh-ev__dress span { font: 500 11px/1 var(--f-t); letter-spacing: .2em; text-transform: uppercase; color: var(--gold); margin-right: 4px; }
.dh-acts { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 14px; }
.dh-btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 15px; border-radius: 999px;
  border: 1px solid rgba(233, 196, 106, .55); background: rgba(8, 9, 32, .6);
  font: 500 12px/1 var(--f-t); letter-spacing: .14em; text-transform: uppercase; text-decoration: none; color: var(--gold-hi);
  transition: background .3s, color .3s;
}
.dh-btn--solid { background: linear-gradient(#f6dc97, #d2a244); border-color: #f6dc97; color: #1a1030; font-weight: 600; }
.dh-btn:hover { background: rgba(233, 196, 106, .16); }
.dh-btn--solid:hover { background: linear-gradient(#fff0c2, #e0b458); }
/* the sanctum: the countdown and the reply, on the steps below the lamp */
.dh-sc--sanct { top: calc(50svh + 55 * var(--k) + 6px); bottom: 46px; }
.dh-sc--sanct::before { inset: 0 -10px -10px; background: linear-gradient(rgba(5, 6, 26, 0), rgba(5, 6, 26, .88) 16%); }
.dh-offer {
  position: absolute; left: 50%; bottom: 100%; width: 120px; height: calc(150 * var(--k)); margin: 0 0 10px -60px; max-width: none;
  background: none; border: 0; border-radius: 60px; cursor: pointer; -webkit-tap-highlight-color: transparent;
}
.dh-offer:focus-visible { outline: 2px solid var(--gold-hi); }
.count { display: flex; justify-content: center; gap: 6px; margin: 0 0 10px; }
.count span { min-width: 62px; font: 500 10.5px/1.2 var(--f-t); letter-spacing: .2em; text-transform: uppercase; color: var(--gold); }
.count span + span { border-left: 1px solid rgba(233, 196, 106, .28); }
.count b { margin-bottom: 4px; font: 400 34px/1 var(--f-d); letter-spacing: .02em; color: var(--ivory); }
.count__done { margin-bottom: 10px; font: italic 300 20px/1.3 var(--f-t); color: var(--gold-hi); }
.dh-line--end { font-size: 16px; line-height: 1.4; max-width: 300px; color: var(--dim); }
.dh-btn--wa { margin-top: 12px; padding: 0 24px; }

@media (max-height: 700px) {
  .dh-sky b { display: none; }
  .dh-sc--gate { padding-top: 20px; }
  .dh-fams { gap: 8px; }
  .dh-fam__name { font-size: 22px; }
  .dh-await { margin-top: 8px; line-height: 1.3; }
  .dh-await small { display: none; }
  .dh-lab { margin-bottom: 7px; }
  .dh-sc--ev { top: calc(52svh - 236 * var(--k)); bottom: 44px; }
  .dh-ev__name { font-size: 28px; margin-bottom: 5px; }
  .dh-ev__where, .dh-ev__note { margin-top: 5px; }
  .dh-ev__note { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; }
  .dh-acts { margin-top: 9px; gap: 6px; }
  .dh-btn { padding: 0 12px; font-size: 11px; }
  .count b { font-size: 29px; }
}

/* ---- what stays on screen ---- */
.dh-bar, .dh-dots, .dh-hint, .dh-skip { transition: opacity .6s ease, visibility 0s .6s; }
.dh-bar {
  position: absolute; left: 18px; right: 18px; top: calc(14px + env(safe-area-inset-top));
  display: flex; justify-content: space-between; align-items: center; color: var(--gold);
}
.dh-mono { font: 400 21px/1 var(--f-d); letter-spacing: .08em; display: flex; align-items: center; gap: 7px; }
.dh-mono i { width: 5px; height: 5px; rotate: 45deg; background: var(--gold); }
.dh-bar__date { font: 500 11.5px/1 var(--f-t); letter-spacing: .22em; }
.dh-dots { position: absolute; left: 0; right: 0; bottom: calc(24px + env(safe-area-inset-bottom)); display: flex; justify-content: center; gap: 9px; }
.dh-dots i { width: 5px; height: 5px; border-radius: 50%; background: rgba(233, 196, 106, .28); transition: background .5s, box-shadow .5s, scale .5s var(--ease); }
.dh-dots i.done { background: rgba(233, 196, 106, .75); }
.dh-dots i.on { background: #fff3c4; box-shadow: 0 0 8px 2px rgba(255, 180, 80, .9); scale: 1.5; }
html.shut :is(.dh-bar, .dh-dots), .dh-walk[data-phase="idle"] :is(.dh-bar, .dh-dots) { opacity: 0; visibility: hidden; }

.dh-hint {
  position: absolute; left: 0; right: 0; bottom: calc(46px + env(safe-area-inset-bottom)); margin: 0; text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 1px; text-shadow: 0 1px 12px #05061a, 0 0 4px #05061a;
}
.dh-hint span { font-size: 17px; color: var(--gold); }
.dh-hint b { font: 500 12px/1.4 var(--f-t); letter-spacing: .24em; text-transform: uppercase; color: var(--ivory); }
.dh-to { font-size: 16px !important; color: var(--ivory) !important; margin-bottom: 2px; }
.dh-hint--walk { pointer-events: auto; cursor: pointer; }
.dh-hint--walk i { width: 9px; height: 9px; margin-top: 5px; border-right: 1.5px solid var(--gold); border-bottom: 1.5px solid var(--gold); rotate: 45deg; animation: dhNudge 1.8s ease-in-out infinite; }
@keyframes dhNudge { 0%, 100% { translate: 0 0; opacity: .5; } 50% { translate: 0 6px; opacity: 1; } }
.dh-walk:not([data-phase="idle"]) .dh-hint--ring, .dh-walk:not([data-phase="open"]) .dh-hint--walk, .dh-walk:not(.at-gate) .dh-hint--walk { opacity: 0; visibility: hidden; pointer-events: none; }
.dh-skip {
  position: absolute; left: 6px; bottom: calc(6px + env(safe-area-inset-bottom)); min-width: 64px; min-height: 44px; padding: 0 12px;
  background: none; border: 0; cursor: pointer; pointer-events: auto;
  font: 500 11px/1 var(--f-t); letter-spacing: .22em; text-transform: uppercase; color: rgba(247, 238, 219, .6);
}
.dh-walk:not([data-phase="idle"]) .dh-skip { opacity: 0; visibility: hidden; }

/* =================================================================== AFTER THE WALK */

.dh-after {
  position: relative; max-width: 480px; margin: 0 auto; padding: 84px 26px 56px; text-align: center;
  display: flex; flex-direction: column; align-items: center;
  background: linear-gradient(#05061a, #0a0c2c);
}
.dh-after__lotus { width: 44px; height: 44px; margin-bottom: 14px; fill: none; stroke: var(--gold); stroke-width: 1; }
.dh-names--sm { font-size: 34px; margin-top: 0; }
.dh-tag { margin-top: 18px; font: 400 24px/1.2 var(--f-d); letter-spacing: .04em; color: var(--gold-hi); overflow-wrap: anywhere; }
.dh-gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 26px; width: 100%; }
.dh-gallery img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 90px 90px 4px 4px; border: 1px solid rgba(233, 196, 106, .35); }
.dh-after__line { margin-top: 26px; font-style: italic; color: var(--dim); }
.dh-up { display: inline-flex; align-items: center; min-height: 44px; margin-top: 18px; font: 500 11.5px/1 var(--f-t); letter-spacing: .22em; text-transform: uppercase; color: var(--gold); text-underline-offset: 5px; }
.dh-foot { max-width: 480px; margin: 0 auto; padding: 22px 26px calc(86px + env(safe-area-inset-bottom)); text-align: center; background: #0a0c2c; font-size: 14px; line-height: 1.5; color: rgba(247, 238, 219, .6); }
.dh-foot p + p { margin-top: 4px; }

/* =================================================================== FLAT: no pinning */

.dh-walk.is-flat, html:not(.js) .dh-walk { height: auto; }
:is(.is-flat, html:not(.js) .dh-walk) .dh-pin { position: relative; height: auto; }
:is(.is-flat, html:not(.js) .dh-walk) .dh-stage { height: auto; }
:is(.is-flat, html:not(.js) .dh-walk) :is(.dh-sky, .dh-world, .dh-vig) { bottom: auto; height: 100svh; overflow: hidden; }
:is(.is-flat, html:not(.js) .dh-walk) .dh-safe { position: relative; height: auto; }
:is(.is-flat, html:not(.js) .dh-walk) .dh-sc { position: relative; top: auto; bottom: auto; opacity: 1; visibility: visible; transform: none; pointer-events: auto; padding: 64px 26px; }
:is(.is-flat, html:not(.js) .dh-walk) .dh-sc--gate { height: 100svh; padding: 40px 22px calc(15.3svh + 399 * var(--k) + 14px); }
:is(.is-flat, html:not(.js) .dh-walk) .dh-sc::before { display: none; }
:is(.is-flat, html:not(.js) .dh-walk) .dh-sc--ev { margin: 12px 18px; padding: 84px 22px 44px; border: 1px solid rgba(233, 196, 106, .4); border-bottom-color: transparent; border-radius: 240px 240px 0 0; background: linear-gradient(#0c0e34, #05061a); }
:is(.is-flat, html:not(.js) .dh-walk) .dh-sc--sanct { padding-top: 40px; }
:is(.is-flat, html:not(.js) .dh-walk) .dh-offer { position: relative; left: auto; bottom: auto; width: 64px; height: 64px; margin: 0 0 18px; border-radius: 50%; background: radial-gradient(circle, #fff6d0 0 8%, #ffbe55 24%, rgba(255, 138, 42, .3) 50%, transparent 70%); }
:is(.is-flat, html:not(.js) .dh-walk) :is(.dh-bar, .dh-dots, .dh-hint--walk) { display: none; }
:is(.is-flat, html:not(.js) .dh-walk) .dh-hint--ring { bottom: auto; top: calc(100svh - 96px); }
:is(.is-flat, html:not(.js) .dh-walk) .dh-skip { bottom: auto; top: calc(100svh - 50px); }
html:not(.js) :is(.dh-world, .dh-bell, .dh-hint, .dh-skip) { display: none; }

/* =================================================================== LINK PREVIEW */

html.og .ogcard { --lit: 1; --w: 390px; background: var(--night); color: var(--ivory); font-family: var(--f-t); }
.dh-og__temple { position: absolute; left: 10px; bottom: -8px; width: 560px; height: auto; overflow: visible; }
.dh-og__text { position: absolute; left: 600px; right: 50px; top: 0; bottom: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.ogcard .dh-deva { font-size: 30px; }
.ogcard .dh-names { font-size: 104px; margin: 14px 0 26px; }
.ogcard .dh-date { font-size: 21px; }
.ogcard .dh-place { font-size: 28px; max-width: 520px; margin-top: 14px; }

@media (prefers-reduced-motion: reduce) {
  .dh-world { opacity: 1; }
}
