:root {
  --ink: #0f315b;
  --blue-deep: #1f5f9f;
  --blue: #78b9e7;
  --blue-soft: #dff3ff;
  --blue-pale: #f3fbff;
  --white: #ffffff;
  --silver: #bfc7d0;
  --gold: #d8b866;
  --shadow: 0 22px 60px rgba(17, 73, 122, 0.2);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  min-height: 100%;
  background: #edfaff;
}

body {
  margin: 0;
  min-height: 100vh;
  background-color: #edfaff;
  color: var(--ink);
  font-family: "Cormorant Garamond", Georgia, serif;
  background:
    linear-gradient(rgba(234, 248, 255, 0.82), rgba(238, 249, 255, 0.9)),
    url("assets/banner-flores-xv.png") top center / 1400px auto repeat-y,
    linear-gradient(180deg, #edfaff 0%, #cfeeff 42%, #f8fcff 100%);
  overflow-x: hidden;
}

body.invite-open .envelope-screen {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.petals {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    radial-gradient(circle, rgba(255, 255, 255, 0.95) 0 2px, transparent 3px),
    radial-gradient(circle, rgba(123, 190, 232, 0.75) 0 1px, transparent 2px);
  background-size: 46px 46px, 83px 83px;
  animation: sparkleDrift 20s linear infinite;
  opacity: 0.9;
}

.envelope-screen {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(circle at 12% 16%, rgba(255, 255, 255, 0.95) 0 0.6rem, transparent 0.7rem),
    radial-gradient(circle at 17% 20%, rgba(139, 204, 240, 0.72) 0 1rem, transparent 1.1rem),
    radial-gradient(circle at 88% 18%, rgba(255, 255, 255, 0.96) 0 0.8rem, transparent 0.9rem),
    radial-gradient(circle at 82% 23%, rgba(126, 192, 233, 0.62) 0 1.2rem, transparent 1.3rem),
    linear-gradient(rgba(227, 247, 255, 0.42), rgba(245, 252, 255, 0.5)),
    url("assets/fondo-xv-andrea.png") center / cover;
  transition: opacity 0.8s ease, visibility 0.8s ease;
}

.envelope-screen::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(238, 249, 255, 0.16);
  backdrop-filter: blur(1px);
}

.envelope-button {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 22px;
  justify-items: center;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.envelope-button:focus,
.envelope-button:focus-visible {
  outline: none;
}

.envelope {
  position: relative;
  width: min(86vw, 620px);
  aspect-ratio: 1.32;
  border-radius: 0;
  background: url("assets/sobre-xv-andrea-transparente-v2.png") center / contain no-repeat;
  filter: drop-shadow(0 28px 34px rgba(46, 67, 86, 0.26));
  box-shadow: none;
  transform-style: preserve-3d;
  transition: transform 0.5s ease;
}

.envelope::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 45%;
  width: 42%;
  height: 34%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.96), rgba(157, 222, 255, 0.56) 42%, transparent 72%);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.35);
  pointer-events: none;
}

.envelope-button:hover .envelope {
  transform: translateY(-8px) rotate(-1deg) scale(1.015);
}

.envelope::before {
  content: none;
}

.flap {
  display: none;
}

.letter {
  display: none;
}

.bow {
  display: none;
}

.bow::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  transform: translate(-50%, -50%);
  box-shadow: 0 4px 12px rgba(15, 49, 91, 0.18);
}

