/* ============================================================
   Честит имен ден, Аля
   Cinematic Mediterranean editorial — mobile-first vertical reels
   ============================================================ */

/* ---------- 1. Tokens ---------- */

:root {
  --abyss: #04141d;
  --deep: #0a2b3d;
  --sea: #12556e;
  --turquoise: #3fc2c9;
  --aqua: #7fe0dd;
  --foam: #f5f2ec;
  --sand: #e2d2bb;
  --gold: #d8b26a;

  --ink: var(--foam);
  --ink-soft: rgb(245 242 236 / 0.72);
  --ink-faint: rgb(245 242 236 / 0.46);

  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Manrope", -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --frame: 480px;

  /* One source of truth for slide height: the scroll container and its
     children must agree exactly, or the last rows of a slide become
     unreachable and their reveals never fire. */
  --vph: 100vh;
  --slide-h: var(--vph);

  /* Safe, comfortable gutters that respect the notch and home indicator */
  --gutter: clamp(1.5rem, 7vw, 2.25rem);
  --pad-top: max(clamp(1.75rem, 5svh, 3rem), env(safe-area-inset-top));
  --pad-bottom: max(clamp(2rem, 6svh, 3.5rem), calc(env(safe-area-inset-bottom) + 1.5rem));
}

/* ---------- 2. Reset & shell ---------- */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

@supports (height: 100svh) {
  :root {
    --vph: 100svh;
  }
}

html,
body {
  overflow: hidden;
  background: var(--abyss);
}

body {
  display: flex;
  align-items: center;
  justify-content: center;
  height: var(--vph);
  font-family: var(--sans);
  font-weight: 300;
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  text-rendering: optimizeLegibility;
}

img,
svg {
  display: block;
  max-width: 100%;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* ---------- 3. Scroll container ---------- */

.reels {
  position: relative;
  z-index: 1;
  flex: 0 0 auto;
  width: 100%;
  max-width: var(--frame);
  height: var(--slide-h);
  overflow-x: hidden;
  overflow-y: scroll;
  scroll-snap-type: y mandatory;
  scroll-behavior: smooth;
  overscroll-behavior-y: contain;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
  scrollbar-width: none;
}

.reels::-webkit-scrollbar {
  display: none;
}

.slide {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: var(--slide-h);
  overflow: hidden;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  background: var(--abyss);
  isolation: isolate;
}

.slide__body {
  position: relative;
  z-index: 3;
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: var(--pad-top) var(--gutter) var(--pad-bottom);
}

.slide__body--center {
  justify-content: center;
  gap: clamp(0.7rem, 2svh, 1.15rem);
}

.slide__body--end {
  justify-content: flex-end;
  gap: clamp(0.6rem, 1.6svh, 1rem);
}

/* Insurance for the headline where it crosses the brightest water */
.slide--hero .slide__body {
  /* Extra room at the foot so the swipe hint gets its own air */
  padding-bottom: calc(var(--pad-bottom) + 2.5rem);
  text-shadow: 0 1px 24px rgb(3 16 24 / 0.6), 0 1px 3px rgb(3 16 24 / 0.45);
}

.slide--hero .lede {
  max-width: 34ch;
}

/* ---------- 4. Media layers & parallax ---------- */

/* The overflow only needs to exceed the parallax travel; any more than that
   and the bottom of the photograph gets pushed off screen. */
.slide__media {
  position: absolute;
  inset: -5% 0;
  z-index: 1;
  /* Clips the slow zoom, which would otherwise spill past the gradient that
     covers this box and leave a bright unveiled sliver at the edge. */
  overflow: hidden;
  will-change: transform;
}

.slide__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Biased downward: the treetops matter less than the turquoise water, which
   sits in the bottom half of this photograph. */
.slide--hero .slide__media {
  inset: -12% 0 -6%;
}

/* Lets the water keep its turquoise under the scrim */
.slide--hero .slide__img {
  filter: saturate(1.18) contrast(1.04);
}

/* A landscape photo cropped to a tall phone screen loses most of its frame,
   so wide images sit in a band that fades into the background instead. */
.slide__media--band {
  inset: -14% 0 auto 0;
  height: 62%;
}

.slide__media--band::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgb(4 20 29 / 0.15) 0%, rgb(4 20 29 / 0) 34%, rgb(4 20 29 / 0.72) 76%, var(--abyss) 100%);
}

.veil {
  position: absolute;
  inset: 0;
  z-index: 2;
}

/* Tinted with sea blue rather than black, so the water still reads as water
   through the scrim that keeps the headline legible. */
