@charset "UTF-8";

/* =========================================================
   For Laura — romantic purple slideshow
   ========================================================= */

/* ---------- tokens ---------- */
:root {
  --plum-950: #0b0413;
  --plum-900: #150821;
  --plum-850: #1b0b2b;
  --plum-800: #241038;

  --violet-200: #e9d5ff;
  --violet-300: #d8b4fe;
  --violet-400: #c084fc;
  --violet-500: #a855f7;
  --fuchsia-300: #f0abfc;

  --text: #f5ecfd;
  --text-dim: #c6aedb;
  --line: rgba(216, 180, 254, 0.16);

  --glass: linear-gradient(
    165deg,
    rgba(255, 255, 255, 0.078),
    rgba(255, 255, 255, 0.018) 45%,
    rgba(168, 85, 247, 0.075)
  );

  --shadow: 0 26px 70px -24px rgba(0, 0, 0, 0.9),
    0 1px 0 rgba(255, 255, 255, 0.06) inset;

  --radius: 26px;
  --font-display: "Iowan Old Style", "Palatino Linotype", Palatino,
    "Book Antiqua", Georgia, "Times New Roman", serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, "Noto Sans", sans-serif;

  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
  --head-h: 4.35rem;
  --hud-h: 8.5rem;
}

/* ---------- reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

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

body {
  margin: 0;
  overflow: hidden;
  overscroll-behavior: none;
  background: var(--plum-950);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

[hidden] {
  display: none !important;
}

::selection {
  background: rgba(240, 171, 252, 0.35);
  color: #fff;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.noscript {
  position: fixed;
  inset: auto 1rem 1rem;
  margin: 0;
  padding: 1rem 1.25rem;
  border-radius: 16px;
  background: var(--plum-800);
  border: 1px solid var(--line);
  text-align: center;
  z-index: 99;
}

/* ---------- ambience ---------- */
.ambience {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  background:
    radial-gradient(120% 90% at 50% -20%, #2a1140 0%, transparent 55%),
    radial-gradient(90% 70% at 110% 110%, #330f3d 0%, transparent 60%),
    linear-gradient(180deg, #150821 0%, #0b0413 100%);
}

.glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.5;
  animation: drift 22s ease-in-out infinite alternate;
}

.glow--1 {
  width: 46vmax;
  height: 46vmax;
  top: -16vmax;
  left: -12vmax;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.55), transparent 68%);
}

.glow--2 {
  width: 40vmax;
  height: 40vmax;
  bottom: -18vmax;
  right: -10vmax;
  background: radial-gradient(circle, rgba(240, 171, 252, 0.34), transparent 68%);
  animation-delay: -7s;
}

.glow--3 {
  width: 34vmax;
  height: 34vmax;
  top: 38%;
  left: 55%;
  background: radial-gradient(circle, rgba(126, 34, 206, 0.34), transparent 70%);
  animation-delay: -14s;
}

@keyframes drift {
  from {
    transform: translate3d(0, 0, 0) scale(1);
  }
  to {
    transform: translate3d(3vmax, -2vmax, 0) scale(1.12);
  }
}

.stars span {
  position: absolute;
  display: block;
  width: var(--s);
  height: var(--s);
  border-radius: 50%;
  background: #f7ecff;
  box-shadow: 0 0 6px rgba(240, 171, 252, 0.85);
  animation: twinkle var(--d) ease-in-out infinite alternate;
  animation-delay: var(--delay);
}

@keyframes twinkle {
  from {
    opacity: 0.12;
    transform: scale(0.7);
  }
  to {
    opacity: 0.95;
    transform: scale(1.2);
  }
}

.hearts span {
  position: absolute;
  bottom: -4rem;
  font-size: var(--fs);
  line-height: 1;
  opacity: 0;
  animation: float-up var(--dur) linear infinite;
  animation-delay: var(--delay);
  filter: drop-shadow(0 0 10px rgba(240, 171, 252, 0.45));
}

@keyframes float-up {
  0% {
    transform: translate3d(0, 0, 0) rotate(0deg);
    opacity: 0;
  }
  12% {
    opacity: 0.55;
  }
  85% {
    opacity: 0.3;
  }
  100% {
    transform: translate3d(var(--drift), -118vh, 0) rotate(28deg);
    opacity: 0;
  }
}

/* ---------- progress ---------- */
.progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: rgba(233, 213, 255, 0.1);
  z-index: 60;
}

