:root {
  --ink: #26302f;
  --muted: #65716f;
  --paper: #fffaf4;
  --cream: #f7efe4;
  --clay: #a8654f;
  --gold: #d6ad62;
  --white: #ffffff;
  --shadow: 0 20px 60px rgba(38, 48, 47, .16);
  --radius: 8px;
  color-scheme: light;
  font-family: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  max-width: 100%;
  overflow-x: hidden;
  scroll-behavior: smooth;
  scroll-padding-top: 76px;
}

html.modal-open,
body.modal-open {
  overflow: hidden;
}

body {
  max-width: 100%;
  overflow-x: hidden;
  margin: 0;
  background: var(--cream);
  color: var(--ink);
}

body > * {
  position: relative;
  z-index: 1;
}

button,
a {
  font: inherit;
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}

a {
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
}

.skip-link {
  position: fixed;
  left: -999px;
  top: 1rem;
  z-index: 9999;
  border-radius: 999px;
  padding: 10px 14px;
  background: var(--ink);
  color: var(--white);
  text-decoration: none;
  box-shadow: var(--shadow);
}

.skip-link:focus {
  left: 1rem;
}

button {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
}

:where(button, a, [role="button"]) {
  transition:
    transform .18s ease,
    box-shadow .18s ease,
    background-color .18s ease,
    border-color .18s ease,
    color .18s ease;
}

:where(button, a, [role="button"]):focus-visible,
:where(input, textarea, select):focus-visible {
  outline: 3px solid rgba(166, 106, 90, .32);
  outline-offset: 3px;
}

:where(button:not(.timeline-card):not(.film-card):not(.collage-item), a):hover {
  transform: translateY(-1px);
}

:where(button:not(.timeline-card):not(.film-card):not(.collage-item), a):active {
  transform: translateY(0);
}

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: center start;
  padding: 120px max(20px, calc((100vw - 1120px) / 2)) 72px;
  overflow: hidden;
  background: var(--ink);
  color: var(--white);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0 0 0 auto;
  width: max(50vw, 680px);
  z-index: 0;
  background: var(--hero-image) center center/cover no-repeat;
  transition: background-image .75s ease;
}

.hero::before {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0;
  background: var(--hero-overlay, linear-gradient(90deg, rgb(90 65 62) 0 43%, rgb(79 60 64 / 0%) 54%, rgba(22, 29, 29, 0) 66%));
  transition: background .75s ease;
}

.site-nav {
  position: absolute;
  z-index: 5;
  top: 24px;
  left: 0;
  right: 0;
  width: max-content;
  margin: 0 auto;
  display: flex;
  gap: 6px;
  padding: 7px;
  border: 1px solid rgba(255, 255, 255, .24);
  border-radius: 999px;
  background: rgba(38, 48, 47, .92);
  box-shadow: 0 12px 34px rgba(18, 24, 24, .18);
  backdrop-filter: blur(12px);
}

.site-nav a {
  padding: 8px 12px;
  border-radius: 999px;
  text-decoration: none;
  color: rgba(255, 255, 255, .86);
  white-space: nowrap;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  background: rgba(255, 255, 255, .18);
  color: var(--white);
  outline: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(420px, 30vw);
  padding-top: 20px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--clay);
  font-size: .77rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .12em;
}

.hero .eyebrow {
  color: #ffdca2;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 820px;
  margin-bottom: 18px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.1rem, 3.4vw, 3.7rem);
  line-height: .92;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.55rem, 2.7vw, 2.5rem);
  line-height: 1.02;
  letter-spacing: 0;
}

h3 {
  line-height: 1.2;
  letter-spacing: 0;
}

.hero-content > p:not(.eyebrow) {
  max-width: 620px;
  margin-bottom: 34px;
  color: rgba(255, 255, 255, .84);
  font-size: clamp(.86rem, 1.25vw, 1rem);
  line-height: 1.6;
}

.counter {
  display: grid;
  grid-template-columns: repeat(2, minmax(104px, 1fr));
  width: min(680px, 100%);
  gap: clamp(8px, 1.6vw, 12px);
}

.counter article {
  min-height: 92px;
  display: grid;
  grid-template-rows: minmax(34px, auto) minmax(20px, auto);
  place-items: center;
  padding: 14px 12px;
  border: 1px solid rgba(255, 255, 255, .24);
  border-radius: var(--radius);
  background: rgba(38, 48, 47, .55);
  overflow: visible;
}

.counter strong {
  font-size: clamp(1.25rem, 2.2vw, 2rem);
  line-height: 1;
  white-space: nowrap;
}

.counter span {
  color: rgba(255, 255, 255, .78);
  font-size: .62rem;
  line-height: 1.2;
  text-transform: uppercase;
  white-space: nowrap;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: clamp(24px, 4vw, 40px);
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: 999px;
  padding: 11px 17px;
  text-decoration: none;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  line-height: 1.1;
}

.hero-cta--primary {
  background: #a66a5a;
  color: #fffaf6;
  box-shadow: 0 14px 30px rgba(120, 65, 52, .22);
}

.hero-cta--secondary {
  border: 1px solid rgba(255, 255, 255, .24);
  background: rgba(255, 255, 255, .18);
  color: rgba(255, 250, 246, .94);
  backdrop-filter: blur(10px);
}

.action-dock {
  position: fixed;
  right: max(18px, env(safe-area-inset-right));
  bottom: max(18px, env(safe-area-inset-bottom));
  z-index: 21;
  display: grid;
  justify-items: end;
  gap: 10px;
}

.action-toggle {
  min-width: 54px;
  min-height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 999px;
  padding: 12px 16px;
  background: var(--clay);
  color: var(--white);
  box-shadow: var(--shadow);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1;
  cursor: pointer;
  transition: background .2s ease, transform .22s ease;
}

.action-toggle__icon {
  display: inline-grid;
  place-items: center;
  width: 20px;
  height: 20px;
  font-size: 1.35rem;
  line-height: .8;
  transform: translateY(-1px);
}

.action-toggle__text {
  display: inline-flex;
  align-items: center;
  font-size: .88rem;
  line-height: 1;
  white-space: nowrap;
}

.action-toggle[aria-expanded="true"] {
  animation: actionTogglePop .28s ease both;
}

.action-toggle:active {
  transform: scale(.92);
}

@keyframes actionTogglePop {
  0% {
    transform: scale(.92);
  }

  55% {
    transform: rotate(10deg) scale(1.08);
  }

  100% {
    transform: rotate(0) scale(1);
  }
}

.action-menu {
  display: grid;
  gap: 8px;
  min-width: 190px;
  padding: 0;
  border-radius: var(--radius);
  background: transparent;
  box-shadow: none;
}

.action-menu[hidden] {
  display: none;
}

.action-menu button {
  min-height: 42px;
  border: 0;
  border-radius: var(--radius);
  padding: 8px 12px;
  background: var(--ink);
  color: var(--white);
  font-weight: 400;
  cursor: pointer;
  opacity: 1;
  transform: translateY(0);
  transition: opacity .22s ease, transform .22s ease, background .2s ease;
}

.action-menu:not([hidden]) button {
  animation: actionMenuSlide .28s ease both;
}

.action-menu:not([hidden]) button:nth-child(2) {
  animation-delay: .06s;
}