.veil--hero {
  background:
    radial-gradient(120% 60% at 50% 6%, rgb(63 194 201 / 0.16) 0%, rgb(4 20 29 / 0) 58%),
    linear-gradient(
      180deg,
      rgb(4 20 29 / 0.46) 0%,
      rgb(4 20 29 / 0.08) 24%,
      rgb(8 46 64 / 0.14) 46%,
      rgb(7 40 56 / 0.52) 70%,
      rgb(4 22 32 / 0.88) 88%,
      var(--abyss) 100%
    );
}

/* The white cabana frames at the foot of this photo are near-white, so the
   small type needs more weight here than elsewhere. */
.slide--hero .whisper,
.slide--hero .hint__label {
  color: rgb(245 242 236 / 0.82);
}

/* Blurred light spots for the photo-free slides */
.glow {
  position: absolute;
  z-index: 1;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.68;
  pointer-events: none;
}

.glow--a {
  top: -14%;
  left: -22%;
  width: 74%;
  aspect-ratio: 1;
  background: radial-gradient(circle, rgb(63 194 201 / 0.5), transparent 68%);
  animation: drift 22s var(--ease) infinite alternate;
}

.glow--b {
  right: -26%;
  bottom: -10%;
  width: 80%;
  aspect-ratio: 1;
  background: radial-gradient(circle, rgb(18 85 110 / 0.85), transparent 68%);
  animation: drift 28s var(--ease) infinite alternate-reverse;
}

.glow--c {
  top: 30%;
  left: 50%;
  width: 120%;
  aspect-ratio: 1;
  translate: -50% 0;
  background: radial-gradient(circle, rgb(18 85 110 / 0.55), transparent 62%);
}

/* ---------- 5. Typography ---------- */

.display {
  font-family: var(--serif);
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

.display em {
  font-style: italic;
  color: var(--sand);
}

.display--xl {
  font-size: clamp(2.05rem, 11vw, 3rem);
}

.display--l {
  font-size: clamp(1.9rem, 9.5vw, 2.7rem);
}

.display--m {
  font-size: clamp(1.45rem, 6.8vw, 2rem);
  line-height: 1.22;
}

.eyebrow {
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--ink-faint);
  text-transform: uppercase;
  letter-spacing: 0.3em;
}

.lede {
  max-width: 26ch;
  font-size: clamp(0.94rem, 4vw, 1.05rem);
  color: var(--ink-soft);
}

.lede--tight {
  max-width: 30ch;
  font-size: clamp(0.85rem, 3.6vw, 0.95rem);
  line-height: 1.55;
}

.prose {
  max-width: 30ch;
  font-size: clamp(1rem, 4.4vw, 1.15rem);
  font-weight: 300;
  line-height: 1.62;
  color: var(--ink-soft);
  text-wrap: pretty;
}

.prose--accent {
  font-family: var(--serif);
  font-size: clamp(1.25rem, 5.6vw, 1.5rem);
  font-style: italic;
  line-height: 1.34;
  color: var(--sand);
}

.signature {
  font-family: var(--serif);
  font-size: clamp(1.6rem, 7.6vw, 2.1rem);
  font-style: italic;
  color: var(--sand);
}

.whisper {
  font-size: 0.72rem;
  color: var(--ink-faint);
  letter-spacing: 0.06em;
}

.hairline {
  width: clamp(3rem, 18vw, 4.5rem);
  height: 1px;
  background: linear-gradient(90deg, var(--gold), rgb(216 178 106 / 0));
}

.hairline--center {
  margin-inline: auto;
  background: linear-gradient(90deg, rgb(216 178 106 / 0), var(--gold), rgb(216 178 106 / 0));
}

.slide__body--center > * {
  margin-inline: auto;
  text-align: center;
}

.heart-inline {
  display: inline-block;
  animation: pulse 2.6s ease-in-out infinite;
}

.veil--reveal {
  background:
    radial-gradient(90% 44% at 50% 4%, rgb(63 194 201 / 0.12) 0%, rgb(4 20 29 / 0) 62%),
    linear-gradient(180deg, rgb(4 20 29 / 0.34) 0%, rgb(4 20 29 / 0.06) 22%, rgb(4 20 29 / 0.3) 42%, var(--abyss) 62%);
}

/* ---------- 6. Boarding pass ---------- */

.slide--reveal .slide__body {
  justify-content: flex-end;
  gap: clamp(0.85rem, 2.4svh, 1.4rem);
}