.progress__bar {
  height: 100%;
  width: 5%;
  border-radius: 0 3px 3px 0;
  background: linear-gradient(90deg, var(--violet-500), var(--fuchsia-300));
  box-shadow: 0 0 14px rgba(240, 171, 252, 0.75);
  transition: width 0.5s cubic-bezier(0.2, 0.8, 0.25, 1);
}

/* ---------- persistent masthead ---------- */
.masthead {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 35;
  padding: calc(0.55rem + var(--safe-t)) clamp(0.75rem, 3vw, 2rem) 0.85rem;
  background: linear-gradient(
    to bottom,
    rgba(11, 4, 19, 0.92) 32%,
    rgba(11, 4, 19, 0.6) 68%,
    rgba(11, 4, 19, 0) 100%
  );
  pointer-events: none;
}

.masthead__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.12rem;
  max-width: 42rem;
  margin-inline: auto;
  text-align: center;
}

.masthead__brand {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1rem, 3.9vw, 1.22rem);
  letter-spacing: 0.005em;
  line-height: 1.25;
  color: #f7ebff;
}

.masthead__heart {
  flex: 0 0 auto;
  width: 0.92em;
  height: 0.92em;
  fill: rgba(240, 171, 252, 0.92);
  filter: drop-shadow(0 0 8px rgba(240, 171, 252, 0.7));
  animation: heartbeat 3.6s ease-in-out infinite;
}

@keyframes heartbeat {
  0%,
  100% {
    transform: scale(1);
  }
  12% {
    transform: scale(1.16);
  }
  24% {
    transform: scale(1);
  }
  36% {
    transform: scale(1.1);
  }
  48% {
    transform: scale(1);
  }
}

.masthead__to {
  color: var(--violet-300);
  font-style: italic;
}

.masthead__name {
  font-weight: 600;
  background: linear-gradient(100deg, #ffffff, #e9d5ff 55%, #f0abfc);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.masthead__sub {
  margin: 0;
  font-size: clamp(0.6rem, 2.4vw, 0.67rem);
  font-weight: 600;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  color: rgba(216, 180, 254, 0.7);
}

/* ---------- stage / deck ---------- */
.stage {
  position: fixed;
  inset: 0;
  z-index: 1;
  display: flex;
  justify-content: center;
  align-items: stretch;
  padding: calc(var(--head-h) + var(--safe-t)) clamp(0.7rem, 3vw, 2rem)
    calc(var(--hud-h) + var(--safe-b));
}

.deck {
  position: relative;
  display: grid;
  grid-template: 1fr / 1fr;
  width: 100%;
  max-width: 42rem;
  min-height: 0;
  perspective: 1400px;
  perspective-origin: 50% 40%;
}

.slide {
  grid-area: 1 / 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding: 0.25rem;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
  opacity: 0;
  visibility: hidden;
  transform: translate3d(0, 34px, -60px) rotateX(7deg) scale(0.955);
  filter: blur(7px);
  transform-origin: 50% 100%;
  transition: opacity 0.62s ease, transform 0.72s cubic-bezier(0.16, 1, 0.3, 1),
    filter 0.5s ease, visibility 0s linear 0.72s;
  will-change: transform, opacity, filter;
}

.slide::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.slide.is-active {
  opacity: 1;
  visibility: visible;
  transform: none;
  filter: blur(0);
  transition: opacity 0.62s ease, transform 0.72s cubic-bezier(0.16, 1, 0.3, 1),
    filter 0.5s ease, visibility 0s;
}

.slide__inner {
  position: relative;
  flex: 0 0 auto;
  margin-block: auto;
  width: 100%;
  overflow: hidden;
  padding: clamp(1.35rem, 4.6vw, 2.6rem) clamp(1.15rem, 4.2vw, 2.5rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--glass);
  box-shadow: var(--shadow);
  -webkit-backdrop-filter: blur(18px) saturate(120%);
  backdrop-filter: blur(18px) saturate(120%);
}

/* soft inner glow in the corner of every card */
.slide__inner::after {
  content: "";
  position: absolute;
  z-index: 0;
  top: -40%;
  right: -30%;
  width: 78%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(240, 171, 252, 0.13), transparent 68%);
  pointer-events: none;
}

