/* ═══════════════════════════════════════════════════════════════
   Първата година на Адриана
   Tokens lifted from the printed invitation: cream paper, blush,
   gold filigree, high-contrast serif.
   ═══════════════════════════════════════════════════════════════ */

:root {
  --paper:       #FDF8F4;
  --paper-warm:  #FAEFE8;
  --paper-deep:  #F6E5DC;
  --blush:       #E9A0B4;
  --blush-deep:  #D2748F;
  --blush-mist:  #F6D8DF;
  --gold:        #C39A5B;
  --gold-deep:   #A07D3E;
  --ink:         #6A4C42;
  --ink-soft:    #93756B;

  --display: "Playfair Display", Georgia, "Times New Roman", serif;
  --script:  "Marck Script", "Playfair Display", cursive;
  --body:    "Literata", Georgia, "Times New Roman", serif;

  --frame-gap: clamp(10px, 2.2vw, 26px);
  --gutter:    clamp(26px, 7vw, 76px);
  --player-h:  74px;
  --ease:      cubic-bezier(.22, .68, .36, 1);
}

* { box-sizing: border-box; }

/* The document itself is the snap container. Safari only snaps reliably on
   the root scroller, not on a nested overflow element. */
html {
  scroll-snap-type: y mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
}
html::-webkit-scrollbar { display: none; }

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-weight: 300;
  font-size: clamp(1rem, 0.94rem + 0.5vw, 1.16rem);
  line-height: 1.72;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Warm paper grain: two very soft radial washes, nothing more. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(120% 80% at 50% -10%, rgba(233,160,180,.16), transparent 62%),
    radial-gradient(90% 70% at 50% 110%, rgba(195,154,91,.13), transparent 60%);
}

a { color: var(--blush-deep); }

:focus-visible {
  outline: 2px solid var(--blush-deep);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ── Fixed keepsake frame ─────────────────────────────────────── */
.frame {
  position: fixed;
  inset: 0;
  z-index: 40;
  pointer-events: none;
  color: var(--gold);
}
.frame__rule { position: absolute; border-style: solid; }
.frame__rule--outer {
  inset: var(--frame-gap);
  border-width: 1px;
  border-color: rgba(195,154,91,.55);
}
.frame__rule--inner {
  inset: calc(var(--frame-gap) + 5px);
  border-width: 2px;
  border-color: rgba(233,160,180,.42);
}
.frame__corner {
  position: absolute;
  width: clamp(54px, 11vw, 116px);
  height: clamp(54px, 11vw, 116px);
  opacity: .8;
}
.frame__corner--tl { top: var(--frame-gap); left: var(--frame-gap); }
.frame__corner--tr { top: var(--frame-gap); right: var(--frame-gap); transform: scaleX(-1); }
.frame__corner--bl { bottom: var(--frame-gap); left: var(--frame-gap); transform: scaleY(-1); }
.frame__corner--br { bottom: var(--frame-gap); right: var(--frame-gap); transform: scale(-1); }

/* ── Timeline rail ────────────────────────────────────────────── */
.rail {
  position: fixed;
  z-index: 45;
  right: calc(var(--frame-gap) + 16px);
  top: 50%;
  transform: translateY(-50%);
}
.rail__line {
  position: absolute;
  left: 5px;
  top: 4px;
  bottom: 4px;
  width: 1px;
  background: linear-gradient(180deg, transparent, rgba(195,154,91,.5) 12%, rgba(195,154,91,.5) 88%, transparent);
}
.rail__list { list-style: none; margin: 0; padding: 0; display: grid; gap: clamp(9px, 1.5vh, 16px); }
.rail__btn {
  position: relative;
  display: block;
  width: 11px;
  height: 11px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}
.rail__dot {
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: rgba(195,154,91,.42);
  transition: all .45s var(--ease);
}
.rail__btn:hover .rail__dot { background: var(--blush); }
.rail__btn[aria-current="true"] .rail__dot {
  inset: 0;
  background: var(--blush);
  box-shadow: 0 0 0 3px rgba(233,160,180,.22);
}
.rail__tag {
  position: absolute;
  right: 20px;
  top: 50%;
  white-space: nowrap;
  font-family: var(--display);
  font-size: .74rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-soft);
  background: var(--paper);
  padding: 2px 8px;
  opacity: 0;
  translate: 6px -50%;
  transition: opacity .3s var(--ease), translate .3s var(--ease);
  pointer-events: none;
}
.rail__btn:hover .rail__tag,
.rail__btn:focus-visible .rail__tag,
.rail__btn[aria-current="true"] .rail__tag { opacity: 1; translate: 0 -50%; }