.pass {
  --pass-pad: clamp(1.1rem, 4.5vw, 1.5rem);

  width: 100%;
  max-width: 21rem;
  padding: var(--pass-pad);
  overflow: hidden;
  border: 1px solid rgb(245 242 236 / 0.16);
  border-radius: 20px;
  background: linear-gradient(155deg, rgb(245 242 236 / 0.13), rgb(245 242 236 / 0.04));
  backdrop-filter: blur(18px) saturate(1.2);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
  box-shadow: 0 24px 60px -24px rgb(0 0 0 / 0.75), inset 0 1px 0 rgb(245 242 236 / 0.16);
  text-align: center;
}

.pass__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid rgb(216 178 106 / 0.28);
}

.pass__tag {
  font-size: 0.62rem;
  font-weight: 500;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.26em;
}

.pass__seal {
  font-size: 0.9rem;
  color: var(--gold);
  opacity: 0.75;
}

.pass__dates {
  padding: clamp(0.8rem, 3.4vw, 1.1rem) 0 clamp(0.6rem, 2.6vw, 0.9rem);
  font-family: var(--serif);
  font-size: clamp(1.85rem, 9vw, 2.5rem);
  font-weight: 400;
  line-height: 1;
  color: var(--foam);
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.pass__dates .ch {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.45em);
}

.pass__dates.is-set .ch {
  animation: drop 0.6s var(--ease) both;
  animation-delay: calc(0.45s + var(--i) * 0.04s);
}

.pass__perf {
  position: relative;
  height: 1px;
  margin-inline: calc(var(--pass-pad) * -1);
  background-image: linear-gradient(90deg, rgb(245 242 236 / 0.34) 0 6px, transparent 6px 12px);
  background-size: 12px 1px;
}

.pass__perf::before,
.pass__perf::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--abyss);
  translate: 0 -50%;
}

.pass__perf::before {
  left: -7px;
}

.pass__perf::after {
  right: -7px;
}

.pass__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding-top: clamp(0.75rem, 3vw, 1rem);
}

.pass__cell + .pass__cell {
  border-left: 1px solid rgb(245 242 236 / 0.12);
}

.pass__cell dt {
  font-size: 0.6rem;
  color: var(--ink-faint);
  text-transform: uppercase;
  letter-spacing: 0.2em;
}

.pass__cell dd {
  font-family: var(--serif);
  font-size: clamp(1.15rem, 5.4vw, 1.45rem);
  line-height: 1.3;
  color: var(--sand);
}

.pass__home {
  margin-top: clamp(0.7rem, 2.8vw, 1rem);
  padding-top: clamp(0.6rem, 2.4vw, 0.85rem);
  border-top: 1px solid rgb(245 242 236 / 0.12);
  font-family: var(--serif);
  font-size: clamp(1.05rem, 4.8vw, 1.3rem);
  font-style: italic;
  color: var(--aqua);
}

/* ---------- 7. Slide 5 — framed aerial + chips ---------- */

.frame {
  position: relative;
  width: 100%;
  max-width: 22rem;
  padding: 7px;
  border: 1px solid rgb(245 242 236 / 0.14);
  border-radius: 16px;
  background: rgb(245 242 236 / 0.05);
  box-shadow: 0 26px 54px -26px rgb(0 0 0 / 0.8);
}

.frame__img {
  width: 100%;
  height: auto;
  border-radius: 10px;
}

.frame__cap {
  padding-top: 0.6rem;
  font-size: 0.68rem;
  color: var(--ink-faint);
  letter-spacing: 0.1em;
}

.pin {
  position: absolute;
  top: 32%;
  left: 46%;
  width: 12px;
  height: 12px;
}

.pin__dot,
.pin__ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
}

.pin__dot {
  background: var(--gold);
  box-shadow: 0 0 0 2px rgb(4 20 29 / 0.5), 0 0 14px 3px rgb(216 178 106 / 0.85);
}

.pin__ring {
  border: 1px solid var(--gold);
  animation: ripple 2.8s var(--ease) infinite;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  list-style: none;
}

.chip {
  padding: 0.5rem 0.95rem;
  border: 1px solid rgb(127 224 221 / 0.32);
  border-radius: 999px;
  background: rgb(63 194 201 / 0.09);
  font-size: 0.78rem;
  font-weight: 400;
  color: var(--aqua);
  letter-spacing: 0.09em;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.chip--gold {
  border-color: rgb(216 178 106 / 0.45);
  background: rgb(216 178 106 / 0.11);
  color: var(--gold);
}

/* ---------- 8. Slide 6 — collage ---------- */

.collage {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: repeat(3, 1fr);
  gap: 8px;
  width: 100%;
  height: clamp(15rem, 44svh, 24rem);
  max-width: 24rem;
}

.tile {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  background: var(--deep);
  box-shadow: 0 14px 30px -18px rgb(0 0 0 / 0.85);
  transition: transform 0.5s var(--ease);
}

.tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* The bed sits left of centre, so a centred crop would frame the empty
   stairwell instead. */
.tile__img--bed {
  object-position: 26% 60%;
}

.tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgb(4 20 29 / 0.78) 100%);
}