/* travelling rim light each time a card arrives */
.slide__inner::before {
  content: "";
  position: absolute;
  z-index: 2;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(
    115deg,
    transparent 34%,
    rgba(240, 171, 252, 0.28) 48%,
    rgba(255, 255, 255, 0.22) 52%,
    transparent 66%
  );
  background-size: 260% 100%;
  opacity: 0;
  pointer-events: none;
  mix-blend-mode: screen;
}

.slide.is-active .slide__inner::before {
  animation: sheen 1.5s cubic-bezier(0.3, 0.7, 0.2, 1) 0.12s 1 both;
}

@keyframes sheen {
  0% {
    opacity: 0;
    background-position: 130% 0;
  }
  25% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    background-position: -50% 0;
  }
}

.slide.is-active .slide__inner {
  animation: card-settle 1s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes card-settle {
  0% {
    border-color: rgba(240, 171, 252, 0.6);
    box-shadow: var(--shadow), 0 0 0 rgba(240, 171, 252, 0);
  }
  50% {
    border-color: rgba(240, 171, 252, 0.35);
    box-shadow: var(--shadow), 0 0 52px -8px rgba(240, 171, 252, 0.55);
  }
  100% {
    border-color: var(--line);
    box-shadow: var(--shadow);
  }
}

/* ---------- sparkles on slide change ---------- */
.sparkles {
  position: fixed;
  inset: 0;
  z-index: 44;
  overflow: hidden;
  pointer-events: none;
}

.sparkles span {
  position: absolute;
  display: block;
  width: var(--sz, 3px);
  height: var(--sz, 3px);
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 9px 1px rgba(240, 171, 252, 0.95);
  opacity: 0;
  animation: sparkle-float var(--d, 1.6s) ease-out var(--delay, 0s) both;
}

@keyframes sparkle-float {
  0% {
    opacity: 0;
    transform: translate3d(0, 0, 0) scale(0.4);
  }
  22% {
    opacity: 1;
    transform: translate3d(calc(var(--dx) * 0.22), calc(var(--dy) * 0.22), 0)
      scale(1);
  }
  100% {
    opacity: 0;
    transform: translate3d(var(--dx), var(--dy), 0) scale(0.2);
  }
}

.slide__inner > * {
  position: relative;
  z-index: 1;
}

/* ---------- reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translate3d(0, 16px, 0);
}

.slide.is-active .reveal {
  opacity: 1;
  transform: none;
  transition: opacity 0.65s ease,
    transform 0.65s cubic-bezier(0.2, 0.8, 0.25, 1);
  transition-delay: calc(var(--i, 0) * 75ms + 90ms);
}

/* ---------- slide content ---------- */
.emblem {
  display: grid;
  place-items: center;
  width: clamp(3rem, 11vw, 3.5rem);
  height: clamp(3rem, 11vw, 3.5rem);
  margin-bottom: clamp(0.9rem, 3vw, 1.25rem);
  border-radius: 50%;
  border: 1px solid rgba(216, 180, 254, 0.3);
  background: radial-gradient(
    circle at 32% 26%,
    rgba(240, 171, 252, 0.38),
    rgba(168, 85, 247, 0.16)
  );
  box-shadow: 0 0 34px -8px rgba(168, 85, 247, 0.85),
    0 0 0 1px rgba(255, 255, 255, 0.05) inset;
  font-size: clamp(1.35rem, 5vw, 1.7rem);
  line-height: 1;
}

.kicker {
  margin: 0 0 0.55rem;
  font-size: clamp(0.63rem, 2.4vw, 0.72rem);
  font-weight: 600;
  letter-spacing: 0.19em;
  text-transform: uppercase;
  color: var(--violet-300);
}

.slide__title {
  margin: 0 0 clamp(0.7rem, 2.6vw, 1rem);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.55rem, 5.6vw, 2.4rem);
  line-height: 1.16;
  letter-spacing: -0.01em;
  color: #fbf3ff;
  text-wrap: balance;
}

@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .slide__title {
    background: linear-gradient(112deg, #ffffff, #ead9ff 42%, #f0abfc 92%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
  }
}

.lede,
.body {
  margin: 0 0 clamp(0.75rem, 2.6vw, 1rem);
  max-width: 54ch;
  text-wrap: pretty;
}

.lede {
  font-size: clamp(1.06rem, 3.9vw, 1.22rem);
  line-height: 1.72;
  color: #f2e6fb;
}