@keyframes actionMenuSlide {
  from {
    opacity: 0;
    transform: translateY(16px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.section {
  position: relative;
  padding: clamp(44px, 5.5vw, 76px) max(118px, calc((100vw - 1040px) / 2));
  background: var(--cream);
  overflow: visible;
}

.romantic-frame {
  --border-divider-height: clamp(86px, 10vw, 138px);
  --border-corner-width: clamp(120px, 18vw, 205px);
  position: relative;
  overflow: hidden;
  margin: 25px;
  border: 1px solid #d4b88d;
  background: var(--cream);
  padding-top: var(--border-divider-height);
  padding-bottom: var(--border-divider-height);
}

.romantic-frame-story {
  overflow: visible;
}

.romantic-frame::before,
.romantic-frame::after {
  content: "";
  position: absolute;
  z-index: 1;
  left: 0;
  right: 0;
  height: var(--border-divider-height);
  pointer-events: none;
  opacity: .92;
  background-repeat: no-repeat;
}

.romantic-frame::before {
  top: 0;
  background-image:
    url("/assets/borde-floral-corner-tl.png"),
    url("/assets/borde-floral-corner-tr.png");
  background-size:
    var(--border-corner-width) auto,
    var(--border-corner-width) auto;
  background-position:
    left top,
    right top;
}

.romantic-frame::after {
  bottom: 0;
  background-image:
    url("/assets/borde-floral-corner-bl.png"),
    url("/assets/borde-floral-corner-br.png");
  background-size:
    var(--border-corner-width) auto,
    var(--border-corner-width) auto;
  background-position:
    left bottom,
    right bottom;
}

.section > * {
  position: relative;
  z-index: 2;
}

.reveal-item {
  opacity: 0;
  transform: translateX(var(--reveal-x, 34px));
  transition:
    opacity 1.15s ease var(--reveal-delay, 0ms),
    transform 1.15s ease var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}

.reveal-from-left {
  --reveal-x: -42px;
}

.reveal-from-right {
  --reveal-x: 42px;
}

.reveal-item.is-visible {
  opacity: 1;
  transform: translateX(0);
}

.section + .section::before {
  content: "";
  position: absolute;
  top: 0;
  left: max(20px, calc((100vw - 1120px) / 2));
  right: max(20px, calc((100vw - 1120px) / 2));
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(168, 101, 79, .28), transparent);
}

.intro-band,
.gallery-band,
.site-photo-band,
.song-band {
  background: var(--cream);
}

.map-band,
.split-band,
.capsule-band,
.outside-band {
  background: var(--cream);
}

.map-band {
  padding-bottom: clamp(54px, 7vw, 88px);
}

#trivia {
  display: grid;
  grid-template-columns: minmax(0, 760px);
  justify-content: center;
  gap: 24px;
}

#trivia .section-heading {
  grid-column: 1 / -1;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.section-heading {
  max-width: 760px;
  margin: 0 auto 34px;
  text-align: center;
}

.section-heading h2 {
  font-size: clamp(2.1rem, 4vw, 3.35rem);
  line-height: 1;
}

.section-heading .eyebrow {
  justify-content: center;
}

#historia {
  overflow: visible;
}

#historia .section-heading {
  margin-left: auto;
  margin-right: auto;
}

.lead {
  max-width: 860px;
  color: var(--muted);
  font-size: clamp(1.12rem, 2vw, 1.45rem);
  line-height: 1.78;
}

.intro-band .lead {
  max-width: 820px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.35rem, 2.4vw, 2rem);
  font-style: italic;
  color: var(--clay);
  line-height: 1.55;
  margin-left: auto;
  margin-right: auto;
  text-align: justify;
  text-align-last: center;
}

.timeline-ecg-wrap {
  --ecg-red: 255, 44, 64;
  --ecg-red-soft: 160, 18, 32;
  --ecg-core: 255, 238, 241;
  --ecg-speed: 5.4s;
  position: relative;
  isolation: isolate;
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-inline: contain;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  cursor: grab;
  touch-action: pan-x pan-y;
}

.timeline-ecg-wrap::-webkit-scrollbar {
  display: none;
}

.timeline-ecg-wrap.is-dragging {
  cursor: grabbing;
}

.timeline-ecg-rail {
  position: relative;
  width: var(--timeline-pulse-width, max-content);
  min-width: max(100%, var(--timeline-pulse-width, 100%));
  transform: none;
}

.timeline-ecg-svg {
  position: absolute;
  left: 0;
  top: 50%;
  height: 44px;
  width: 100%;
  transform: translateY(-50%);
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.timeline-ecg-line {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}

.timeline-ecg-line--base {
  stroke: rgba(160, 18, 32, .16);
  stroke-width: .75;
  opacity: .78;
}

.timeline-ecg-line--glow {
  stroke: rgba(190, 28, 48, .2);
  stroke-width: 1.9;
  filter: url(#timelineEcgGlow);
  opacity: .46;
  animation: ecgGlowBeat 1.1s ease-in-out infinite;
}

.timeline-ecg-line--core {
  stroke: rgba(145, 18, 34, .84);
  stroke-width: 1.05;
  opacity: .72;
}

.timeline-ecg-line--spark {
  stroke: rgba(205, 32, 54, .88);
  stroke-width: 1.35;
  stroke-dasharray: 10 258;
  filter: url(#timelineEcgGlow);
  animation:
    timelineSparkMove 3.6s linear infinite,
    ecgCoreBeat 1.1s ease-in-out infinite;
}

@keyframes timelineSparkMove {
  from {
    stroke-dashoffset: 0;
  }

  to {
    stroke-dashoffset: -1000;
  }
}

@keyframes ecgCoreBeat {
  0% {
    stroke: rgba(180, 28, 46, .66);
    stroke-width: 1.25;
    opacity: .62;
  }

  28% {
    stroke: rgba(224, 36, 62, .9);
    stroke-width: 2.15;
    opacity: .84;
  }

  50% {
    stroke: rgba(255, 238, 241, .98);
    stroke-width: 3.35;
    opacity: 1;
  }

  68% {
    stroke: rgba(255, 44, 64, .96);
    stroke-width: 2.4;
    opacity: .92;
  }

  100% {
    stroke: rgba(180, 28, 46, .66);
    stroke-width: 1.25;
    opacity: .62;
  }
}

@keyframes ecgGlowBeat {
  0% {
    stroke: rgba(160, 18, 32, .14);
    stroke-width: 1.6;
    opacity: .24;
  }

  34% {
    stroke: rgba(220, 32, 56, .26);
    stroke-width: 2.8;
    opacity: .42;
  }

  52% {
    stroke: rgba(255, 90, 112, .48);
    stroke-width: 4.4;
    opacity: .66;
  }

  72% {
    stroke: rgba(235, 44, 70, .34);
    stroke-width: 3.2;
    opacity: .48;
  }

  100% {
    stroke: rgba(160, 18, 32, .14);
    stroke-width: 1.6;
    opacity: .24;
  }
}

.timeline {
  --timeline-line-rgb: 166, 106, 90;
  --timeline-line: rgba(184, 140, 76, .55);
  --timeline-line-height: 3px;
  --timeline-pulse-width: 100%;
  --timeline-pulse-speed: 6.2s;
  --timeline-gutter: clamp(34px, 5vw, 70px);
  position: relative;
  display: flex;
  align-items: center;
  gap: var(--timeline-gutter);
  margin: 0;
  padding: 74px var(--timeline-gutter) 96px;
  list-style: none;
  overflow: visible;
  scroll-snap-type: none;
  width: var(--timeline-pulse-width, max-content);
  min-width: max(100%, var(--timeline-pulse-width, 100%));
  min-height: 560px;
  z-index: 3;
}

.timeline--ecg {
  isolation: isolate;
}

.timeline--ecg > li {
  position: relative;
  z-index: 4;
}

.timeline::-webkit-scrollbar {
  display: none;
}

.timeline::before {
  display: none;
}

.timeline::after {
  display: none;
}

.timeline--ecg .timeline-item {
  z-index: 3;
}

.timeline-item {
  position: relative;
  flex: 0 0 min(310px, 78vw);
  height: 470px;
  opacity: 1;
  transform: translateX(0);
}

.timeline-item::before {
  content: "";
  position: absolute;
  z-index: 2;
  left: 50%;
  top: 50%;
  width: 1px;
  height: 28px;
  border: 0;
  border-radius: 0;
  background: rgba(178, 132, 58, .72);
  transform: translateX(-50%) translateY(-28px);
}

.timeline-item:nth-child(even)::before {
  height: 46px;
  transform: translateX(-50%);
}

.timeline-card {
  overflow: visible;
  border-radius: 6px;
  background: transparent;
  box-shadow: none;
}

.timeline-photo-card {
  position: relative;
  width: 100%;
  height: 100%;
  display: block;
  padding: 0;
  border: 0;
  color: var(--ink);
  text-align: center;
  cursor: pointer;
  isolation: auto;
  background: transparent;
  transform: none;
}

.timeline-photo-card:hover,
.timeline-photo-card:focus-visible {
  transform: none;
}

.timeline-photo-card:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 4px;
}

.timeline-photo {
  position: absolute;
  left: 50%;
  bottom: calc(50% + 26px);
  width: min(280px, 100%);
  aspect-ratio: 4 / 3.45;
  padding: 10px 10px 78px;
  border-radius: 5px;
  background: #fffdf8;
  box-shadow: 0 18px 38px rgba(38, 48, 47, .22);
  --timeline-photo-rest: translateX(-50%) rotate(-3deg);
  transform: var(--timeline-photo-rest);
  transition: transform .28s ease, box-shadow .28s ease;
}

.timeline.auto-pan .timeline-photo {
  animation: timelinePhotoNudge 3.4s ease-in-out infinite;
  animation-delay: calc(var(--timeline-index, 0) * .45s);
}

@keyframes timelinePhotoNudge {
  0%,
  68%,
  100% {
    transform: var(--timeline-photo-rest);
    filter: none;
  }

  74% {
    transform: var(--timeline-photo-rest) translateY(-7px) scale(1.012);
    filter: drop-shadow(0 18px 30px rgba(198, 105, 105, .16));
  }
}

.timeline-item:nth-child(even) .timeline-photo {
  top: calc(50% + 48px);
  bottom: auto;
  --timeline-photo-rest: translateX(-50%) rotate(2.5deg);
  transform: var(--timeline-photo-rest);
}

.timeline-item:nth-child(3n) .timeline-photo {
  --timeline-photo-rest: translateX(-50%) rotate(1.5deg);
  transform: var(--timeline-photo-rest);
}

.timeline-photo-card:hover .timeline-photo,
.timeline-photo-card:focus-visible .timeline-photo {
  box-shadow: 0 24px 48px rgba(38, 48, 47, .24);
  transform: translateX(-50%) translateY(-8px) rotate(0);
}

.timeline-photo img {
  width: 100%;
  height: calc(100% - 64px);
  object-fit: contain;
  background: #111111;
}

.timeline-frame-text {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 14px;
  color: var(--muted);
  font-family: Georgia, "Times New Roman", serif;
  font-size: .62rem;
  font-style: italic;
  line-height: 1.22;
  text-align: center;
}

.timeline-copy {
  position: absolute;
  left: 50%;
  top: calc(50% + 26px);
  width: min(260px, 100%);
  display: grid;
  gap: 5px;
  padding: 0 8px;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  transform: translateX(-50%);
}

.timeline-item:nth-child(even) .timeline-copy {
  top: auto;
  bottom: calc(50% + 32px);
}

.timeline-icon {
  width: 34px;
  height: 34px;
  justify-self: center;
  object-fit: contain;
}

.timeline-card .timeline-icon {
  width: 34px;
  height: 34px;
  aspect-ratio: 1 / 1;
}

.timeline-copy time {
  color: #b2843a;
  font-size: .64rem;
  font-weight: 400;
  text-transform: uppercase;
}

.timeline-copy strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(.92rem, 1.18vw, 1.08rem);
  line-height: 1.05;
}

.timeline-copy span {
  color: var(--muted);
  font-size: .6rem;
  line-height: 1.45;
}

.timeline-copy em {
  display: none;
  width: auto;
  justify-self: center;
  border-radius: 999px;
  padding: 0;
  background: transparent;
  color: #b2843a;
  font-size: .58rem;
  font-style: normal;
  font-weight: 400;
}

.timeline-empty-frame {
  display: block;
  width: 100%;
  height: calc(100% - 64px);
  border: 1px solid rgba(178, 132, 58, .2);
  background: linear-gradient(135deg, rgba(255, 250, 244, .86), rgba(255, 255, 255, .68));
}

.timeline-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.timeline-photo img {
  height: calc(100% - 64px);
  aspect-ratio: auto;
  object-fit: contain;
}

.timeline-card time {
  color: var(--clay);
  font-weight: 800;
}

.timeline-card p {
  color: var(--muted);
  line-height: 1.65;
}

.map-link,
.text-link,
.song-link {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  margin-top: 10px;
  border: 0;
  border-radius: 999px;
  padding: 7px 12px;
  background: var(--ink);
  color: var(--white);
  text-decoration: none;
  font-weight: 800;
  cursor: pointer;
}

.text-link,
.song-link {
  background: transparent;
  color: var(--clay);
  padding-left: 0;
}

.map-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, .6fr);
  gap: 22px;
  align-items: stretch;
}

