/* Vishva & Sahil: the page after the film, a sequence of scenes in the reference website's
   proportions (a 1040px column on fine paper, Italiana headings, Archivo text). Several scenes
   stand on a heritage photograph from the couple's Rajasthan collages, graded warm and set back.
   Built by journey.js; the artwork's own styles are in royal.css. Motion is transform, opacity,
   clip-path and stroke drawing only, so scrolling stays smooth on phones. Order: Family
   Details; invocations; The Destination; the couple's photograph; the footer. */

#journey {
  position: relative;
  z-index: 1;
  --ease-out: cubic-bezier(.2, .7, .2, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);
  --paper: #EAE0D3;
  --rani: #C2187A;           /* the reference website's accent */
  --gold-line: #B8893A;
  --gold-soft: #C9AE78;
  --hair: #CDB993;
  --text: #2E2620;
  --muted: #6E5E4E;
}

.j-page {
  position: relative;
  padding: 0 20px;
  overflow-x: clip; /* the full-width sky and festive ground */
  background-color: var(--paper);
  background-image:
    repeating-linear-gradient(0deg, rgba(120, 95, 70, .05) 0 1px, transparent 1px 3px),
    repeating-linear-gradient(90deg, rgba(120, 95, 70, .05) 0 1px, transparent 1px 3px);
  color: var(--text);
  font: 300 17px/1.6 "Archivo", system-ui, sans-serif;
}
.j-page > * { max-width: 1040px; margin-left: auto; margin-right: auto; }

/* ------------------------------------------------------------- cinema --- */

.j-cinema {
  position: relative;
  max-width: none !important;
  margin: 0 -20px;
  width: calc(100% + 40px);
  height: 100vh;
  height: 100dvh;
  min-height: 100vh;
  min-height: 100dvh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding-bottom: clamp(48px, 9vh, 90px);
  background-color: #B9936A;
  box-sizing: border-box;
}

.j-cinema__media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
  background: #B9936A url("../images/welcome-video-final.jpg") no-repeat center 45% / cover;
}

.j-cinema__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 45%;
  pointer-events: none;
}

.j-cinema__scrim {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background:
    linear-gradient(
      to bottom,
      rgba(38, 22, 12, 0.42) 0%,
      rgba(38, 22, 12, 0.12) 16%,
      transparent 30%,
      transparent 65%,
      rgba(38, 22, 12, 0.22) 80%,
      rgba(38, 22, 12, 0.52) 100%
    );
}

.j-cinema::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 60px;
  pointer-events: none;
  z-index: 1;
  background: linear-gradient(to bottom, rgba(232, 227, 218, 0), var(--paper));
}

/* Monumental 3-Line Destination Typography */
.j-cinema__hero {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 2;
  padding: clamp(20px, 3.5vh, 45px) clamp(12px, 2vw, 32px) clamp(85px, 12vh, 130px);
  box-sizing: border-box;
  text-align: center;
  opacity: 0;
  transform: translateY(14px);
  will-change: opacity, transform;
}

.j-cinema__kicker {
  display: block;
  margin: 0 0 clamp(8px, 1.4vh, 20px);
  font: 700 clamp(44px, 6.8vw, 92px)/1.15 "Cinzel", "Italiana", Georgia, serif;
  letter-spacing: clamp(0.12em, 0.22vw, 0.18em);
  color: #FFF8EE;
  text-shadow:
    0 2px 4px rgba(0, 0, 0, 0.75), 0 4px 24px rgba(18, 10, 5, 0.85), 0 12px 48px rgba(0, 0, 0, 0.75);
  pointer-events: none;
  user-select: none;
}