.body {
  font-size: clamp(1rem, 3.5vw, 1.1rem);
  line-height: 1.78;
  color: var(--text-dim);
}

.lede:last-child,
.body:last-child {
  margin-bottom: 0;
}

.quote {
  margin: 0 0 clamp(0.9rem, 3vw, 1.2rem);
  padding-left: clamp(0.85rem, 3vw, 1.15rem);
  border-left: 2px solid rgba(240, 171, 252, 0.5);
}

.quote p {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 4.4vw, 1.6rem);
  line-height: 1.42;
  color: #fbf4ff;
}

/* pills */
.pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.42rem;
  margin: clamp(0.9rem, 3vw, 1.25rem) 0 0;
  padding: 0;
  list-style: none;
}

.pills li {
  padding: 0.42rem 0.8rem;
  border-radius: 999px;
  border: 1px solid rgba(216, 180, 254, 0.22);
  background: rgba(168, 85, 247, 0.14);
  color: #e7d6f6;
  font-size: clamp(0.76rem, 2.7vw, 0.82rem);
  letter-spacing: 0.02em;
  white-space: nowrap;
}

/* ticked list */
.ticks {
  display: grid;
  gap: clamp(0.55rem, 2vw, 0.8rem);
  margin: clamp(0.5rem, 2vw, 0.75rem) 0 0;
  padding: 0;
  list-style: none;
}

.ticks li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.7rem;
  align-items: start;
  font-size: clamp(1rem, 3.4vw, 1.08rem);
  line-height: 1.6;
  color: var(--text-dim);
}

.ticks .ico {
  font-size: 0.95em;
  line-height: 1.6;
  filter: drop-shadow(0 0 9px rgba(192, 132, 252, 0.55));
}

/* signature */
.signature {
  margin-top: clamp(0.9rem, 3vw, 1.35rem);
  padding-top: clamp(0.8rem, 2.4vw, 1.1rem);
  border-top: 1px solid var(--line);
}

.signature__from {
  margin: 0;
  font-size: clamp(0.85rem, 3vw, 0.95rem);
  color: var(--text-dim);
}

.signature__name {
  margin: 0.15rem 0 0;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 6.5vw, 2.2rem);
  line-height: 1.2;
  color: var(--fuchsia-300);
  text-shadow: 0 0 28px rgba(240, 171, 252, 0.4);
}

.signature__note {
  margin: 0.7rem 0 0;
  font-size: clamp(0.82rem, 2.9vw, 0.9rem);
  font-style: italic;
  color: var(--violet-300);
}

.signature__date {
  margin: 0.9rem 0 0;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(233, 213, 255, 0.42);
}