#memoryMap {
  min-height: 480px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: #d7e2dc;
}

.place-list,
.message-grid,
.reason-grid {
  margin: 0;
  padding: 0;
  list-style: none;
}

.place-list {
  display: grid;
  gap: 12px;
}

.place-list li,
.message-card,
.trivia-card,
.capsule-card,
.song-frame {
  border: 1px solid rgba(38, 48, 47, .1);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
}

.place-list li {
  padding: 18px;
}

.place-button {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 0;
  border-radius: var(--radius);
  padding: 0;
  background: transparent;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}

.place-button strong {
  display: block;
  line-height: 1.25;
}

.place-button span {
  flex: 0 0 auto;
  border-radius: 999px;
  padding: 5px 8px;
  background: var(--cream);
  color: var(--clay);
  font-size: .78rem;
  font-weight: 800;
}

.place-button.active span {
  background: var(--clay);
  color: var(--white);
}

.place-list p,
.message-card p {
  color: var(--muted);
  line-height: 1.58;
}

.reason-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 18px;
}

.reason-card {
  min-height: 230px;
  perspective: 1000px;
  cursor: pointer;
}

.reason-inner {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 230px;
  transform-style: preserve-3d;
  transition: transform .65s ease;
}

.reason-card:hover .reason-inner,
.reason-card.flipped .reason-inner {
  transform: rotateY(180deg);
}

.reason-face {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 22px;
  border-radius: var(--radius);
  backface-visibility: hidden;
  box-shadow: var(--shadow);
}

.reason-front {
  background: var(--ink);
  color: var(--white);
}

.reason-front span {
  color: var(--gold);
  font-size: 2rem;
  font-weight: 900;
}

.reason-back {
  background: var(--white);
  transform: rotateY(180deg);
}

.reason-back p {
  color: var(--muted);
  line-height: 1.65;
}

.gallery {
  column-count: 3;
  column-gap: 16px;
}

.gallery figure {
  margin: 0 0 16px;
  break-inside: avoid;
}

.gallery button {
  width: 100%;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: var(--radius);
  background: transparent;
  box-shadow: var(--shadow);
  cursor: zoom-in;
  break-inside: avoid;
}

.gallery figcaption {
  display: grid;
  gap: 3px;
  padding: 12px 14px;
  background: var(--white);
  color: var(--ink);
  text-align: left;
}

.gallery figcaption strong {
  font-weight: 900;
}

.gallery figcaption span {
  color: var(--muted);
  font-size: .9rem;
}

.gallery img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: contain;
  background: #eef3ee;
  transition: transform .35s ease;
}

.gallery button:hover img {
  transform: scale(1.04);
}

.site-albums {
  display: grid;
  gap: 22px;
}

.site-photo-band {
  overflow: hidden;
  background: var(--cream);
  text-align: center;
}

.site-photo-band .section-heading {
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: clamp(22px, 3vw, 36px);
}

.site-photo-band .section-heading .eyebrow {
  color: #a8654f;
  font-size: .78rem;
  letter-spacing: .22em;
}

.site-photo-band .section-heading h2 {
  max-width: none;
  font-size: clamp(2.1rem, 4vw, 3.35rem);
  line-height: 1;
}

.site-photo-band::before {
  content: "";
  position: absolute;
  z-index: 1;
  top: 42px;
  right: max(44px, calc((100vw - 1120px) / 2));
  width: min(230px, 24vw);
  aspect-ratio: 1 / 1.18;
  pointer-events: none;
  opacity: .22;
  background:
    radial-gradient(ellipse at 48% 17%, rgba(178, 132, 58, .68) 0 2px, transparent 3px),
    radial-gradient(ellipse at 55% 27%, rgba(178, 132, 58, .62) 0 2px, transparent 3px),
    radial-gradient(ellipse at 40% 34%, rgba(178, 132, 58, .56) 0 2px, transparent 3px),
    linear-gradient(64deg, transparent 49%, rgba(178, 132, 58, .55) 50% 51%, transparent 52%),
    conic-gradient(from 212deg at 48% 42%, transparent 0 34deg, rgba(178, 132, 58, .55) 35deg 46deg, transparent 47deg 360deg),
    conic-gradient(from 34deg at 58% 56%, transparent 0 34deg, rgba(178, 132, 58, .45) 35deg 46deg, transparent 47deg 360deg);
}

.memory-film {
  display: grid;
  grid-template-columns: repeat(3, minmax(220px, 1fr));
  align-items: stretch;
  justify-content: center;
  gap: clamp(24px, 4vw, 44px);
  max-width: 1120px;
  margin: 0 auto;
  padding-top: clamp(6px, 2vw, 18px);
}