.j-cinema__title {
  display: block;
  margin: 0;
  font: 400 clamp(120px, 28vw, 440px)/0.80 "Bebas Neue", "Impact", "Haettenschweiler", "Arial Narrow Bold", sans-serif;
  letter-spacing: clamp(0.04em, 0.12vw, 0.08em);
  text-transform: uppercase;
  white-space: nowrap;
  color: #FFFFFF;
  background: linear-gradient(180deg,
    #FFFFFF 0%,
    rgba(255, 255, 255, 0.96) 45%,
    rgba(255, 250, 242, 0.88) 75%,
    rgba(255, 245, 230, 0.70) 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter:
    drop-shadow(0 8px 40px rgba(16, 9, 4, 0.8))
    drop-shadow(0 2px 12px rgba(16, 9, 4, 0.6));
  pointer-events: none;
  user-select: none;
}

/* The caravan wordmark (content.js `titleStyle: "caravan"`): the name in a swash display face, in
   pale gold running to bronze at its foot, and above it a caravan on a line of dunes that the
   tops of the letters rise into. Light enough to read over the film; the shadows do the rest. */
/* --jc is the size of the name; the caravan is cut to the name's width from it. It follows the
   screen's width, and its height too, so the three lines always fit between the bars. */
.j-cinema__hero { --jc: clamp(90px, min(13vw, 21vh), 220px); }
.j-cinema__title.j-cinema__title--caravan {
  padding: 0 .1em .14em;
  font: 400 var(--jc)/1 "Macondo Swash Caps", "Italiana", Georgia, serif;
  letter-spacing: 0;
  text-transform: none;
  background: linear-gradient(180deg, #FFFFFF 0%, #FFF6DC 40%, #F8DFA6 74%, #EBBE72 100%);
  -webkit-background-clip: text;
  background-clip: text;
  filter:
    drop-shadow(0 2px 2px rgba(16, 9, 4, .9))
    drop-shadow(0 6px 22px rgba(16, 9, 4, .8))
    drop-shadow(0 0 46px rgba(16, 9, 4, .5));
}
.j-cinema__caravan {
  display: block;
  width: calc(var(--jc) * 4.5);
  max-width: 94vw;
  margin: 0 auto calc(var(--jc) * -.06);
  filter: drop-shadow(0 2px 2px rgba(16, 9, 4, .85)) drop-shadow(0 4px 16px rgba(16, 9, 4, .7));
}
.j-cinema__caravan svg { display: block; width: 100%; height: auto; overflow: visible; }
.j-cinema__camels { fill: #FFF6DC; stroke: #FFF6DC; }
.j-cinema__dune { fill: #F8DFA6; }
@media (max-width: 720px) {
  .j-cinema__hero { --jc: clamp(58px, min(19.5vw, 16vh), 130px); }
  .j-cinema__title.j-cinema__title--caravan { font-size: var(--jc); line-height: 1; }
}

.j-cinema__tagline {
  display: block;
  margin: clamp(10px, 1.6vh, 24px) 0 0;
  font: 700 clamp(32px, 4.8vw, 68px)/1.15 "Cinzel", "Italiana", Georgia, serif;
  letter-spacing: clamp(0.18em, 0.32vw, 0.28em);
  color: #FFF8EE;
  text-shadow:
    0 2px 4px rgba(0, 0, 0, 0.75), 0 4px 24px rgba(18, 10, 5, 0.85), 0 12px 48px rgba(0, 0, 0, 0.75);
  pointer-events: none;
  user-select: none;
}

@keyframes jCinemaOversized {
  0% {
    opacity: 0;
    transform: translateY(14px);
  }
  16.7% {
    opacity: 1;
    transform: translateY(0);
  }
  83.3% {
    opacity: 1;
    transform: translateY(0);
  }
  100% {
    opacity: 0;
    transform: translateY(-4px);
  }
}

.j-cinema__hero.is-animating {
  animation: jCinemaOversized 3s cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
}

/* Cinematic Wedding Announcement Overlay (Seconds 4–5) */
.j-cinema__announcement {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 2;
  padding: clamp(20px, 3.5vh, 45px) clamp(12px, 2vw, 32px) clamp(85px, 12vh, 130px);
  box-sizing: border-box;
  text-align: center;
  opacity: 0;
  visibility: hidden;
  will-change: opacity, transform;
}

.j-cinema__announcement-text {
  display: block;
  font: 700 clamp(64px, 10.5vw, 150px)/1.05 "Cinzel", "Italiana", Georgia, serif;
  letter-spacing: clamp(0.06em, 0.12vw, 0.12em);
  text-transform: uppercase;
  color: #FFF8EE;
  text-shadow:
    0 2px 4px rgba(0, 0, 0, 0.75), 0 4px 24px rgba(18, 10, 5, 0.85), 0 12px 48px rgba(0, 0, 0, 0.75);
  pointer-events: none;
  user-select: none;
}

/* Cinematic Wedding Countdown Overlay (Final 5 Seconds) */
.j-cinema__countdown {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 2;
  padding: clamp(20px, 3.5vh, 45px) clamp(12px, 2vw, 32px) clamp(85px, 12vh, 130px);
  box-sizing: border-box;
  text-align: center;
  opacity: 0;
  transform: translateY(12px);
  visibility: hidden;
  transition: opacity 0.5s cubic-bezier(0.2, 0.7, 0.2, 1), transform 0.5s cubic-bezier(0.2, 0.7, 0.2, 1);
  will-change: opacity, transform;
}

.j-cinema__countdown.is-visible {
  opacity: 1;
  transform: translateY(0);
  visibility: visible;
}

.j-cinema__countdown.is-fading-out {
  opacity: 0;
  transform: translateY(-4px);
  visibility: visible;
  transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.j-cinema__countdown-heading {
  display: block;
  font: 700 clamp(28px, 4.2vw, 56px)/1.2 "Cinzel", "Italiana", Georgia, serif;
  letter-spacing: clamp(0.18em, 0.3vw, 0.26em);
  color: #FFF8EE;
  text-transform: uppercase;
  margin: 0 0 clamp(18px, 2.8vh, 36px);
  text-shadow:
    0 2px 4px rgba(0, 0, 0, 0.75), 0 4px 24px rgba(18, 10, 5, 0.85), 0 12px 48px rgba(0, 0, 0, 0.75);
  pointer-events: none;
  user-select: none;
}

.j-cinema__countdown-grid {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(10px, 2.2vw, 36px);
}

.j-cinema__countdown-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: clamp(86px, 15vw, 210px);
}

.j-cinema__countdown-num {
  display: block;
  font: 700 clamp(90px, 15.5vw, 210px)/0.90 "Cinzel", "Italiana", Georgia, serif;
  color: #FFF8EE;
  text-shadow:
    0 2px 4px rgba(0, 0, 0, 0.75), 0 4px 24px rgba(18, 10, 5, 0.85), 0 12px 48px rgba(0, 0, 0, 0.75);
  pointer-events: none;
  user-select: none;
}

.j-cinema__countdown-label {
  display: block;
  font: 700 clamp(16px, 2.5vw, 30px)/1.2 "Cinzel", "Italiana", Georgia, serif;
  letter-spacing: clamp(0.18em, 0.3vw, 0.28em);
  color: #FFF8EE;
  text-transform: uppercase;
  margin-top: clamp(10px, 1.4vh, 18px);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.75), 0 4px 20px rgba(18, 10, 5, 0.85), 0 8px 36px rgba(0, 0, 0, 0.75);
  pointer-events: none;
  user-select: none;
}

.j-cinema__countdown-sep {
  display: block;
  font: 700 clamp(64px, 11vw, 150px)/0.90 "Cinzel", "Italiana", Georgia, serif;
  color: #FFF8EE;
  margin: 0 2px;
  transform: translateY(-10px);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.75), 0 4px 24px rgba(18, 10, 5, 0.85), 0 12px 48px rgba(0, 0, 0, 0.75);
  pointer-events: none;
  user-select: none;
}

/* The couple's hashtag, signed beneath the countdown. */
.j-cinema__countdown-tag {
  display: block;
  margin-top: clamp(6px, 1.2vh, 14px);
  padding: 0 .3em;
  font: 400 clamp(44px, 6vw, 76px)/1.2 "Mrs Saint Delafield", cursive;
  color: #FFF8EE;
  /* the tight shadows keep the script's thin strokes legible on the film's pale sky */
  text-shadow: 0 0 1px rgba(18, 10, 5, 0.95), 0 1px 3px rgba(18, 10, 5, 0.9), 0 0 12px rgba(18, 10, 5, 0.7), 0 4px 20px rgba(18, 10, 5, 0.85), 0 8px 36px rgba(0, 0, 0, 0.75);
  pointer-events: none;
  user-select: none;
}

.j-cinema__content {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* A small indication rather than a button to look at: words and an arrow straight on the film, with a
   finger-sized target around them. */
.j-cinema__enter {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 14px;
  background: none;
  border: 0;
  color: #FFF8EE;
  font: 500 10px/1 "Archivo", system-ui, sans-serif;
  letter-spacing: .28em;
  text-transform: uppercase;
  text-shadow: 0 1px 3px rgba(0, 0, 0, .75), 0 0 14px rgba(0, 0, 0, .55);
  cursor: pointer;
  transition: color .3s ease;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.j-cinema__enter:hover,
.j-cinema__enter:focus-visible {
  color: #FFFFFF;
}

.j-cinema__enter:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: -6px;
}

.j-cinema__enter-icon {
  display: inline-flex;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .8));
  animation: j-cue-bob 2.2s ease-in-out infinite;
}
.j-cinema__enter-icon svg { width: 12px; height: 12px; }
@keyframes j-cue-bob { 0%, 100% { transform: none; } 50% { transform: translateY(3px); } }

@media (max-width: 720px) {
  .j-cinema {
    margin: 0 -18px;
    width: calc(100% + 36px);
    padding-bottom: calc(var(--nav-h, 58px) + env(safe-area-inset-bottom, 0px) + 28px);
  }
  .j-cinema__hero {
    padding-top: max(env(safe-area-inset-top, 0px) + 16px, 32px);
    padding-bottom: calc(var(--nav-h, 58px) + env(safe-area-inset-bottom, 0px) + 90px);
  }
  .j-cinema__kicker {
    font-size: clamp(26px, 7.5vw, 44px);
    font-weight: 700;
    margin-bottom: 6px;
    letter-spacing: 0.12em;
  }
  .j-cinema__title {
    font-size: clamp(74px, 22.5vw, 140px);
    line-height: 0.82;
    letter-spacing: 0.04em;
  }
  .j-cinema__tagline {
    font-size: clamp(20px, 5.8vw, 34px);
    font-weight: 700;
    margin-top: 8px;
    letter-spacing: 0.18em;
  }
  .j-cinema__announcement {
    padding-top: max(env(safe-area-inset-top, 0px) + 16px, 32px);
    padding-bottom: calc(var(--nav-h, 58px) + env(safe-area-inset-bottom, 0px) + 90px);
  }
  .j-cinema__announcement-text {
    font-size: clamp(34px, 9.5vw, 56px);
    font-weight: 700;
    letter-spacing: 0.08em;
    line-height: 1.15;
  }
  .j-cinema__countdown {
    padding-top: max(env(safe-area-inset-top, 0px) + 16px, 32px);
    padding-bottom: calc(var(--nav-h, 58px) + env(safe-area-inset-bottom, 0px) + 90px);
  }
  .j-cinema__countdown-heading {
    font-size: clamp(18px, 5.2vw, 28px);
    font-weight: 700;
    letter-spacing: 0.2em;
    margin-bottom: 12px;
  }
  .j-cinema__countdown-grid {
    gap: clamp(4px, 1.2vw, 10px);
  }
  .j-cinema__countdown-item {
    min-width: clamp(54px, 15vw, 84px);
  }
  .j-cinema__countdown-num {
    font-size: clamp(52px, 14vw, 84px);
    font-weight: 700;
  }
  .j-cinema__countdown-label {
    font-size: clamp(11px, 3.2vw, 16px);
    font-weight: 700;
    letter-spacing: 0.16em;
    margin-top: 4px;
  }
  .j-cinema__countdown-sep {
    font-size: clamp(36px, 9vw, 56px);
    margin: 0 1px;
    transform: translateY(-4px);
  }
  .j-cinema__countdown-tag {
    margin-top: 6px;
    font-size: clamp(38px, 11vw, 54px);
  }
}

/* Landscape phones: the countdown nearly fills the height, so the hashtag stays small above ENTER. */
@media (max-height: 520px) and (min-aspect-ratio: 1/1) {
  .j-cinema__countdown-tag { margin-top: 0; font-size: 30px; line-height: 1; }
}

@media (prefers-reduced-motion: reduce) {
  @keyframes jCinemaOversizedReduced {
    0% { opacity: 0; }
    16.7%, 83.3% { opacity: 1; }
    100% { opacity: 0; }
  }
  .j-cinema__hero {
    transform: none !important;
  }
  .j-cinema__hero.is-animating {
    animation-name: jCinemaOversizedReduced;
  }
  .j-cinema__enter-icon {
    animation: none;
  }
}

/* --------------------------------------------------------------- shared --- */

.j-title {
  margin: 0;
  font: 400 clamp(32px, 5vw, 46px)/1.1 "Italiana", Georgia, serif;
  letter-spacing: .01em;
  color: var(--text);
  text-wrap: balance;
}
.j-kicker {
  margin: 0 0 .7em;
  font: 400 12px/1.5 "Archivo", system-ui, sans-serif;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--rani);
}