/* cover hint */
.hint {
  margin: clamp(1.1rem, 4vw, 1.6rem) 0 0;
  font-size: clamp(0.78rem, 2.8vw, 0.85rem);
  letter-spacing: 0.04em;
  color: rgba(233, 213, 255, 0.62);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.hint::after {
  content: "\2192";
  display: inline-block;
  animation: nudge 1.8s ease-in-out infinite;
}

@keyframes nudge {
  0%,
  100% {
    transform: translateX(0);
    opacity: 0.55;
  }
  50% {
    transform: translateX(5px);
    opacity: 1;
  }
}

.slide--cover .slide__inner,
.slide--letter .slide__inner {
  text-align: left;
}

.slide--letter .body {
  line-height: 1.66;
  margin-bottom: clamp(0.6rem, 2vw, 0.8rem);
}

.slide--cover .slide__title {
  font-size: clamp(1.85rem, 7.2vw, 3rem);
}

/* ---------- gallery ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(9.5rem, 42%), 1fr));
  gap: clamp(0.5rem, 2vw, 0.75rem);
  margin-top: clamp(0.9rem, 3vw, 1.2rem);
}

.polaroid {
  margin: 0;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid rgba(216, 180, 254, 0.22);
  background: rgba(255, 255, 255, 0.04);
  box-shadow: 0 14px 32px -18px #000;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.polaroid img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (hover: hover) {
  .polaroid:hover {
    transform: translateY(-3px) scale(1.015);
    box-shadow: 0 20px 40px -18px rgba(0, 0, 0, 0.9);
  }
}

.gallery__placeholder {
  grid-column: 1 / -1;
  display: grid;
  place-items: center;
  gap: 0.4rem;
  min-height: clamp(8rem, 34vw, 12rem);
  padding: 1.5rem;
  border-radius: 18px;
  border: 1px dashed rgba(216, 180, 254, 0.3);
  background: rgba(168, 85, 247, 0.07);
  text-align: center;
}

.gallery__placeholder p {
  margin: 0;
  font-size: 0.86rem;
  color: var(--text-dim);
}

.gallery__icon {
  font-size: 1.7rem;
  animation: pulse 2.6s ease-in-out infinite;
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.75;
  }
  50% {
    transform: scale(1.12);
    opacity: 1;
  }
}

/* ---------- HUD ---------- */
.hud {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.42rem;
  padding: 0.55rem clamp(0.6rem, 3vw, 1.5rem)
    calc(0.6rem + var(--safe-b));
  background: linear-gradient(
    to top,
    rgba(11, 4, 19, 0.96) 25%,
    rgba(11, 4, 19, 0.72) 60%,
    rgba(11, 4, 19, 0) 100%
  );
  pointer-events: none;
}

.controls {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 0.1rem;
  padding: 0.3rem;
  border-radius: 999px;
  border: 1px solid rgba(216, 180, 254, 0.18);
  background: rgba(36, 16, 56, 0.78);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: 0 16px 40px -20px rgba(0, 0, 0, 0.95);
}

.btn {
  -webkit-appearance: none;
  appearance: none;
  display: grid;
  place-items: center;
  width: 2.85rem;
  height: 2.85rem;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #e9d5ff;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, transform 0.12s ease;
  -webkit-tap-highlight-color: transparent;
}

.btn svg {
  width: 1.15rem;
  height: 1.15rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.btn:hover {
  background: rgba(216, 180, 254, 0.14);
}

.btn:active {
  transform: scale(0.93);
}

.btn:focus-visible {
  outline: 2px solid var(--fuchsia-300);
  outline-offset: 2px;
}

.btn[disabled] {
  opacity: 0.32;
  cursor: default;
}

.btn[disabled]:hover {
  background: transparent;
}

.btn--auto {
  margin-left: 0.2rem;
  border-left: 1px solid rgba(216, 180, 254, 0.14);
  border-radius: 0;
}

.btn--auto .icon-pause {
  display: none;
}

.btn--auto[aria-pressed="true"] {
  background: rgba(240, 171, 252, 0.2);
  color: #f8dcff;
}

.btn--auto[aria-pressed="true"] .icon-play {
  display: none;
}

.btn--auto[aria-pressed="true"] .icon-pause {
  display: block;
}

.counter {
  min-width: 4.4rem;
  text-align: center;
  font-size: 0.74rem;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.1em;
  color: rgba(233, 213, 255, 0.72);
}

.btn--grid {
  margin-left: 0.2rem;
  border-left: 1px solid rgba(216, 180, 254, 0.14);
  border-radius: 0 999px 999px 0;
}

.btn--grid svg {
  fill: none;
  stroke-width: 1.7;
}

/* ---------- progress dots ---------- */
.dots {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 4px;
  max-width: min(100vw - 2rem, 27rem);
  padding: 4px 7px;
  border-radius: 999px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  -webkit-mask-image: linear-gradient(
    90deg,
    transparent,
    #000 8px,
    #000 calc(100% - 8px),
    transparent
  );
  mask-image: linear-gradient(
    90deg,
    transparent,
    #000 8px,
    #000 calc(100% - 8px),
    transparent
  );
}

.dots::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.dot {
  position: relative;
  flex: 0 0 auto;
  width: 6px;
  height: 6px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(233, 213, 255, 0.3);
  cursor: pointer;
  transition: width 0.3s cubic-bezier(0.2, 0.8, 0.25, 1),
    background 0.3s ease, transform 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}

/* generous invisible tap target on phones */
.dot::after {
  content: "";
  position: absolute;
  inset: -8px -4px;
}

.dot:hover {
  background: rgba(240, 171, 252, 0.75);
  transform: scale(1.3);
}

.dot.is-active {
  width: 16px;
  background: linear-gradient(90deg, var(--violet-400), var(--fuchsia-300));
  box-shadow: 0 0 10px rgba(240, 171, 252, 0.75);
}

.dot:focus-visible {
  outline: 2px solid var(--fuchsia-300);
  outline-offset: 3px;
}

.stamp__hint {
  display: none;
}

@media (hover: hover) and (pointer: fine) and (min-width: 900px) {
  .stamp__hint {
    display: inline;
  }
}

/* ---------- overview / jump panel ---------- */
.overview {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: clamp(0.7rem, 3vw, 2rem);
  background: rgba(11, 4, 19, 0.8);
  -webkit-backdrop-filter: blur(12px) saturate(120%);
  backdrop-filter: blur(12px) saturate(120%);
  animation: overlay-in 0.24s ease both;
}

@keyframes overlay-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.overview__panel {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 56rem;
  max-height: 100%;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: linear-gradient(
    168deg,
    rgba(41, 19, 63, 0.98),
    rgba(19, 8, 30, 0.99)
  );
  box-shadow: var(--shadow);
  animation: panel-in 0.28s cubic-bezier(0.2, 0.8, 0.25, 1) both;
}

@keyframes panel-in {
  from {
    opacity: 0;
    transform: translate3d(0, 14px, 0) scale(0.99);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.overview__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.95rem 1rem 0.9rem 1.15rem;
  border-bottom: 1px solid var(--line);
}

.overview__kicker {
  margin: 0 0 0.2rem;
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.19em;
  text-transform: uppercase;
  color: var(--violet-300);
}

.overview__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 4vw, 1.4rem);
  line-height: 1.2;
  color: #fbf3ff;
}

.overview__close {
  flex: 0 0 auto;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid rgba(216, 180, 254, 0.18);
}

.overview__body {
  padding: 0.9rem 1.1rem 1.2rem;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: rgba(216, 180, 254, 0.3) transparent;
}

.overview__body::-webkit-scrollbar {
  width: 8px;
}

.overview__body::-webkit-scrollbar-track {
  background: transparent;
}

.overview__body::-webkit-scrollbar-thumb {
  border: 2px solid transparent;
  border-radius: 999px;
  background: rgba(216, 180, 254, 0.28);
  background-clip: content-box;
}

.overview__body::-webkit-scrollbar-thumb:hover {
  background: rgba(240, 171, 252, 0.45);
  background-clip: content-box;
}

.ov-group + .ov-group {
  margin-top: 1rem;
}

.ov-group__label {
  margin: 0 0 0.45rem;
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(216, 180, 254, 0.75);
}

.ov-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(14rem, 100%), 1fr));
  gap: 0.4rem;
}

