:root {
  --wine: #6f1d46;
  --wine-deep: #48102c;
  --wine-light: #8b315c;
  --ink: #121113;
  --black: #09090a;
  --paper: #f4f1ec;
  --paper-bright: #fffdf9;
  --gray: #636569;
  --line: rgba(18, 17, 19, 0.18);
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Noto Sans", Arial, sans-serif;
  --gutter: clamp(1.25rem, 4vw, 5rem);
  --section-space: clamp(6rem, 13vw, 11rem);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  background: var(--black);
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body.intro-active {
  height: 100vh;
  overflow: hidden;
}

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

button {
  font: inherit;
}

a {
  color: inherit;
}

img,
svg {
  display: block;
}

::selection {
  color: var(--paper-bright);
  background: var(--wine);
}

.svg-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

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

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 1rem;
  left: 1rem;
  padding: 0.75rem 1rem;
  color: white;
  background: var(--black);
  transform: translateY(-200%);
  transition: transform 180ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 4px;
}

.eyebrow {
  margin: 0 0 1rem;
  color: var(--wine);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  line-height: 1.3;
  text-transform: uppercase;
}

.eyebrow--light {
  color: rgba(255, 255, 255, 0.62);
}

.button {
  display: inline-flex;
  min-height: 3.65rem;
  align-items: center;
  justify-content: center;
  gap: 1.4rem;
  padding: 0.9rem 1.6rem;
  border: 1px solid var(--ink);
  border-radius: 0;
  cursor: pointer;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  line-height: 1.2;
  text-transform: uppercase;
  transition:
    color 250ms ease,
    background 250ms ease,
    transform 250ms ease;
}

.button svg {
  width: 1.1rem;
  height: 1.1rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.5;
  transition: transform 250ms ease;
}

.button:hover svg {
  transform: translateX(0.25rem);
}

.button:active {
  transform: scale(0.98);
}

.button--solid {
  color: white;
  background: var(--wine);
  border-color: var(--wine);
}

.button--solid:hover {
  background: var(--wine-deep);
  border-color: var(--wine-deep);
}

.button--line {
  color: var(--ink);
  background: transparent;
}

.button--line:hover {
  color: white;
  background: var(--ink);
}

/* Apertura */
.opening {
  display: none;
}

.js .opening[hidden] {
  display: none;
}

.js .opening {
  --env-w: min(72vw, 650px);
  --env-h: calc(var(--env-w) * 0.61);
  position: fixed;
  z-index: 900;
  inset: 0;
  display: grid;
  grid-template-rows: minmax(5.5rem, 0.7fr) minmax(250px, 2fr) minmax(3.5rem, 0.55fr);
  align-items: center;
  justify-items: center;
  overflow: hidden;
  color: white;
  background: var(--wine);
  isolation: isolate;
  transition:
    visibility 0s 1.1s,
    opacity 1s var(--ease-out);
}

.opening::after {
  position: absolute;
  z-index: -1;
  inset: 0;
  background:
    linear-gradient(115deg, rgba(0, 0, 0, 0.08), transparent 36%),
    radial-gradient(circle at 50% 115%, rgba(0, 0, 0, 0.33), transparent 48%);
  content: "";
}

.opening.is-leaving {
  visibility: hidden;
  opacity: 0;
}

.opening__ambient,
.opening__grain {
  position: absolute;
  z-index: -1;
  inset: 0;
  pointer-events: none;
}

.opening__grain {
  opacity: 0.26;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.88' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.12'/%3E%3C/svg%3E");
  mix-blend-mode: soft-light;
}

.opening__orb {
  position: absolute;
  width: min(28rem, 50vw);
  aspect-ratio: 1;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 50%;
}

.opening__orb::after {
  position: absolute;
  inset: 13%;
  border: inherit;
  border-radius: inherit;
  content: "";
}

.opening__orb--one {
  top: -14rem;
  left: -10rem;
}

.opening__orb--two {
  right: -12rem;
  bottom: -16rem;
}

.opening__copy {
  z-index: 2;
  align-self: end;
  width: min(90vw, 50rem);
  text-align: center;
}

.opening__copy h1 {
  max-width: 11em;
  margin: 0 auto;
  font-family: var(--serif);
  font-size: clamp(2rem, 4.6vw, 4rem);
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 0.98;
}