[data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 1.1s var(--ease-out) var(--d, 0ms),
    transform 1.3s var(--ease-out) var(--d, 0ms);
}
[data-reveal].is-visible { opacity: 1; transform: none; }

/* ---------------------------------------------------------------- scenes --- */

/* A scene: at least a screen tall, its content centred, standing on its own ground. */
.j-scene { position: relative; isolation: isolate; box-sizing: border-box; min-height: 100vh; min-height: 100svh; }
/* The ground: a heritage photograph across the full width, set back behind the content and
   fading into the paper at both edges. It settles in (fade, slow zoom) when the scene is
   reached; journey.js then lets it drift with the scroll. */
.j-ground {
  position: absolute;
  inset: 0 calc(50% - 50vw);
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(transparent, #000 18%, #000 78%, transparent);
  mask-image: linear-gradient(transparent, #000 18%, #000 78%, transparent);
}
.j-ground[data-reveal] { transform: none; transition: opacity 2.2s ease; }
.j-ground__img {
  position: absolute;
  inset: -8% 0;
  background: center / cover no-repeat;
  transform: scale(1.12);
  will-change: transform;
}
.j-ground::after { content: ""; position: absolute; inset: 0; }
.j-ground--first .j-ground__img { opacity: .5; }
.j-ground--first::after { background: radial-gradient(70% 62% at 50% 48%, rgba(240, 230, 214, .94), rgba(234, 224, 211, .62) 70%, rgba(234, 224, 211, .4)); }
/* The couple's photograph: the marble chhatri over the lake, kept quiet behind
   the words and the frame. */
.j-ground-host { position: relative; isolation: isolate; }
.j-ground--quiet .j-ground__img { opacity: .5; }
.j-ground--quiet::after { background: radial-gradient(72% 66% at 55% 50%, rgba(240, 230, 214, .9), rgba(234, 224, 211, .58) 72%, rgba(234, 224, 211, .38)); }
/* the couple's ground reaches down behind the arch frieze and medallion that follow the frame */
.j-ground--couple { top: -40px; bottom: -150px; }
.j-couple > .j-ground { grid-column: 1 / -1; }

/* ------------------------------------------------------------ ornaments --- */


/* Lotus medallion: the lines draw outward from the rosette, which then turns very slowly. */
.j-divider { display: flex; justify-content: center; padding: 6px 0; }
.j-divider[data-reveal] { transform: none; }
.j-medallion { width: min(320px, 82%); height: auto; overflow: visible; }
.j-medallion__line { fill: none; stroke: var(--gold-line); stroke-width: 1; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.6s var(--ease-io) .3s; }
.j-medallion__tip { fill: var(--gold-line); opacity: 0; transition: opacity .6s ease 1.6s; }
.j-medallion__rose { fill: var(--gold-line); opacity: 0; transition: opacity 1s ease; }
.j-medallion__spin { transform-origin: 0 0; }
.j-divider.is-visible .j-medallion__line { stroke-dashoffset: 0; }
.j-divider.is-visible .j-medallion__tip { opacity: 1; }
.j-divider.is-visible .j-medallion__rose { opacity: .9; }
.j-divider.is-visible .j-medallion__spin { animation: j-bloom 1.4s var(--ease-out) both, j-turn 48s linear 1.4s infinite; }



@keyframes j-bloom { from { transform: rotate(-60deg) scale(.2); } }
@keyframes j-turn { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes j-sway { from { transform: rotate(-4deg); } to { transform: rotate(4deg); } }

/* ---------------------------------------------------------------- photos --- */

/* A photo in a jharokha window: a cusped arch over the picture, a hairline gold outline, and on
   the wide frame a small chhatri on top and two doors that open to reveal the photograph. */
.j-photo { position: relative; margin: 0; }
.j-photo[data-reveal] { transform: none; }
.j-photo__window {
  position: relative;
  overflow: hidden;
  background: #DCCDB6;
}
.j-photo--wide .j-photo__window { aspect-ratio: 2 / 1; clip-path: url(#j-jharokha-wide); }
.j-photo--tall .j-photo__window { aspect-ratio: 4 / 3; clip-path: url(#j-jharokha-tall); }
/* A frame in the photo's own shape (content.js `fit: "full"`): the whole photo, nothing cropped
   but the arch's curve; a little narrower, as it is tall. */
.j-photo.j-photo--full .j-photo__window, .j-photo.j-photo--full .j-photo__line { aspect-ratio: var(--ratio, 9 / 16); }
.j-photo--full .j-photo__window { clip-path: url(#j-jharokha-full); }
.j-dest__frame:has(.j-photo--full) { width: min(100%, 340px); }
/* Photos taking turns in one frame (content.js `src: [...]`): each holds for a while, then
   dissolves into the next; the captions beneath change with them. Two photos: 12 s a round. */
.j-photo--turns .j-photo__img { animation: j-turn calc(var(--turns, 2) * 6s) ease-in-out infinite; animation-delay: calc((var(--n, 0) - var(--turns, 2)) * 6s - 1s); }
@keyframes j-turn { 0% { opacity: 0; } 8.3%, 50% { opacity: 1; } 58.3%, 100% { opacity: 0; } }
.j-photo__caption { position: relative; display: grid; margin-top: 14px; text-align: center; font: 500 12px/1.4 "Archivo", system-ui, sans-serif; letter-spacing: .26em; text-transform: uppercase; color: var(--gold-deep); }
.j-photo__caption span { grid-area: 1 / 1; opacity: 0; animation: j-turn calc(var(--turns, 2) * 6s) ease-in-out infinite; animation-delay: calc((var(--n, 0) - var(--turns, 2)) * 6s - 1s); }
@media (prefers-reduced-motion: reduce) {
  .j-photo--turns .j-photo__img, .j-photo__caption span { animation: none; }
  .j-photo--turns .j-photo__img:not(:first-of-type), .j-photo__caption span:not(:first-child) { opacity: 0; }
  .j-photo__caption span:first-child { opacity: 1; }
}
/* Before a photo is saved: a carved jali ground with a softly breathing lotus. */
.j-photo__ground {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding-top: 12%;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48' fill='none' stroke='%23B8893A' stroke-opacity='.28' stroke-width='1'%3E%3Cpath d='M14 14H34V34H14ZM24 10L38 24L24 38L10 24ZM0 24H10M38 24H48M24 0V10M24 38V48'/%3E%3C/svg%3E") center / 48px 48px,
    radial-gradient(closest-side, rgba(255, 248, 238, .7), rgba(255, 248, 238, 0)),
    #E4D6C0;
}
.j-photo__lotus { width: clamp(48px, 16%, 96px); height: auto; fill: var(--gold-line); opacity: .45; }
.j-photo.is-empty.is-visible .j-photo__lotus { animation: j-breathe 6s ease-in-out infinite alternate; }
.j-photo__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.1);
  will-change: transform;
}
.j-photo__line {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  overflow: visible;
  fill: none;
  stroke: var(--gold-line);
  stroke-width: 1.2;
  pointer-events: none;
  clip-path: inset(100% -4% -4% -4%);
  transition: clip-path 1.8s var(--ease-io) .6s;
}
.j-photo__line--inner { left: 10px; width: calc(100% - 20px); opacity: .5; stroke-width: .9; transition-delay: .9s; }
.j-photo--wide .j-photo__line { aspect-ratio: 2 / 1; }
.j-photo--tall .j-photo__line { aspect-ratio: 4 / 3; }
.j-photo.is-visible .j-photo__line { clip-path: inset(-4% -4% -4% -4%); }
.j-photo__img:not([src]) { visibility: hidden; }
.j-photo.is-empty .j-photo__img { visibility: hidden; }
/* On this computer only: which photograph belongs in an empty frame, and its file. */
.j-photo__slot {
  position: absolute;
  left: 50%;
  bottom: 10%;
  transform: translateX(-50%);
  max-width: 90%;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 248, 238, .85);
  font: 500 10px/1.4 "Archivo", system-ui, sans-serif;
  letter-spacing: .08em;
  color: #6E5E4E;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.j-chhatri {
  display: block;
  width: 60px;
  height: 44px;
  margin: 0 auto 2px;
  fill: none;
  stroke: var(--gold-line);
  stroke-width: 1.2;
}
.j-chhatri path { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.6s var(--ease-io) .4s; }
.j-chhatri circle { fill: var(--gold-line); stroke: none; }
.j-photo.is-visible .j-chhatri path { stroke-dashoffset: 0; }

/* The doors of the wide frame part to show the couple. */
.j-photo__door {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 50.5%;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48' fill='none' stroke='%23B8893A' stroke-opacity='.35' stroke-width='1'%3E%3Cpath d='M14 14H34V34H14ZM24 10L38 24L24 38L10 24ZM0 24H10M38 24H48M24 0V10M24 38V48'/%3E%3C/svg%3E") center / 48px 48px,
    #E4D6C0;
  transition: transform 2.2s var(--ease-io) .5s;
}
.j-photo__door--l { left: 0; box-shadow: inset -1px 0 0 var(--gold-line); }
.j-photo__door--r { right: 0; box-shadow: inset 1px 0 0 var(--gold-line); }
.j-photo.is-visible .j-photo__door--l { transform: translateX(-101%); }
.j-photo.is-visible .j-photo__door--r { transform: translateX(101%); }
/* The tall frames: a sand curtain rises off the photograph. */
.j-photo--tall .j-photo__window::after {
  content: "";
  position: absolute;
  inset: 0;
  background: #E4D6C0;
  transition: transform 1.6s var(--ease-io) .2s;
}
.j-photo--tall.is-visible .j-photo__window::after { transform: translateY(-101%); }

/* The couple's photograph between two carved pillars that draw themselves in. */
.j-couple {
  display: grid;
  max-width: 820px !important;
  grid-template-columns: 44px minmax(0, 1fr) 44px;
  gap: 16px;
  align-items: end;
  padding: 34px 0 6px;
}
.j-pillar {
  align-self: end;
  width: 100%;
  height: calc(100% - 46px);
  fill: none;
  stroke: var(--gold-line);
  stroke-width: 1.1;
}
.j-pillar path { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 2.4s var(--ease-io) .3s; }
.j-pillar.is-visible path { stroke-dashoffset: 0; }
@media (max-width: 720px) {
  .j-couple { grid-template-columns: minmax(0, 1fr); padding-top: 26px; }
  .j-pillar { display: none; }
}

/* An arcade frieze: a row of small cusped arches rising into place from their base. */
.j-arcade {
  height: 34px;
  margin-top: 26px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='44' height='34' fill='none' stroke='%23B8893A' stroke-width='1'%3E%3Cpath d='M4 34V20C4 11 13 6 22 2C31 6 40 11 40 20V34'/%3E%3Cpath stroke-opacity='.5' d='M10 34V22C10 15 16 11 22 8C28 11 34 15 34 22V34'/%3E%3C/svg%3E") center bottom / 44px 34px repeat-x;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 16%, #000 84%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 16%, #000 84%, transparent);
  opacity: .7;
}
.j-arcade[data-reveal] { transform: none; clip-path: inset(100% 0 0 0); transition: opacity .6s ease, clip-path 1.6s var(--ease-io); }
.j-arcade.is-visible { opacity: .7; clip-path: inset(0 0 0 0); }

.j-underline {
  display: block;
  width: 64px;
  height: 1px;
  margin-top: 18px;
  background: var(--gold-line);
}
.j-underline[data-reveal] { transform: scaleX(0); transform-origin: 0 50%; }
.j-underline.is-visible { transform: none; }
/* The words light up in reading order with the scroll (journey.js sets their opacity). */


/* ------------------------------------------------------- Family Details --- */

/* The page's own ground shows through: no cards, panels or photographs behind the section. */
.j-families { padding: clamp(36px, 6vh, 56px) 0 clamp(48px, 9vh, 88px); text-align: center; color: #44291D; }
.j-families__head { display: flex; flex-direction: column; align-items: center; gap: clamp(10px, 1.8vh, 16px); }
.j-families__lotus { display: block; width: min(240px, 72%); height: auto; overflow: visible; fill: none; stroke: var(--gold-line); stroke-width: 1; stroke-linecap: round; }
.j-families__title { margin: 0; font: 400 clamp(34px, 7vw, 52px)/1.1 "Italiana", Georgia, serif; color: #44291D; }
/* The invocations, side by side where they fit and otherwise one under another. */
.j-families__invocations { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 clamp(28px, 6vw, 64px); }
.j-families__gods {
  margin: 0;
  display: flex;
  flex-direction: column;
  font: 400 clamp(14px, 2.6vw, 16px)/1.7 "Noto Serif Gujarati", "Nirmala UI", "Shruti", "Gujarati Sangam MN", serif;
  color: #8E1B12;
}
.j-rule { display: block; width: min(200px, 60%); height: auto; overflow: visible; }
.j-rule path:first-child { fill: none; stroke: var(--gold-line); stroke-width: 1; }
.j-rule .gem { fill: var(--gold-line); }
.j-families__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(32px, 6vw, 72px);
  margin-top: clamp(28px, 5vh, 44px);
}
.j-family { display: flex; flex-direction: column; align-items: center; min-width: 0; }
.j-family > * { margin: 0; }
.j-family__floral { display: block; width: 72px; height: auto; margin-top: 14px; fill: var(--gold-line); opacity: .85; }
.j-family__name { margin-top: 12px; font: 400 clamp(38px, 9.5vw, 48px)/1.12 "Italiana", Georgia, serif; color: #991C29; }
.j-family__relation { margin-top: 10px; font: 500 11px/1.5 "Archivo", system-ui, sans-serif; letter-spacing: 4.5px; text-transform: uppercase; color: #44291D; }
.j-family__parents { display: flex; flex-direction: column; gap: 4px; margin-top: 12px; font: 400 clamp(15px, 3.9vw, 17px)/1.55 "Archivo", system-ui, sans-serif; color: #44291D; }
.j-family .j-rule { margin-top: 18px; }
.j-family__house { margin-top: 16px; font: 400 clamp(24px, 5.6vw, 30px)/1.25 "Italiana", Georgia, serif; color: #44291D; }
.j-family__house span { display: block; }
@media (max-width: 720px) {
  .j-families__grid { grid-template-columns: minmax(0, 1fr); gap: 56px; }
}
/* With blessings of (content.js families.blessings): the elders after the two families, each
   side under its own family, in the family names' maroon. */
.j-blessings { display: flex; flex-direction: column; align-items: center; margin-top: clamp(44px, 8vh, 72px); }
.j-blessings .j-rule { width: 200px; }
.j-blessings__title { margin: 18px 0 0; font: 400 clamp(30px, 6.5vw, 40px)/1.15 "Italiana", Georgia, serif; color: #991C29; }
.j-blessings__cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px clamp(32px, 6vw, 72px); width: 100%; margin-top: clamp(18px, 3vh, 26px); }
.j-blessings__side { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.j-blessings__name { font: 400 clamp(15px, 3.9vw, 17px)/1.55 "Archivo", system-ui, sans-serif; color: #44291D; }
@media (max-width: 720px) {
  .j-blessings__cols { grid-template-columns: minmax(0, 1fr); gap: 22px; }
}

/* ------------------------------------------------------ The Destination --- */

/* One desert scene behind the three chapters. The wrapper keeps the sticky scene inside the
   section; journey.js passes the day across it: the five skies, the sun on its arc, the glow on
   the horizon, the fort and the dunes in the changing light. */
.j-dest { position: relative; max-width: none !important; margin: 0 -20px; }
.j-dest__back { position: absolute; inset: 0; overflow: clip; pointer-events: none; }
.j-dest__sky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
/* Soft edges where the scene meets the paper above and below. */
.j-dest::before, .j-dest::after { content: ""; position: absolute; left: 0; right: 0; z-index: 1; height: 26vh; pointer-events: none; }
.j-dest::before { top: 0; background: linear-gradient(var(--paper), rgba(234, 224, 211, 0)); }
.j-dest::after { bottom: 0; height: 18vh; background: linear-gradient(rgba(234, 224, 211, 0), var(--paper)); }
.j-sky { position: absolute; inset: 0; }
/* These fade with the scroll: on layers of their own the fade costs no repainting. */
.j-sky--noon, .j-sky--gold, .j-sky--sunset, .j-sky--dusk, .j-stars, .j-dest__haze { will-change: opacity; }
.j-sky--morning { background: linear-gradient(to bottom, #D6D9D6 0%, #EADFD2 38%, #F5DAB9 66%, #F2C495 100%); }
.j-sky--noon { opacity: 0; background: linear-gradient(to bottom, #9FC2D8 0%, #CBDFE6 36%, #EEE7D6 66%, #F2DDB6 100%); }
.j-sky--gold { opacity: 0; background: linear-gradient(to bottom, #E2BE8A 0%, #F2D29E 38%, #F5BF7A 70%, #EDA35E 100%); }
.j-sky--sunset { opacity: 0; background: linear-gradient(to bottom, #6E4170 0%, #B6516C 32%, #E4764E 62%, #F3A55E 100%); }
.j-sky--dusk { opacity: 0; background: linear-gradient(to bottom, #1F1C40 0%, #3A2D5B 38%, #774461 70%, #A95F5A 100%); }
.j-stars {
  position: absolute;
  inset: 0 0 40% 0;
  opacity: 0;
  background:
    radial-gradient(1.4px 1.4px at 12% 18%, #FFF6DD 50%, transparent 51%),
    radial-gradient(1px 1px at 22% 42%, #FFF6DD 50%, transparent 51%),
    radial-gradient(1.6px 1.6px at 34% 12%, #FFF 50%, transparent 51%),
    radial-gradient(1px 1px at 46% 30%, #FFF6DD 50%, transparent 51%),
    radial-gradient(1.2px 1.2px at 58% 8%, #FFF 50%, transparent 51%),
    radial-gradient(1px 1px at 63% 46%, #FFF6DD 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 78% 22%, #FFF 50%, transparent 51%),
    radial-gradient(1px 1px at 88% 38%, #FFF6DD 50%, transparent 51%),
    radial-gradient(1.2px 1.2px at 94% 10%, #FFF 50%, transparent 51%);
}
/* The glow along the horizon, gathering under the low sun. */
.j-dest__glow {
  position: absolute;
  left: 0;
  right: 0;
  top: 46%;
  height: 46%;
  background: radial-gradient(42% 46% at 50% 62%, rgba(255, 196, 128, .75), rgba(255, 170, 110, .25) 55%, rgba(255, 170, 110, 0) 75%);
  will-change: transform, opacity;
}
/* Midday heat haze over the horizon. */
.j-dest__haze { position: absolute; left: 0; right: 0; top: 58%; height: 22%; opacity: 0; background: linear-gradient(rgba(255, 250, 236, 0), rgba(255, 250, 236, .55) 60%, rgba(255, 250, 236, 0)); }
/* The sun: a soft disc in its own light, warming from white-gold to amber to red. */
.j-dest__sun {
  position: absolute;
  left: 0;
  top: 0;
  width: clamp(62px, 6.4vw, 98px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 46% 44%, #FFFEF6, #FFF4CF 58%, rgba(255, 236, 180, 0) 72%);
  box-shadow: 0 0 60px 22px rgba(255, 238, 196, .5), 0 0 180px 90px rgba(255, 206, 140, .16);
  transform: translate(14vw, 66vh) translate(-50%, -50%);
  will-change: transform;
}
/* Its warmer tones, faded in by journey.js: opacity alone, so the large soft glow is never repainted. */
.j-dest__sun-amber, .j-dest__sun-red { position: absolute; inset: 0; border-radius: 50%; opacity: 0; will-change: opacity; }
.j-dest__sun-amber { background: radial-gradient(circle, #FFA846 0 64%, rgba(255, 168, 70, 0) 72%); box-shadow: 0 0 180px 90px rgba(255, 206, 140, .22); }
.j-dest__sun-red { background: radial-gradient(circle, #E24628 0 62%, rgba(226, 70, 40, 0) 72%); }
/* The fort on the far ridge, in the day's light (journey.js sets --fort). */
.j-dest__fort { position: absolute; left: 52%; bottom: 17.5vh; width: 40vw; color: var(--fort, #D6BE96); }
.j-dest__fort .fort { height: auto; aspect-ratio: 1400 / 160; }
.j-dest__fort .fort__back { fill: currentColor; opacity: .72; }
.j-dest__fort .fort__front, .j-dest__fort .fort__hill { fill: currentColor; }
.j-sand { position: absolute; inset: 0; width: 100%; height: 100%; }
.j-dune { position: absolute; left: -2%; bottom: 0; width: 104%; will-change: transform; }
.j-dune--0 { height: 30vh; }
.j-dune--1 { height: 21vh; }
.j-dune--2 { height: 13vh; }

.j-dest__content {
  position: relative;
  z-index: 2;
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 56px) clamp(60px, 12vh, 140px);
}
.j-dest__head {
  min-height: 70vh;
  min-height: 70svh;
  display: grid;
  place-content: center;
  justify-items: center;
  text-align: center;
}
.j-dest__head .j-kicker { color: #7E5420; }
.j-title--xl { font-size: clamp(38px, 6vw, 68px); }
.j-head-arch { display: block; width: 60px; height: auto; margin: 0 auto 14px; fill: none; stroke: var(--gold-line); stroke-width: 1.4; }
.j-head-arch[data-reveal] { transform: none; }
.j-head-arch path { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 2.2s var(--ease-io) .2s; }
.j-head-arch .inner { opacity: .5; }
.j-head-arch.is-visible path { stroke-dashoffset: 0; }

/* A chapter: the photograph on one side, the words on the other; a screen each. */
.j-dest__ch {
  box-sizing: border-box;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(28px, 6vw, 80px);
  padding: 8vh 0;
}
.j-dest__ch--right .j-dest__frame { order: 2; }
.j-dest__frame { width: min(100%, 420px); justify-self: center; }
.j-dest__copy {
  position: relative;
  display: flex;
  flex-direction: column;
  max-width: 28em;
  color: var(--ink);
  transition: color 1.2s ease;
}
.j-dest__copy > * { margin: 0; }
/* A soft wash behind the words keeps them readable over any sky. */
.j-dest__copy::before {
  content: "";
  position: absolute;
  inset: -14% -18%;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 246, 228, .72), rgba(255, 246, 228, 0));
  transition: background 1.2s ease;
}
.j-dest[data-phase="evening"] .j-dest__ch--weather .j-dest__copy { color: #FFF3D6; text-shadow: 0 1px 2px rgba(40, 16, 40, .35), 0 2px 18px rgba(40, 16, 40, .45); }
.j-dest[data-phase="evening"] .j-dest__ch--weather .j-dest__copy::before { opacity: 0; }
.j-dest__num { font: 400 clamp(46px, 5.6vw, 76px)/1 "Italiana", Georgia, serif; color: rgba(154, 106, 42, .7); }
.j-dest[data-phase="evening"] .j-dest__ch--weather .j-dest__num { color: rgba(242, 210, 122, .8); }
.j-dest__num[data-reveal] { transform: translateY(30px) scale(.9); }
.j-dest__num.is-visible { transform: none; }
.j-dest__rule { display: block; width: 56px; height: 1px; margin: 14px 0 18px !important; background: currentColor; opacity: .5; }
.j-dest__rule[data-reveal] { transform: scaleX(0); transform-origin: 0 50%; }
.j-dest__rule.is-visible { transform: none; opacity: .5; }
.j-dest__title { font: 400 clamp(32px, 3.6vw, 48px)/1.1 "Italiana", Georgia, serif; }
.j-dest__text { margin-top: .9em !important; font: 300 clamp(16px, 1.3vw, 18px)/1.75 "Archivo", system-ui, sans-serif; }
.j-dest__ch--right .j-dest__copy > [data-reveal]:not(.is-visible) { transform: translateX(26px); }
.j-dest__ch--left .j-dest__copy > [data-reveal]:not(.is-visible) { transform: translateX(-26px); }

/* Weather: the day's and the night's temperatures, the bar cooling as the light goes. */
.j-temps { display: flex; align-items: center; gap: 16px; margin-top: 24px !important; }
.j-temps__cell { display: grid; justify-items: center; gap: 2px; opacity: .5; transition: opacity .8s ease; }
.j-temps__cell.is-on { opacity: 1; }
.j-temps__deg { font: 400 30px/1.1 "Italiana", Georgia, serif; }
.j-temps__name { font: 500 9.5px/1.3 "Archivo", system-ui, sans-serif; letter-spacing: .3em; text-transform: uppercase; }
.j-temps__bar { position: relative; flex: 1; max-width: 150px; height: 2px; background: linear-gradient(90deg, #E8A060, #7F7FB8); }
.j-temps__fill { position: absolute; inset: -1px 0; background: linear-gradient(90deg, #E8603A, #F5B266); transform-origin: 0 50%; }

@media (max-width: 720px) {
  .j-dest { margin: 0 -18px; }
  .j-dest__ch { grid-template-columns: minmax(0, 1fr); gap: 30px; padding: 10vh 0; align-content: center; }
  .j-dest__ch--right .j-dest__frame { order: 0; }
  .j-dest__frame { width: min(100%, 340px); }
  .j-dest__num { font-size: 42px; }
  .j-dest__fort { left: 22%; width: 96vw; bottom: 10.5vh; }
  .j-dune--0 { height: 22vh; }
  .j-dune--1 { height: 15vh; }
  .j-dune--2 { height: 9vh; }
}

/* ------------------------------------------------------- family portraits --- */

/* A 4:5 portrait in a thin gold frame with four gold corners (the photographs are cropped to 4:5,
   so the whole crop shows). */
.j-photo--family { box-sizing: border-box; width: clamp(180px, 56vw, 220px); padding: 6px; border: 1px solid var(--gold-line); box-shadow: 0 12px 26px -20px rgba(var(--umber), .55); }
.j-photo--family .j-photo__window { aspect-ratio: 4 / 5; }
.j-photo--family .j-photo__ground { padding-top: 0; }
@media (min-width: 721px) {
  .j-photo--family { width: clamp(240px, 24vw, 280px); }
}
.j-photo__corner { position: absolute; width: 14px; height: 14px; background: linear-gradient(135deg, #C9963F 50%, transparent 50%); }
.j-photo__corner--tl { left: -1px; top: -1px; }
.j-photo__corner--tr { right: -1px; top: -1px; transform: rotate(90deg); }
.j-photo__corner--br { right: -1px; bottom: -1px; transform: rotate(180deg); }
.j-photo__corner--bl { left: -1px; bottom: -1px; transform: rotate(270deg); }

/* --------------------------------------------------------------- footer --- */

.j-end {
  position: relative;
  max-width: none !important;
  margin: 0 -20px;
  min-height: 440px;
  padding: 85px 20px calc(env(safe-area-inset-bottom, 0px) + 120px + var(--nav-h, 0px));
  text-align: center;
  overflow: hidden;
  box-sizing: border-box;
}
.j-end__media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
  background-color: var(--paper);
}
.j-end__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 82%;
  pointer-events: none;
  opacity: 0.84;
  filter: saturate(0.96) contrast(1.02);
}
.j-end__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      to bottom,
      var(--paper) 0%,
      rgba(232, 227, 218, 0.92) 10%,
      rgba(232, 227, 218, 0.55) 24%,
      rgba(232, 227, 218, 0.18) 38%,
      transparent 52%
    ),
    radial-gradient(
      ellipse min(640px, 90vw) 140px at 50% 115px,
      rgba(255, 248, 238, 0.45) 0%,
      rgba(255, 248, 238, 0.18) 55%,
      transparent 80%
    ),
    rgba(255, 248, 238, 0.12);
  pointer-events: none;
}
.j-end__names {
  position: relative;
  z-index: 2;
  margin: 0;
  font: 400 28px/1.2 "Italiana", Georgia, serif;
  color: var(--text);
  letter-spacing: 0.04em;
  text-shadow:
    0 0 24px rgba(255, 250, 242, 1),
    0 1px 10px rgba(255, 250, 242, 0.95),
    0 2px 4px rgba(46, 38, 32, 0.15);
}
.j-end__amp {
  font: 400 1.15em/1 "Mrs Saint Delafield", cursive;
  color: var(--rani);
}
.j-end__line {
  position: relative;
  z-index: 2;
  margin: 8px 0 0;
  font-size: 13px;
  letter-spacing: 0.06em;
  color: var(--text);
  opacity: 0.92;
  text-shadow:
    0 0 20px rgba(255, 250, 242, 1),
    0 1px 8px rgba(255, 250, 242, 0.95),
    0 1px 3px rgba(46, 38, 32, 0.12);
}

/* ----------------------------------------------------------- navigation --- */

.j-nav {
  position: fixed;
  top: calc(env(safe-area-inset-top, 0px) + 14px);
  left: 50%;
  z-index: 30;
  max-width: calc(100% - 32px);
  padding: 3px 8px;
  border: 1px solid rgba(154, 106, 42, .28);
  border-radius: 999px;
  background: rgba(255, 248, 238, .82);
  -webkit-backdrop-filter: blur(12px) saturate(1.1);
  backdrop-filter: blur(12px) saturate(1.1);
  box-shadow: 0 14px 40px -18px rgba(var(--umber), .45);
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, -18px);
  transition: opacity 1s cubic-bezier(.2, .7, .2, 1), transform 1.2s cubic-bezier(.2, .7, .2, 1), visibility 0s linear 1.2s;
}
.j-nav.is-shown {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
  transition: opacity 1s cubic-bezier(.2, .7, .2, 1), transform 1.2s cubic-bezier(.2, .7, .2, 1), visibility 0s;
}
.j-nav__list { position: relative; display: flex; margin: 0; padding: 0; list-style: none; }
.j-nav__link {
  display: block;
  padding: 13px clamp(10px, 1.3vw, 18px) 12px;
  font: 500 11px/1 "Archivo", system-ui, sans-serif;
  letter-spacing: .2em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--ink-soft);
  text-decoration: none;
  transition: color .5s ease;
}
.j-nav__link:hover, .j-nav__link.is-active { color: var(--accent); }
.j-nav__link:focus-visible { outline: 1px solid var(--gold); outline-offset: -4px; border-radius: 999px; }
.j-nav__short { display: none; }
.j-nav__ink {
  position: absolute;
  left: 0;
  bottom: 6px;
  width: 100px;
  height: 1px;
  transform-origin: 0 50%;
  opacity: 0;
  pointer-events: none;
  transition: transform .8s var(--ease), background-color .8s ease, opacity .5s ease;
}

/* Phones: a slim bar along the bottom, all five pages side by side under short names. */
@media (max-width: 720px) {
  body { --nav-h: 47px; }
  #journey { touch-action: pan-y pinch-zoom; } /* as on the event pages: sideways swipes change page, not browser history */
  .j-nav {
    top: auto;
    bottom: 0;
    left: 0;
    right: 0;
    box-sizing: border-box;
    max-width: none;
    padding: 0 0 env(safe-area-inset-bottom, 0px);
    border: 0;
    border-top: 1px solid rgba(255, 248, 238, .42);
    border-radius: 0;
    background: rgba(18, 10, 5, .34); /* the smoky glass of the video controls (video-controls.css) */
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    box-shadow: none;
    transform: translateY(100%);
  }
  .j-nav.is-shown { transform: none; }
  .j-nav__list { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px; padding: 7px 8px; }
  .j-nav__link, .j-nav__link:hover {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    height: 32px;
    padding: 0 3px;
    border: 1px solid rgba(255, 248, 238, .42);
    border-radius: 999px;
    background: transparent; /* the bar's glass shows through, at the same density as the controls */
    font: 600 clamp(8px, 2.4vw, 9px)/1 "Cinzel", "Italiana", Georgia, serif;
    letter-spacing: .02em;
    white-space: nowrap;
    text-transform: uppercase;
    color: #FFF8EE;
    transition: background-color .4s ease, border-color .4s ease, color .4s ease;
  }
  .j-nav__link.is-active, .j-nav__link.is-active:hover { border-color: rgba(217, 165, 91, .9); background: rgba(217, 165, 91, .32); color: #FFF8EE; }
  .j-nav__label { display: none; }
  .j-nav__short { display: block; }
  .j-nav__link::after { content: ""; position: absolute; inset: -7px 0; } /* a full-height touch area */
  .j-nav__link:focus-visible { outline: 2px solid #FFF8EE; outline-offset: -4px; }
  .j-nav__ink { display: none; }
  .j-page { padding: 0 18px; font-size: 16px; }
  .j-end {
    margin: 0 -18px;
    min-height: 380px;
    padding: 70px 18px calc(env(safe-area-inset-bottom, 0px) + 110px + var(--nav-h, 0px));
  }
}

/* Short, wide screens (landscape phones). */
@media (min-width: 721px) and (max-height: 520px) and (min-aspect-ratio: 1/1) {
  .j-nav { top: 8px; }
  .j-nav__link { padding: 10px 10px 9px; font-size: 10px; letter-spacing: .14em; }
}

/* ------------------------------------------------------- reduced motion --- */

#journey.is-reduced [data-reveal] { transform: none; transition: opacity .5s ease; }
#journey.is-reduced .j-word { opacity: 1; transition: none; }
#journey.is-reduced .j-photo *,
#journey.is-reduced .j-divider *,
#journey.is-reduced .j-photo__img { transform: none; }
#journey.is-reduced .j-photo__line,
#journey.is-reduced .j-arcade { clip-path: none; }
#journey.is-reduced .j-pillar *,
#journey.is-reduced .j-head-arch * { transition-duration: .01s !important; transition-delay: 0s !important; }
#journey.is-reduced .j-ground__img { transform: none; }
/* The events, one under another. */
#journey.is-reduced .j-sky--gold { opacity: .6; }
@media (prefers-reduced-motion: reduce) {
  .j-medallion__spin, .j-photo__lotus { animation: none !important; }
  .j-nav, .j-nav.is-shown, .j-nav__ink { transition-property: opacity, visibility; }
}

/* The longer event names (renamed 31-10-2026) in the top bar just above phone width: a little
   less tracking so all five fit. */
@media (min-width: 721px) and (max-width: 860px) {
  .j-nav__link { letter-spacing: .12em; padding-left: 9px; padding-right: 9px; }
}