.ov-item {
  -webkit-appearance: none;
  appearance: none;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 0.6rem;
  padding: 0.6rem 0.7rem;
  border: 1px solid rgba(216, 180, 254, 0.12);
  border-radius: 12px;
  background: rgba(168, 85, 247, 0.08);
  color: var(--text);
  font-family: inherit;
  font-size: 0.86rem;
  line-height: 1.35;
  text-align: left;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease,
    transform 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}

.ov-item:hover {
  background: rgba(168, 85, 247, 0.2);
  border-color: rgba(240, 171, 252, 0.35);
}

.ov-item:active {
  transform: scale(0.985);
}

.ov-item:focus-visible {
  outline: 2px solid var(--fuchsia-300);
  outline-offset: 2px;
}

.ov-item[aria-current="true"] {
  background: rgba(240, 171, 252, 0.18);
  border-color: rgba(240, 171, 252, 0.5);
}

.ov-item__num {
  padding-top: 0.1em;
  font-size: 0.66rem;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.06em;
  color: var(--fuchsia-300);
}

.stamp {
  margin: 0;
  font-size: 0.63rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: rgba(233, 213, 255, 0.45);
}

/* ---------- heart burst ---------- */
.burst {
  position: fixed;
  inset: 0;
  z-index: 45;
  overflow: hidden;
  pointer-events: none;
}

.burst span {
  position: absolute;
  left: 50%;
  top: 50%;
  font-size: 1.1rem;
  will-change: transform, opacity;
  animation: burst var(--d) cubic-bezier(0.15, 0.7, 0.3, 1) forwards;
}

@keyframes burst {
  from {
    transform: translate(-50%, -50%) scale(0.4);
    opacity: 1;
  }
  to {
    transform: translate(calc(-50% + var(--x)), calc(-50% + var(--y)))
      scale(1.05) rotate(var(--r));
    opacity: 0;
  }
}

