@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Italiana&display=swap");
:root {
  --ink: #262522;
  --muted: #706b65;
  --paper: #eeeae3;
  --white: #faf8f3;
  --line: #c6bfb5;
  --dark: #272b29;
  --accent: #a7684c;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font:
    16px/1.65 "DM Sans",
    Arial,
    sans-serif;
}
body.modal-open {
  overflow: hidden;
}
h1,
h2,
h3,
h4,
blockquote {
  font-family: "Italiana", Georgia, serif;
  font-weight: 400;
  line-height: 1.06;
  margin: 0;
}
p,
figure {
  margin: 0;
}
img {
  display: block;
  width: 100%;
  object-fit: cover;
}
button,
input {
  font: inherit;
}
button {
  cursor: pointer;
}
a {
  color: inherit;
  text-decoration: none;
}
.eyebrow {
  font:
    600 0.76rem/1.4 "DM Sans",
    sans-serif;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
.button,
.topbar__button,
.text-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 10px 22px;
  border: 1px solid currentColor;
  border-radius: 0;
  background: transparent;
  color: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  transition:
    background 0.25s,
    color 0.25s,
    transform 0.25s;
}
.button:hover,
.topbar__button:hover,
.text-link:hover {
  background: var(--ink);
  color: var(--white);
  transform: translateY(-2px);
}
.button--dark {
  background: var(--dark);
  border-color: var(--dark);
  color: var(--white);
}
.button--dark:hover {
  background: var(--accent);
}
.button--sand {
  background: var(--white);
  border-color: var(--white);
  color: var(--dark);
}
.button--sand:hover {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
}
.button--outline-light {
  color: var(--white);
  border-color: #ffffff88;
}
.intro-screen {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  background:
    linear-gradient(#0c1010bb, #0c1010a8),
    url("./assets/img/boda-hero-pareja.jpg") center 42% / cover;
  color: var(--white);
  transition:
    opacity 0.7s,
    visibility 0.7s;
}
.intro-screen.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.intro-screen__card {
  text-align: center;
  width: min(900px, 90vw);
  padding: 10vh 2rem;
}
.intro-screen__card h1 {
  font-size: clamp(5rem, 13vw, 12rem);
  line-height: 0.87;
  margin: 2rem auto;
  max-width: 8ch;
}
.intro-screen__card > p:not(.eyebrow) {
  font-family: Georgia, serif;
  font-size: clamp(1rem, 2vw, 1.35rem);
  max-width: 40ch;
  margin: 0 auto 2.5rem;
}
.chapter-rail {
  position: fixed;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 50;
  display: flex;
  flex-direction: column;
  padding: 18px 14px;
  background: #242725e6;
  color: #eee9df;
  gap: 4px;
}
.chapter-rail__item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 0;
  opacity: 0.48;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.chapter-rail__item span {
  font-size: 0.68rem;
}
.chapter-rail__item.is-active,
.chapter-rail__item:hover {
  opacity: 1;
}
.chapter-rail__item.is-active:before {
  content: "";
  height: 1px;
  width: 12px;
  background: currentColor;
}
.hero {
  min-height: 100vh;
  background: var(--dark);
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.topbar {
  position: relative;
  z-index: 3;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px clamp(24px, 5vw, 82px);
  border-bottom: 1px solid #ffffff42;
}
.brand {
  font-family: Georgia, serif;
  font-size: 1.6rem;
}
.topbar__actions {
  display: flex;
  gap: 12px;
}
.topbar__button {
  border: 0;
  padding: 8px 6px;
  min-height: 35px;
  color: var(--white);
}
.hero__layout {
  min-height: calc(100vh - 84px);
  display: grid;
  grid-template-columns: 48% 52%;
  align-items: center;
}
.hero__copy {
  position: relative;
  z-index: 2;
  padding: 8vw 2vw 9vw clamp(24px, 8vw, 150px);
}
.hero__copy .eyebrow {
  color: #cdb69f;
}
.hero h1 {
  font-size: clamp(5.2rem, 10.6vw, 11rem);
  line-height: 0.86;
  letter-spacing: -0.035em;
  margin: 28px 0 32px;
  max-width: 6ch;
}
.hero h1 span {
  display: block;
  font-style: italic;
  white-space: nowrap;
}
.hero__lead {
  font-family: Georgia, serif;
  font-size: clamp(1.15rem, 1.7vw, 1.55rem);
  max-width: 38ch;
}
.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 25px;
  margin: 34px 0 26px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 0.7rem;
  color: #d2c7ba;
}
.hero__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.hero__visual {
  height: 100%;
  min-height: 650px;
  position: relative;
}
.hero-frame--main {
  position: absolute;
  inset: 0;
}
.hero-frame--main img {
  height: 100%;
  filter: saturate(0.75);
}
.hero-frame--main:after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, var(--dark), transparent 36%),
    linear-gradient(0deg, #1b1b1b66, transparent 45%);
}
.hero-frame--small {
  position: absolute;
  bottom: 7%;
  left: -14%;
  width: 29%;
  height: 30%;
  padding: 8px;
  background: var(--paper);
  transform: rotate(-5deg);
  box-shadow: 0 25px 60px #0007;
}
.hero-frame--small img {
  height: 100%;
}
.hero__chapter-note {
  position: absolute;
  right: 16%;
  bottom: 7%;
  max-width: 180px;
  border-top: 1px solid #fff8;
  padding-top: 14px;
}
.hero__chapter-note span {
  display: block;
  text-transform: uppercase;
  font-size: 0.65rem;
  letter-spacing: 0.15em;
}
.hero__chapter-note strong {
  font:
    1.1rem Georgia,
    serif;
}
.audio-dock {
  position: absolute;
  z-index: 4;
  left: clamp(24px, 8vw, 150px);
  bottom: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  width: min(400px, 70vw);
  font-size: 0.72rem;
}
.audio-dock__play {
  border: 1px solid #fff8;
  border-radius: 50%;
  width: 38px;
  height: 38px;
  background: transparent;
  color: white;
}
.audio-dock__meta {
  display: flex;
  flex-direction: column;
  white-space: nowrap;
}
.audio-dock__progress {
  width: 100%;
  accent-color: #e5c8ae;
}
.chapter {
  padding: clamp(90px, 12vw, 180px) clamp(24px, 8vw, 150px);
  scroll-margin-top: 20px;
}
.chapter__heading {
  margin-bottom: 65px;
  max-width: 850px;
}
.chapter__heading h2,
.letter-experience h2,
.after-card h2 {
  font-size: clamp(4.2rem, 8vw, 9rem);
  margin: 18px 0 25px;
  letter-spacing: -0.025em;
}
.chapter__heading > p:not(.eyebrow),
.chapter__heading--split > p {
  max-width: 60ch;
  color: var(--muted);
  font-family: Georgia, serif;
  font-size: 1.2rem;
}
.chapter__heading--split {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 50px;
  max-width: none;
}
.chapter__heading--split > p {
  max-width: 30ch;
}
.chapter--invitation {
  background: #d9d2c6;
}
.invitation-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 8vw;
  align-items: center;
}
.invitation-card {
  max-width: 500px;
}
.invitation-card h3 {
  font-size: clamp(4rem, 7vw, 7rem);
  margin: 20px 0;
}
.invitation-card__date {
  display: flex;
  align-items: baseline;
  gap: 15px;
  border-block: 1px solid #5556;
  padding: 20px 0;
  margin: 25px 0;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.8rem;
}
.invitation-card__date strong {
  font:
    5rem "Italiana",
    Georgia,
    serif;
  letter-spacing: 0;
}
.invitation-card__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 30px;
}
.invitation-preview-card {
  background: #f5f0e7;
  padding: clamp(20px, 3vw, 55px);
  transform: rotate(2deg);
  box-shadow: 24px 30px 75px #554d4430;
}
.invitation-preview-card__sheet {
  border: 1px solid #bfb5a7;
  text-align: center;
  padding: clamp(30px, 6vw, 90px) 20px;
  background: #faf7f1;
}
.invitation-preview-card__eyebrow {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.invitation-preview-card h3 {
  font-size: clamp(3rem, 5vw, 6rem);
  margin: 30px 0;
}
.invitation-preview-card__meta {
  display: grid;
  margin: 25px 0;
  gap: 10px;
  font-family: Georgia, serif;
}
.invitation-preview-card__footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  margin-top: 22px;
  font-size: 0.8rem;
}
.text-link {
  padding: 5px 0;
  border: 0;
  border-bottom: 1px solid;
  min-height: 0;
}
.chapter--before {
  background: #e9e7e0;
}
.before-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 9vw;
  align-items: center;
}
.before-layout__visual {
  height: 650px;
  transform: rotate(-2deg);
}
.before-layout__visual img {
  height: 100%;
}
.before-layout__timeline article {
  border-top: 1px solid var(--line);
  padding: 28px 0 30px;
}
.before-layout__timeline article span {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--accent);
}
.before-layout__timeline h3 {
  font-size: clamp(2.5rem, 4vw, 5rem);
  margin: 10px 0;
}
.before-layout__timeline p {
  color: var(--muted);
}
.chapter--letter {
  padding: 0;
  background: #262a2a;
  color: white;
}
.letter-experience {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 85vh;
}
.letter-experience__cover {
  padding: clamp(90px, 10vw, 170px) clamp(24px, 8vw, 150px);
  align-self: center;
}
.letter-experience__cover > p:not(.eyebrow) {
  font-family: Georgia, serif;
  font-size: 1.25rem;
  max-width: 35ch;
  color: #d2ccc4;
}
.letter-experience__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 40px;
}
.letter-experience__visual img {
  height: 100%;
  min-height: 650px;
  filter: sepia(0.15);
}
.chapter--event {
  background: #f5f2ec;
}
.chapter--event .chapter__heading {
  text-align: center;
  margin-inline: auto;
}
.chapter--event .chapter__heading > p:last-child {
  margin: auto;
}
.event-gallery {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr 1fr;
  grid-template-rows: 380px 330px;
  gap: 16px;
}
.event-photo {
  position: relative;
  overflow: hidden;
  padding: 0;
  border: 0;
  text-align: left;
  background: #333;
  color: white;
}
.event-photo img {
  height: 100%;
  transition: transform 0.65s;
  filter: saturate(0.75);
}
.event-photo:hover img,
.memory-shot:hover img {
  transform: scale(1.045);
}
.event-photo:after {
  content: "";
  position: absolute;
  inset: 40% 0 0;
  background: linear-gradient(transparent, #0009);
}
.event-photo span {
  position: absolute;
  z-index: 1;
  bottom: 22px;
  left: 25px;
  font:
    2rem "Italiana",
    Georgia,
    serif;
}
.event-photo--large {
  grid-row: span 2;
}
.event-photo--wide {
  grid-column: span 2;
}
.media-showcase {
  margin-top: 130px;
}
.gallery-showcase {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  align-items: center;
  gap: 6vw;
}
.media-showcase__copy {
  max-width: 560px;
}
.media-showcase__copy h3 {
  font-size: clamp(3rem, 5vw, 5.5rem);
  margin: 16px 0 22px;
}
.media-showcase__copy p:not(.eyebrow) {
  color: var(--muted);
  font-family: Georgia, serif;
  font-size: 1.13rem;
}
.media-showcase__copy .button {
  margin-top: 28px;
}
.gallery-showcase__mosaic {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  transform: rotate(2deg);
}
.gallery-showcase__mosaic img {
  height: 235px;
}
.gallery-showcase__mosaic img:nth-child(2) {
  transform: translateY(25px);
}
.gallery-showcase__mosaic img:nth-child(3) {
  transform: translateY(-25px);
}
.video-showcase {
  margin-top: 130px;
  background: #292d2c;
  color: #fff;
  padding: clamp(25px, 5vw, 75px);
  display: grid;
  grid-template-columns: 0.7fr 1.3fr;
  gap: 5vw;
  align-items: center;
}
.video-showcase .media-showcase__copy p:not(.eyebrow) {
  color: #ccc;
}
.video-showcase__player {
  width: 100%;
  aspect-ratio: 16/9;
  background: #111;
}
.memory-extras {
  margin-top: 145px;
}
.memory-strip {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 5vw;
}
.memory-strip__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.memory-shot {
  border: 0;
  padding: 0;
  background: transparent;
  text-align: left;
  overflow: hidden;
}
.memory-shot img {
  height: 210px;
  transition: transform 0.5s;
}
.memory-shot:nth-child(2),
.memory-shot:nth-child(5) {
  transform: translateY(25px);
}
.memory-shot span {
  display: block;
  margin-top: 8px;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}
.playlist-showcase {
  margin-top: 160px;
  border-top: 1px solid var(--line);
  padding-top: 65px;
}
.playlist-showcase__actions {
  margin: 25px 0;
}
.playlist-tracks {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.track-card {
  border-top: 1px solid var(--line);
  padding: 22px 0;
}
.track-card__meta span {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--accent);
}
.track-card h4 {
  font-size: 2.3rem;
  margin: 12px 0;
}
.track-card p {
  font-size: 0.85rem;
  min-height: 3em;
  color: var(--muted);
}
.track-card audio {
  display: block;
  width: 100%;
  margin: 20px 0;
}
.chapter--messages {
  background: #cfbaa4;
  padding-block: 150px;
}
.messages-carousel {
  display: grid;
  grid-template-columns: 50px minmax(0, 1fr) 50px;
  gap: 20px;
  align-items: center;
  max-width: 1000px;
  margin: auto;
}
.messages-carousel__nav {
  width: 50px;
  height: 50px;
  border: 1px solid var(--ink);
  background: transparent;
  font-size: 1.7rem;
}
.message-card {
  padding: 60px 9%;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  min-height: 350px;
}
.message-card span {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.message-card blockquote {
  font-size: clamp(2.2rem, 4.5vw, 5rem);
  margin-top: 22px;
}
.messages-carousel__dots {
  text-align: center;
  margin-top: 24px;
}
.messages-carousel__dots span {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin: 0 6px;
  border-radius: 50%;
  background: #2119;
  opacity: 0.4;
}
.messages-carousel__dots span.is-active {
  opacity: 1;
}
.chapter--after {
  padding: 0;
  background: #202724;
  color: #fff;
}
.after-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 85vh;
}
.after-card__visual img {
  height: 100%;
  min-height: 600px;
  filter: saturate(0.7);
}
.after-card__copy {
  padding: 12vw 8vw;
  align-self: center;
}
.after-card__copy p:not(.eyebrow) {
  font:
    1.2rem/1.7 Georgia,
    serif;
  color: #d4d2ce;
  max-width: 38ch;
  margin-bottom: 35px;
}
.footer {
  background: #202724;
  color: #bebbb4;
  text-align: center;
  border-top: 1px solid #ffffff30;
  padding: 25px;
  font-size: 0.8rem;
}
.footer a {
  text-decoration: underline;
}
.modal,
.finale {
  position: fixed;
  inset: 0;
  z-index: 110;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal.is-open,
.finale.is-open {
  display: flex;
}
.modal__backdrop {
  position: absolute;
  inset: 0;
  background: #111d;
  backdrop-filter: blur(8px);
}
.modal__panel {
  position: relative;
  background: var(--white);
  color: var(--ink);
  width: min(740px, 96vw);
  max-height: 90vh;
  overflow: auto;
  padding: clamp(30px, 5vw, 70px);
}
.modal__close {
  position: absolute;
  z-index: 2;
  top: 12px;
  right: 15px;
  font-size: 2rem;
  line-height: 1;
  border: 0;
  background: none;
  color: inherit;
}
.modal__panel h2 {
  font-size: clamp(2.7rem, 5vw, 5rem);
  margin: 12px 0 22px;
}
.modal__panel > p:not(.eyebrow) {
  font:
    1.15rem/1.8 Georgia,
    serif;
  margin: 16px 0;
}
.modal__panel--index ol {
  list-style: none;
  padding: 0;
}
.modal__panel--index li a {
  display: block;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.modal__panel--letter {
  background: #eee3d2;
  max-width: 680px;
  padding: clamp(45px, 8vw, 100px);
}
.letter-signature {
  font:
    2.5rem "Italiana",
    Georgia,
    serif;
  text-align: right;
  margin-top: 25px;
}
.modal__panel--gallery {
  width: min(1200px, 96vw);
  padding: 0;
  display: grid;
  grid-template-columns: 1.5fr 0.5fr;
  background: #252826;
  color: white;
}
.gallery-modal__visual {
  position: relative;
  min-height: 60vh;
}
.gallery-modal__visual img {
  height: 100%;
  max-height: 85vh;
  object-fit: contain;
  background: #171918;
}
.gallery-modal__nav {
  position: absolute;
  top: 50%;
  z-index: 2;
  transform: translateY(-50%);
  width: 45px;
  height: 45px;
  border: 0;
  background: #eee;
  color: #222;
}
.gallery-modal__nav--prev {
  left: 10px;
}
.gallery-modal__nav--next {
  right: 10px;
}
.gallery-modal__copy {
  padding: 60px 30px;
  align-self: center;
}
.gallery-modal__counter {
  display: block;
  margin-top: 20px;
}
.modal__panel--invitation {
  width: min(1050px, 96vw);
  display: grid;
  grid-template-columns: 1fr 0.8fr;
  gap: 40px;
  align-items: center;
}
.invitation-modal__frame iframe {
  width: 100%;
  height: 590px;
  border: 1px solid var(--line);
}
.invitation-modal__copy p:not(.eyebrow) {
  margin-bottom: 25px;
}
.invitation-modal__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.finale {
  background:
    linear-gradient(#151c1cd0, #151c1cd0),
    url("./assets/img/boda-proximo-capitulo.jpg") center/cover;
  color: #fff;
  text-align: center;
}
.finale__content {
  position: relative;
  max-width: 900px;
}
.finale h2 {
  font-size: clamp(4.5rem, 10vw, 10rem);
  margin: 30px 0;
}
.finale__content > p:not(.eyebrow) {
  margin: 20px;
}
.toast {
  position: fixed;
  bottom: 18px;
  left: 50%;
  transform: translate(-50%, 20px);
  opacity: 0;
  pointer-events: none;
  z-index: 150;
  background: #272b29;
  color: white;
  padding: 12px 20px;
  transition: 0.3s;
}
.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}
:focus-visible {
  outline: 3px solid #c6754d;
  outline-offset: 4px;
}
@media (max-width: 1000px) {
  .chapter-rail {
    display: none;
  }
  .hero__layout {
    grid-template-columns: 1fr;
  }
  .hero__visual {
    position: absolute;
    inset: 0;
    min-height: 0;
    opacity: 0.45;
  }
  .hero-frame--main:after {
    background: linear-gradient(90deg, #202423bb, #20242344);
  }
  .hero-frame--small,
  .hero__chapter-note {
    display: none;
  }
  .hero__copy {
    padding: 12vh 6vw 120px;
  }
  .hero h1 {
    font-size: clamp(5rem, 14vw, 10rem);
  }
  .audio-dock {
    left: 6vw;
  }
  .chapter {
    padding: 90px 6vw;
  }
  .letter-experience__cover {
    padding: 90px 6vw;
  }
  .after-card__copy {
    padding: 8vw;
  }
  .event-gallery {
    grid-template-rows: 300px 250px;
  }
  .memory-strip {
    grid-template-columns: 1fr;
  }
  .memory-strip__grid {
    margin-top: 30px;
  }
}
@media (max-width: 700px) {
  .topbar {
    padding: 16px 20px;
  }
  .topbar__actions {
    gap: 4px;
  }
  .topbar__button {
    font-size: 0.7rem;
  }
  .hero {
    min-height: 100svh;
  }
  .hero__layout {
    min-height: calc(100svh - 70px);
  }
  .hero__copy {
    padding: 80px 24px 120px;
  }
  .hero h1 {
    font-size: clamp(4.5rem, 17vw, 7rem);
  }
  .hero h1 span {
    white-space: normal;
  }
  .hero__meta {
    font-size: 0.65rem;
  }
  .hero__actions .button {
    width: 100%;
  }
  .audio-dock {
    left: 24px;
    bottom: 12px;
    width: calc(100% - 48px);
  }
  .chapter__heading h2,
  .letter-experience h2,
  .after-card h2 {
    font-size: clamp(3.7rem, 13vw, 6rem);
  }
  .chapter__heading--split {
    display: block;
  }
  .chapter__heading--split > p {
    margin-top: 15px;
  }
  .invitation-grid,
  .before-layout,
  .letter-experience,
  .gallery-showcase,
  .video-showcase,
  .after-card {
    grid-template-columns: 1fr;
  }
  .invitation-preview-card {
    transform: rotate(1deg);
  }
  .before-layout__visual {
    height: 420px;
  }
  .letter-experience__visual img {
    min-height: 0;
    height: 420px;
  }
  .event-gallery {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 380px 250px 250px;
  }
  .event-photo--large {
    grid-column: span 2;
    grid-row: auto;
  }
  .event-photo--wide {
    grid-column: span 2;
  }
  .gallery-showcase__mosaic img {
    height: 145px;
  }
  .video-showcase {
    margin-top: 80px;
  }
  .memory-extras {
    margin-top: 90px;
  }
  .memory-strip__grid {
    grid-template-columns: 1fr 1fr;
  }
  .memory-shot img {
    height: 160px;
  }
  .playlist-showcase {
    margin-top: 95px;
  }
  .playlist-tracks {
    grid-template-columns: 1fr;
  }
  .track-card p {
    min-height: 0;
  }
  .messages-carousel {
    grid-template-columns: 40px 1fr 40px;
    gap: 5px;
  }
  .messages-carousel__nav {
    width: 38px;
    height: 38px;
  }
  .message-card {
    padding: 30px 15px;
    min-height: 310px;
  }
  .message-card blockquote {
    font-size: 2.3rem;
  }
  .after-card__visual img {
    min-height: 0;
    height: 55vh;
  }
  .after-card__copy {
    padding: 90px 6vw;
  }
  .modal__panel--gallery,
  .modal__panel--invitation {
    grid-template-columns: 1fr;
  }
  .gallery-modal__visual {
    min-height: 0;
    height: 50vh;
  }
  .gallery-modal__copy {
    padding: 20px;
  }
  .invitation-modal__frame iframe {
    height: 380px;
  }
  .intro-screen__card h1 {
    font-size: clamp(4.3rem, 17vw, 8rem);
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *:before,
  *:after {
    transition: none !important;
    animation: none !important;
  }
}
/* Refinamiento del índice y soundtrack persistente */
.chapter-rail {
  right: clamp(12px, 2vw, 32px);
  width: 122px;
  padding: 8px 0;
  background: transparent;
  color: var(--ink);
  gap: 1px;
  filter: drop-shadow(0 1px 8px #faf8f3b0);
}
.chapter-rail__item {
  min-height: 38px;
  justify-content: flex-end;
  gap: 7px;
  padding: 5px 0;
  opacity: 0.55;
  text-shadow: 0 1px 10px #faf8f3;
  transition:
    opacity 0.25s ease,
    transform 0.25s ease;
}
.chapter-rail__item:before {
  content: "";
  order: 3;
  width: 12px;
  height: 1px;
  background: currentColor;
  transition: width 0.25s ease;
}
.chapter-rail__item.is-active:before,
.chapter-rail__item:hover:before {
  width: 27px;
  height: 2px;
}
.chapter-rail__item.is-active {
  opacity: 1;
  transform: translateX(-3px);
}
.chapter-rail__item small {
  display: none;
  font-size: 0.7rem;
  white-space: nowrap;
}
.chapter-rail__item.is-active small,
.chapter-rail__item:hover small {
  display: inline;
}
.audio-dock {
  position: fixed;
  left: clamp(18px, 3vw, 48px);
  bottom: clamp(16px, 2vw, 28px);
  z-index: 60;
  width: min(385px, calc(100vw - 36px));
  min-height: 68px;
  padding: 11px 16px;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  column-gap: 13px;
  row-gap: 2px;
  background: #242826ec;
  color: #faf8f3;
  border: 1px solid #ffffff31;
  box-shadow: 0 12px 35px #171b1a3d;
  backdrop-filter: blur(16px);
  font-size: 0.73rem;
}
.audio-dock__play {
  grid-row: 1 / 3;
  width: 42px;
  height: 42px;
  align-self: center;
  border-color: #ffffff80;
  transition:
    background 0.2s,
    color 0.2s;
}
.audio-dock__play:hover {
  background: #faf8f3;
  color: #242826;
}
.audio-dock__meta {
  grid-column: 2;
  min-width: 0;
  line-height: 1.35;
}
.audio-dock__meta strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.76rem;
  font-weight: 600;
}
.audio-dock__meta span {
  color: #d5cec3;
  font-size: 0.67rem;
}
.audio-dock__progress {
  grid-column: 2;
  margin: 0;
  width: 100%;
  height: 14px;
  cursor: pointer;
}
body.modal-open .audio-dock,
body:has(.finale.is-open) .audio-dock {
  visibility: hidden;
}
@media (max-width: 1000px) {
  .chapter-rail {
    display: flex;
  }
}
@media (max-width: 700px) {
  .chapter-rail {
    right: 6px;
    top: 50%;
    width: 52px;
    gap: 0;
    filter: drop-shadow(0 1px 5px #faf8f3a8);
  }
  .chapter-rail__item {
    min-height: 36px;
    padding: 4px 0;
    gap: 4px;
    font-size: 0.65rem;
  }
  .chapter-rail__item small {
    display: none !important;
  }
  .chapter-rail__item:before {
    width: 9px;
  }
  .chapter-rail__item.is-active:before {
    width: 15px;
  }
  .audio-dock {
    left: 12px;
    bottom: max(12px, env(safe-area-inset-bottom));
    width: min(290px, calc(100vw - 76px));
    min-height: 56px;
    padding: 7px 10px;
    grid-template-columns: 36px minmax(0, 1fr);
    gap: 1px 8px;
  }
  .audio-dock__play {
    width: 36px;
    height: 36px;
  }
  .audio-dock__meta strong {
    font-size: 0.7rem;
  }
  .audio-dock__meta span {
    font-size: 0.62rem;
  }
  .audio-dock__progress {
    height: 10px;
  }
  .hero__copy {
    padding-bottom: 145px;
  }
  .chapter {
    padding-right: clamp(35px, 9vw, 60px);
  }
  .chapter__heading h2,
  .letter-experience h2,
  .after-card h2 {
    font-size: clamp(3.2rem, 12vw, 6rem);
  }
  .modal {
    padding: 12px;
  }
  .modal__panel {
    width: 100%;
    max-height: calc(100dvh - 24px);
    padding: 35px 22px 24px;
  }
  .modal__panel--invitation {
    gap: 20px;
  }
  .invitation-modal__frame iframe {
    height: min(52dvh, 480px);
  }
  .gallery-modal__visual {
    height: 42dvh;
  }
  .gallery-modal__copy {
    padding: 20px 22px;
  }
  .video-showcase__player {
    max-width: 100%;
  }
  .message-card blockquote {
    font-size: clamp(1.85rem, 7vw, 2.3rem);
  }
}
@media (max-width: 390px) {
  .hero h1 {
    font-size: clamp(3.8rem, 16vw, 5rem);
  }
  .topbar__button {
    font-size: 0.64rem;
  }
  .chapter-rail {
    right: 2px;
  }
  .audio-dock {
    width: calc(100vw - 72px);
  }
}
.chapter-rail {
  color: #fff;
  mix-blend-mode: difference;
  filter: none;
}
.chapter-rail__item {
  text-shadow: none;
}

/* Event archive: a richer editorial rhythm for moments from the same night. */
.event-live-archive {
  margin-top: clamp(74px, 9vw, 132px);
  padding: clamp(30px, 5vw, 64px);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: linear-gradient(135deg, #f8f5ef 0%, #e7e1d8 100%);
}
.event-live-archive__intro {
  max-width: 620px;
  margin-bottom: 34px;
}
.event-live-archive__intro h3 {
  max-width: 12ch;
  margin-top: 14px;
  font-size: clamp(2.8rem, 5vw, 5rem);
}
.event-live-archive__intro p:not(.eyebrow) {
  max-width: 48ch;
  margin-top: 18px;
  color: var(--muted);
}
.event-live-archive__grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.8fr;
  grid-template-rows: 260px 220px;
  gap: 12px;
}
.event-live-card {
  position: relative;
  min-height: 0;
  padding: 0;
  overflow: hidden;
  border: 0;
  background: var(--dark);
  color: var(--white);
  text-align: left;
}
.event-live-card img {
  height: 100%;
  transition: transform 0.5s ease;
  filter: saturate(0.88) contrast(1.04);
}
.event-live-card:after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 44%, #151918c7 100%);
  pointer-events: none;
}
.event-live-card span {
  position: absolute;
  z-index: 1;
  right: 18px;
  bottom: 16px;
  left: 18px;
  font-family: "Italiana", Georgia, serif;
  font-size: 1.35rem;
  line-height: 1.1;
}
.event-live-card:hover img,
.event-live-card:focus-visible img {
  transform: scale(1.04);
}
.event-live-card--tall {
  grid-row: span 2;
}
.event-live-card--wide {
  grid-column: span 2;
}
.event-delivery-note {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: clamp(22px, 4vw, 48px);
  margin-top: clamp(72px, 9vw, 126px);
  padding: clamp(28px, 5vw, 54px) 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.event-delivery-note__mark {
  display: grid;
  place-items: center;
  width: 112px;
  height: 112px;
  border: 1px solid var(--accent);
  color: var(--accent);
  background: var(--white);
  font-family: "Italiana", Georgia, serif;
  line-height: 1;
}
.event-delivery-note__mark span {
  font-size: 1.7rem;
  letter-spacing: 0.08em;
}
.event-delivery-note__mark small {
  font:
    600 0.55rem/1.2 "DM Sans",
    sans-serif;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.event-delivery-note h3 {
  margin-top: 12px;
  font-size: clamp(2.4rem, 4.5vw, 4.2rem);
}
.event-delivery-note p:not(.eyebrow) {
  max-width: 48ch;
  margin-top: 16px;
  color: var(--muted);
}
@media (max-width: 700px) {
  .event-live-archive {
    padding: 30px 22px;
  }
  .event-live-archive__grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 230px 180px 180px;
  }
  .event-live-card--tall {
    grid-row: span 2;
  }
  .event-live-card--wide {
    grid-column: span 2;
  }
  .event-live-card span {
    right: 12px;
    bottom: 12px;
    left: 12px;
    font-size: 1.08rem;
  }
  .event-delivery-note {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 34px 0;
  }
  .event-delivery-note__mark {
    width: 88px;
    height: 88px;
  }
}
@media (max-width: 1000px) {
  .chapter-rail {
    display: none;
  }
}