.opening__skip {
  position: absolute;
  z-index: 20;
  top: clamp(1rem, 3vw, 2rem);
  right: clamp(1rem, 3vw, 2rem);
  padding: 0.55rem 0;
  color: rgba(255, 255, 255, 0.65);
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  cursor: pointer;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.envelope-scene {
  position: relative;
  z-index: 3;
  width: var(--env-w);
  height: var(--env-h);
  align-self: center;
  perspective: 1500px;
  filter: drop-shadow(0 2.1rem 1.5rem rgba(15, 0, 8, 0.28));
  transform: translateY(3%);
}

.envelope {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
}

.envelope__back,
.envelope__inside,
.envelope__face,
.envelope__flap {
  position: absolute;
  inset: 0;
}

.envelope__back {
  z-index: 1;
  background: #77234d;
  border: 1px solid rgba(255, 255, 255, 0.11);
}

.envelope__inside {
  z-index: 2;
  clip-path: polygon(0 0, 50% 65%, 100% 0);
  background: var(--wine-deep);
}

.envelope__face {
  z-index: 5;
  overflow: hidden;
  background:
    linear-gradient(150deg, transparent 49.8%, rgba(255, 255, 255, 0.075) 50%, transparent 50.35%),
    linear-gradient(30deg, transparent 49.8%, rgba(255, 255, 255, 0.075) 50%, transparent 50.35%),
    var(--wine);
  clip-path: polygon(0 0, 50% 57%, 100% 0, 100% 100%, 0 100%);
  box-shadow: inset 0 -1.4rem 3rem rgba(37, 4, 20, 0.12);
}

.envelope__flap {
  z-index: 7;
  height: 66%;
  background: linear-gradient(170deg, #812b56, var(--wine));
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  transform-origin: 50% 0;
  transform-style: preserve-3d;
  backface-visibility: hidden;
  transition: transform 0.9s var(--ease-out) 0.2s;
}

.envelope__flap::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.06), transparent 48%);
  content: "";
}

.envelope__botanical {
  position: absolute;
  bottom: -18%;
  width: 31%;
  fill: none;
  stroke: rgba(255, 255, 255, 0.11);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.15;
}

.envelope__botanical--left {
  left: -2%;
}

.envelope__botanical--right {
  right: -2%;
  transform: scaleX(-1);
}

.envelope__mineral {
  position: absolute;
  width: 7%;
  aspect-ratio: 1;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transform: rotate(34deg) skew(-8deg);
}

.envelope__mineral::after {
  position: absolute;
  inset: 23%;
  border: inherit;
  content: "";
}

.envelope__mineral--one {
  top: 57%;
  left: 15%;
}

.envelope__mineral--two {
  top: 67%;
  right: 17%;
  transform: rotate(71deg) skew(4deg);
}

.envelope__edition {
  position: absolute;
  right: 4.5%;
  bottom: 4%;
  color: rgba(255, 255, 255, 0.33);
  font-size: clamp(0.38rem, 0.7vw, 0.55rem);
  font-weight: 600;
  letter-spacing: 0.18em;
}

.letter-preview {
  position: absolute;
  z-index: 3;
  bottom: 0;
  left: 8%;
  display: flex;
  width: 84%;
  height: 100%;
  flex-direction: column;
  align-items: center;
  padding: 8% 7% 5%;
  overflow: hidden;
  color: var(--ink);
  background:
    radial-gradient(circle at 15% 8%, rgba(111, 29, 70, 0.035), transparent 28%),
    var(--paper-bright);
  box-shadow: 0 0.6rem 1.5rem rgba(0, 0, 0, 0.1);
  text-align: center;
  transform: translateY(0);
  transition: transform 1.2s var(--ease-out) 0.65s;
}

.letter-preview::before,
.letter-preview::after {
  position: absolute;
  top: 6%;
  width: 22%;
  height: 1px;
  background: var(--wine);
  content: "";
}

.letter-preview::before {
  left: 7%;
}

.letter-preview::after {
  right: 7%;
}

.letter-preview img {
  width: clamp(2rem, 8%, 3.2rem);
  height: auto;
  margin-bottom: 1%;
  object-fit: contain;
  mix-blend-mode: multiply;
}

.letter-preview p {
  margin: 0 0 3%;
  color: var(--wine);
  font-size: clamp(0.35rem, 0.85vw, 0.62rem);
  font-weight: 600;
  letter-spacing: 0.12em;
  line-height: 1.45;
  text-transform: uppercase;
}