.tile__label {
  position: absolute;
  bottom: 0.5rem;
  left: 0.6rem;
  z-index: 2;
  font-size: 0.66rem;
  color: var(--ink-soft);
  letter-spacing: 0.12em;
}

.tile:active {
  transform: scale(0.97);
}

.tile--tall {
  grid-column: 1;
  grid-row: 1 / 3;
}

.tile--wide {
  grid-column: 1 / 3;
  grid-row: 3;
}

/* ---------- 9. Slide 7 — finale ---------- */

.beat {
  width: 26px;
  height: auto;
  fill: var(--gold);
  opacity: 0.85;
}

.beat.is-in {
  animation: pulse 2.4s ease-in-out 2.4s infinite;
}

.hearts {
  position: absolute;
  inset: 0;
  z-index: 2;
  overflow: hidden;
  pointer-events: none;
}

.hearts span {
  position: absolute;
  bottom: -6%;
  font-size: 0.85rem;
  opacity: 0;
  animation: rise 14s linear infinite;
}

.restart {
  margin-top: clamp(0.6rem, 2.4svh, 1.2rem);
  padding: 0.85rem 1.6rem;
  min-height: 44px;
  border: 1px solid rgb(245 242 236 / 0.2);
  border-radius: 999px;
  font-size: 0.74rem;
  color: var(--ink-soft);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  transition: border-color 0.4s var(--ease), color 0.4s var(--ease);
}

.restart:active {
  border-color: var(--gold);
  color: var(--gold);
}

/* ---------- 10. Chrome — rail, hint, grain, ambient ---------- */

.rail {
  position: fixed;
  top: 50%;
  right: max(0.35rem, env(safe-area-inset-right));
  z-index: 20;
  display: flex;
  flex-direction: column;
  align-items: center;
  translate: 0 -50%;
}

.rail__dot {
  display: grid;
  place-items: center;
  width: 30px;
  height: 34px;
}

.rail__dot::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 999px;
  /* The shadow is what keeps these readable where a slide runs bright */
  background: rgb(245 242 236 / 0.42);
  box-shadow: 0 0 5px rgb(3 16 24 / 0.55);
  transition: height 0.45s var(--ease), background-color 0.45s var(--ease);
}

.rail__dot[aria-current="true"]::before {
  height: 18px;
  background: var(--gold);
}

.hint {
  position: absolute;
  bottom: max(1rem, calc(env(safe-area-inset-bottom) + 0.4rem));
  left: 50%;
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  translate: -50% 0;
  transition: opacity 0.7s var(--ease), translate 0.7s var(--ease);
}

.hint.is-gone {
  opacity: 0;
  translate: -50% 12px;
}

.hint__arrow {
  width: 9px;
  height: 9px;
  border-top: 1px solid var(--ink-soft);
  border-right: 1px solid var(--ink-soft);
  rotate: -45deg;
  animation: nudge 2.2s var(--ease) infinite;
}

.hint__label {
  font-size: 0.6rem;
  color: var(--ink-faint);
  text-transform: uppercase;
  letter-spacing: 0.24em;
}

.grain {
  position: fixed;
  inset: 0;
  z-index: 30;
  opacity: 0.045;
  mix-blend-mode: overlay;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Only seen on wide screens, behind the centred phone frame */
.ambient {
  position: fixed;
  inset: 0;
  z-index: 0;
  display: none;
  background: var(--abyss);
}

/* ---------- 11. Lightbox ---------- */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: max(2.5rem, env(safe-area-inset-top)) 1.25rem var(--pad-bottom);
  background: rgb(2 11 16 / 0.94);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  opacity: 0;
  transition: opacity 0.4s var(--ease);
}

.lightbox[hidden] {
  display: none;
}

.lightbox.is-open {
  opacity: 1;
}

.lightbox__img {
  max-width: 100%;
  max-height: 70svh;
  border-radius: 12px;
  object-fit: contain;
  box-shadow: 0 30px 70px -30px rgb(0 0 0 / 0.9);
  transform: scale(0.96);
  transition: transform 0.5s var(--ease);
}