/* ---------- responsive tweaks ---------- */
@media (max-width: 420px) {
  :root {
    --head-h: 4rem;
    --hud-h: 8.2rem;
    --radius: 22px;
  }

  .masthead {
    padding-bottom: 0.7rem;
  }

  .dots {
    gap: 2px;
    padding: 4px 5px;
  }

  .stage {
    padding-left: 0.6rem;
    padding-right: 0.6rem;
  }

  .pills li {
    white-space: normal;
  }

  .hint::after {
    display: none;
  }
}

/* short screens (most phones in browser chrome): tighten vertical rhythm
   so a full card fits without needing to scroll */
/* medium-short screens (laptops, tablets in landscape) */
@media (max-height: 820px) {
  :root {
    --head-h: 3.75rem;
    --hud-h: 7.9rem;
  }

  .masthead {
    padding-bottom: 0.6rem;
  }

  .slide__inner {
    padding: 0.95rem clamp(1.05rem, 4vw, 1.7rem);
  }

  .emblem {
    width: 2.45rem;
    height: 2.45rem;
    font-size: 1.15rem;
    margin-bottom: 0.5rem;
  }

  .slide__title,
  .slide--cover .slide__title {
    font-size: clamp(1.32rem, 5.2vw, 2rem);
    margin-bottom: 0.55rem;
  }

  .lede {
    font-size: 0.95rem;
    line-height: 1.56;
    margin-bottom: 0.5rem;
  }

  .body,
  .slide--letter .body {
    font-size: 0.89rem;
    line-height: 1.57;
    margin-bottom: 0.5rem;
  }

  .ticks {
    gap: 0.42rem;
  }

  .ticks li {
    font-size: 0.87rem;
  }

  .signature {
    margin-top: 0.65rem;
    padding-top: 0.65rem;
  }
}

@media (max-height: 720px) {
  :root {
    --head-h: 3.1rem;
    --hud-h: 7rem;
  }

  .masthead {
    padding-bottom: 0.5rem;
  }

  .masthead__sub {
    display: none;
  }

  .slide__inner {
    padding: 0.75rem clamp(1rem, 4vw, 1.5rem);
  }

  .emblem {
    width: 2.3rem;
    height: 2.3rem;
    font-size: 1.1rem;
    margin-bottom: 0.45rem;
  }

  .kicker {
    font-size: 0.58rem;
    margin-bottom: 0.32rem;
  }

  .slide__title,
  .slide--cover .slide__title {
    font-size: clamp(1.24rem, 5.2vw, 1.85rem);
    margin-bottom: 0.5rem;
  }

  .lede {
    font-size: 0.93rem;
    line-height: 1.52;
    margin-bottom: 0.48rem;
  }

  .body,
  .slide--letter .body {
    font-size: 0.87rem;
    line-height: 1.55;
    margin-bottom: 0.48rem;
  }

  .pills {
    margin-top: 0.6rem;
    gap: 0.32rem;
  }

  .pills li {
    padding: 0.28rem 0.58rem;
    font-size: 0.67rem;
  }

  .ticks {
    gap: 0.34rem;
  }

  .ticks li {
    font-size: 0.85rem;
    line-height: 1.48;
  }

  .quote p {
    font-size: clamp(1.05rem, 4.2vw, 1.35rem);
  }

  .hint {
    margin-top: 0.8rem;
    font-size: 0.73rem;
  }

  .signature {
    margin-top: 0.6rem;
    padding-top: 0.6rem;
  }

  .signature__name {
    font-size: clamp(1.35rem, 5.4vw, 1.7rem);
  }

  .signature__note,
  .signature__date {
    margin-top: 0.5rem;
  }

  .slide--letter .signature {
    margin-top: 0.3rem;
    padding-top: 0.3rem;
  }

  .slide--letter .signature__note {
    margin-top: 0.26rem;
  }

  .slide--letter .signature__date {
    margin-top: 0.26rem;
  }

  .slide--letter .body {
    font-size: 0.85rem;
    line-height: 1.48;
    margin-bottom: 0.38rem;
  }

  .slide--letter .slide__title {
    margin-bottom: 0.36rem;
  }

  .slide--letter .signature__name {
    font-size: 1.24rem;
  }

  .gallery {
    gap: 0.4rem;
    margin-top: 0.6rem;
  }

  .gallery__placeholder {
    min-height: 7rem;
  }
}