.film-card {
  position: relative;
  display: grid;
  grid-template-rows: minmax(190px, 45%) 1fr;
  width: 100%;
  min-height: clamp(390px, 32vw, 455px);
  padding: clamp(12px, 1.4vw, 16px);
  text-align: left;
  overflow: visible;
  border: 1px solid rgba(178, 132, 58, .18);
  border-radius: 9px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .96), rgba(255, 250, 244, .94)),
    var(--white);
  color: var(--ink);
  box-shadow:
    0 20px 42px rgba(76, 58, 44, .14),
    0 2px 0 rgba(255, 255, 255, .9) inset;
  transition: transform .28s ease, box-shadow .28s ease;
  cursor: pointer;
}

.film-card::before {
  content: "";
  position: absolute;
  z-index: 3;
  top: -17px;
  left: 50%;
  width: 84px;
  height: 28px;
  transform: translateX(-50%) rotate(-2deg);
  border-radius: 2px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, .18), transparent 35% 65%, rgba(255, 255, 255, .18)),
    rgba(210, 177, 124, .5);
  box-shadow: 0 2px 8px rgba(76, 58, 44, .12);
}

.film-card::after {
  content: "♡";
  position: absolute;
  right: 18px;
  bottom: 14px;
  color: #b2843a;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.5rem;
  line-height: 1;
}

.film-card:nth-child(1) {
  transform: rotate(-2deg);
}

.film-card:nth-child(2) {
  transform: translateY(-18px) rotate(1deg);
}

.film-card:nth-child(3) {
  transform: translateY(-8px) rotate(2deg);
}

.film-card:nth-child(4) {
  transform: translateY(10px) rotate(-1deg);
}

.film-card:nth-child(5) {
  transform: translateY(4px) rotate(1.5deg);
}

.film-card:hover {
  transform: translateY(-8px) rotate(0deg);
  box-shadow:
    0 28px 58px rgba(76, 58, 44, .18),
    0 2px 0 rgba(255, 255, 255, .9) inset;
}

.film-stage {
  position: relative;
  min-height: 0;
  display: grid;
  align-items: end;
  overflow: hidden;
  border-radius: 5px;
  background: #111616;
}

.film-stage img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #111616;
  animation: filmDrift 3.8s ease both;
}

.film-vignette {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 74%, rgba(0, 0, 0, .16));
}

.film-summary {
  display: grid;
  align-content: start;
  padding: clamp(14px, 1.8vw, 20px) 4px 4px;
  background: transparent;
}

.film-summary h2 {
  margin-bottom: 8px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(.9rem, 1vw, 1.08rem);
  line-height: 1.12;
}

.film-summary p:not(.eyebrow) {
  margin-bottom: 0;
  color: var(--muted);
  font-size: clamp(.72rem, .85vw, .82rem);
  line-height: 1.5;
}

.film-summary .eyebrow {
  margin-bottom: 7px;
  color: #a8654f;
  font-size: .66rem;
  letter-spacing: .12em;
}

@keyframes filmDrift {
  from {
    opacity: .72;
    transform: scale(.985);
  }

  to {
    opacity: 1;
    transform: scale(1.015);
  }
}

.album-card {
  display: grid;
  grid-template-columns: minmax(260px, .75fr) minmax(0, 1.25fr);
  gap: 20px;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
}

.album-copy {
  padding: 28px;
}

.album-kicker {
  margin-bottom: 10px;
  color: var(--clay);
  font-weight: 900;
  text-transform: uppercase;
}

.album-copy p:not(.album-kicker) {
  color: var(--muted);
  line-height: 1.65;
}

.album-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.album-open {
  min-height: 38px;
  border: 0;
  border-radius: 999px;
  padding: 8px 14px;
  background: var(--ink);
  color: var(--white);
  font-weight: 900;
  cursor: pointer;
}

.album-actions span {
  color: var(--muted);
  font-size: .9rem;
}

.album-photos {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  min-height: 280px;
}

.album-photos button {
  min-height: 160px;
  border: 0;
  padding: 0;
  overflow: hidden;
  background: #e7ece8;
  cursor: zoom-in;
}

.album-photos img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #eef3ee;
  transition: transform .35s ease, filter .35s ease;
}

.album-photos button:hover img {
  transform: scale(1.05);
}

.album-card[data-style="proposal"] {
  border-left: 8px solid var(--clay);
}

.album-card[data-style="sea"] .album-photos img {
  filter: saturate(1.12);
}

.album-card[data-style="city"] {
  border-left: 8px solid var(--clay);
}

.album-card[data-style="family"] {
  border-left: 8px solid var(--gold);
}

.album-card[data-style="night"] .album-copy {
  background: var(--ink);
  color: var(--white);
}

.album-card[data-style="night"] .album-copy p,
.album-card[data-style="night"] .album-actions span {
  color: rgba(255, 255, 255, .78);
}

.album-card[data-style="cinematic"],
.album-card[data-style="mosaic"] {
  border-left: 8px solid var(--clay);
}

.album-card[data-style="columns"],
.album-card[data-style="stacked"] {
  border-left: 8px solid var(--gold);
}

.album-card[data-style="feature-left"],
.album-card[data-style="feature-right"],
.album-card[data-style="dense"] {
  border-left: 8px solid var(--clay);
}

.trivia-card {
  max-width: 760px;
  padding: 28px;
  text-align: center;
}

.trivia-progress {
  margin-bottom: 18px;
  color: var(--clay);
  font-weight: 800;
}

.trivia-options {
  display: grid;
  gap: 10px;
}

.trivia-options button,
.capsule-card button {
  min-height: 48px;
  border: 1px solid rgba(38, 48, 47, .14);
  border-radius: var(--radius);
  background: #f8faf8;
  color: var(--ink);
  cursor: pointer;
}

.trivia-options button.correct {
  border-color: #2f7d52;
  background: #dff2e7;
}

.trivia-options button.wrong {
  border-color: #aa4f4f;
  background: #f8dfdf;
}

.trivia-result {
  min-height: 28px;
  margin: 16px 0 0;
  color: var(--muted);
  font-weight: 700;
}

.route-maps {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(18px, 3vw, 30px);
  min-width: 0;
}

.route-map-card {
  display: grid;
  grid-template-rows: minmax(440px, 62vh) auto;
  gap: 12px;
  align-items: stretch;
  padding: clamp(12px, 1.8vw, 18px);
  border: 1px solid rgba(38, 48, 47, .12);
  border-radius: 8px;
  background: rgba(255, 250, 244, .88);
  box-shadow: 0 14px 34px rgba(38, 48, 47, .10);
}

.route-map-card h2,
.route-map-card h3 {
  margin-bottom: 4px;
  font-size: clamp(1.05rem, 1.4vw, 1.32rem);
}

.route-map-card p:not(.eyebrow) {
  margin: 0;
  color: var(--muted);
  font-size: clamp(.92rem, 1vw, 1.02rem);
  line-height: 1.5;
}

.route-map {
  width: 100%;
  height: 100%;
  min-height: 440px;
  border-radius: 8px;
  background: #dce8e2;
  overflow: hidden;
  pointer-events: none;
}

.route-map .leaflet-container,
.route-map.leaflet-container {
  width: 100%;
  height: 100%;
  min-height: 440px;
  font: inherit;
}

.route-map .leaflet-control-attribution,
.route-map.leaflet-container .leaflet-control-attribution {
  font-size: .52rem;
  line-height: 1;
}

.route-tooltip {
  border: 0;
  border-radius: 999px;
  width: max-content;
  max-width: 150px;
  background: rgba(255, 250, 244, .94);
  color: var(--ink);
  box-shadow: 0 8px 20px rgba(38, 48, 47, .12);
  font-family: Georgia, "Times New Roman", serif;
  font-size: .62rem;
  font-weight: 400;
  line-height: 1.15;
  text-align: center;
  white-space: normal;
}

.route-tooltip-spain {
  max-width: 96px;
  padding: 2px 6px;
  font-size: .58rem;
}

.map-unavailable {
  display: grid;
  place-items: center;
  padding: 14px;
  color: var(--muted);
  font-size: .7rem;
}

.message-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(240px, 1fr));
  gap: 16px;
  max-height: 520px;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 10px 12px 10px 2px;
  border: 1px solid rgba(178, 132, 58, .22);
  border-radius: 10px;
  background: rgba(255, 250, 244, .45);
  scroll-snap-type: y proximity;
  scrollbar-color: rgba(178, 132, 58, .58) rgba(255, 250, 244, .5);
  scrollbar-width: thin;
}