.letter-preview strong {
  font-family: var(--serif);
  font-size: clamp(1.25rem, 4vw, 3rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 0.68;
  text-transform: uppercase;
}

.letter-preview strong span {
  color: var(--wine);
  font-size: 1.55em;
}

.letter-preview small {
  margin-top: 3.5%;
  font-size: clamp(0.32rem, 0.72vw, 0.52rem);
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.wax-seal {
  position: absolute;
  z-index: 11;
  top: 51%;
  left: 50%;
  width: clamp(4.7rem, 11vw, 6.7rem);
  aspect-ratio: 1;
  padding: 0;
  color: rgba(255, 255, 255, 0.82);
  background: transparent;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  filter: drop-shadow(0 0.75rem 0.65rem rgba(13, 0, 8, 0.4));
  transform: translate(-50%, -50%);
  transition: filter 250ms ease;
}

.wax-seal:hover {
  filter: drop-shadow(0 0.9rem 0.8rem rgba(13, 0, 8, 0.55)) brightness(1.14);
}

.wax-seal__half {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 37% 32%, rgba(255, 255, 255, 0.12), transparent 12%),
    radial-gradient(circle at 57% 62%, #111 0 53%, #050505 76%);
  border-radius: 50%;
  box-shadow:
    inset 0 0 0 0.2rem #090909,
    inset 0 0 0 0.35rem rgba(255, 255, 255, 0.04);
  transition:
    transform 0.7s var(--ease-out),
    opacity 0.6s ease;
}

.wax-seal__half--left {
  clip-path: polygon(0 0, 50.5% 0, 48% 19%, 53% 36%, 47% 54%, 52% 73%, 49% 100%, 0 100%);
}

.wax-seal__half--right {
  clip-path: polygon(50% 0, 100% 0, 100% 100%, 49% 100%, 52% 73%, 47% 54%, 53% 36%, 48% 19%);
}

.wax-seal__rim {
  position: absolute;
  inset: 12%;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  transition: opacity 0.25s ease;
}

.wax-seal svg {
  position: absolute;
  top: 17%;
  left: 37%;
  width: 26%;
  height: 48%;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.3;
  transition: opacity 0.25s ease;
}

.wax-seal__letters {
  position: absolute;
  right: 0;
  bottom: 19%;
  left: 0;
  font-family: var(--serif);
  font-size: clamp(0.5rem, 1.2vw, 0.73rem);
  font-weight: 600;
  letter-spacing: 0.16em;
  transition: opacity 0.25s ease;
}

.opening__hint {
  align-self: start;
  margin: 0;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.61rem;
  font-weight: 600;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  transition: opacity 250ms ease;
}

.opening__hint span {
  display: inline-block;
  width: 1.9rem;
  height: 1px;
  margin: 0 0.7rem 0.2rem 0;
  background: currentColor;
  transform-origin: right;
  animation: hint-line 1.8s ease-in-out infinite;
}

.opening.is-opening .opening__copy,
.opening.is-opening .opening__hint,
.opening.is-opening .opening__skip {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.opening.is-opening .envelope__flap {
  z-index: 2;
  transform: rotateX(178deg);
}

.opening.is-opening .letter-preview {
  transform: translateY(-72%);
}

.opening.is-opening .wax-seal__rim,
.opening.is-opening .wax-seal svg,
.opening.is-opening .wax-seal__letters {
  opacity: 0;
}

.opening.is-opening .wax-seal__half--left {
  opacity: 0.92;
  transform: translate(-42%, 82%) rotate(-29deg) scale(0.9);
}

.opening.is-opening .wax-seal__half--right {
  opacity: 0.92;
  transform: translate(42%, 88%) rotate(31deg) scale(0.87);
}

@keyframes hint-line {
  0%,
  100% {
    transform: scaleX(0.55);
  }
  50% {
    transform: scaleX(1);
  }
}

/* Hero */
.hero {
  position: relative;
  display: grid;
  min-height: 100svh;
  padding: clamp(1.25rem, 3.5vw, 3.5rem) var(--gutter) 2rem;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.92), transparent 54%),
    linear-gradient(rgba(111, 29, 70, 0.025), rgba(111, 29, 70, 0.025)),
    var(--paper);
  isolation: isolate;
}

.hero::after,
.section--paper::after {
  position: absolute;
  z-index: -1;
  inset: 0;
  opacity: 0.35;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='p'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.95' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23p)' opacity='.055'/%3E%3C/svg%3E");
  content: "";
  pointer-events: none;
}

.hero__topbar {
  position: relative;
  z-index: 2;
  display: flex;
  align-self: start;
  align-items: flex-start;
  justify-content: space-between;
  padding-bottom: 1.2rem;
  border-bottom: 1px solid var(--line);
}

.institution-lockup {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.institution-lockup img {
  width: clamp(2.15rem, 4vw, 3.4rem);
  height: clamp(2.8rem, 5vw, 4.35rem);
  object-fit: contain;
  mix-blend-mode: multiply;
}

.institution-lockup span,
.hero__topbar > p {
  margin: 0;
  color: var(--gray);
  font-size: clamp(0.45rem, 0.8vw, 0.62rem);
  font-weight: 500;
  letter-spacing: 0.1em;
  line-height: 1.65;
  text-transform: uppercase;
}

.institution-lockup b,
.hero__topbar > p b {
  display: block;
  color: var(--ink);
  font-weight: 700;
}

.hero__topbar > p {
  text-align: right;
}

.hero__art {
  position: absolute;
  z-index: -1;
  inset: 0;
  pointer-events: none;
}

.hero__wing {
  position: absolute;
  top: 50%;
  width: clamp(14rem, 29vw, 30rem);
  fill: none;
  stroke: rgba(111, 29, 70, 0.12);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 0.85;
  transform: translateY(-48%);
}

.hero__wing--left {
  left: -4%;
}

.hero__wing--right {
  right: -4%;
  transform: translateY(-48%) scaleX(-1);
}

.hero__mineral {
  position: absolute;
  width: clamp(2.4rem, 5vw, 5rem);
  aspect-ratio: 1;
  border: 1px solid rgba(111, 29, 70, 0.09);
  transform: rotate(42deg) skew(-9deg);
}

.hero__mineral::after {
  position: absolute;
  inset: 21%;
  border: inherit;
  content: "";
}

.hero__mineral--one {
  top: 22%;
  left: 18%;
}

.hero__mineral--two {
  right: 17%;
  bottom: 18%;
  transform: rotate(78deg) skew(7deg);
}

.hero__content {
  position: relative;
  z-index: 2;
  align-self: center;
  justify-self: center;
  width: min(100%, 68rem);
  padding: clamp(3rem, 7vh, 6rem) 0 clamp(4rem, 8vh, 7rem);
  text-align: center;
}

.hero__pretitle {
  margin: 0 0 -1rem;
  font-family: var(--serif);
  font-size: clamp(1.5rem, 3vw, 2.6rem);
  font-style: italic;
}

.hero__year {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(0.5rem, 2vw, 1.6rem);
  margin: 0;
  color: var(--wine);
  font-family: var(--serif);
  font-size: clamp(7.8rem, 24vw, 18rem);
  font-weight: 400;
  letter-spacing: -0.105em;
  line-height: 0.68;
}

.hero__year span:last-child {
  margin-left: -0.06em;
}

.hero__year i {
  position: relative;
  width: clamp(1.25rem, 3vw, 2.35rem);
  height: clamp(5rem, 14vw, 10.5rem);
  flex: 0 0 auto;
}

.hero__year i::before {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 1px;
  background: var(--wine);
  content: "";
}

.hero__year i::after {
  position: absolute;
  top: 31%;
  left: 17%;
  width: 72%;
  height: 38%;
  border: 1px solid var(--wine);
  border-right-color: transparent;
  border-radius: 50%;
  content: "";
  transform: rotate(-28deg);
}

.hero__statement {
  margin: clamp(1.5rem, 4vw, 3rem) 0 0;
  font-family: var(--serif);
  font-size: clamp(2.35rem, 6vw, 5.2rem);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 0.85;
}

.hero__statement em,
.details h2 em,
.countdown h2 em,
.dress-code h2 em,
.itinerary h2 em,
.closing h2 em,
.story h2 em,
.rsvp-dialog h2 em {
  color: var(--wine);
  font-weight: 500;
}

.hero__date {
  display: flex;
  width: min(100%, 29rem);
  align-items: center;
  justify-content: center;
  gap: 1.3rem;
  margin: clamp(2rem, 5vw, 3.5rem) auto 0;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.hero__date strong {
  padding: 0 1.3rem;
  color: var(--wine);
  border-right: 1px solid var(--line);
  border-left: 1px solid var(--line);
  font-family: var(--serif);
  font-size: 2.4rem;
  font-weight: 500;
  line-height: 1;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 2.2rem;
}

.hero__scroll {
  position: absolute;
  z-index: 3;
  bottom: 1.4rem;
  left: 50%;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.55rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-decoration: none;
  text-transform: uppercase;
  transform: translateX(-50%);
}

.hero__scroll span {
  width: 1.8rem;
  height: 1px;
  background: var(--wine);
}

/* Secciones */
.ticker {
  overflow: hidden;
  color: white;
  background: var(--black);
  font-family: var(--serif);
  font-size: clamp(1rem, 2vw, 1.5rem);
  font-style: italic;
  white-space: nowrap;
}

.ticker > div {
  display: flex;
  width: max-content;
  padding: 1.15rem 0 1.3rem;
  animation: ticker 24s linear infinite;
}

.ticker span {
  padding-right: 0.4em;
}

@keyframes ticker {
  to {
    transform: translateX(-50%);
  }
}

.section--wine,
.section--paper,
.section--black {
  position: relative;
  padding: var(--section-space) var(--gutter);
  overflow: hidden;
  isolation: isolate;
}

.section--wine {
  color: white;
  background: var(--wine);
}

.section--paper {
  color: var(--ink);
  background: var(--paper);
}

.section--black {
  color: white;
  background: var(--black);
}

.section-index {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: clamp(4rem, 8vw, 7rem);
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.18em;
}

.section-index::after {
  width: min(9rem, 15vw);
  height: 1px;
  background: currentColor;
  content: "";
}

.section-index--dark {
  color: rgba(18, 17, 19, 0.45);
}

.story {
  min-height: 90vh;
}

.story::before,
.itinerary::before {
  position: absolute;
  z-index: -1;
  width: min(44rem, 70vw);
  aspect-ratio: 1;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 50%;
  content: "";
}

.story::before {
  right: -19rem;
  bottom: -20rem;
}

.story__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(17rem, 0.65fr);
  gap: clamp(3rem, 8vw, 10rem);
  align-items: start;
}

.story h2,
.details h2,
.countdown h2,
.dress-code h2,
.itinerary h2,
.closing h2,
.rsvp-dialog h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(3.5rem, 8vw, 7.5rem);
  font-weight: 500;
  letter-spacing: -0.055em;
  line-height: 0.82;
}

.story h2 em,
.itinerary h2 em {
  color: rgba(255, 255, 255, 0.48);
}

.story__copy {
  padding-top: 2.2rem;
  color: rgba(255, 255, 255, 0.72);
  font-size: clamp(0.95rem, 1.3vw, 1.1rem);
  font-weight: 300;
}

.story__copy p {
  margin: 0 0 1.6rem;
}

.story__copy blockquote {
  margin: 3rem 0 0;
  padding-top: 1.5rem;
  color: white;
  border-top: 1px solid rgba(255, 255, 255, 0.24);
  font-family: var(--serif);
  font-size: 1.35rem;
  font-style: italic;
}

.story__mark {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(1rem, 3vw, 2.5rem);
  margin-top: clamp(5rem, 11vw, 10rem);
  color: rgba(255, 255, 255, 0.12);
  font-family: var(--serif);
  font-size: clamp(6rem, 20vw, 18rem);
  line-height: 0.7;
}

.story__mark svg {
  width: clamp(2.8rem, 6vw, 5rem);
  height: clamp(5rem, 11vw, 8rem);
  flex: 0 0 auto;
  fill: none;
  stroke: rgba(255, 255, 255, 0.32);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.3;
}

.details__intro {
  display: grid;
  grid-template-columns: 0.5fr 1fr;
  align-items: start;
}

.details__intro h2 {
  justify-self: end;
  text-align: right;
}

.date-poster {
  display: grid;
  grid-template-columns: auto 1fr auto 1fr auto;
  align-items: center;
  gap: clamp(0.7rem, 2vw, 2rem);
  max-width: 80rem;
  margin: clamp(5rem, 10vw, 9rem) auto;
  color: var(--wine);
}

.date-poster > span:not(.date-poster__line) {
  font-size: clamp(0.58rem, 1vw, 0.78rem);
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.date-poster strong {
  font-family: var(--serif);
  font-size: clamp(9rem, 27vw, 24rem);
  font-weight: 400;
  letter-spacing: -0.1em;
  line-height: 0.55;
}

.date-poster__day {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}

.date-poster__line {
  width: 100%;
  height: 1px;
  background: rgba(111, 29, 70, 0.3);
}

.date-poster__time {
  line-height: 1.8;
}

.detail-cards {
  display: grid;
  max-width: 85rem;
  margin: 0 auto;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  grid-template-columns: repeat(3, 1fr);
}

.detail-card {
  position: relative;
  min-height: 24rem;
  padding: clamp(2rem, 4vw, 3.8rem);
}

.detail-card + .detail-card {
  border-left: 1px solid var(--line);
}

.detail-card__number {
  position: absolute;
  top: 1rem;
  right: 1rem;
  color: rgba(18, 17, 19, 0.34);
  font-size: 0.55rem;
  letter-spacing: 0.15em;
}

.detail-card > svg {
  width: 2.2rem;
  height: 2.2rem;
  margin-bottom: clamp(4rem, 7vw, 6.5rem);
  fill: none;
  stroke: var(--wine);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.2;
}

.detail-card > svg.detail-card__staff {
  width: 1.65rem;
  height: 2.8rem;
}

.detail-card h3 {
  margin: 0 0 0.55rem;
  color: var(--wine);
  font-family: var(--serif);
  font-size: 2.1rem;
  font-weight: 500;
}

.detail-card p {
  min-height: 4rem;
  margin: 0 0 1.6rem;
  font-size: 0.88rem;
}

.detail-card small {
  color: var(--gray);
}

.text-link {
  display: inline;
  padding: 0 0 0.2rem;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--ink);
  cursor: pointer;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-decoration: none;
  text-transform: uppercase;
}

.countdown {
  display: grid;
  min-height: 85vh;
  align-content: center;
}

.countdown::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  opacity: 0.45;
  background:
    linear-gradient(90deg, transparent 49.95%, rgba(255, 255, 255, 0.055) 50%, transparent 50.05%),
    linear-gradient(0deg, transparent 49.95%, rgba(255, 255, 255, 0.055) 50%, transparent 50.05%);
  background-size: 12vw 12vw;
  content: "";
}