@media (max-height: 620px) {
  :root {
    --head-h: 2.9rem;
    --hud-h: 6.7rem;
  }

  .emblem {
    display: none;
  }

  .slide__inner {
    padding-block: 0.75rem;
  }

  .slide__title,
  .slide--cover .slide__title {
    font-size: clamp(1.16rem, 4.8vw, 1.6rem);
    margin-bottom: 0.45rem;
  }

  .lede {
    font-size: 0.9rem;
    line-height: 1.5;
  }

  .body,
  .slide--letter .body {
    font-size: 0.84rem;
    line-height: 1.5;
    margin-bottom: 0.42rem;
  }

  .slide--letter .body {
    font-size: 0.82rem;
    line-height: 1.46;
  }

  .pills {
    margin-top: 0.5rem;
  }

  .signature__name {
    font-size: 1.3rem;
  }
}

@media (max-width: 340px) {
  :root {
    --head-h: 2.8rem;
    --hud-h: 6.6rem;
  }

  .slide__inner {
    padding: 0.75rem 0.85rem;
  }

  .emblem {
    width: 2.2rem;
    height: 2.2rem;
    font-size: 1rem;
    margin-bottom: 0.45rem;
  }

  .slide__title,
  .slide--cover .slide__title {
    font-size: 1.12rem;
    margin-bottom: 0.42rem;
  }

  .lede {
    font-size: 0.86rem;
    line-height: 1.48;
    margin-bottom: 0.4rem;
  }

  .body,
  .slide--letter .body {
    font-size: 0.82rem;
    line-height: 1.46;
    margin-bottom: 0.38rem;
  }

  .slide--letter .body {
    font-size: 0.8rem;
    line-height: 1.44;
  }

  .slide--letter .signature__name {
    font-size: 1.12rem;
  }

  .slide--letter .signature__note,
  .slide--letter .signature__date {
    margin-top: 0.28rem;
  }

  .ticks {
    gap: 0.3rem;
  }

  .pills {
    margin-top: 0.45rem;
    gap: 0.3rem;
  }

  .pills li {
    padding: 0.26rem 0.5rem;
    font-size: 0.62rem;
  }

  .ticks {
    gap: 0.36rem;
  }

  .ticks li {
    font-size: 0.8rem;
    line-height: 1.45;
  }

  .signature {
    margin-top: 0.5rem;
    padding-top: 0.5rem;
  }

  .signature__name {
    font-size: 1.2rem;
  }

  .signature__note,
  .signature__date {
    margin-top: 0.4rem;
  }

  .dot {
    width: 5px;
    height: 5px;
  }

  .dots {
    gap: 3px;
  }
}

@media (max-height: 560px) and (orientation: landscape) {
  :root {
    --head-h: 3rem;
    --hud-h: 6rem;
  }

  .masthead__sub {
    display: none;
  }

  .slide__inner {
    padding: 1rem 1.25rem;
  }

  .emblem {
    width: 2.4rem;
    height: 2.4rem;
    font-size: 1.1rem;
    margin-bottom: 0.6rem;
  }

  .slide__title {
    font-size: clamp(1.25rem, 4.6vh, 1.7rem);
  }

  .lede,
  .body {
    font-size: 0.94rem;
    line-height: 1.6;
  }

  .btn {
    width: 2.5rem;
    height: 2.5rem;
  }
}

@media (max-height: 820px) and (min-width: 480px) {
  .slide--letter .body {
    line-height: 1.58;
    margin-bottom: 0.55rem;
  }

  .slide--letter .signature {
    margin-top: 0.8rem;
    padding-top: 0.8rem;
  }

  .slide--letter .signature__name {
    font-size: clamp(1.45rem, 4vw, 1.85rem);
  }
}

/* tall phones: use a little more room */
@media (min-height: 780px) and (max-width: 640px) {
  .slide__inner {
    padding-top: 2.2rem;
    padding-bottom: 2.2rem;
  }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .glow,
  .stars span,
  .hearts span,
  .gallery__icon,
  .hint::after,
  .masthead__heart {
    animation: none !important;
  }

  .hearts span {
    display: none;
  }

  .sparkles {
    display: none;
  }

  .slide.is-active .slide__inner,
  .slide.is-active .slide__inner::before {
    animation: none !important;
  }

  .stars span {
    opacity: 0.5;
  }

  .slide,
  .slide.is-active {
    transition: opacity 0.2s linear, visibility 0s;
    transform: none;
    filter: none;
  }

  .reveal,
  .slide.is-active .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .progress__bar {
    transition: none;
  }

  .polaroid {
    transition: none;
  }
}