.message-grid::-webkit-scrollbar,
.outside-gallery::-webkit-scrollbar,
.guest-photo-grid::-webkit-scrollbar,
.collage-modal::-webkit-scrollbar {
  width: 10px;
  height: 0;
}

.message-grid::-webkit-scrollbar-track,
.outside-gallery::-webkit-scrollbar-track,
.guest-photo-grid::-webkit-scrollbar-track,
.collage-modal::-webkit-scrollbar-track {
  border-radius: 999px;
  background: rgba(255, 250, 244, .58);
}

.message-grid::-webkit-scrollbar-thumb,
.outside-gallery::-webkit-scrollbar-thumb,
.guest-photo-grid::-webkit-scrollbar-thumb,
.collage-modal::-webkit-scrollbar-thumb {
  border: 2px solid rgba(255, 250, 244, .74);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(178, 132, 58, .74), rgba(166, 106, 90, .58));
}

.message-card {
  position: relative;
  min-height: 220px;
  padding: 22px 22px 20px;
  overflow: hidden;
  border: 1px solid rgba(178, 132, 58, .18);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .94), rgba(255, 250, 244, .9)),
    var(--paper);
  box-shadow: 0 14px 34px rgba(76, 58, 44, .10);
  scroll-snap-align: start;
}

.message-card::before {
  content: "“";
  position: absolute;
  top: -22px;
  right: 16px;
  color: rgba(178, 132, 58, .13);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 7rem;
  line-height: 1;
}

.message-card blockquote {
  margin: 0 0 18px;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.02rem;
  line-height: 1.55;
}

.message-card blockquote p {
  margin: 0 0 10px;
  color: inherit;
  font-size: inherit;
  line-height: inherit;
}

.message-card blockquote p:last-child {
  margin-bottom: 0;
}

.message-card cite {
  display: block;
  margin-top: auto;
  color: var(--clay);
  font-style: normal;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
}

.message-card p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: .78rem;
}

.message-card a {
  display: inline-block;
  margin-top: 14px;
  color: var(--clay);
  font-weight: 800;
}

.empty-state {
  margin: 0;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.65;
}

.panel-hint {
  max-width: 680px;
  margin: -14px auto 18px;
  padding: 10px 14px;
  border: 1px solid rgba(178, 132, 58, .2);
  border-radius: 999px;
  background: rgba(255, 253, 248, .72);
  color: var(--muted);
  font-size: .82rem;
  text-align: center;
}

.is-loading {
  position: relative;
  min-height: 180px;
  overflow: hidden;
  border-radius: 16px;
  background: rgba(166, 106, 90, .08);
}

.is-loading::after {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .48), transparent);
  animation: skeletonMove 1.2s linear infinite;
}

@keyframes skeletonMove {
  to {
    transform: translateX(100%);
  }
}

.outside-gallery,
.guest-photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 16px;
}

.guest-photo-grid {
  max-height: min(48vh, 430px);
  overflow-x: hidden;
  overflow-y: auto;
  padding-right: 8px;
  scrollbar-color: rgba(178, 132, 58, .58) rgba(255, 250, 244, .5);
  scrollbar-width: thin;
}

.outside-gallery {
  max-height: 680px;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 10px 12px 10px 2px;
  border: 1px solid rgba(178, 132, 58, .22);
  border-radius: 10px;
  background: rgba(255, 250, 244, .45);
  scrollbar-color: rgba(178, 132, 58, .58) rgba(255, 250, 244, .5);
  scrollbar-width: thin;
}

.outside-person,
.guest-photo-group {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(178, 132, 58, .14);
  border-radius: 8px;
  background: rgba(255, 253, 248, .78);
}

.outside-person h2,
.guest-photo-group h2 {
  margin: 0;
  font-size: clamp(1.2rem, 2vw, 1.55rem);
  color: var(--clay);
}

.person-photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(138px, 1fr));
  gap: 12px;
}

.outside-gallery button,
.guest-photo-grid button,
.collage-item {
  border: 0;
  border-radius: var(--radius);
  padding: 0;
  overflow: hidden;
  background: var(--white);
  box-shadow: var(--shadow);
  cursor: zoom-in;
}

.outside-gallery button {
  aspect-ratio: 4 / 5;
}

.outside-gallery img,
.guest-photo-grid img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #eef3ee;
}

.capsule-card {
  position: relative;
  width: min(100%, 780px);
  max-width: 780px;
  min-height: clamp(300px, 34vw, 390px);
  display: grid;
  place-items: center;
  margin: 0 auto;
  padding: clamp(40px, 6vw, 66px) clamp(18px, 5vw, 58px) clamp(28px, 4vw, 44px);
  text-align: center;
  overflow: visible;
  border: 1px solid rgba(178, 132, 58, .34);
  border-radius: 10px;
  background: linear-gradient(180deg, #fffdf8, #f7efe4);
  box-shadow: 0 24px 58px rgba(76, 58, 44, .13);
}

.capsule-card::before {
  content: "";
  position: absolute;
  inset: 0;
  height: 58%;
  background:
    linear-gradient(28deg, transparent calc(50% - 1px), rgba(178, 132, 58, .25) 50%, transparent calc(50% + 1px)) left top / 50% 100% no-repeat,
    linear-gradient(152deg, transparent calc(50% - 1px), rgba(178, 132, 58, .25) 50%, transparent calc(50% + 1px)) right top / 50% 100% no-repeat,
    linear-gradient(180deg, rgba(255, 250, 244, .94), rgba(214, 173, 98, .10));
  border-bottom: 1px solid rgba(178, 132, 58, .18);
  pointer-events: none;
}

.capsule-lock,
.capsule-content {
  position: relative;
  z-index: 1;
}

.capsule-lock {
  width: min(100%, 620px);
  min-height: auto;
  height: auto;
  display: grid;
  gap: clamp(14px, 2vw, 22px);
  align-items: center;
  justify-items: center;
  overflow: visible;
}

.capsule-kicker {
  display: inline-grid;
  place-items: center;
  min-width: 118px;
  min-height: 38px;
  margin-bottom: clamp(14px, 2vw, 20px);
  border: 1px solid rgba(178, 132, 58, .32);
  border-radius: 999px;
  background: rgba(255, 253, 248, .84);
  color: var(--clay);
  font-family: Georgia, "Times New Roman", serif;
  font-size: .78rem;
  font-weight: 400;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.capsule-text {
  max-width: 520px;
  margin: -8px auto 0;
  color: #725f58;
  line-height: 1.55;
  text-align: center;
}

#capsuleCountdown {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(4, minmax(44px, 1fr));
  justify-content: center;
  gap: clamp(5px, 1vw, 8px);
  width: min(100%, 420px);
  max-width: 100%;
  margin: 0 auto 20px;
  color: var(--muted);
  overflow: visible;
  white-space: normal;
  text-wrap: balance;
}

.capsule-countdown__unit {
  display: grid;
  justify-items: center;
  gap: 3px;
  min-width: 0;
  min-height: 58px;
  padding: clamp(7px, 1.4vw, 10px);
  border: 1px solid rgba(166, 106, 90, .16);
  border-radius: 16px;
  background: rgba(255, 255, 255, .72);
  box-shadow:
    0 10px 24px rgba(80, 44, 36, .08),
    inset 0 1px 0 rgba(255, 255, 255, .65);
  overflow: visible;
}

.capsule-countdown__unit strong {
  max-width: 100%;
  color: #8f4d42;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1rem, 3vw, 1.45rem);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  line-height: .95;
  overflow-wrap: anywhere;
  white-space: nowrap;
}

.capsule-countdown__unit span {
  color: #80665d;
  font-size: clamp(.52rem, 1.2vw, .64rem);
  letter-spacing: .05em;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
}

.capsule-card button:disabled {
  cursor: not-allowed;
  opacity: .58;
}

.capsule-content {
  max-width: 620px;
  color: var(--muted);
  font-size: 1.1rem;
  line-height: 1.7;
}

.song-frame {
  max-width: 1000px;
  padding: 18px;
}

.song-frame iframe {
  width: 100%;
  min-height: 152px;
  border: 0;
  border-radius: var(--radius);
}

.now-playing {
  display: grid;
  grid-template-columns: minmax(260px, .8fr) minmax(0, 1.2fr);
  gap: 18px;
  margin-bottom: 16px;
  overflow: hidden;
  border-radius: var(--radius);
  background: linear-gradient(135deg, #fff7ef, #eef3ee);
}

.now-copy {
  padding: 26px;
}

.now-copy h2 {
  margin-bottom: 8px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.9rem, 4vw, 3rem);
}

.now-copy span {
  display: block;
  margin-bottom: 14px;
  color: var(--clay);
  font-weight: 900;
}

.now-copy p:not(.eyebrow) {
  color: var(--muted);
  line-height: 1.6;
}

.now-copy strong {
  display: inline-block;
  border-radius: 999px;
  padding: 8px 12px;
  background: var(--ink);
  color: var(--white);
}

.now-embed {
  display: grid;
  align-items: center;
  padding: 18px;
}

.missing-embed {
  display: grid;
  min-height: 152px;
  place-items: center;
  border: 1px dashed rgba(38, 48, 47, .28);
  border-radius: var(--radius);
  color: var(--muted);
  text-align: center;
}

.song-deck {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 12px;
}

.song-card {
  min-height: 190px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  padding: 18px;
  border: 1px solid rgba(38, 48, 47, .1);
  border-radius: var(--radius);
  background: #f8faf8;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
}

.song-card:hover,
.song-card.active {
  border-color: rgba(168, 101, 79, .55);
  background: #fff5f2;
}

.song-card span {
  color: var(--clay);
  font-weight: 800;
}

.song-card strong {
  font-size: 1.15rem;
}

.song-card small {
  color: var(--clay);
  font-weight: 800;
}

.song-card p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.5;
}