/* ── Progress hairline (phones) ───────────────────────────────── */
.progress {
  position: fixed;
  z-index: 45;
  left:   calc(var(--frame-gap) + 7px);
  right:  calc(var(--frame-gap) + 7px);
  bottom: calc(var(--frame-gap) + 7px);
  height: 1px;
  background: rgba(195,154,91,.22);
  display: none;
}
.progress__bar {
  display: block;
  height: 100%;
  width: 0;
  background: var(--blush);
  transition: width .5s var(--ease);
}

/* ── Slides ───────────────────────────────────────────────────── */
.slide {
  position: relative;
  min-height: 100dvh;
  scroll-snap-align: start;
  display: grid;
  grid-template-columns: minmax(0, 1fr);   /* never let content widen the track */
  place-items: center;
  padding: calc(var(--frame-gap) + 22px) var(--gutter) calc(var(--frame-gap) + 18px + var(--player-h));
}
.slide:nth-child(even) { background: linear-gradient(180deg, transparent, rgba(250,239,232,.7), transparent); }

.slide__inner {
  width: 100%;
  max-width: min(34rem, 100%);
  text-align: center;
}
.slide__inner--wide { max-width: min(44rem, 100%); }
.slide__inner--full { max-width: min(62rem, 100%); }

/* ── Type ─────────────────────────────────────────────────────── */
.eyebrow {
  margin: 0 0 clamp(12px, 2.2vh, 24px);
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(.68rem, .62rem + .3vw, .8rem);
  letter-spacing: .34em;
  text-transform: uppercase;
  color: var(--gold-deep);
}
.eyebrow::after {
  content: "";
  display: block;
  width: 46px;
  height: 1px;
  margin: 12px auto 0;
  background: var(--gold);
  transform-origin: center;
  scale: 0 1;
  transition: scale .8s var(--ease) .18s;
}
.slide.is-active .eyebrow::after { scale: 1 1; }

.head {
  margin: 0 0 clamp(14px, 2.6vh, 26px);
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(1.55rem, 1rem + 2.9vw, 2.7rem);
  line-height: 1.16;
  color: var(--blush-deep);
}
.body { margin: 0 0 clamp(11px, 1.9vh, 19px); color: var(--ink); }
.body--tight { margin-bottom: clamp(16px, 2.8vh, 28px); }
.body--close { margin-top: clamp(6px, 1.2vh, 12px); }
.body em { font-style: italic; color: var(--blush-deep); }
.body strong { font-weight: 400; color: var(--blush-deep); }

.script { font-family: var(--script); font-weight: 400; line-height: 1.28; }

.quote {
  margin: clamp(14px, 2.8vh, 30px) 0 0;
  font-size: clamp(1.3rem, .9rem + 2.1vw, 2rem);
  color: var(--blush-deep);
}
/* Set the shout in the serif: the script face is unreadable in caps. */
.shout {
  display: inline-block;
  margin-top: .18em;
  font-family: var(--display);
  font-weight: 600;
  font-size: .74em;
  letter-spacing: .06em;
  color: var(--blush-deep);
}
.lede {
  margin: 0 0 clamp(12px, 2.2vh, 22px);
  font-family: var(--display);
  font-size: clamp(1.14rem, 1rem + .85vw, 1.45rem);
  color: var(--ink);
}
.flourish {
  display: block;
  width: min(240px, 62%);
  height: auto;
  margin: clamp(14px, 2.4vh, 26px) auto;
  color: var(--gold);
  opacity: .85;
}
.hh { color: var(--blush); font-size: .92em; letter-spacing: 0; }