.lightbox.is-open .lightbox__img {
  transform: scale(1);
}

.lightbox__cap {
  max-width: 30ch;
  font-size: 0.82rem;
  color: var(--ink-soft);
  text-align: center;
}

.lightbox__close {
  position: absolute;
  top: max(0.75rem, env(safe-area-inset-top));
  right: 0.75rem;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgb(245 242 236 / 0.1);
  font-size: 1.5rem;
  line-height: 1;
  color: var(--foam);
}

/* ---------- 12. Reveal states ---------- */

[data-reveal] {
  opacity: 0;
  translate: 0 20px;
  transition:
    opacity 1s var(--ease) var(--d, 0s),
    translate 1s var(--ease) var(--d, 0s),
    filter 1s var(--ease) var(--d, 0s);
  filter: blur(6px);
}

[data-reveal].is-in {
  opacity: 1;
  translate: none;
  filter: none;
}

.chip[data-reveal] {
  translate: 0 12px;
}

/* ---------- 13. Keyframes ---------- */

/* Cover already fills the height exactly, so the drift is horizontal: it pans
   across the width the crop discards instead of eating into the photo's top
   and bottom. */
@keyframes kenburns {
  from {
    transform: scale(1.03) translate3d(-1.4%, 0, 0);
  }
  to {
    transform: scale(1.09) translate3d(1.4%, 0, 0);
  }
}

.kenburns {
  animation: kenburns 24s var(--ease) infinite alternate;
}

.kenburns--slow {
  animation-duration: 34s;
}

@keyframes drift {
  from {
    transform: translate3d(0, 0, 0) scale(1);
  }
  to {
    transform: translate3d(8%, -6%, 0) scale(1.14);
  }
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
  }
  18% {
    transform: scale(1.16);
  }
  36% {
    transform: scale(1);
  }
  54% {
    transform: scale(1.1);
  }
}

@keyframes drop {
  from {
    opacity: 0;
    transform: translateY(0.45em);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes ripple {
  0% {
    opacity: 0.9;
    transform: scale(1);
  }
  70%,
  100% {
    opacity: 0;
    transform: scale(4.2);
  }
}

@keyframes nudge {
  0%,
  100% {
    opacity: 0.45;
    transform: translateY(3px);
  }
  50% {
    opacity: 1;
    transform: translateY(-3px);
  }
}

@keyframes rise {
  0% {
    opacity: 0;
    transform: translate3d(0, 0, 0) scale(0.7);
  }
  12% {
    opacity: 0.75;
  }
  80% {
    opacity: 0.4;
  }
  100% {
    opacity: 0;
    transform: translate3d(var(--dx, 12px), calc(var(--slide-h) * -1.05), 0) scale(1.1);
  }
}

/* ---------- 14. Wide screens: centred phone frame ---------- */

@media (min-width: 561px) {
  .ambient {
    display: block;
    background:
      radial-gradient(60% 50% at 50% 0%, rgb(18 85 110 / 0.5), transparent 70%),
      radial-gradient(50% 40% at 20% 100%, rgb(63 194 201 / 0.16), transparent 70%),
      var(--abyss);
  }

  :root {
    /* Breathing room around the frame comes out of the slide height itself,
       so container and slides stay the same size. */
    --slide-h: calc(var(--vph) - 3rem);
  }

  .reels {
    border-radius: 28px;
    box-shadow: 0 40px 110px -30px rgb(0 0 0 / 0.85), 0 0 0 1px rgb(245 242 236 / 0.07);
  }

  .slide:first-child {
    border-radius: 28px 28px 0 0;
  }

  .slide:last-child {
    border-radius: 0 0 28px 28px;
  }

  .rail {
    right: auto;
    left: 50%;
    translate: calc(var(--frame) / 2 + 0.6rem) -50%;
  }
}

/* ---------- 15. Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  .reels {
    scroll-behavior: auto;
  }

  /* Redeclaring the shorthand drops the staggered delay: someone who asked for
     less motion should not be made to wait seconds for the words. */
  [data-reveal] {
    transition: opacity 0.3s linear;
    translate: none;
    filter: none;
  }

  .kenburns,
  .glow--a,
  .glow--b,
  .heart-inline,
  .pin__ring,
  .hint__arrow,
  .beat.is-in,
  .hearts span {
    animation: none !important;
  }

  /* animation: none is essential — the fill mode would otherwise hold these
     characters at opacity 0 through their delay. */
  .pass__dates .ch,
  .pass__dates.is-set .ch {
    animation: none;
    opacity: 1;
    transform: none;
  }

  .hearts {
    display: none;
  }
}