.lightbox,
.easter-modal,
.collage-modal,
.action-modal {
  position: fixed;
  z-index: 2500;
  inset: 50% auto auto 50%;
  transform: translate(-50%, -50%);
  width: min(920px, calc(100vw - 24px));
  max-height: min(760px, calc(100dvh - 24px));
  overflow: auto;
  border: 0;
  border-radius: 24px;
  padding: clamp(18px, 4vw, 34px);
  box-shadow: var(--shadow);
}

.lightbox {
  width: min(980px, calc(100% - 28px));
  max-height: min(88vh, 820px);
  overflow: hidden;
  border: 1px solid rgba(178, 132, 58, .42);
  border-radius: 18px;
  padding: clamp(12px, 2vw, 20px);
  background:
    linear-gradient(135deg, rgba(255, 253, 248, .98), rgba(247, 239, 228, .96)),
    var(--paper);
  box-shadow: 0 28px 80px rgba(38, 48, 47, .26);
}

.lightbox::backdrop,
.easter-modal::backdrop,
.collage-modal::backdrop,
.action-modal::backdrop {
  background: rgba(38, 20, 16, .46);
  backdrop-filter: blur(8px);
}

.lightbox img {
  display: block;
  width: 100%;
  max-height: calc(88vh - 66px);
  margin: 0 auto;
  object-fit: contain;
  border: 1px solid rgba(178, 132, 58, .24);
  border-radius: 14px;
  padding: clamp(7px, 1.4vw, 12px);
  background: #111111;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08), 0 16px 34px rgba(38, 48, 47, .16);
}

.lightbox.is-vertical-photo {
  width: min(620px, calc(100% - 28px));
}

.lightbox.is-vertical-photo img {
  width: auto;
  max-width: 100%;
  max-height: min(72vh, 690px);
}

.lightbox.is-horizontal-photo img {
  max-height: min(78vh, 760px);
}

.dialog-close {
  display: block;
  margin: 0 0 12px auto;
  border: 1px solid rgba(168, 101, 79, .42);
  border-radius: 999px;
  padding: 10px 18px;
  background: rgba(255, 250, 244, .72);
  color: var(--clay);
  cursor: pointer;
}

.lightbox .dialog-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  margin: 0;
  background: rgba(255, 253, 248, .88);
  box-shadow: 0 10px 24px rgba(38, 48, 47, .14);
}

#lightboxCaption {
  display: none;
}

.easter-modal {
  max-width: 620px;
}

.action-modal {
  max-width: 680px;
  background: var(--paper);
}

.form-heading {
  max-width: 560px;
  margin-bottom: 20px;
}

.form-heading p:not(.eyebrow) {
  color: var(--muted);
  line-height: 1.6;
}

.guest-form {
  display: grid;
  gap: 14px;
}

.guest-form label {
  display: grid;
  gap: 7px;
  color: var(--clay);
  font-weight: 900;
}

.guest-form input,
.guest-form textarea {
  width: 100%;
  border: 1px solid rgba(38, 48, 47, .16);
  border-radius: var(--radius);
  padding: 12px;
  background: var(--white);
  color: var(--ink);
  font: inherit;
}

.guest-form textarea {
  resize: vertical;
}

.guest-form button {
  min-height: 46px;
  border: 0;
  border-radius: 999px;
  padding: 10px 16px;
  background: var(--ink);
  color: var(--white);
  font-weight: 900;
  cursor: pointer;
}

.form-status {
  min-height: 24px;
  margin: 0;
  color: var(--muted);
  font-weight: 800;
}

.admin-modal {
  width: min(980px, calc(100vw - 24px));
}

.admin-list {
  display: grid;
  gap: 14px;
  max-height: min(58vh, 560px);
  overflow-x: hidden;
  overflow-y: auto;
  padding: 4px 6px 4px 0;
  scrollbar-color: rgba(178, 132, 58, .58) rgba(255, 250, 244, .5);
  scrollbar-width: thin;
}

.admin-card {
  display: grid;
  gap: 10px;
  border: 1px solid rgba(178, 132, 58, .24);
  border-radius: 14px;
  padding: 14px;
  background: rgba(255, 253, 248, .78);
}

.admin-card--photo {
  grid-template-columns: 96px minmax(0, 1fr);
  align-items: start;
}

.admin-card__thumb {
  width: 96px;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 10px;
  background: #111111;
}

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

.admin-card label {
  display: grid;
  gap: 6px;
  color: var(--clay);
  font-weight: 900;
}

.admin-card input,
.admin-card textarea {
  width: 100%;
  border: 1px solid rgba(38, 48, 47, .16);
  border-radius: 10px;
  padding: 10px 11px;
  background: var(--white);
  color: var(--ink);
  font: inherit;
}

.admin-card textarea {
  resize: vertical;
}

.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.admin-actions button {
  min-height: 40px;
  border: 0;
  border-radius: 999px;
  padding: 9px 14px;
  background: var(--ink);
  color: var(--white);
  font-weight: 900;
  cursor: pointer;
}

.admin-actions .admin-delete {
  background: #9f3142;
}

.guest-photo-grid button {
  aspect-ratio: 4 / 5;
  cursor: zoom-in;
}

.collage-modal {
  z-index: 2500;
  width: min(1120px, calc(100% - 36px));
  max-height: 84vh;
  overflow-x: hidden;
  overflow-y: auto;
  border: 1px solid rgba(178, 132, 58, .5);
  outline: 0;
  padding: clamp(16px, 2.4vw, 30px);
  box-shadow: var(--shadow);
  background:
    radial-gradient(circle at 86% 18%, rgba(214, 173, 98, .12), transparent 24%),
    linear-gradient(135deg, rgba(255, 250, 244, .98), rgba(247, 239, 228, .96));
  scrollbar-color: rgba(178, 132, 58, .58) rgba(255, 250, 244, .5);
  scrollbar-width: thin;
}

.collage-modal .dialog-close {
  position: sticky;
  z-index: 2;
  top: 0;
}

.collage-heading {
  max-width: 780px;
  margin-bottom: clamp(26px, 4vw, 42px);
}

.collage-heading .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: var(--clay);
}

.collage-heading .eyebrow::after {
  content: "";
  width: 120px;
  height: 1px;
  background: rgba(168, 101, 79, .32);
}

.collage-heading h1,
.collage-heading h2 {
  margin-bottom: 16px;
  font-size: clamp(1.7rem, 3vw, 2.5rem);
  line-height: 1;
}

.collage-heading p:not(.eyebrow) {
  color: var(--muted);
  line-height: 1.65;
}

.collage-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  align-items: stretch;
  gap: clamp(14px, 2vw, 22px);
  padding: 6px clamp(4px, 1vw, 10px) 18px;
}

.collage-item {
  display: grid;
  place-items: center;
  min-height: 0;
  aspect-ratio: 16 / 10;
  border: 0;
  background: #fffdf8;
  cursor: zoom-in;
}