/* ── Slide 1 ──────────────────────────────────────────────────── */
.bow {
  display: block;
  width: clamp(92px, 17vw, 146px);
  height: auto;
  margin: 0 auto clamp(10px, 1.8vh, 20px);
  color: var(--blush);
}
.hero__hail {
  margin: 0;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(1.02rem, .88rem + .72vw, 1.28rem);
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.hero__names {
  margin: clamp(2px, .8vh, 8px) 0 0;
  font-size: clamp(2.2rem, 1.1rem + 6vw, 4.4rem);
  color: var(--blush);
  line-height: 1.12;
}
.slide--hero .flourish { margin-block: clamp(8px, 1.6vh, 18px); }
.slide--hero .lede { margin-bottom: clamp(9px, 1.6vh, 16px); }
.slide--hero .body { margin-bottom: clamp(7px, 1.3vh, 14px); }
.scroll-hint {
  margin-top: clamp(12px, 2.4vh, 26px);
  display: grid;
  justify-items: center;
  gap: 8px;
  font-family: var(--display);
  font-size: .72rem;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.scroll-hint svg {
  width: 15px;
  height: 21px;
  fill: none;
  stroke: var(--gold);
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  animation: nudge 2.4s var(--ease) infinite;
}
@keyframes nudge {
  0%, 62%, 100% { transform: translateY(0); opacity: .55; }
  30%           { transform: translateY(6px); opacity: 1; }
}

/* ── Framed photographs ───────────────────────────────────────── */
.photos {
  display: flex;
  justify-content: center;
  gap: clamp(9px, 2.2vw, 22px);
  margin: 0 0 clamp(14px, 2.4vh, 26px);
}
.photo {
  margin: 0;
  width: clamp(112px, 27vw, 200px);
  padding: 6px;
  background: var(--paper);
  border: 1px solid rgba(195,154,91,.5);
  box-shadow: 0 12px 30px -18px rgba(106,76,66,.5);
}
.photo img {
  display: block;
  width: 100%;
  height: clamp(136px, 30vw, 240px);
  object-fit: cover;
  object-position: 50% 35%;
}
.photo--a { rotate: -2.2deg; }
.photo--b { rotate: 2.4deg; margin-top: clamp(10px, 2.6vw, 26px); }
.photo--wide { width: clamp(160px, 36vw, 286px); rotate: 1deg; z-index: 1; }
.photo--wide img { height: clamp(120px, 25vw, 204px); object-position: 50% 42%; }

.photo--solo {
  width: clamp(150px, 34vw, 232px);
  margin: 0 auto clamp(12px, 2.2vh, 22px);
  rotate: -1.2deg;
}
.photo--solo img { height: clamp(112px, 22vw, 168px); object-position: 50% 38%; }

/* A row of small frames, used wherever the story needs pictures */
.armstrip, .photorow {
  display: grid;
  gap: clamp(6px, 1.1vw, 11px);
  margin: clamp(10px, 2vh, 22px) 0 clamp(12px, 2.2vh, 24px);
}
.armstrip { grid-template-columns: repeat(6, 1fr); }
.photorow { grid-template-columns: repeat(3, 1fr); max-width: 31rem; margin-inline: auto; }
.photorow .shot img { aspect-ratio: 1; }
.photorow--pair { grid-template-columns: repeat(2, 1fr); max-width: 26rem; margin-inline: auto; }

.arm, .shot {
  margin: 0;
  padding: 5px;
  background: var(--paper);
  border: 1px solid rgba(195,154,91,.45);
  box-shadow: 0 9px 22px -18px rgba(106,76,66,.55);
}
.arm img, .shot img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: 50% 38%;
}
.photorow--pair .shot img { aspect-ratio: 4 / 3; }
.arm:nth-child(odd),  .shot:nth-child(odd)  { rotate: -1.4deg; }
.arm:nth-child(even), .shot:nth-child(even) { rotate: 1.6deg; }

/* ── Lists ────────────────────────────────────────────────────── */
.duties, .menu {
  list-style: none;
  margin: 0 0 clamp(11px, 1.9vh, 19px);
  padding: 0;
  display: grid;
  gap: clamp(6px, 1.1vh, 12px);
  justify-content: center;
  text-align: left;
}
.menu { grid-template-columns: repeat(auto-fit, minmax(150px, max-content)); column-gap: clamp(22px, 5vw, 54px); }
.duties li, .menu li {
  display: grid;
  grid-template-columns: 1.7em 1fr;
  align-items: baseline;
  gap: .5em;
  font-family: var(--display);
  font-size: clamp(1.04rem, .94rem + .55vw, 1.26rem);
  color: var(--ink);
}
.duties__icon, .menu__icon { font-size: .92em; }

.learned {
  margin: clamp(9px, 1.8vh, 18px) 0;
  font-family: var(--display);
  font-style: italic;
  font-size: clamp(1.1rem, .96rem + 1vw, 1.5rem);
  line-height: 1.55;
  color: var(--blush-deep);
}

/* ── Slide 6 gallery ──────────────────────────────────────────── */
.gallery {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: clamp(132px, 24vw, 190px);
  gap: clamp(10px, 1.8vw, 18px);
  min-width: 0;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 4px clamp(4px, 3vw, 30px) 14px;
  margin-inline: calc(var(--gutter) * -0.5);
  scrollbar-width: none;
  overscroll-behavior-x: contain;
}
.gallery::-webkit-scrollbar { display: none; }
.month {
  scroll-snap-align: center;
  position: relative;
  margin: 0;
  padding: 6px;
  background: var(--paper);
  border: 1px solid rgba(195,154,91,.45);
  box-shadow: 0 10px 26px -20px rgba(106,76,66,.55);
}
.month img { display: block; width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.month__slot {
  /* Sits on top of the photo, not in place of it: a display:none image
     with loading="lazy" is never fetched, so the slot would never clear. */
  position: absolute;
  inset: 6px 6px auto 6px;
  display: grid;
  place-items: center;
  aspect-ratio: 3 / 4;
  background: repeating-linear-gradient(135deg, var(--paper-warm) 0 9px, var(--paper-deep) 9px 18px);
  color: var(--gold-deep);
  font-family: var(--script);
  font-size: 1.5rem;
}
.month__slot--soon {
  color: var(--blush-deep);
  font-size: 1.35rem;
  background: repeating-linear-gradient(135deg, var(--blush-mist) 0 9px, var(--paper-warm) 9px 18px);
}
.month.is-loaded .month__slot { display: none; }
.month__cap {
  margin: 7px 0 1px;
  font-family: var(--display);
  font-size: .7rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.caption {
  margin: clamp(5px, 1.2vh, 12px) 0 0;
  font-family: var(--display);
  font-size: .72rem;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

/* ── Slide 8 ──────────────────────────────────────────────────── */
.cross {
  display: block;
  width: clamp(26px, 5vw, 38px);
  height: auto;
  margin: 0 auto clamp(14px, 2.6vh, 26px);
  color: var(--gold);
}
.proclaim {
  margin: clamp(12px, 2.4vh, 26px) 0;
  font-size: clamp(1.9rem, 1.1rem + 4.4vw, 3.3rem);
  color: var(--blush);
}

/* ── Slide 9 invitation ───────────────────────────────────────── */
.date {
  margin: 0 0 clamp(18px, 3.6vh, 36px);
  font-family: var(--display);
  font-size: clamp(1.55rem, 1.05rem + 2.5vw, 2.4rem);
  letter-spacing: .06em;
  color: var(--gold-deep);
}
.plan {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: start;
  gap: clamp(12px, 3vw, 30px);
}
.plan__item { display: grid; justify-items: center; gap: 3px; }
.plan__icon {
  width: clamp(38px, 7vw, 54px);
  height: auto;
  margin-bottom: 10px;
  color: var(--blush);
}
.plan__time {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(1.1rem, .95rem + .8vw, 1.45rem);
  color: var(--ink);
}
.plan__title {
  margin: 0 0 6px;
  font-family: var(--display);
  font-size: clamp(.72rem, .66rem + .3vw, .84rem);
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--blush-deep);
}
.plan__where { margin: 0; font-size: clamp(.86rem, .8rem + .35vw, .98rem); line-height: 1.6; color: var(--ink-soft); }
.plan__map {
  margin-top: 8px;
  font-family: var(--display);
  font-size: .74rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  text-decoration: none;
  border-bottom: 1px solid rgba(210,116,143,.45);
  padding-bottom: 2px;
}
.plan__map:hover { color: var(--blush); border-color: var(--blush); }
.plan__divider { display: grid; justify-items: center; gap: 8px; align-self: stretch; }
.plan__divider span { width: 1px; flex: 1; background: rgba(233,160,180,.5); min-height: 34px; }
.plan__divider svg { width: 15px; height: 15px; fill: var(--blush); }

/* ── Slide 12 ─────────────────────────────────────────────────── */
.signoff {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(.9rem, .84rem + .35vw, 1.06rem);
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.signoff--sub { margin-top: 6px; font-size: .74rem; letter-spacing: .18em; }
.signature {
  margin: 2px 0 0;
  font-size: clamp(2.4rem, 1.3rem + 6.4vw, 4.6rem);
  color: var(--blush);
}
.petals { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.petal {
  position: absolute;
  top: -6%;
  font-size: 13px;
  color: var(--blush-mist);
  opacity: 0;
  animation: drift linear infinite;
}
@keyframes drift {
  0%   { transform: translateY(0) rotate(0deg);      opacity: 0; }
  12%  { opacity: .85; }
  100% { transform: translateY(112vh) rotate(280deg); opacity: 0; }
}

/* ── The song ─────────────────────────────────────────────────── */
.player {
  position: fixed;
  z-index: 46;
  left: 50%;
  translate: -50% 0;
  bottom: calc(var(--frame-gap) + 14px);
  width: min(26rem, calc(100vw - 2 * (var(--frame-gap) + 22px)));
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  padding: 8px 14px 8px 8px;
  border: 1px solid rgba(195,154,91,.5);
  border-radius: 999px;
  background: var(--paper);
  box-shadow: 0 14px 34px -22px rgba(106,76,66,.75);
}
.player__play {
  position: relative;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--blush-mist);
  cursor: pointer;
}
.player__ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid var(--blush);
  opacity: 0;
}
.player[data-playing="true"] .player__ring { animation: ripple 2.6s var(--ease) infinite; }
@keyframes ripple {
  0%   { transform: scale(1);   opacity: .6; }
  100% { transform: scale(1.75); opacity: 0; }
}
.player__icon { width: 17px; height: 17px; fill: var(--blush-deep); }
.player[data-playing="true"]  .player__icon--play,
.player[data-playing="false"] .player__icon--pause { display: none; }

.player__main { min-width: 0; display: grid; gap: 3px; }
.player__title {
  margin: 0;
  font-family: var(--script);
  font-size: 1.02rem;
  line-height: 1.1;
  color: var(--blush);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.player__seek {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 12px;
  margin: 0;
  background: transparent;
  cursor: pointer;
}
.player__seek:disabled { cursor: default; opacity: .55; }
.player__seek::-webkit-slider-runnable-track {
  height: 3px;
  border-radius: 2px;
  background: linear-gradient(to right, var(--blush) var(--p, 0%), rgba(195,154,91,.3) var(--p, 0%));
}
.player__seek::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 11px;
  height: 11px;
  margin-top: -4px;
  border-radius: 50%;
  background: var(--blush-deep);
}
.player__seek::-moz-range-track { height: 3px; border-radius: 2px; background: rgba(195,154,91,.3); }
.player__seek::-moz-range-progress { height: 3px; border-radius: 2px; background: var(--blush); }
.player__seek::-moz-range-thumb { width: 11px; height: 11px; border: 0; border-radius: 50%; background: var(--blush-deep); }

.player__time {
  margin: 0;
  font-family: var(--display);
  font-size: .7rem;
  letter-spacing: .06em;
  color: var(--ink-soft);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.player__nudge {
  position: absolute;
  left: 4px;
  bottom: calc(100% + 4px);
  display: grid;
  justify-items: start;
  pointer-events: none;
  transition: opacity .5s var(--ease), translate .5s var(--ease);
}
.player__nudge[hidden] { display: none; }
.player.is-quiet .player__nudge { opacity: 0; translate: 0 6px; }
.player__nudge-text {
  font-family: var(--script);
  font-size: 1.16rem;
  line-height: 1.1;
  color: var(--blush-deep);
  background: var(--paper);
  padding: 1px 8px;
  border-radius: 999px;
}
.player__nudge-arrow {
  width: 34px;
  height: 26px;
  margin-left: 14px;
  fill: none;
  stroke: var(--blush);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Rendered, but out of the way: YouTube will not play inside display:none. */
.player__stage {
  position: fixed;
  left: -9999px;
  top: 0;
  width: 320px;
  height: 180px;
  opacity: 0;
  pointer-events: none;
}

/* ── Reveal choreography ──────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
  transition-delay: calc(var(--i, 0) * 90ms);
}
.slide.is-active .reveal { opacity: 1; transform: none; }
.slide.is-active .photo--a { animation: settle-l .9s var(--ease) .18s both; }
.slide.is-active .photo--b { animation: settle-r .9s var(--ease) .3s both; }
@keyframes settle-l { from { rotate: 0deg; scale: .94; } to { rotate: -2.2deg; scale: 1; } }
@keyframes settle-r { from { rotate: 0deg; scale: .94; } to { rotate:  2.4deg; scale: 1; } }

/* ── Responsive ───────────────────────────────────────────────── */
@media (max-width: 780px) {
  .player { width: calc(100vw - 2 * (var(--frame-gap) + 14px)); }
}

@media (max-width: 640px) {
  .rail { display: none; }
  .progress { display: block; }
  .gallery { margin-inline: 0; padding-inline: 0; }
  .photos { flex-wrap: wrap; }
  .photo--wide { order: -1; width: min(78%, 260px); }
  .photo--wide img { height: clamp(120px, 34vw, 170px); }
  .armstrip { grid-template-columns: repeat(3, 1fr); }
  .arm img { aspect-ratio: 6 / 5; }   /* wider crops keep the slide one screen tall */
  .armstrip { margin-block: clamp(8px, 1.4vh, 16px); }
  .plan { grid-template-columns: 1fr; gap: clamp(18px, 4vh, 28px); }
  .plan__divider { grid-auto-flow: column; justify-content: center; align-items: center; }
  .plan__divider span { width: 46px; height: 1px; flex: none; min-height: 0; }
}

/* ── Short viewports: laptops at 600–760px, phones turned sideways ─── */
@media (max-height: 760px) {
  :root { --player-h: 66px; }
  .slide { padding-block: calc(var(--frame-gap) + 14px) calc(var(--frame-gap) + 12px + var(--player-h)); }
  .eyebrow { margin-bottom: clamp(8px, 1.6vh, 16px); }
  .eyebrow::after { margin-top: 8px; }
  .head { font-size: clamp(1.4rem, .9rem + 2.2vw, 2.15rem); margin-bottom: clamp(8px, 1.8vh, 18px); }
  .body { margin-bottom: clamp(7px, 1.3vh, 13px); }
  .flourish { margin-block: clamp(8px, 1.5vh, 16px); }

  .bow { width: clamp(72px, 11vw, 108px); margin-bottom: clamp(6px, 1.2vh, 14px); }
  .hero__names { font-size: clamp(1.9rem, 1rem + 4.6vw, 3.4rem); }
  .scroll-hint { margin-top: clamp(8px, 1.6vh, 18px); }

  .photos { margin-bottom: clamp(10px, 2vh, 18px); }
  .photo { width: clamp(100px, 16vw, 150px); }
  .photo img { height: clamp(120px, 21vh, 168px); }
  .photo--wide { width: clamp(142px, 25vw, 210px); }
  .photo--wide img { height: clamp(100px, 17vh, 144px); }
  .photo--solo { width: clamp(130px, 24vw, 190px); margin-bottom: clamp(8px, 1.6vh, 16px); }
  .photo--solo img { height: clamp(94px, 17vh, 138px); }
  .armstrip, .photorow { gap: 6px; margin-block: clamp(8px, 1.6vh, 16px); }
  .arm img { aspect-ratio: 1; }
  .shot img { aspect-ratio: 1; }

  .duties, .menu { gap: clamp(4px, .9vh, 9px); }
  .duties li, .menu li { font-size: clamp(.96rem, .88rem + .4vw, 1.12rem); }
  .learned { font-size: clamp(1.02rem, .9rem + .8vw, 1.3rem); line-height: 1.45; }
  .quote { font-size: clamp(1.12rem, .85rem + 1.6vw, 1.65rem); margin-top: clamp(10px, 2vh, 20px); }

  .gallery { grid-auto-columns: clamp(100px, 14vw, 140px); padding-bottom: 8px; }
  .month__slot { font-size: 1.15rem; }

  .cross { width: clamp(22px, 3.4vw, 30px); margin-bottom: clamp(8px, 1.8vh, 18px); }
  .proclaim { font-size: clamp(1.6rem, 1rem + 3.2vw, 2.6rem); margin-block: clamp(8px, 1.8vh, 18px); }

  .date { font-size: clamp(1.35rem, 1rem + 1.8vw, 1.95rem); margin-bottom: clamp(12px, 2.6vh, 26px); }
  .plan__icon { width: clamp(28px, 3.8vw, 40px); margin-bottom: 6px; }
  .plan__where { line-height: 1.5; }

  .signature { font-size: clamp(2rem, 1.1rem + 4.6vw, 3.4rem); }
}

/* ── Very short viewports: a phone held sideways ─────────────────── */
@media (max-height: 500px) {
  :root { --frame-gap: 8px; --gutter: clamp(20px, 5vw, 44px); --player-h: 58px; }

  .slide { padding-block: 14px calc(14px + var(--player-h)); }
  .frame__corner { width: clamp(36px, 6vw, 60px); height: clamp(36px, 6vw, 60px); }
  body { font-size: .92rem; line-height: 1.56; }

  .eyebrow { margin-bottom: 7px; font-size: .62rem; }
  .eyebrow::after { margin-top: 6px; width: 34px; }
  .head { font-size: clamp(1.2rem, .9rem + 1.6vw, 1.7rem); margin-bottom: 8px; }
  .body { margin-bottom: 6px; }
  .flourish { margin-block: 7px; width: min(170px, 48%); }

  .bow { width: 58px; margin-bottom: 4px; }
  .hero__hail { font-size: .84rem; letter-spacing: .24em; }
  .hero__names { font-size: clamp(1.55rem, 1rem + 3.2vw, 2.5rem); }
  .lede { font-size: 1rem; margin-bottom: 7px; }
  .scroll-hint { display: none; }

  .photos { margin-bottom: 9px; }
  .photo { width: clamp(78px, 11vw, 110px); padding: 4px; }
  .photo img { height: clamp(88px, 24vh, 122px); }
  .photo--solo img { height: clamp(80px, 22vh, 116px); }
  .armstrip, .photorow { gap: 4px; margin-block: 6px; }
  .arm { padding: 3px; }
  .arm img, .shot img { aspect-ratio: 5 / 4; }

  .duties, .menu { gap: 2px; }
  .duties li, .menu li { font-size: .94rem; }
  .learned { font-size: .96rem; line-height: 1.4; margin-block: 5px; }
  .quote { font-size: 1.05rem; margin-top: 7px; }

  .gallery { grid-auto-columns: 90px; padding-bottom: 6px; }
  .month__slot { font-size: .95rem; }
  .month__cap { font-size: .58rem; margin-top: 4px; }
  .caption { display: none; }

  .cross { width: 19px; margin-bottom: 7px; }
  .proclaim { font-size: clamp(1.25rem, 1rem + 1.9vw, 1.85rem); margin-block: 7px; }

  .date { font-size: 1.22rem; margin-bottom: 9px; }
  .plan__icon { width: 25px; margin-bottom: 3px; }
  .plan__time { font-size: 1rem; }
  .plan__where { font-size: .8rem; line-height: 1.45; }
  .plan__map { margin-top: 4px; font-size: .66rem; }

  .signature { font-size: clamp(1.6rem, 1rem + 3.2vw, 2.5rem); }
  .signoff { font-size: .8rem; }

  .player { padding: 6px 12px 6px 6px; gap: 9px; }
  .player__play { width: 32px; height: 32px; }
  .player__title { font-size: .92rem; }
  .player__nudge-text { font-size: 1rem; }
  .player__nudge-arrow { height: 18px; }
}

/* Below ~440px of height the strip would be postage stamps. Drop it and let
   the list carry the slide; the same photos are in the gallery anyway. */
@media (max-height: 440px) {
  .armstrip { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { transition-duration: .01ms; transform: none; }
  .eyebrow::after { transition-duration: .01ms; }
  .scroll-hint svg, .petal { animation: none; }
  .slide.is-active .photo--a, .slide.is-active .photo--b { animation: none; }
  .player[data-playing="true"] .player__ring { animation: none; opacity: .5; }
}

@media print {
  html { scroll-snap-type: none; }
  .slide { min-height: auto; page-break-after: always; padding-bottom: 2rem; }
  .rail, .progress, .scroll-hint, .petals, .player { display: none; }
  .reveal { opacity: 1; transform: none; }
}