.countdown__heading {
  display: grid;
  grid-template-columns: 0.5fr 1.3fr;
}

.countdown__heading h2 {
  justify-self: end;
  text-align: right;
}

.countdown__heading h2 em {
  color: rgba(255, 255, 255, 0.48);
}

.countdown__numbers {
  display: grid;
  grid-template-columns: 1.4fr auto repeat(3, 1fr auto);
  align-items: start;
  gap: clamp(0.45rem, 1.7vw, 2rem);
  margin-top: clamp(5rem, 11vw, 9rem);
  font-variant-numeric: tabular-nums;
}

.countdown__numbers div {
  min-width: 0;
}

.countdown__numbers strong {
  display: block;
  font-family: var(--serif);
  font-size: clamp(3.5rem, 11vw, 10rem);
  font-weight: 400;
  letter-spacing: -0.075em;
  line-height: 0.7;
}

.countdown__numbers span {
  display: block;
  margin-top: 1rem;
  color: rgba(255, 255, 255, 0.42);
  font-size: 0.55rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.countdown__numbers i {
  color: var(--wine-light);
  font-family: var(--serif);
  font-size: clamp(2.6rem, 6vw, 6rem);
  font-style: normal;
  line-height: 0.72;
}

.dress-code {
  display: grid;
  grid-template-columns: minmax(17rem, 0.8fr) minmax(20rem, 1.2fr);
  gap: clamp(3rem, 8vw, 9rem);
  align-items: end;
}

.dress-code .section-index {
  grid-column: 1 / -1;
}

.dress-code__copy h2 {
  margin-bottom: 2.3rem;
}

.dress-code__copy > p:not(.eyebrow) {
  max-width: 30rem;
  color: var(--gray);
  font-size: 0.95rem;
}

.dress-code__note {
  display: inline-block;
  margin-top: 1.4rem;
  padding-top: 1rem;
  color: var(--wine);
  border-top: 1px solid rgba(111, 29, 70, 0.28);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.dress-code__art {
  position: relative;
}

.dress-code__art::before {
  position: absolute;
  z-index: -1;
  inset: 8% 5%;
  border: 1px solid rgba(111, 29, 70, 0.13);
  border-radius: 50%;
  content: "";
}

.dress-code__art svg {
  width: 100%;
  max-height: 38rem;
  fill: none;
  stroke: var(--wine);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.1;
}

.dress-code__art .art-fill {
  fill: rgba(111, 29, 70, 0.06);
}

.dress-code__art .art-fill--dark {
  fill: rgba(18, 17, 19, 0.04);
}

.itinerary {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 1rem clamp(4rem, 10vw, 12rem);
}

.itinerary::before {
  top: -20rem;
  left: -15rem;
}

.itinerary .section-index {
  grid-column: 1 / -1;
}

.itinerary__heading {
  position: sticky;
  top: 5rem;
  align-self: start;
}

.timeline {
  margin: 0;
  padding: 0;
  list-style: none;
}

.timeline li {
  display: grid;
  grid-template-columns: 4.5rem 1px 1fr;
  gap: clamp(1.2rem, 3vw, 3rem);
  min-height: 9.5rem;
}

.timeline time {
  padding-top: 0.35rem;
  color: rgba(255, 255, 255, 0.52);
  font-family: var(--serif);
  font-size: 1.4rem;
}

.timeline li > span {
  position: relative;
  background: rgba(255, 255, 255, 0.19);
}

.timeline li > span::before {
  position: absolute;
  top: 0.62rem;
  left: 50%;
  width: 0.55rem;
  aspect-ratio: 1;
  background: var(--wine);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 50%;
  content: "";
  transform: translate(-50%, -50%);
}

.timeline b {
  display: block;
  font-family: var(--serif);
  font-size: clamp(2.2rem, 4vw, 3.7rem);
  font-weight: 500;
  line-height: 1;
}

.timeline small {
  display: block;
  margin-top: 0.7rem;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.closing {
  display: flex;
  min-height: 100svh;
  flex-direction: column;
  justify-content: space-between;
  text-align: center;
}

.closing__botanical {
  position: absolute;
  z-index: -1;
  top: 50%;
  left: 50%;
  width: min(75vw, 60rem);
  aspect-ratio: 1;
  border: 1px solid rgba(111, 29, 70, 0.1);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.closing__botanical::before,
.closing__botanical::after {
  position: absolute;
  inset: 10%;
  border: inherit;
  border-radius: inherit;
  content: "";
}

.closing__botanical::after {
  inset: 23%;
}

.closing__content {
  width: min(100%, 49rem);
  margin: auto;
}

.closing__content > svg {
  width: 2.1rem;
  height: 3.3rem;
  margin: 0 auto 1.4rem;
  fill: none;
  stroke: var(--wine);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.4;
}

.closing__content > p:not(.eyebrow) {
  max-width: 34rem;
  margin: 2rem auto;
  color: var(--gray);
}

.closing footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.3rem;
  border-top: 1px solid var(--line);
  color: var(--gray);
  font-size: 0.52rem;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.closing footer a {
  text-underline-offset: 0.25rem;
}

/* Modal y mensajes */
.rsvp-dialog {
  width: min(calc(100% - 2rem), 38rem);
  padding: clamp(2rem, 6vw, 4.5rem);
  color: var(--ink);
  background: var(--paper-bright);
  border: 0;
  box-shadow: 0 2rem 8rem rgba(0, 0, 0, 0.35);
  text-align: center;
}

.rsvp-dialog::backdrop {
  background: rgba(16, 3, 10, 0.75);
  backdrop-filter: blur(5px);
}

.rsvp-dialog[open] {
  animation: dialog-in 0.5s var(--ease-out);
}

.rsvp-dialog__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  display: grid;
  width: 2.6rem;
  aspect-ratio: 1;
  place-items: center;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 50%;
  cursor: pointer;
}

.rsvp-dialog__close svg {
  width: 1rem;
  height: 1rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
}

.rsvp-dialog__seal {
  display: grid;
  width: 4.2rem;
  aspect-ratio: 1;
  margin: 0 auto 1.7rem;
  place-items: center;
  color: white;
  background: var(--wine);
  border-radius: 50%;
}

.rsvp-dialog__seal svg {
  width: 1.2rem;
  height: 2rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.rsvp-dialog h2 {
  font-size: clamp(3.2rem, 9vw, 5.5rem);
}

.rsvp-dialog > p:not(.eyebrow) {
  max-width: 29rem;
  margin: 2rem auto;
  color: var(--gray);
  font-size: 0.9rem;
}

.rsvp-dialog__accept {
  min-width: 12rem;
}

.toast {
  position: fixed;
  z-index: 1100;
  right: 1.2rem;
  bottom: 1.2rem;
  max-width: min(24rem, calc(100vw - 2.4rem));
  padding: 0.9rem 1.2rem;
  color: white;
  background: var(--black);
  box-shadow: 0 0.8rem 2rem rgba(0, 0, 0, 0.2);
  font-size: 0.75rem;
  transform: translateY(calc(100% + 2rem));
  transition: transform 0.5s var(--ease-out);
}

.toast.is-visible {
  transform: translateY(0);
}

@keyframes dialog-in {
  from {
    opacity: 0;
    transform: translateY(1.5rem) scale(0.98);
  }
}

/* Aparición al hacer scroll */
.js .reveal {
  opacity: 0;
  transform: translateY(2rem);
  transition:
    opacity 0.9s ease,
    transform 1.05s var(--ease-out);
}

.js .reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 860px) {
  .js .opening {
    --env-w: min(88vw, 590px);
  }

  .story__grid,
  .itinerary,
  .dress-code {
    grid-template-columns: 1fr;
  }

  .story__copy {
    max-width: 35rem;
    justify-self: end;
  }

  .details__intro,
  .countdown__heading {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .details__intro h2,
  .countdown__heading h2 {
    justify-self: start;
    text-align: left;
  }

  .detail-cards {
    grid-template-columns: 1fr;
  }

  .detail-card {
    min-height: auto;
  }

  .detail-card + .detail-card {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .detail-card > svg {
    margin-bottom: 3.2rem;
  }

  .dress-code__art {
    width: min(100%, 37rem);
    justify-self: center;
  }

  .itinerary__heading {
    position: static;
    margin-bottom: 3rem;
  }
}

@media (max-width: 600px) {
  :root {
    --section-space: 5.6rem;
  }

  .js .opening {
    --env-w: 92vw;
    grid-template-rows: 0.9fr minmax(235px, 1.65fr) 0.7fr;
  }

  .opening__copy {
    width: calc(100% - 3rem);
  }

  .opening__copy h1 {
    font-size: clamp(2rem, 9vw, 2.9rem);
  }

  .opening__skip {
    font-size: 0.55rem;
  }

  .envelope-scene {
    transform: translateY(4%);
  }

  .wax-seal {
    width: 4.6rem;
  }

  .opening.is-opening .letter-preview {
    transform: translateY(-76%);
  }

  .hero {
    padding-bottom: 3.7rem;
  }

  .institution-lockup span {
    max-width: 13rem;
    font-size: 0.42rem;
  }

  .hero__topbar > p {
    display: none;
  }

  .hero__content {
    padding: 4.2rem 0 5rem;
  }

  .hero__wing {
    top: 47%;
    width: 15rem;
  }

  .hero__wing--left {
    left: -8rem;
  }

  .hero__wing--right {
    right: -8rem;
  }

  .hero__year {
    gap: 0.25rem;
    font-size: clamp(7.3rem, 38vw, 10rem);
  }

  .hero__pretitle {
    margin-bottom: -0.3rem;
  }

  .hero__statement {
    font-size: clamp(2.5rem, 12vw, 3.7rem);
  }

  .hero__date {
    gap: 0.7rem;
    font-size: 0.52rem;
  }

  .hero__date strong {
    padding: 0 0.8rem;
  }

  .hero__actions {
    flex-direction: column;
  }

  .hero__actions .button {
    width: 100%;
  }

  .hero__scroll {
    bottom: 1.1rem;
  }

  .section-index {
    margin-bottom: 3.5rem;
  }

  .story h2,
  .details h2,
  .countdown h2,
  .dress-code h2,
  .itinerary h2,
  .closing h2 {
    font-size: clamp(3.5rem, 17vw, 5.3rem);
  }

  .story__mark {
    gap: 0.5rem;
    font-size: 28vw;
  }

  .story__mark svg {
    width: 1.9rem;
    height: 4rem;
  }

  .date-poster {
    grid-template-columns: auto 1fr auto;
    margin: 5rem auto;
  }

  .date-poster strong {
    font-size: 46vw;
  }

  .date-poster__month {
    writing-mode: vertical-rl;
  }

  .date-poster__line,
  .date-poster__time {
    display: none;
  }

  .detail-card {
    padding: 2.7rem 1rem;
  }

  .countdown {
    min-height: 75vh;
  }

  .countdown__numbers {
    grid-template-columns: repeat(4, 1fr);
    gap: 0.5rem;
  }

  .countdown__numbers i {
    display: none;
  }

  .countdown__numbers strong {
    font-size: clamp(2.8rem, 15vw, 4.4rem);
  }

  .countdown__numbers span {
    margin-top: 0.7rem;
    font-size: 0.45rem;
  }

  .timeline li {
    grid-template-columns: 3.6rem 1px 1fr;
    gap: 1.2rem;
  }

  .closing footer {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
  }
}

.opening.is-opening .wax-seal { outline: none; pointer-events: none; }