.collage-item img {
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  object-fit: contain;
  background: #111111;
  transition: transform .35s ease, filter .35s ease;
}

.collage-item.is-horizontal {
  aspect-ratio: 16 / 10;
}

.collage-item.is-horizontal img {
  object-fit: contain;
  aspect-ratio: auto;
}

.collage-item.is-vertical {
  aspect-ratio: 4 / 5;
}

.collage-item.is-vertical img {
  object-fit: contain;
  aspect-ratio: auto;
}

.collage-item:hover img {
  transform: scale(1.04);
}

.instant-photo,
.framed-photo {
  position: relative;
}

.instant-photo {
  padding: 12px;
  border-radius: 6px;
  background: #fffdf8;
  box-shadow: 0 18px 36px rgba(38, 48, 47, .18);
  transform: rotate(calc((var(--item-index) - 8) * .28deg));
}

.instant-photo img {
  border-radius: 3px;
}

.timeline .timeline-photo.instant-photo {
  position: absolute;
  left: 50%;
  bottom: calc(50% + 30px);
  --timeline-photo-rest: translateX(-50%) rotate(-3deg);
  transform: var(--timeline-photo-rest);
}

.timeline .timeline-item:nth-child(even) .timeline-photo.instant-photo {
  top: calc(50% + 50px);
  bottom: auto;
  --timeline-photo-rest: translateX(-50%) rotate(2.5deg);
  transform: var(--timeline-photo-rest);
}

.timeline .timeline-item:nth-child(3n) .timeline-photo.instant-photo {
  --timeline-photo-rest: translateX(-50%) rotate(1.5deg);
  transform: var(--timeline-photo-rest);
}

.timeline .timeline-photo-card:hover .timeline-photo.instant-photo,
.timeline .timeline-photo-card:focus-visible .timeline-photo.instant-photo {
  transform: translateX(-50%) translateY(-8px) rotate(0);
}

.framed-photo {
  padding: 8px;
  border: 1px solid rgba(38, 48, 47, .14);
  border-radius: var(--radius);
  background: #f7faf7;
  box-shadow: 0 12px 30px rgba(38, 48, 47, .12);
}

.framed-photo img {
  border-radius: 6px;
}

.collage-mosaic {
  grid-template-columns: repeat(6, 1fr);
}

.collage-mosaic .collage-item:nth-child(6n + 1),
.collage-feature-left .collage-item:first-child,
.collage-feature-right .collage-item:first-child {
  grid-column: span 3;
  grid-row: span 2;
  min-height: 340px;
}

.collage-mosaic .collage-item:nth-child(6n + 4),
.collage-checker .collage-item:nth-child(4n + 2),
.collage-dense .collage-item:nth-child(7n + 3) {
  grid-column: span 2;
}

.collage-columns {
  display: block;
  column-count: 4;
  column-gap: 12px;
}

.collage-columns .collage-item {
  width: 100%;
  min-height: auto;
  margin-bottom: 12px;
  break-inside: avoid;
}

.collage-columns .collage-item img {
  height: auto;
}

.collage-feature-left,
.collage-feature-right,
.collage-checker,
.collage-stacked,
.collage-dense,
.collage-polaroid,
.collage-cinematic {
  grid-template-columns: repeat(5, 1fr);
}

.collage-feature-left .collage-item,
.collage-feature-right .collage-item,
.collage-checker .collage-item,
.collage-stacked .collage-item,
.collage-dense .collage-item,
.collage-polaroid .collage-item,
.collage-cinematic .collage-item {
  grid-column: span 1;
}

.collage-feature-right .collage-item:first-child {
  order: 5;
}

.collage-checker .collage-item:nth-child(odd) {
  min-height: 240px;
}

.collage-panorama {
  grid-template-columns: repeat(4, 1fr);
}

.collage-panorama .collage-item:nth-child(5n + 1) {
  grid-column: span 4;
  min-height: 320px;
}

.collage-stacked .collage-item:nth-child(3n + 1) {
  grid-column: span 2;
  min-height: 260px;
}

.collage-dense {
  grid-template-columns: repeat(7, 1fr);
}

.collage-dense .collage-item {
  min-height: 130px;
}

.collage-polaroid {
  align-items: start;
  padding: 8px;
}

.collage-polaroid .collage-item {
  border: 10px solid var(--white);
  box-shadow: 0 16px 34px rgba(38, 48, 47, .18);
  transform: rotate(calc((var(--item-index) - 8) * .45deg));
}

.collage-cinematic {
  grid-template-columns: repeat(6, 1fr);
  background: #151b1b;
  padding: 10px;
  border-radius: var(--radius);
}

.collage-cinematic .collage-item {
  grid-column: span 2;
  min-height: 240px;
  box-shadow: none;
}

.collage-cinematic .collage-item:first-child {
  grid-column: span 6;
  min-height: 420px;
}

.collage-grid.collage-mosaic,
.collage-grid.collage-feature-left,
.collage-grid.collage-feature-right,
.collage-grid.collage-checker,
.collage-grid.collage-stacked,
.collage-grid.collage-dense,
.collage-grid.collage-polaroid,
.collage-grid.collage-cinematic,
.collage-grid.collage-panorama,
.collage-grid.collage-columns {
  display: grid;
  grid-template-columns: repeat(3, minmax(150px, 1fr));
  grid-auto-flow: row;
  column-count: initial;
  align-items: start;
  gap: clamp(10px, 1.4vw, 16px);
  padding: 6px clamp(4px, 1vw, 10px) 18px;
  background: transparent;
}

.collage-grid .collage-item,
.collage-grid .collage-item:nth-child(n) {
  grid-column: auto;
  grid-row: auto;
  min-height: auto;
  width: auto;
  margin-bottom: 0;
  aspect-ratio: 16 / 10;
  transform: none;
  overflow: hidden;
}

.collage-grid .collage-item.is-vertical {
  aspect-ratio: 2 / 3;
  min-height: clamp(260px, 30vw, 400px);
}

.collage-grid .collage-item.is-horizontal {
  aspect-ratio: 16 / 9;
  min-height: clamp(150px, 18vw, 240px);
}

.collage-grid .collage-item img,
.collage-columns .collage-item img {
  height: 100%;
  width: 100%;
  object-fit: contain;
  background: #111111;
}

.collage-grid .collage-item.is-vertical img {
  width: auto;
  max-width: 100%;
}

@media (min-width: 821px) {
  .collage-grid .collage-item:nth-child(6n + 1),
  .collage-grid .collage-item:nth-child(6n + 4) {
    transform: none;
  }

  .collage-grid .collage-item:nth-child(6n + 2),
  .collage-grid .collage-item:nth-child(6n + 5) {
    transform: none;
  }

  .collage-grid .collage-item:nth-child(7n + 3) {
    grid-column: auto;
  }
}

.easter-modal p {
  color: var(--muted);
  line-height: 1.7;
}