.bow span {
  position: absolute;
  top: 5px;
  width: 38px;
  height: 38px;
  border-radius: 50% 50% 50% 8px;
  background: linear-gradient(145deg, #fff, #edf8ff);
  box-shadow: 0 6px 16px rgba(15, 49, 91, 0.12);
}

.bow span:first-child {
  left: 0;
  transform: rotate(38deg);
}

.bow span:last-child {
  right: 0;
  transform: scaleX(-1) rotate(38deg);
}

.open-text {
  color: #173b62;
  font-family: "Great Vibes", cursive;
  font-size: clamp(2.2rem, 8vw, 4rem);
  text-shadow:
    0 2px 18px rgba(255, 255, 255, 0.96),
    0 10px 30px rgba(21, 58, 94, 0.18);
}

.envelope-screen.opening .envelope {
  background-image: url("assets/sobre-abierto-luz.png");
  animation: envelopeOpen 2.7s ease forwards;
  filter: drop-shadow(0 32px 42px rgba(46, 67, 86, 0.28));
}

.envelope-screen.opening .envelope::after {
  animation: innerGlow 2.3s ease forwards;
}

.butterfly-field {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 10;
}

.butterfly {
  position: absolute;
  left: 50%;
  top: 44%;
  z-index: 3;
  display: block;
  width: clamp(48px, 9vw, 86px);
  height: clamp(42px, 8vw, 76px);
  background: url("assets/mariposa-azul-claro.png") center / contain no-repeat;
  filter:
    drop-shadow(0 0 7px rgba(255, 255, 255, 0.9))
    drop-shadow(0 8px 16px rgba(15, 72, 130, 0.24));
  opacity: 0;
  animation: flyAway 3.25s cubic-bezier(0.18, 0.78, 0.22, 1) forwards;
}

.butterfly::before,
.butterfly::after {
  content: none;
}

.butterfly::before {
  right: calc(50% - 2px);
  transform: rotate(-26deg);
  transform-origin: right 58%;
  clip-path: polygon(100% 52%, 78% 4%, 40% 0, 8% 18%, 0 50%, 13% 84%, 48% 100%, 79% 82%);
}

.butterfly::after {
  left: calc(50% - 2px);
  transform: scaleX(-1) rotate(-26deg);
  transform-origin: left 58%;
  clip-path: polygon(0 52%, 22% 4%, 60% 0, 92% 18%, 100% 50%, 87% 84%, 52% 100%, 21% 82%);
}

.butterfly span {
  display: none;
}

.site-shell {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  background:
    linear-gradient(rgba(234, 248, 255, 0.82), rgba(244, 252, 255, 0.88)),
    url("assets/banner-flores-xv.png") top center / min(1400px, 180vw) auto repeat-y,
    linear-gradient(180deg, #edfaff 0%, #cfeeff 42%, #f8fcff 100%);
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.8s ease 0.45s, transform 0.8s ease 0.45s;
}

body.invite-open .site-shell {
  opacity: 1;
  transform: none;
}

.section {
  width: min(1080px, calc(100% - 32px));
  margin: 0 auto;
  padding: clamp(56px, 8vw, 92px) 0;
  text-align: center;
}

.hero {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding-top: 48px;
}

.hero-frame {
  position: relative;
  overflow: hidden;
  width: min(720px, 100%);
  height: min(900px, calc(100vh - 64px));
  min-height: 620px;
  display: grid;
  align-content: center;
  justify-items: center;
  padding: clamp(40px, 8vw, 86px) clamp(18px, 5vw, 60px);
  border: 1px solid rgba(255, 255, 255, 0.84);
  border-radius: 20px;
  background:
    linear-gradient(rgba(235, 249, 255, 0.38), rgba(244, 252, 255, 0.42)),
    url("assets/fondo-xv-andrea.png") center / cover;
  box-shadow: var(--shadow);
}

.hero-frame::before,
.hero-frame::after {
  content: "";
  position: absolute;
  width: 130px;
  height: 95px;
  border-radius: 50%;
  background:
    radial-gradient(ellipse at 35% 45%, rgba(255, 255, 255, 0.9) 0 16%, transparent 17%),
    radial-gradient(ellipse at 45% 42%, rgba(122, 197, 239, 0.58) 0 34%, transparent 35%),
    radial-gradient(ellipse at 68% 48%, rgba(29, 102, 176, 0.68) 0 38%, transparent 39%);
  opacity: 0;
  filter: drop-shadow(0 8px 20px rgba(31, 95, 159, 0.18));
}

.hero-frame::before {
  left: 6%;
  top: 11%;
  transform: rotate(-18deg);
}

.hero-frame::after {
  right: 5%;
  bottom: 12%;
  transform: rotate(18deg) scale(0.9);
}

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

.eyebrow {
  margin: 0 0 10px;
  color: var(--blue-deep);
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero-kicker {
  margin-bottom: 28px;
  font-size: clamp(1rem, 2.6vw, 1.45rem);
}

h1,
.script-title {
  margin: 0;
  font-family: "Great Vibes", "Brush Script MT", cursive;
  font-weight: 400;
}

h1 {
  font-size: clamp(4.9rem, 17vw, 9.6rem);
  line-height: 0.9;
  text-shadow: 0 4px 22px rgba(255, 255, 255, 0.85);
}

h2 {
  margin: 0 0 18px;
  font-size: clamp(2.1rem, 6vw, 4.2rem);
  font-weight: 600;
  line-height: 1;
}

p {
  margin: 0;
  font-size: clamp(1.2rem, 3.8vw, 1.65rem);
  line-height: 1.35;
}

.ornament {
  width: min(320px, 72vw);
  height: 26px;
  margin: 28px 0;
  background:
    radial-gradient(circle at 50% 50%, var(--ink) 0 5px, transparent 6px),
    linear-gradient(90deg, transparent, rgba(15, 49, 91, 0.75), transparent);
  background-size: 100% 100%, 100% 1px;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.62;
}

.hero-date {
  font-size: clamp(2.1rem, 7vw, 4.4rem);
  font-weight: 700;
}

.hero-date span {
  display: inline-block;
  margin: 0 4px;
  font-size: 1.24em;
  line-height: 0.9;
}

.hero-day {
  margin-top: 8px;
  margin-bottom: 28px;
  font-style: italic;
}

.primary-button,
.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 13px 22px;
  border: 0;
  border-radius: 999px;
  color: var(--white);
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 14px 30px rgba(31, 95, 159, 0.24);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.music-player {
  display: inline-grid;
  gap: 10px;
  justify-items: center;
  border: 0;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font-family: "Great Vibes", cursive;
}

.player-label {
  font-size: clamp(1.55rem, 5vw, 2.45rem);
  line-height: 1;
  text-shadow: 0 4px 18px rgba(255, 255, 255, 0.94);
}

.player-controls {
  min-width: min(300px, 72vw);
  min-height: 64px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  padding: 12px 34px;
  border-radius: 4px;
  background: linear-gradient(135deg, rgba(82, 130, 160, 0.72), rgba(156, 198, 217, 0.86));
  box-shadow: 0 14px 30px rgba(31, 95, 159, 0.2), inset 0 0 0 1px rgba(255, 255, 255, 0.4);
}

.play-icon {
  position: relative;
  width: 0;
  height: 0;
  border-top: 16px solid transparent;
  border-bottom: 16px solid transparent;
  border-left: 24px solid rgba(255, 255, 255, 0.96);
  filter: drop-shadow(0 2px 5px rgba(15, 49, 91, 0.22));
}

.music-player.is-playing .play-icon {
  width: 26px;
  height: 32px;
  border: 0;
}

.music-player.is-playing .play-icon::before,
.music-player.is-playing .play-icon::after {
  content: "";
  position: absolute;
  top: 0;
  width: 8px;
  height: 32px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 2px 5px rgba(15, 49, 91, 0.22);
}

.music-player.is-playing .play-icon::before {
  left: 2px;
}

.music-player.is-playing .play-icon::after {
  right: 2px;
}

.skip {
  position: relative;
  width: 22px;
  height: 18px;
}

.skip::before,
.skip::after {
  content: "";
  position: absolute;
  top: 0;
  width: 0;
  height: 0;
  border-top: 9px solid transparent;
  border-bottom: 9px solid transparent;
}

.skip::before {
  left: 0;
  border-right: 11px solid rgba(255, 255, 255, 0.88);
}

.skip::after {
  left: 9px;
  border-right: 11px solid rgba(255, 255, 255, 0.88);
}

.skip.next {
  transform: scaleX(-1);
}

.player-ornament {
  width: min(220px, 54vw);
  height: 16px;
  background:
    radial-gradient(circle at 50% 50%, rgba(15, 49, 91, 0.42) 0 4px, transparent 5px),
    linear-gradient(90deg, transparent, rgba(15, 49, 91, 0.42), transparent);
  background-size: 100% 100%, 100% 1px;
  background-repeat: no-repeat;
  background-position: center;
  opacity: 0.8;
}

.primary-button {
  background: linear-gradient(135deg, var(--blue-deep), #6bbde8);
}

.secondary-button {
  background: linear-gradient(135deg, #537fa9, #a9cfe9);
}

.primary-button:hover,
.secondary-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 38px rgba(31, 95, 159, 0.3);
}

.countdown-section,
.names-section,
.dress-section,
.itinerary-section,
.gallery-section,
.thought-section,
.formal-art-section {
  border-top: 1px solid rgba(31, 95, 159, 0.14);
}

.thought-card {
  width: min(820px, 100%);
  margin: 0 auto;
  padding: clamp(28px, 6vw, 54px);
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 18px;
  background:
    linear-gradient(rgba(255, 255, 255, 0.72), rgba(240, 250, 255, 0.82)),
    url("assets/banner-flores-xv.png") center / cover;
  box-shadow: 0 16px 42px rgba(33, 103, 160, 0.14);
}

.thought-card p {
  color: #12365f;
  font-size: clamp(1.2rem, 3vw, 1.58rem);
  font-weight: 600;
  text-transform: uppercase;
}

.dress-illustration {
  display: block;
  width: min(138px, 34vw);
  margin: 0 auto 22px;
  filter: drop-shadow(0 22px 34px rgba(31, 95, 159, 0.16));
}

.countdown {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 28px;
}

.countdown div,
.info-card,
.timeline,
.gallery-section {
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 18px;
  background:
    linear-gradient(rgba(255, 255, 255, 0.76), rgba(243, 251, 255, 0.8)),
    url("assets/banner-flores-xv.png") center bottom / cover;
  box-shadow: 0 16px 42px rgba(33, 103, 160, 0.14);
  backdrop-filter: blur(10px);
}

.countdown div {
  min-height: 124px;
  display: grid;
  place-items: center;
  padding: 18px 8px;
}

.countdown strong {
  display: block;
  font-family: "Montserrat", Arial, sans-serif;
  font-size: clamp(2rem, 7vw, 4.8rem);
  line-height: 1;
}

.countdown span {
  display: block;
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
}

.script-title {
  margin-bottom: 30px;
  font-size: clamp(3.4rem, 10vw, 6.5rem);
}

.name-block {
  margin: 0 auto 28px;
  width: min(760px, 100%);
}

.name-block h2,
.info-card h2 {
  font-size: clamp(1.8rem, 5vw, 3rem);
}

.location-section,
.action-section {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  align-items: stretch;
}

.info-card {
  display: grid;
  justify-items: center;
  align-content: start;
  gap: 14px;
  padding: clamp(28px, 5vw, 42px);
}

.card-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--blue-soft);
  color: var(--blue-deep);
}

.dress-section h2 {
  text-transform: uppercase;
}

.swatches {
  display: flex;
  justify-content: center;
  gap: 18px;
  margin-top: 26px;
}

.swatch {
  width: 48px;
  height: 48px;
  border: 3px solid #fff;
  border-radius: 50%;
  box-shadow: 0 10px 20px rgba(15, 49, 91, 0.18);
}

.blue-deep-swatch { background: #1d5573; }
.blue-teal-swatch { background: #4f8694; }
.blue-sky-swatch { background: #6aa6c5; }
.blue-pale-swatch { background: #a7d7ef; }
.silver-swatch { background: linear-gradient(145deg, #f7f9fb, #b8c0c8 45%, #ffffff); }
.gold-swatch { background: linear-gradient(145deg, #ffe6a3, #d3a73f 58%, #fff0b8); }

.itinerary-title {
  font-size: clamp(1.1rem, 3.2vw, 1.65rem);
}

.timeline {
  width: min(720px, 100%);
  margin: 30px auto 18px;
  padding: clamp(28px, 5vw, 46px) 18px;
  list-style: none;
  text-align: left;
  position: relative;
}

.timeline li {
  display: grid;
  grid-template-columns: minmax(96px, 1fr) 34px 58px minmax(120px, 1fr);
  align-items: center;
  gap: 14px;
  min-height: 72px;
  padding: 10px 8px;
  border-bottom: 0;
  position: relative;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 48px;
  bottom: 48px;
  left: calc(50% - 47px);
  width: 2px;
  background: linear-gradient(#c8dbe8, var(--blue-deep), #c8dbe8);
  opacity: 0.8;
}

.timeline-time,
.timeline-event {
  font-family: "Montserrat", Arial, sans-serif;
  font-size: clamp(0.86rem, 2vw, 1rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0;
}

.timeline-time {
  justify-self: end;
  text-align: right;
}

.timeline-event {
  justify-self: start;
}

.timeline-dot {
  z-index: 1;
  justify-self: center;
  width: 16px;
  height: 16px;
  border: 3px solid #effaff;
  border-radius: 50%;
  background: var(--blue-deep);
  box-shadow: 0 0 0 3px rgba(31, 95, 159, 0.14);
}

.timeline-icon {
  z-index: 1;
  justify-self: center;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(31, 95, 159, 0.22);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.74);
  color: var(--blue-deep);
  font-family: Georgia, serif;
  font-size: 1.4rem;
  box-shadow: 0 10px 24px rgba(31, 95, 159, 0.12);
}

.note {
  font-style: italic;
}

.pending-link {
  opacity: 0.82;
}

.rsvp-card {
  background:
    linear-gradient(rgba(28, 64, 100, 0.16), rgba(28, 64, 100, 0.24)),
    url("assets/banner-flores-xv.png") center / cover;
}

.rsvp-options {
  width: min(390px, 100%);
  display: grid;
  gap: 24px;
  margin-top: 8px;
}

.rsvp-option {
  display: grid;
  gap: 10px;
  padding: 14px 18px 18px;
  border: 2px solid rgba(255, 255, 255, 0.84);
  border-radius: 8px;
  background: rgba(28, 64, 100, 0.2);
}

.rsvp-option span {
  color: #fff;
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
}

.rsvp-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.95);
  color: var(--ink);
  font-family: "Montserrat", Arial, sans-serif;
  font-weight: 700;
  text-decoration: none;
  text-transform: uppercase;
  box-shadow: 0 14px 24px rgba(15, 49, 91, 0.16);
}

.gallery-section {
  display: grid;
  grid-template-columns: 1fr 0.8fr;
  gap: 28px;
  align-items: center;
  min-height: 460px;
  padding: clamp(34px, 6vw, 58px);
  background:
    linear-gradient(90deg, rgba(233, 248, 255, 0.74), rgba(233, 248, 255, 0.16)),
    url("assets/collage-fotos-xv.png") center / cover;
}

.qr-button {
  width: min(270px, 72vw);
  display: grid;
  justify-items: center;
  gap: 12px;
  margin: 24px auto 0;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.86);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.88);
  color: var(--ink);
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 0.86rem;
  font-weight: 700;
  text-decoration: none;
  text-transform: uppercase;
  box-shadow: 0 18px 34px rgba(31, 95, 159, 0.18);
}

.qr-button img {
  display: block;
  width: min(210px, 58vw);
  aspect-ratio: 1;
  padding: 8px;
  border-radius: 8px;
  background: #fff;
}

.photo-collage {
  position: relative;
  min-height: 280px;
}

.photo-collage span {
  position: absolute;
  display: block;
  border: 8px solid #fff;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.54);
  box-shadow: 0 16px 32px rgba(15, 49, 91, 0.18);
}

.photo-collage span:nth-child(1) {
  width: 58%;
  aspect-ratio: 0.78;
  left: 3%;
  top: 2%;
  transform: rotate(-6deg);
}

.photo-collage span:nth-child(2) {
  width: 54%;
  aspect-ratio: 0.85;
  right: 2%;
  top: 14%;
  transform: rotate(8deg);
}

.photo-collage span:nth-child(3) {
  width: 48%;
  aspect-ratio: 1.1;
  left: 25%;
  bottom: 2%;
  transform: rotate(2deg);
}

@keyframes sparkleDrift {
  to {
    background-position: 120px 240px, -120px 180px;
  }
}

@keyframes envelopeOpen {
  0% {
    transform: translateY(0) scale(1);
  }

  38% {
    transform: translateY(-12px) scale(1.03);
  }

  100% {
    transform: translateY(-18px) scale(1.02);
  }
}

@keyframes innerGlow {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.4);
  }

  45% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.08);
  }

  100% {
    opacity: 0.65;
    transform: translate(-50%, -58%) scale(1.45);
  }
}

@keyframes wing {
  from {
    scale: 0.76 1;
  }

  to {
    scale: 1.08 1;
  }
}

@keyframes flyAway {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.04) rotate(0deg);
  }

  14% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(0.2) rotate(calc(var(--r) / 5));
  }

  32% {
    opacity: 1;
    transform: translate(calc(var(--start-x) * 1px), calc(var(--start-y) * 1px)) scale(calc(var(--s) * 0.72)) rotate(calc(var(--r) / 3));
  }

  72% {
    opacity: 1;
    transform: translate(calc(var(--mid-x) * 1px), calc(var(--mid-y) * 1px)) scale(var(--s)) rotate(var(--r));
  }

  100% {
    opacity: 0;
    transform: translate(calc(var(--x) * 1px), calc(var(--y) * 1px)) scale(var(--s)) rotate(var(--r));
  }
}

@media (max-width: 760px) {
  .section {
    width: min(100% - 24px, 1080px);
  }

  .hero-frame {
    min-height: calc(100vh - 40px);
    border-radius: 16px;
  }

  .countdown {
    grid-template-columns: repeat(2, 1fr);
  }

  .location-section,
  .action-section,
  .gallery-section {
    grid-template-columns: 1fr;
  }

  .timeline li {
    grid-template-columns: 1fr 28px 48px 1fr;
    gap: 8px;
    text-align: center;
  }

  .timeline::before {
    left: calc(50% - 38px);
  }

  .photo-collage {
    min-height: 230px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