@media (max-width: 820px), (max-device-width: 820px) {
  .hero {
    place-items: center;
    padding: 116px 20px 72px;
    background: var(--ink);
  }

  .hero::after {
    width: 100%;
    background-color: #151b1b;
    background-position: center center;
    background-size: contain;
  }

  .hero::before {
    inset: 0;
    background: linear-gradient(180deg, rgba(22, 20, 19, .20), rgba(22, 20, 19, .08));
  }

  .hero-content {
    width: min(980px, calc(100% - 40px));
    padding-top: 74px;
    text-shadow: 0 2px 18px rgba(0, 0, 0, .34);
  }

  .site-nav {
    top: 12px;
    left: 8px;
    right: 8px;
    width: max-content;
    max-width: calc(100vw - 16px);
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    padding: 6px;
    scroll-padding-inline: 8px;
    border-radius: 18px;
    background: rgba(38, 48, 47, .98);
  }

  .site-nav a {
    flex: 0 0 auto;
    padding: 6px 8px;
    font-size: .76rem;
  }

  .site-nav::-webkit-scrollbar {
    display: none;
  }

  .counter {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .counter article {
    min-height: 88px;
    padding: 12px 8px;
  }

  .counter strong {
    font-size: clamp(1.15rem, 6vw, 1.65rem);
  }

  .counter span {
    font-size: .58rem;
  }

  .timeline {
    min-height: 470px;
    padding-top: 60px;
    padding-bottom: 60px;
    gap: 24px;
  }

  .timeline-photo-card:hover .timeline-photo,
  .timeline-photo-card:focus-visible .timeline-photo {
    transform: var(--timeline-photo-rest);
  }

  .timeline-item:nth-child(even) .timeline-photo-card:hover .timeline-photo,
  .timeline-item:nth-child(even) .timeline-photo-card:focus-visible .timeline-photo {
    transform: var(--timeline-photo-rest);
  }

  .timeline-item,
  .timeline-item:nth-child(even),
  .timeline-item:nth-child(odd) {
    flex-basis: min(238px, 72vw);
    height: 380px;
    width: auto;
  }

  .timeline-copy {
    width: min(230px, 100%);
  }

  .map-shell {
    grid-template-columns: 1fr;
  }

  #trivia {
    grid-template-columns: 1fr;
  }

  .route-maps {
    grid-template-columns: 1fr;
  }

  .route-map-card {
    grid-template-rows: minmax(360px, 48vh) auto;
    padding: 12px;
  }

  .album-card {
    grid-template-columns: 1fr;
  }

  .now-playing {
    grid-template-columns: 1fr;
  }

  .gallery {
    column-count: 2;
  }

  .memory-film {
    grid-template-columns: repeat(2, minmax(220px, 1fr));
    gap: 28px;
  }

  .film-card {
    grid-template-columns: 1fr;
    min-height: 410px;
  }

  .film-card:nth-child(n) {
    transform: none;
  }

  .film-card:hover {
    transform: translateY(-6px);
  }

  .collage-mosaic,
  .collage-feature-left,
  .collage-feature-right,
  .collage-checker,
  .collage-stacked,
  .collage-dense,
  .collage-polaroid,
  .collage-cinematic,
  .collage-panorama {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .collage-columns {
    column-count: 2;
  }

  .collage-mosaic .collage-item:nth-child(n),
  .collage-feature-left .collage-item:nth-child(n),
  .collage-feature-right .collage-item:nth-child(n),
  .collage-checker .collage-item:nth-child(n),
  .collage-stacked .collage-item:nth-child(n),
  .collage-dense .collage-item:nth-child(n),
  .collage-polaroid .collage-item:nth-child(n),
  .collage-cinematic .collage-item:nth-child(n),
  .collage-panorama .collage-item:nth-child(n) {
    grid-column: auto;
    grid-row: auto;
    min-height: auto;
  }

  .collage-cinematic .collage-item:first-child,
  .collage-panorama .collage-item:nth-child(5n + 1) {
    grid-column: auto;
    min-height: auto;
  }
}

@media (min-width: 1200px) {
  #historia {
    padding-left: max(44px, calc((100vw - 1480px) / 2));
    padding-right: max(44px, calc((100vw - 1480px) / 2));
  }

  .timeline {
    --timeline-gutter: clamp(50px, 5vw, 82px);
    min-height: 640px;
    padding-top: 96px;
    padding-bottom: 112px;
  }

  .timeline-item {
    flex-basis: 350px;
    height: 530px;
  }

  .timeline-photo {
    width: 318px;
  }

  .timeline-copy {
    width: 300px;
  }
}

@media (max-width: 768px), (max-device-width: 768px) {
  .timeline-ecg-svg {
    height: 44px;
  }

  .timeline {
    --timeline-line-height: 2px;
    --timeline-pulse-speed: 5.4s;
  }
}

@media (prefers-reduced-motion: reduce) {
  .timeline-ecg-line--glow,
  .timeline-ecg-line--core,
  .timeline-ecg-line--spark {
    animation: none;
  }

  .timeline-ecg-head {
    display: none;
  }
}

@media (max-width: 560px), (max-device-width: 560px) {
  .section {
    padding-left: 32px;
    padding-right: 32px;
  }

  .hero-content {
    width: calc(100% - 32px);
    padding-top: 112px;
  }

  .action-dock {
    left: 16px;
    right: 16px;
    bottom: 16px;
    z-index: 80;
    justify-items: stretch;
  }

  .action-toggle {
    width: 100%;
    min-height: 50px;
  }

  .action-menu {
    width: 100%;
    min-width: 0;
  }

  .action-menu button {
    border-radius: 999px;
  }

  .admin-card--photo {
    grid-template-columns: 1fr;
  }

  .admin-card__thumb {
    width: 100%;
    max-height: 220px;
  }

  .guest-photo-grid {
    grid-template-columns: 1fr;
  }

  .message-grid,
  .outside-gallery {
    grid-template-columns: 1fr;
  }

  .message-grid {
    max-height: 760px;
  }

  .film-summary {
    padding: 12px 2px 2px;
  }

  .site-photo-band .section-heading {
    max-width: min(100%, 360px);
  }

  .site-photo-band .section-heading h2 {
    font-size: clamp(1.45rem, 7vw, 2rem);
    line-height: 1.08;
    text-wrap: balance;
  }

  .memory-film {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .film-card {
    min-height: 360px;
    padding: 11px;
  }

  .film-card::before {
    top: -13px;
    width: 70px;
    height: 23px;
  }

  .film-summary h2 {
    font-size: .95rem;
  }

  .film-summary p:not(.eyebrow) {
    font-size: .78rem;
  }

  .counter article {
    min-height: 92px;
  }

  .gallery {
    column-count: 1;
  }

  .album-photos {
    grid-template-columns: 1fr;
  }

  .collage-modal {
    width: calc(100% - 16px);
    max-height: calc(100dvh - 20px);
    border-radius: 22px;
    padding: 14px;
  }

  .collage-grid,
  .collage-mosaic,
  .collage-feature-left,
  .collage-feature-right,
  .collage-checker,
  .collage-stacked,
  .collage-dense,
  .collage-polaroid,
  .collage-cinematic,
  .collage-panorama {
    grid-template-columns: 1fr;
  }

  .collage-columns {
    column-count: 1;
  }

  .collage-cinematic .collage-item:first-child,
  .collage-panorama .collage-item:nth-child(5n + 1) {
    grid-column: span 1;
  }

  .timeline-photo-card {
    min-height: 320px;
  }

  .collage-grid,
  .collage-mosaic,
  .collage-feature-left,
  .collage-feature-right,
  .collage-checker,
  .collage-stacked,
  .collage-dense,
  .collage-polaroid,
  .collage-cinematic,
  .collage-panorama {
    grid-template-columns: 1fr;
  }

  .collage-grid .collage-item,
  .collage-grid .collage-item:nth-child(n) {
    padding: 10px;
    transform: none;
  }

  .collage-item.is-horizontal {
    aspect-ratio: 16 / 10;
    min-height: 200px;
  }

  .collage-item.is-vertical {
    aspect-ratio: 2 / 3;
    min-height: min(520px, 118vw);
  }

  .route-map,
  .route-map .leaflet-container,
  .route-map.leaflet-container {
    height: 100%;
    min-height: 360px;
  }

  .capsule-card {
    min-height: 360px;
    padding: 38px 14px 26px;
  }

  #capsuleCountdown {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 4px;
    width: min(100%, 300px);
    margin-left: auto;
    margin-right: auto;
  }

  .capsule-countdown__unit {
    min-width: 0;
    min-height: 50px;
    padding: 7px 4px;
    text-align: center;
    border-radius: 11px;
  }

  .capsule-countdown__unit strong {
    font-size: clamp(.82rem, 4.5vw, 1.12rem);
  }

  .capsule-countdown__unit span {
    margin-top: 0;
    font-size: .47rem;
    letter-spacing: .03em;
  }

  #memoryMap {
    min-height: 360px;
  }
}

@media (max-width: 640px), (max-device-width: 640px) {
  .lightbox,
  .easter-modal,
  .collage-modal,
  .action-modal {
    width: calc(100vw - 20px);
    max-height: calc(100dvh - 20px);
    border-radius: 22px;
  }
}

@media (max-width: 340px), (max-device-width: 340px) {
  #capsuleCountdown {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    width: 100%;
    gap: 3px;
  }

  .capsule-countdown__unit {
    min-height: 46px;
    padding: 6px 2px;
  }

  .capsule-countdown__unit strong {
    font-size: .82rem;
  }

  .capsule-countdown__unit span {
    font-size: .4rem;
  }
}

.action-menu button,
.map-link,
.text-link,
.song-link,
.place-button,
.album-open,
.capsule-card button,
.song-card,
.now-copy strong,
.guest-form button,
.dialog-close,
.trivia-options button,
.guest-photo-grid button,
.timeline-copy em {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
}

@media (prefers-reduced-motion: reduce) {
  .reveal-item,
  .reveal-item.is-visible {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .film-stage img {
    animation: none;
  }
}
