@charset "UTF-8";
:root {
  --primary-100:#EDF1ED;
  --primary-200:#D7E0D6;
  --primary-300:#B6C7B4;
  --primary:#7C9580;
  --primary-400:#7C9580;
  --primary-500:#647E69;
  --primary-600:#4A6150;
  --secondary-100:#F6F1E4;
  --secondary-200:#ECE2C9;
  --secondary-300:#DCC99B;
  --secondary:#C4A86A;
  --secondary-400:#C4A86A;
  --secondary-500:#A88E52;
  --secondary-600:#8A7340;
  --gold:#C4A86A;
  --gold-soft:#DCC99B;
  --gold-100:#F6F1E4;
  --tertiary-100:#FCFBF9;
  --tertiary-200:#F4F1EB;
  --tertiary-300:#E7E2D8;
  --tertiary-400:#A8A091;
  --tertiary-500:#6E665B;
  --tertiary-600:#34352F;
  --bg:var(--tertiary-100);
  --ink:var(--tertiary-600);
  --ink-soft:var(--tertiary-500);
  --line:var(--primary-300);
  --hairline:rgba(124,149,128,.32);
  --content:480px;
  --serif:"Cormorant Garamond", Georgia, serif;
  --sans:"Jost","Helvetica Neue", Arial, sans-serif;
}

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

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

body {
  margin: 0;
  background: #EEEAE1;
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  line-height: 1.65;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.is-locked {
  overflow: hidden;
}

.invite img {
  max-width: 100%;
  display: block;
}

.invite button {
  font-family: inherit;
  cursor: pointer;
}

.invite a {
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--primary-500);
  outline-offset: 3px;
  border-radius: 2px;
}

.eyebrow {
  font-family: var(--sans);
  font-weight: 400;
  font-size: 0.72rem;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--primary-500);
  margin: 0;
}

.serif {
  font-family: var(--serif);
}

.script {
  font-family: var(--serif);
  font-style: italic;
}

.invite {
  max-width: var(--content);
  margin: 0 auto;
  background: var(--bg);
  box-shadow: 0 0 80px rgba(58, 58, 54, 0.12);
  overflow: hidden;
  position: relative;
}

@media (min-width: 640px) {
  body {
    background: var(--tertiary-200);
  }
  .invite {
    max-width: none;
    margin: 0;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    background: var(--bg);
  }
  .invite > .section {
    padding-left: max(40px, 50% - 320px);
    padding-right: max(40px, 50% - 320px);
  }
  .invite > .gallery .section__head {
    padding-left: max(40px, 50% - 320px);
    padding-right: max(40px, 50% - 320px);
  }
  .invite > .gallery .gallery__track {
    padding-left: max(40px, 50% - 320px);
    padding-right: max(40px, 50% - 320px);
  }
  .invite > .gallery .gallery__slide {
    flex-basis: 300px;
  }
  .invite__bottom-space {
    display: none;
  }
}
.section {
  padding: 74px 30px;
  text-align: center;
  position: relative;
}

.section--tight {
  padding: 54px 30px;
}

.section__head {
  margin-bottom: 34px;
}

.section__title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 2.1rem;
  line-height: 1.1;
  margin: 0.5rem 0 0;
  color: var(--ink);
  letter-spacing: 0.01em;
}

.section__icon {
  color: var(--primary);
  height: 30px;
  display: inline-block;
}

.section__icon svg {
  height: 30px;
  width: auto;
}

.divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  color: var(--primary);
  opacity: 0.85;
}

.divider__rule {
  height: 1px;
  width: 60px;
  background: linear-gradient(90deg, transparent, var(--line));
}

.divider__rule--r {
  background: linear-gradient(90deg, var(--line), transparent);
}

.divider svg {
  height: 30px;
  width: auto;
  color: var(--primary);
}

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

@media (prefers-reduced-motion: no-preference) {
  .reveal.is-visible {
    animation: reveal-rise 0.9s cubic-bezier(0.2, 0.72, 0.2, 1) both;
    animation-delay: var(--rd, 0s);
  }
}
@keyframes reveal-rise {
  from {
    transform: translateY(28px);
  }
  to {
    transform: none;
  }
}
.side-deco {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  color: var(--primary);
  opacity: 0.12;
  pointer-events: none;
  z-index: 0;
  display: none;
}

.side-deco svg {
  height: 84vh;
  width: auto;
}

.side-deco--l {
  left: 4vw;
}

.side-deco--r {
  right: 4vw;
}

.side-deco--r svg {
  transform: scaleX(-1);
}

@media (min-width: 1024px) {
  .side-deco {
    display: block;
  }
}
@media (max-width: 1024px) {
  .side-deco {
    display: none;
  }
}
.opener {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 26px;
  padding: 40px;
  background: radial-gradient(120% 90% at 50% 30%, var(--tertiary-100), var(--tertiary-200));
}

.opener.is-gone {
  display: none;
}

.opener__eyebrow {
  color: var(--primary-500);
}

.opener.is-open .opener__eyebrow {
  visibility: hidden;
}

.opener__stage {
  position: relative;
  width: min(440px, 90vw);
  height: min(580px, 74vh);
  display: flex;
  align-items: center;
  justify-content: center;
}

.opener__hit {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 360px;
  height: 240px;
  cursor: pointer;
  background: none;
  border: 0;
  padding: 0;
  z-index: 6;
}

.opener.is-open .opener__hit {
  pointer-events: none;
}

@media (prefers-reduced-motion: no-preference) {
  .opener:not(.is-open) .opener__hit:hover {
    transform: translate(-50%, -50%) translateY(-5px);
  }
}
.opener__back {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 360px;
  height: 240px;
  border-radius: 8px;
  pointer-events: none;
  z-index: 1;
  background: linear-gradient(160deg, #FBF9F5, #F2EEE6);
  border: 1px solid var(--hairline);
  box-shadow: 0 28px 56px rgba(74, 97, 80, 0.22);
}

.opener__pocket {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 360px;
  height: 240px;
  pointer-events: none;
  z-index: 3;
  background: linear-gradient(160deg, #F6F2EA, #EBE5DA);
  clip-path: polygon(0% 30%, 50% 66%, 100% 30%, 100% 100%, 0% 100%);
  border-radius: 8px;
}

.opener__pocket::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, transparent, rgba(196, 168, 106, 0));
  clip-path: polygon(0% 30%, 50% 66%, 100% 30%, 100% 31.5%, 50% 67.5%, 0% 31.5%);
  background-color: var(--gold-soft);
  opacity: 0.7;
}

.opener__flap {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 360px;
  height: 240px;
  pointer-events: none;
  z-index: 4;
  background: linear-gradient(180deg, #F4EFE7, #EFE9DF);
  clip-path: polygon(0% 0%, 100% 0%, 50% 66%);
  transform-origin: 50% 0;
  transition: transform 1.4s cubic-bezier(0.5, 0, 0.16, 1);
  filter: drop-shadow(0 1.5px 0 var(--gold-soft));
}

.opener.is-open .opener__flap {
  transform: translate(-50%, -50%) rotateX(180deg);
}

.opener.is-flap-open .opener__flap {
  z-index: 1;
}

.opener__seal {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) translateY(28px);
  width: 60px;
  height: 60px;
  border-radius: 50%;
  z-index: 5;
  pointer-events: none;
  background: var(--primary);
  border: 1.5px solid var(--gold-soft);
  box-shadow: 0 4px 14px rgba(74, 97, 80, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: #fff;
  transition: opacity 0.8s ease;
}

.opener.is-open .opener__seal {
  opacity: 0;
}

.opener.is-open .opener__back,
.opener.is-open .opener__pocket {
  animation: env-sink 1.3s cubic-bezier(0.5, 0, 0.3, 1) 2.9s both;
}

.opener.is-open .opener__flap {
  animation: layer-fade 1s ease 2.9s both;
}

@keyframes env-sink {
  0% {
    opacity: 1;
  }
  100% {
    transform: translate(-50%, -50%) translateY(48px) scale(0.8);
    opacity: 0;
  }
}
@keyframes layer-fade {
  to {
    opacity: 0;
  }
}
.opener__card {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 330px;
  transform: translate(-50%, -50%) translateY(6px) scale(0.32);
  transform-origin: 50% 50%;
  background: #fff;
  border: 1px solid var(--hairline);
  border-radius: 10px;
  padding: 38px 32px 34px;
  text-align: center;
  z-index: 2;
  box-shadow: 0 30px 64px rgba(52, 53, 47, 0.26);
  display: none;
}

.opener__card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 18px;
  right: 18px;
  height: 1px;
  background: var(--gold-soft);
  opacity: 0.8;
}

.opener.is-open .opener__card {
  display: block;
  animation: card-bloom 4.4s cubic-bezier(0.2, 0.66, 0.2, 1) both;
}

@keyframes card-bloom {
  0% {
    transform: translate(-50%, -50%) translateY(6px) scale(0.32);
    z-index: 2;
  }
  30% {
    transform: translate(-50%, -50%) translateY(6px) scale(0.32);
    z-index: 2;
  }
  60% {
    transform: translate(-50%, -50%) translateY(-168px) scale(0.32);
    z-index: 2;
  }
  67% {
    transform: translate(-50%, -50%) translateY(-168px) scale(0.32);
    z-index: 2;
  }
  68% {
    transform: translate(-50%, -50%) translateY(-168px) scale(0.32);
    z-index: 12;
  }
  100% {
    transform: translate(-50%, -50%) translateY(0) scale(1);
    z-index: 12;
  }
}
@media (prefers-reduced-motion: reduce) {
  .opener.is-open .opener__card {
    display: block;
    animation: none;
    transform: translate(-50%, -50%);
    z-index: 12;
  }
  .opener__back, .opener__pocket, .opener__flap, .opener__seal {
    display: none;
  }
}
.card__sprig {
  color: var(--primary);
  margin-bottom: 6px;
}

.card__sprig svg {
  width: min(160px, 46%);
  height: auto;
  display: block;
  margin: 0 auto;
}

.card__hello {
  color: var(--primary-500);
  margin-bottom: 10px;
  font-size: 0.7rem;
}

.card__name {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: 2.3rem;
  line-height: 1.08;
  color: var(--ink);
  margin: 0 0 14px;
}

.card__rule {
  width: 46px;
  height: 1px;
  background: var(--line);
  margin: 0 auto 16px;
}

.card__passes {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 4px 0 14px;
}

.card__passes-num {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-style: italic;
  font-weight: 600;
  font-size: 4rem;
  line-height: 0.9;
  color: var(--primary);
}

.card__passes-text {
  font-size: 0.68rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-top: 8px;
}

.card__date {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.18rem;
  color: var(--primary-600);
  margin-top: 4px;
}

.card__btn {
  margin-top: 26px;
  width: 100%;
  background: var(--primary);
  color: #fff;
  border: 0;
  padding: 16px 22px;
  border-radius: 999px;
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  transition: background 0.3s ease;
  cursor: pointer;
}

.card__btn:hover {
  background: var(--primary-500);
}

.opener__hint {
  font-size: 0.74rem;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--ink-soft);
  display: flex;
  align-items: center;
  gap: 9px;
}

.opener.is-open .opener__hint {
  display: none;
}

.opener__hint::before, .opener__hint::after {
  content: "";
  width: 18px;
  height: 1px;
  background: var(--line);
}

.nav {
  position: fixed;
  left: 50%;
  bottom: 18px;
  z-index: 50;
  width: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  background: rgba(247, 244, 239, 0.88);
  backdrop-filter: blur(12px);
  border: 1px solid var(--hairline);
  border-radius: 999px;
  padding: 5px 12px;
  gap: 4px;
  box-shadow: 0 12px 30px rgba(58, 58, 54, 0.16);
  opacity: 0;
  pointer-events: none;
  transform: translateX(-50%) translateY(130%);
  transition: transform 0.42s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.42s ease;
}

.nav.is-in {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.nav__btn {
  background: none;
  border: 0;
  color: var(--ink-soft);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.25s ease, background 0.25s ease;
}

.nav__btn svg {
  height: 21px;
  width: 21px;
}

.nav__btn:hover, .nav__btn.is-active {
  color: var(--primary-600);
  background: var(--primary-100);
}

.nav__music {
  margin-left: 4px;
  color: var(--primary-600);
  background: var(--primary-100);
}

.nav__music.is-playing {
  background: var(--primary);
  color: #fff;
}

.nav__music .nav__eq {
  display: none;
}

.nav__music.is-playing .nav__eq {
  display: flex;
}

.nav__music.is-playing .nav__noteicon {
  display: none;
}

.nav__eq {
  align-items: flex-end;
  gap: 2px;
  height: 16px;
}

.nav__eq i {
  width: 2.5px;
  background: currentColor;
  border-radius: 2px;
  animation: eq 1s ease-in-out infinite;
}

.nav__eq i:nth-child(1) {
  height: 7px;
  animation-delay: 0s;
}

.nav__eq i:nth-child(2) {
  height: 14px;
  animation-delay: 0.2s;
}

.nav__eq i:nth-child(3) {
  height: 9px;
  animation-delay: 0.4s;
}

@keyframes eq {
  0%, 100% {
    transform: scaleY(0.4);
  }
  50% {
    transform: scaleY(1);
  }
}
@media (prefers-reduced-motion: reduce) {
  .nav__eq i {
    animation: none;
  }
}
/* Mini control de música flotante: visible en portada mientras el nav aún
   está oculto; se desvanece en cuanto el nav aparece (mismo patrón que moderna). */
.music-fab {
  position: fixed;
  z-index: 59;
  right: 16px;
  bottom: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  color: var(--primary-600);
  cursor: pointer;
  background: rgba(247, 244, 239, 0.88);
  backdrop-filter: blur(12px);
  border: 1px solid var(--hairline);
  box-shadow: 0 12px 30px rgba(58, 58, 54, 0.16);
  transition: transform 0.3s ease, opacity 0.3s ease, background 0.25s ease, color 0.25s ease;
}

.music-fab svg {
  height: 21px;
  width: 21px;
}

.music-fab:hover {
  background: var(--primary-100);
}

.music-fab.is-playing {
  background: var(--primary);
  color: #fff;
}

.music-fab .nav__eq {
  display: none;
}

.music-fab.is-playing .nav__eq {
  display: flex;
}

.music-fab.is-playing .nav__noteicon {
  display: none;
}

#nav.is-in ~ .music-fab {
  opacity: 0;
  transform: scale(0.6);
  pointer-events: none;
}

.cover {
  position: relative;
  overflow: hidden;
  height: 100svh;
  max-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  text-align: center;
  padding: 0 30px calc(96px + env(safe-area-inset-bottom));
  color: #fff;
}

@media (min-width: 640px) {
  .cover {
    height: 100vh;
    max-height: none;
    padding-bottom: calc(80px + env(safe-area-inset-bottom));
  }
}
.cover__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.cover__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}

.cover.is-kenburns .cover__bg img {
  animation: kenBurns 20s ease-in-out infinite alternate;
}

@keyframes kenBurns {
  from {
    transform: scale(1);
  }
  to {
    transform: scale(1.07);
  }
}
.cover__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(52, 53, 47, 0) 0%, rgba(52, 53, 47, 0) 38%, rgba(52, 53, 47, 0.18) 55%, rgba(52, 53, 47, 0.72) 78%, rgba(52, 53, 47, 0.88) 100%);
}

.cover__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 440px;
  padding: 0 24px 0;
}

.cover__eyebrow {
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 16px;
  letter-spacing: 0.42em;
  font-size: 0.68rem;
}

.cover__names {
  font-family: var(--serif);
  font-weight: 500;
  color: #fff;
  line-height: 0.95;
  text-shadow: 0 2px 28px rgba(52, 53, 47, 0.5);
  margin: 0;
}

.cover__name {
  display: block;
  font-size: clamp(3.4rem, 10vw, 5.2rem);
}

.cover__amp {
  display: block;
  font-style: italic;
  font-weight: 400;
  font-size: clamp(2rem, 5.5vw, 2.8rem);
  color: var(--gold-soft);
  margin: 8px 0;
}

.cover__meta {
  margin-top: 26px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
}

.cover__date {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.15rem, 3vw, 1.5rem);
  color: rgba(255, 255, 255, 0.92);
}

.cover__sep {
  width: 48px;
  height: 1px;
  background: var(--gold-soft);
  margin: 6px 0;
  opacity: 0.7;
}

.cover__city {
  font-size: 0.72rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
}

@media (max-width: 639px) {
  .cover__name {
    font-size: clamp(3.8rem, 12vw, 5rem);
  }
  .cover__amp {
    font-size: clamp(2.2rem, 6vw, 3rem);
    margin: 10px 0;
  }
  .cover__date {
    font-size: 1.25rem;
  }
  .cover__city {
    font-size: 0.74rem;
  }
  .cover__meta {
    margin-top: 28px;
    gap: 10px;
  }
  .cover__inner {
    padding: 0 20px;
  }
}
.intro {
  background: var(--bg);
}

.intro__icon {
  color: var(--primary);
  margin-bottom: 18px;
}

.intro__icon svg {
  height: 38px;
}

.intro__text {
  font-family: var(--serif);
  font-size: 1.55rem;
  font-style: italic;
  line-height: 1.45;
  color: var(--ink);
  max-width: 24ch;
  margin: 0 auto;
}

.couple {
  background: var(--tertiary-100);
}

.couple__mono {
  color: var(--primary);
  margin-bottom: 8px;
}

.couple__mono svg {
  height: 120px;
}

.couple__names {
  font-family: var(--serif);
  font-size: 2.2rem;
  color: var(--ink);
  margin: 6px 0 4px;
  font-weight: 500;
}

.couple__sub {
  font-size: 0.74rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.countdown {
  position: relative;
  padding: 80px 30px;
  text-align: center;
  overflow: hidden;
}

.countdown__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

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

.countdown__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(58, 58, 54, 0.62), rgba(78, 97, 78, 0.66));
}

.countdown__inner {
  position: relative;
  z-index: 1;
  color: #fff;
}

.countdown__eyebrow {
  color: rgba(255, 255, 255, 0.85);
}

.countdown__title {
  font-family: var(--serif);
  font-size: 1.8rem;
  font-style: italic;
  margin: 10px 0 26px;
  color: #fff;
}

.countdown__grid {
  display: flex;
  justify-content: center;
  gap: 12px;
}

.cd__unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 62px;
}

.cd__num {
  font-family: var(--serif);
  font-size: 2.5rem;
  line-height: 1;
  font-weight: 500;
}

.cd__label {
  font-size: 0.6rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  opacity: 0.82;
  margin-top: 8px;
}

.cd__sep {
  font-family: var(--serif);
  font-size: 2rem;
  opacity: 0.5;
  align-self: flex-start;
  margin-top: 4px;
}

.story {
  background: var(--bg);
  overflow: hidden;
}

.story__text {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.3rem;
  line-height: 1.5;
  color: var(--ink);
  max-width: 30ch;
  margin: 0 auto 56px;
}

.story__timeline {
  position: relative;
  text-align: left;
  max-width: 420px;
  margin: 0 auto;
  padding-top: 12px;
}

.story__timeline::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 30px;
  width: 1px;
  transform: translateX(-50%);
  background: repeating-linear-gradient(var(--hairline) 0 4px, transparent 4px 11px);
  opacity: 0.55;
}

.story__chapter {
  position: relative;
  padding: 0 0 72px;
}

.story__chapter:last-child {
  padding-bottom: 4px;
}

.story__dot {
  position: absolute;
  left: 50%;
  top: 16px;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  border: 1.5px solid var(--primary);
  background: var(--bg);
  transform: translate(-50%, 0);
  z-index: 3;
}

.story__num {
  position: absolute;
  top: -30px;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: 5.4rem;
  line-height: 1;
  color: var(--primary-200);
  z-index: 0;
  pointer-events: none;
  user-select: none;
}

.story__chapter[data-side=left] .story__num {
  right: 8px;
}

.story__chapter[data-side=right] .story__num {
  left: 8px;
}

.story__photo {
  position: relative;
  z-index: 1;
  width: 76%;
  border-radius: 5px;
  overflow: hidden;
  background: var(--tertiary-200);
  box-shadow: 0 34px 56px -38px rgba(52, 53, 47, 0.6);
}

.story__chapter[data-side=right] .story__photo {
  margin-left: auto;
}

.story__photo img {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  display: block;
  cursor: zoom-in;
}

.story__copy {
  position: relative;
  z-index: 2;
  margin-top: 22px;
  max-width: 32ch;
}

.story__chapter[data-side=right] .story__copy {
  margin-left: auto;
  text-align: right;
}

.story__year {
  font-size: 0.66rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--primary-500);
  margin-bottom: 9px;
}

.story__caption {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: 1.7rem;
  line-height: 1.14;
  color: var(--ink);
  margin: 0 0 11px;
}

.story__body {
  font-size: 0.92rem;
  line-height: 1.66;
  color: var(--ink-soft);
  margin: 0;
}

@media (prefers-reduced-motion: no-preference) {
  .story__chapter.reveal.is-visible {
    animation: none;
  }
  .story__chapter .story__num {
    opacity: 0;
    transform: translateY(22px) scale(0.82);
    transition: opacity 0.8s ease, transform 0.9s cubic-bezier(0.2, 0.72, 0.2, 1);
  }
  .story__chapter .story__photo {
    opacity: 0;
    clip-path: inset(0 100% 0 0);
    transform: scale(1.05);
    transition: opacity 0.6s ease, clip-path 0.95s cubic-bezier(0.2, 0.72, 0.2, 1), transform 1.05s cubic-bezier(0.2, 0.72, 0.2, 1);
  }
  .story__chapter[data-side=right] .story__photo {
    clip-path: inset(0 0 0 100%);
  }
  .story__chapter .story__dot {
    opacity: 0;
    transform: translate(-50%, 0) scale(0);
  }
  .story__chapter .story__copy > * {
    opacity: 0;
    transform: translateX(-20px);
    transition: opacity 0.7s ease, transform 0.85s cubic-bezier(0.2, 0.72, 0.2, 1);
  }
  .story__chapter[data-side=right] .story__copy > * {
    transform: translateX(20px);
  }
  .story__chapter .story__year {
    transition-delay: 0.16s;
  }
  .story__chapter .story__caption {
    transition-delay: 0.28s;
  }
  .story__chapter .story__body {
    transition-delay: 0.4s;
  }
  .story__chapter.is-visible .story__num {
    opacity: 0.6;
    transform: none;
  }
  .story__chapter.is-visible .story__photo {
    opacity: 1;
    clip-path: inset(0 0 0 0);
    transform: none;
  }
  .story__chapter.is-visible .story__dot {
    opacity: 1;
    transform: translate(-50%, 0) scale(1);
    transition: opacity 0.5s ease 0.25s, transform 0.6s cubic-bezier(0.2, 0.72, 0.2, 1) 0.25s;
  }
  .story__chapter.is-visible .story__copy > * {
    opacity: 1;
    transform: none;
  }
}
.gallery {
  background: var(--tertiary-100);
  padding-left: 0;
  padding-right: 0;
}

.gallery .section__head {
  padding: 0 30px;
}

.gallery__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  padding: 4px;
}

@media (min-width: 480px) {
  .gallery__grid {
    grid-template-columns: repeat(4, 1fr);
  }
}
@media (min-width: 768px) {
  .gallery__grid {
    grid-template-columns: repeat(5, 1fr);
    gap: 5px;
    padding: 5px;
  }
}
.gallery__grid-item {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1;
  cursor: zoom-in;
}

.gallery__grid-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease, opacity 0.2s;
}

.gallery__grid-item:hover img {
  transform: scale(1.06);
  opacity: 0.9;
}

.gallery__grid-item--featured {
  grid-column: span 2;
  grid-row: span 2;
  aspect-ratio: auto;
}

.glb {
  position: fixed;
  inset: 0;
  z-index: 400;
  display: none;
  background: rgba(15, 15, 13, 0.97);
  flex-direction: column;
}

.glb.is-open {
  display: flex;
}

.glb__bar {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
}

.glb__counter {
  font-size: 0.64rem;
  letter-spacing: 0.18em;
  color: rgba(255, 255, 255, 0.55);
}

.glb__close {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  cursor: pointer;
  transition: background 0.2s;
}

.glb__close:hover {
  background: rgba(255, 255, 255, 0.18);
}

.glb__close svg {
  height: 18px;
  width: 18px;
  stroke-width: 2;
}

.glb__stage {
  flex: 1;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.glb__img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transform-origin: center center;
  transition: transform 0.25s ease;
  user-select: none;
  -webkit-user-drag: none;
  position: relative;
  z-index: 1;
}

.glb__prev, .glb__next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  cursor: pointer;
  transition: background 0.2s;
}

.glb__prev {
  left: 14px;
}

.glb__next {
  right: 14px;
}

.glb__prev:hover, .glb__next:hover {
  background: rgba(255, 255, 255, 0.15);
}

.glb__prev svg, .glb__next svg {
  height: 20px;
  width: 20px;
  stroke-width: 1.8;
}

.glb__dots {
  flex: 0 0 auto;
  display: flex;
  justify-content: center;
  gap: 6px;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  overflow-x: auto;
  scrollbar-width: none;
}

.glb__dots::-webkit-scrollbar {
  display: none;
}

.glb__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.28);
  border: 0;
  padding: 0;
  cursor: pointer;
  flex: 0 0 auto;
  transition: background 0.2s, transform 0.2s;
}

.glb__dot.is-active {
  background: #fff;
  transform: scale(1.3);
}

.gallery__track {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 6px 30px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.gallery__track::-webkit-scrollbar {
  display: none;
}

.gallery__slide {
  flex: 0 0 64%;
  scroll-snap-align: center;
}

.gallery__slide img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  border: 1px solid var(--hairline);
  border-radius: 3px;
  background: var(--tertiary-200);
}

.gallery__dots {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 7px;
  margin-top: 20px;
  padding: 0 30px;
  max-width: 340px;
  margin-left: auto;
  margin-right: auto;
}

.gallery__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--tertiary-300);
  transition: background 0.3s, width 0.3s;
  border: 0;
  padding: 0;
  cursor: pointer;
}

.gallery__dot.is-active {
  background: var(--primary);
  width: 20px;
  border-radius: 4px;
}

.gallery__cf-wrap {
  position: relative;
}

.gallery__cf-prev, .gallery__cf-next {
  display: none;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.14);
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(4px);
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s;
}

.gallery__cf-prev:hover, .gallery__cf-next:hover {
  background: #fff;
}

.gallery__cf-prev svg, .gallery__cf-next svg {
  width: 18px;
  height: 18px;
  stroke-width: 1.8;
}

.gallery__cf-prev {
  left: 8px;
}

.gallery__cf-next {
  right: 8px;
}

@media (min-width: 768px) {
  .gallery .gallery__track {
    padding-left: max(40px, 50% - 320px);
    padding-right: max(40px, 50% - 320px);
  }
  .gallery__slide {
    flex-basis: 300px;
  }
  .gallery__cf-prev, .gallery__cf-next {
    display: flex;
  }
  .gallery__track {
    cursor: grab;
  }
  .gallery__track.is-dragging {
    cursor: grabbing;
  }
}
.gal {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 0 30px;
}

.gal .grow {
  display: flex;
  gap: 8px;
}

.gal .cell {
  flex: 1 1 0;
  min-width: 0;
  overflow: hidden;
  background: var(--tertiary-200);
  cursor: pointer;
  border-radius: 3px;
}

.gal .cell img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.gal .cell:hover img {
  transform: scale(1.05);
}

@media (min-width: 768px) {
  .gal {
    padding-left: max(40px, 50% - 320px);
    padding-right: max(40px, 50% - 320px);
  }
}
.story {
  position: fixed;
  inset: 0;
  z-index: 400;
  background: #0e0f0a;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  overflow: hidden;
}

.story.on {
  opacity: 1;
  pointer-events: auto;
}

.story-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  -webkit-user-drag: none;
  will-change: transform;
}

@media (min-width: 880px) {
  .story-img {
    width: auto;
    height: 100%;
    max-width: 480px;
  }
  .story {
    background: #0e0f0a;
  }
}
.story-bars {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 6;
  display: flex;
  gap: 4px;
  padding: 11px 12px 11px;
}

.story-bars .bar {
  flex: 1;
  height: 2.5px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.32);
  overflow: hidden;
}

.story-bars .bar i {
  display: block;
  height: 100%;
  width: 0;
  background: #fff;
  border-radius: 2px;
}

.story-head {
  position: absolute;
  top: 20px;
  left: 0;
  right: 0;
  z-index: 6;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 11px;
  padding: 0 14px;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.5);
}

.story-x {
  width: 34px;
  height: 34px;
  color: #fff;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.burst {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  opacity: 0;
}

.burst svg {
  width: 110px;
  height: 110px;
  filter: drop-shadow(0 6px 18px rgba(0, 0, 0, 0.4));
  transform: scale(0.4);
}

.burst.go {
  animation: burst 0.65s ease forwards;
}

@keyframes burst {
  0% {
    opacity: 0;
    transform: scale(0.4);
  }
  25% {
    opacity: 1;
  }
  45% {
    transform: scale(1.05);
  }
  70% {
    opacity: 1;
    transform: scale(1);
  }
  100% {
    opacity: 0;
    transform: scale(1.1);
  }
}
.burst.go svg {
  animation: burstHeart 0.65s ease forwards;
}

@keyframes burstHeart {
  0% {
    transform: scale(0.4);
  }
  45% {
    transform: scale(1.1);
  }
  100% {
    transform: scale(1);
  }
}
.story-actions {
  position: absolute;
  right: 14px;
  bottom: calc(34px + env(safe-area-inset-bottom, 0px));
  z-index: 6;
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 5px;
}

.story-actions .act {
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  transition: transform 0.2s;
}

.story-actions .act svg {
  width: 32px;
  height: 32px;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.45));
  transition: transform 0.3s cubic-bezier(0.3, 1.5, 0.5, 1);
}

.story-actions .act:active {
  transform: scale(0.9);
}

.story-actions .act.like.on {
  color: #ED4956;
}

.story-actions .act.like.on svg {
  animation: likepop 0.4s ease;
}

@keyframes likepop {
  0% {
    transform: scale(0.7);
  }
  55% {
    transform: scale(1.3);
  }
  100% {
    transform: scale(1);
  }
}
.story-actions .act-n {
  font-size: 12px;
  color: #fff;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}

.story-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 6;
  padding: 48px 76px calc(20px + env(safe-area-inset-bottom, 0px)) 18px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.62), rgba(0, 0, 0, 0));
  color: #fff;
  pointer-events: none;
  transition: padding-top 0.25s ease, background 0.25s ease;
}

.story-caption.is-collapsible {
  pointer-events: auto;
  cursor: pointer;
}

.story-caption__title {
  font-family: var(--display);
  font-size: 18px;
  line-height: 1.25;
  margin: 0 0 4px;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.55);
}

.story-caption__desc {
  font-family: var(--label);
  font-size: 13px;
  line-height: 1.45;
  margin: 0;
  opacity: 0.92;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.55);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.story-caption__more {
  display: none;
  margin-top: 6px;
  padding: 0;
  font-family: var(--label);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #fff;
  opacity: 0.85;
  background: none;
  border: 0;
  cursor: pointer;
  pointer-events: auto;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.55);
}

.story-caption.is-collapsible .story-caption__more {
  display: inline-block;
}

.story-caption.expanded {
  padding-top: 80px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.82) 55%, rgba(0, 0, 0, 0));
}

.story-caption.expanded .story-caption__inner {
  max-height: 46vh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.story-caption.expanded .story-caption__desc {
  display: block;
  -webkit-line-clamp: none;
  overflow: visible;
}

@media (min-width: 880px) {
  .story-caption {
    left: 50%;
    right: auto;
    width: 480px;
    transform: translateX(-50%);
  }
}
.venues {
  background: var(--bg);
}

.venues__list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 400px;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .venues__list {
    flex-direction: row;
    max-width: 820px;
    align-items: stretch;
  }
  .venues__item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
}
.venues__item {
  border: 1px solid var(--hairline);
  border-radius: 4px;
  background: var(--tertiary-100);
  padding: 30px 26px;
  text-align: center;
}

.venues__icon {
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

.venues__icon svg {
  height: 38px;
}

.venues__icon--church-wrap {
  width: 100%;
  height: 180px;
  padding: 0;
}

.venues__icon--church-wrap .venues__img {
  width: auto;
  max-height: 100%;
  height: auto;
}

.venues__icon--couple-wrap {
  width: 100%;
  height: 165px;
  padding: 0;
}

.venues__icon--couple-wrap .venues__img {
  width: 100%;
  height: auto;
  max-width: 180px;
}

@media (min-width: 768px) {
  .venues__icon--church-wrap {
    width: 256.4px;
    height: 240px;
    padding: 0;
  }
  .venues__icon--church-wrap .venues__img {
    width: auto;
    max-height: 100%;
    height: auto;
  }
  .venues__icon--couple-wrap {
    width: 256.4px;
    height: 240px;
    padding: 0;
  }
  .venues__icon--couple-wrap .venues__img {
    width: 100%;
    height: auto;
    max-width: 240px;
  }
}
.venues__kind {
  font-size: 0.66rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--primary-500);
}

.venues__name {
  font-family: var(--serif);
  font-size: 1.5rem;
  color: var(--ink);
  margin: 8px 0 4px;
  font-weight: 500;
}

.venues__addr {
  font-size: 0.86rem;
  color: var(--ink-soft);
  max-width: 26ch;
  margin: 0 auto 20px;
  line-height: 1.5;
}

.venues__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--primary);
  color: var(--primary-600);
  background: none;
  border-radius: 999px;
  padding: 11px 22px;
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background 0.3s ease, color 0.3s ease;
}

.venues__btn:hover {
  background: var(--primary);
  color: #fff;
}

.venues__btn svg {
  height: 15px;
  width: 15px;
}

.itinerary {
  background: var(--tertiary-100);
}

.itinerary__intro {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.12rem;
  line-height: 1.5;
  color: var(--ink-soft);
  max-width: 30ch;
  margin: 0 auto 38px;
}

.itinerary__list {
  position: relative;
  max-width: 430px;
  margin: 0 auto;
  text-align: left;
}

.itinerary__list::before {
  content: "";
  position: absolute;
  left: 21px;
  top: 10px;
  bottom: 10px;
  width: 1px;
  background: linear-gradient(var(--line), var(--gold-soft) 50%, var(--line));
}

.itinerary__vine-leaves {
  position: absolute;
  left: 9px;
  top: 0;
  bottom: 0;
  width: 26px;
  pointer-events: none;
  z-index: 0;
}

.itinerary__vine-leaf {
  position: absolute;
  left: 0;
  color: var(--primary);
  opacity: 0.55;
  transform: translateY(-50%);
}

.itinerary__vine-leaf svg {
  width: 26px;
  height: auto;
  display: block;
}

.itinerary__step {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 22px;
  padding: 0 2px 26px;
}

.itinerary__step:last-child {
  padding-bottom: 0;
}

.itinerary__badge {
  position: relative;
  z-index: 1;
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--hairline);
  background: var(--tertiary-100);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
}

.itinerary__badge svg {
  height: 22px;
  width: 22px;
}

.itinerary__body {
  flex: 1;
  min-width: 0;
  padding-top: 1px;
}

.itinerary__step:not(:last-child) .itinerary__body {
  border-bottom: 1px solid var(--hairline);
  padding-bottom: 24px;
}

.itinerary__top {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
}

.itinerary__time {
  font-family: var(--serif);
  font-size: 1.7rem;
  color: var(--primary-600);
  line-height: 1;
}

.itinerary__dur {
  font-size: 0.58rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
}

.itinerary__dur::before {
  content: "·";
  margin-right: 8px;
  color: var(--line);
}

.itinerary__name {
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink);
  margin-top: 7px;
}

.itinerary__place {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  font-size: 0.82rem;
  color: var(--ink-soft);
  margin-top: 10px;
  line-height: 1.45;
}

.itinerary__place svg {
  height: 14px;
  width: 14px;
  flex: 0 0 auto;
  color: var(--primary);
  margin-top: 2px;
}

.itinerary__place b {
  font-weight: 400;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1rem;
  color: var(--ink);
}

.itinerary__note {
  font-size: 0.8rem;
  color: var(--ink-soft);
  margin-top: 9px;
  line-height: 1.5;
}

.countdown__gcal {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 32px;
  background: #fff;
  border: 0;
  color: #4A6150 !important;
  border-radius: 999px;
  padding: 15px 32px;
  text-decoration: none;
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 500;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.28);
  transition: background 0.25s, transform 0.2s, box-shadow 0.25s;
}

.countdown__gcal:hover {
  background: #F6F1E4;
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
}

.countdown__gcal svg {
  height: 17px;
  width: 17px;
  flex: 0 0 auto;
  stroke: #4A6150;
}

.countdown__gcal span, .countdown__gcal text {
  color: #4A6150;
}

.parents {
  background: var(--bg);
}

.parents__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
  max-width: 360px;
  margin: 0 auto;
}

.parents__group--full {
  grid-column: 1/-1;
}

.parents__group-img {
  width: min(120px, 40vw);
  height: auto;
  display: block;
  margin: 0 auto 10px;
  border-radius: 8px;
  object-fit: cover;
}

.parents__label {
  font-size: 0.66rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--primary-500);
  margin-bottom: 12px;
}

.parents__name {
  font-family: var(--serif);
  font-size: 1.32rem;
  color: var(--ink);
  line-height: 1.5;
}

.parents__memory {
  display: inline-flex;
  align-items: center;
  vertical-align: baseline;
  margin-left: 7px;
}

.parents__memory .dove-img {
  height: 1.5em;
  width: auto;
  position: relative;
  top: 0.16em;
  display: block;
  transform: scaleX(1);
}

@media (min-width: 640px) {
  .parents__grid {
    grid-template-columns: 1fr 1fr;
    max-width: 680px;
  }
}
.dresscode {
  background: var(--tertiary-100);
}

.dresscode .section__head {
  margin-bottom: 14px;
}

.dresscode__outfit {
  display: block;
  margin: 0 auto 12px;
  width: min(190px, 52vw);
  height: auto;
  mix-blend-mode: multiply;
}

.dresscode__note {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.2rem;
  color: var(--ink-soft);
  margin-bottom: 16px;
  margin-top: 0;
}

.dresscode__block {
  margin-bottom: 24px;
}

.dresscode__sub {
  font-size: 0.66rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--primary-500);
  margin-bottom: 14px;
}

.dresscode__avoid {
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
  margin-bottom: 14px;
}

.dresscode__swatches {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.swatch {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.swatch__chip {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid var(--hairline);
}

.swatch__name {
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  color: var(--ink-soft);
  text-transform: uppercase;
}

.notchildren {
  background: var(--bg);
}

.notchildren__card {
  max-width: 360px;
  margin: 0 auto;
  border: 1px solid var(--hairline);
  border-radius: 4px;
  padding: 36px 30px;
  background: var(--tertiary-100);
}

.notchildren__icon {
  color: var(--primary);
  margin-bottom: 14px;
}

.notchildren__icon svg {
  height: 36px;
}

.notchildren__title {
  font-family: var(--serif);
  font-size: 1.5rem;
  color: var(--ink);
  margin: 0 0 8px;
  font-weight: 500;
}

.notchildren__text {
  font-size: 0.88rem;
  color: var(--ink-soft);
  line-height: 1.6;
  max-width: 28ch;
  margin: 0 auto;
}

.gifts {
  background: var(--tertiary-100);
}

.gifts__intro {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--ink-soft);
  max-width: 28ch;
  margin: 0 auto 28px;
}

.gifts__list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 380px;
  margin: 0 auto;
}

.gifts__registry {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid var(--primary);
  color: var(--primary-600);
  background: none;
  border-radius: 999px;
  padding: 14px 24px;
  text-decoration: none;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  transition: background 0.3s, color 0.3s;
}

.gifts__registry:hover {
  background: var(--primary);
  color: #fff;
}

.gifts__registry svg {
  height: 17px;
}

.gifts__account {
  border: 1px solid var(--hairline);
  border-radius: 4px;
  background: var(--bg);
  padding: 20px;
  text-align: left;
}

.gifts__bank {
  font-family: var(--serif);
  font-size: 1.3rem;
  color: var(--ink);
  font-weight: 500;
}

.gifts__owner {
  font-size: 0.78rem;
  color: var(--ink-soft);
  margin-bottom: 14px;
}

.gifts__field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 12px 0;
  border-top: 1px dashed var(--hairline);
}

.gifts__field-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.gifts__field-label {
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.gifts__field-val {
  font-family: "Jost", system-ui, sans-serif;
  font-size: 1rem;
  color: var(--ink);
  letter-spacing: 0.04em;
  word-break: break-all;
}

.gifts__copy {
  border: 1px solid var(--primary-300);
  background: var(--primary-100);
  color: var(--primary-600);
  border-radius: 999px;
  padding: 7px 14px;
  font-size: 0.6rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.gifts__copy svg {
  height: 13px;
  width: 13px;
}

.gifts__copy.is-done {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.songs {
  background: var(--bg);
}

.songs__icon {
  color: var(--primary);
  margin-bottom: 14px;
}

.songs__icon svg {
  height: 34px;
}

.songs__text {
  font-size: 0.92rem;
  color: var(--ink-soft);
  max-width: 28ch;
  margin: 0 auto 24px;
}

.form-row {
  display: flex;
  gap: 8px;
  max-width: 360px;
  margin: 0 auto;
}

.field {
  flex: 1;
  border: 1px solid var(--hairline);
  border-radius: 999px;
  background: var(--tertiary-100);
  padding: 13px 18px;
  font-family: var(--sans);
  font-size: 0.86rem;
  color: var(--ink);
}

.field::placeholder {
  color: var(--tertiary-400);
}

.field:focus {
  outline: none;
  border-color: var(--primary);
}

.btn-send {
  border: 0;
  background: var(--primary);
  color: #fff;
  border-radius: 999px;
  padding: 0 22px;
  font-size: 0.66rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  transition: background 0.3s;
  white-space: nowrap;
}

.btn-send:hover {
  background: var(--primary-500);
}

.form-thanks {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--primary-600);
  min-height: 1.2em;
}

.rsvp {
  background: var(--tertiary-100);
}

.rsvp__card {
  max-width: 400px;
  margin: 0 auto;
  border: 1px solid var(--hairline);
  border-radius: 6px;
  background: var(--bg);
  padding: 36px 30px;
  text-align: center;
  box-shadow: 0 26px 50px -34px rgba(52, 53, 47, 0.45);
}

.rsvp__eyebrow {
  font-size: 0.66rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 14px;
}

.rsvp__name {
  font-family: var(--serif);
  font-size: 2.05rem;
  color: var(--ink);
  line-height: 1.12;
}

.rsvp__rule {
  width: 170px;
  height: 1px;
  background: var(--hairline);
  margin: 22px auto;
}

.rsvp__passes {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
}

.rsvp__passes-num {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-style: italic;
  font-size: 3.6rem;
  line-height: 0.9;
  color: var(--primary-600);
}

.rsvp__passes-label {
  font-size: 0.66rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.rsvp__note {
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--ink-soft);
  margin: 2px auto 26px;
  max-width: 32ch;
}

.rsvp__note b {
  color: var(--primary-600);
  font-weight: 500;
}

.rsvp__cta {
  width: 100%;
  border: 0;
  background: var(--primary);
  color: #fff;
  border-radius: 999px;
  padding: 18px;
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.3s, transform 0.2s;
  box-shadow: 0 16px 28px -16px var(--primary-600);
}

.rsvp__cta:hover {
  background: var(--primary-500);
}

.rsvp__cta:active {
  transform: translateY(1px);
}

.rsvp__confirmed {
  display: none;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.rsvp__card.is-confirmed .rsvp__pending {
  display: none;
}

.rsvp__card.is-confirmed .rsvp__confirmed {
  display: flex;
  animation: rsvp-reveal 0.5s ease both;
}

.rsvp__cancelled {
  display: none;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.rsvp__card.is-cancelled .rsvp__pending {
  display: none;
}

.rsvp__card.is-cancelled .rsvp__confirmed {
  display: none;
}

.rsvp__card.is-cancelled .rsvp__cancelled {
  display: flex;
  animation: rsvp-reveal 0.5s ease both;
}

@keyframes rsvp-reveal {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.sheet__decline {
  width: 100%;
  border: 1px solid var(--hairline);
  background: none;
  color: var(--ink-soft);
  border-radius: 999px;
  padding: 16px;
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.25s;
}

.sheet__decline:hover {
  background: var(--tertiary-200);
}

.rsvp__badge {
  width: 66px;
  height: 66px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  box-shadow: 0 14px 26px -14px var(--primary-600);
}

.rsvp__badge svg {
  height: 30px;
  width: 30px;
  stroke-width: 1.7;
}

.rsvp__confirmed-label {
  font-size: 0.68rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 12px;
}

.rsvp__attendees {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin: 16px 0 2px;
}

.rsvp__attendee {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-family: var(--serif);
  font-size: 1.18rem;
  color: var(--ink);
}

.rsvp__attendee svg {
  height: 15px;
  width: 15px;
  color: var(--primary);
  stroke-width: 1.8;
}

.rsvp__qr-card {
  width: 100%;
  border: 1px solid var(--hairline);
  border-radius: 6px;
  background: var(--tertiary-100);
  padding: 24px;
  margin: 24px 0 14px;
  display: flex;
  justify-content: center;
}

.rsvp__qr-card img {
  width: 212px;
  height: 212px;
  display: block;
  background: var(--tertiary-100);
}

.rsvp__code {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 0.94rem;
  letter-spacing: 0.3em;
  color: var(--ink-soft);
  margin-bottom: 16px;
  padding-left: 0.3em;
}

.rsvp__qr-note {
  font-size: 0.86rem;
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 33ch;
  margin: 0 auto 22px;
}

.sheet {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: none;
}

.sheet.is-open {
  display: block;
}

.sheet__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(52, 53, 47, 0.5);
  backdrop-filter: blur(2px);
  opacity: 0;
  transition: opacity 0.35s;
}

.sheet.is-open .sheet__backdrop {
  opacity: 1;
}

.sheet__panel {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  max-width: 520px;
  margin: 0 auto;
  background: var(--bg);
  border-radius: 24px 24px 0 0;
  padding: 14px 24px calc(26px + env(safe-area-inset-bottom));
  transform: translateY(101%);
  transition: transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1);
  box-shadow: 0 -22px 54px -22px rgba(52, 53, 47, 0.5);
  max-height: 90vh;
  overflow-y: auto;
}

.sheet__x {
  position: absolute;
  top: 14px;
  right: 16px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 0;
  background: none;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-soft);
  opacity: 0.55;
  cursor: pointer;
  padding: 0;
  transition: opacity 0.2s;
}

.sheet__x:hover {
  opacity: 1;
}

.sheet__x svg {
  display: block;
}

.sheet.is-open .sheet__panel {
  transform: translateY(0);
}

.sheet__handle {
  width: 46px;
  height: 5px;
  border-radius: 999px;
  background: var(--line);
  margin: 2px auto 18px;
}

.sheet__title {
  font-family: var(--serif);
  font-size: 1.72rem;
  text-align: center;
  color: var(--ink);
  line-height: 1.1;
}

.sheet__sub {
  font-size: 0.9rem;
  line-height: 1.5;
  text-align: center;
  color: var(--ink-soft);
  margin: 9px auto 22px;
  max-width: 34ch;
}

.sheet__list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 22px;
}

.attendee {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  width: 100%;
  text-align: left;
  border: 1px solid var(--hairline);
  border-radius: 9px;
  background: none;
  padding: 16px 18px;
  cursor: pointer;
  transition: border-color 0.25s, background 0.25s;
}

.attendee.is-on {
  border-color: var(--primary);
  background: var(--primary-100);
}

.attendee__info {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.attendee__name {
  font-family: var(--serif);
  font-size: 1.32rem;
  color: var(--ink);
  line-height: 1.08;
}

.attendee__role {
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-top: 10px;
}

.attendee__check {
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  transition: background 0.25s, border-color 0.25s;
}

.attendee.is-on .attendee__check {
  background: var(--primary);
  border-color: var(--primary);
}

.attendee__check svg {
  height: 16px;
  width: 16px;
  opacity: 0;
  transition: opacity 0.2s;
  stroke-width: 2.2;
}

.attendee.is-on .attendee__check svg {
  opacity: 1;
}

.sheet__confirm {
  width: 100%;
  border: 0;
  background: var(--primary);
  color: #fff;
  border-radius: 999px;
  padding: 18px;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.3s;
  margin-bottom: 10px;
}

.sheet__confirm:hover {
  background: var(--primary-500);
}

.sheet__confirm:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.sheet__cancel {
  width: 100%;
  border: 1px solid var(--hairline);
  background: none;
  color: var(--ink-soft);
  border-radius: 999px;
  padding: 16px;
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.25s;
}

.sheet__cancel:hover {
  background: var(--tertiary-200);
}

.modal-back {
  position: fixed;
  inset: 0;
  z-index: 130;
  background: rgba(52, 53, 47, 0.5);
  backdrop-filter: blur(2px);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.modal-back.on {
  opacity: 1;
  pointer-events: auto;
}

.modal {
  position: relative;
  width: 100%;
  max-width: 520px;
  background: var(--bg);
  border-radius: 24px 24px 0 0;
  padding: 14px 24px calc(28px + env(safe-area-inset-bottom));
  transform: translateY(100%);
  transition: transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1);
  max-height: 90vh;
  overflow: auto;
}

.modal-back.on .modal {
  transform: none;
}

.modal-x {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 0;
  background: none;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-soft);
  opacity: 0.55;
  cursor: pointer;
  padding: 0;
  transition: opacity 0.2s;
}

.modal-x:hover {
  opacity: 1;
}

.modal-x svg {
  display: block;
}

.grab {
  width: 42px;
  height: 5px;
  border-radius: 999px;
  background: var(--line);
  margin: 0 auto 18px;
}

.modal h3 {
  font-family: var(--serif);
  font-size: 1.72rem;
  text-align: center;
  color: var(--ink);
  line-height: 1.1;
}

.modal .m-sub {
  font-size: 0.9rem;
  line-height: 1.5;
  text-align: center;
  color: var(--ink-soft);
  margin: 9px auto 22px;
  max-width: 34ch;
}

.modal__success {
  display: none;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 34px 0 26px;
}

.modal.is-success .modal__body {
  display: none;
}

.modal.is-success .modal__success {
  display: flex;
  animation: rsvp-reveal 0.4s ease both;
}

.modal__success-badge {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  box-shadow: 0 14px 26px -14px var(--primary-600);
}

.modal__success-badge svg {
  height: 26px;
  width: 26px;
  stroke-width: 1.8;
}

.modal__success-text {
  font-family: var(--serif);
  font-size: 1.28rem;
  color: var(--ink);
  line-height: 1.25;
  max-width: 26ch;
}

.person {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 15px 16px;
  border: 1px solid var(--hairline);
  border-radius: 9px;
  background: var(--bg);
  margin-bottom: 10px;
  text-align: left;
  transition: border 0.25s, background 0.25s;
  cursor: pointer;
}

.person.on {
  border-color: var(--primary);
  background: var(--primary-100, rgba(108, 124, 91, 0.06));
}

.pname {
  flex: 1;
  font-family: var(--serif);
  font-size: 1.32rem;
  color: var(--ink);
  line-height: 1.08;
}

.ptag {
  font-family: var(--label);
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--primary);
  display: block;
  margin-top: 10px;
}

.check-toggle {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1.5px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  font-size: 18px;
  color: transparent;
  transition: all 0.25s;
}

.person.on .check-toggle {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  padding: 18px 24px;
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.3s, opacity 0.25s;
}

.btn.block {
  display: flex;
  width: 100%;
}

.btn:not(.ghost) {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 16px 28px -16px var(--primary-600);
}

.btn:not(.ghost):hover {
  background: var(--primary-500);
}

.btn:not(.ghost):disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.btn.ghost {
  background: none;
  border: 1px solid var(--hairline);
  color: var(--ink-soft);
}

.btn.ghost:hover {
  background: var(--tertiary-200);
}

.goodwishes {
  background: var(--bg);
}

.goodwishes__floral {
  color: var(--primary);
  display: block;
  margin: 0 auto 6px;
  width: 180px;
  height: auto;
}

.goodwishes__cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 0;
  color: #fff;
  background: var(--primary);
  border-radius: 999px;
  padding: 16px 34px;
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.3s, transform 0.2s, box-shadow 0.3s;
  margin-top: 4px;
  box-shadow: 0 8px 24px -8px var(--primary-600);
}

.goodwishes__cta:hover {
  background: var(--primary-500);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px -8px var(--primary-600);
}

.goodwishes__cta:active {
  transform: translateY(0);
}

.goodwishes__cta svg {
  height: 16px;
  width: 16px;
}

.goodwishes__counter {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--primary-500);
  margin-bottom: 24px;
}

.goodwishes__counter-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--primary-300);
}

.goodwishes__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  max-width: 420px;
  margin: 0 auto;
  text-align: left;
}

.goodwishes__grid:empty {
  display: none;
}

.goodwishes__more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--primary-300);
  background: none;
  color: var(--primary-600);
  border-radius: 999px;
  padding: 12px 24px;
  margin-top: 22px;
  font-family: var(--sans);
  font-size: 0.64rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.25s, border-color 0.25s, color 0.25s;
}

.goodwishes__more:hover {
  background: var(--primary-100);
  color: var(--primary-600);
}

.goodwishes__more svg {
  height: 14px;
  width: 14px;
}

.wish-card {
  background: var(--tertiary-100);
  border: 1px solid var(--hairline);
  border-radius: 10px;
  padding: 18px 20px 16px;
  position: relative;
  animation: reveal-rise 0.55s cubic-bezier(0.2, 0.72, 0.2, 1) both;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.wish-card__name {
  font-size: 0.6rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--primary-500);
  margin-bottom: 10px;
  font-weight: 500;
}

.wish-card__quote {
  font-family: var(--serif);
  font-size: 2rem;
  line-height: 0.5;
  color: var(--primary-200);
  display: block;
  margin-bottom: 4px;
}

.wish-card__text {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1rem;
  color: var(--ink);
  line-height: 1.55;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.wish-card--full .wish-card__text {
  -webkit-line-clamp: unset;
  overflow: visible;
}

.wish-card__read-more {
  background: none;
  border: 0;
  padding: 0;
  margin-top: 8px;
  font-family: var(--sans);
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--primary-500);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.wish-card__read-more:hover {
  color: var(--primary-600);
}

.wish-card--expanded .wish-card__text {
  -webkit-line-clamp: unset;
  overflow: visible;
}

.wish-card--expanded .wish-card__read-more {
  display: none;
}

.wish-card__date {
  font-size: 0.58rem;
  letter-spacing: 0.14em;
  color: var(--tertiary-400);
  margin-top: 10px;
}

.aw-sheet {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: block;
  pointer-events: none;
}

.aw-sheet.is-open {
  pointer-events: auto;
}

.aw-sheet__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(52, 53, 47, 0.48);
  backdrop-filter: blur(2px);
  opacity: 0;
  transition: opacity 0.35s;
}

.aw-sheet.is-open .aw-sheet__backdrop {
  opacity: 1;
}

.aw-sheet__panel {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  max-width: 560px;
  margin: 0 auto;
  background: var(--bg);
  border-radius: 24px 24px 0 0;
  padding: 14px 0 0;
  transform: translateY(101%);
  transition: transform 0.44s cubic-bezier(0.22, 1, 0.36, 1);
  height: 88vh;
  display: flex;
  flex-direction: column;
}

.aw-sheet.is-open .aw-sheet__panel {
  transform: translateY(0);
  box-shadow: 0 -22px 54px -22px rgba(52, 53, 47, 0.5);
}

.aw-sheet__handle {
  width: 46px;
  height: 5px;
  border-radius: 999px;
  background: var(--line);
  margin: 0 auto 22px;
  flex: 0 0 auto;
}

.aw-sheet__head {
  padding: 0 24px 14px;
  border-bottom: 1px solid var(--hairline);
  flex: 0 0 auto;
  text-align: center;
  position: relative;
  padding-top: 18px;
}

.aw-sheet__title {
  font-family: var(--serif);
  font-size: 1.6rem;
  color: var(--ink);
  margin: 0 0 6px;
  line-height: 1.1;
}

.aw-sheet__count {
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.aw-sheet__list {
  flex: 1;
  overflow-y: auto;
  padding: 16px 20px calc(20px + env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  gap: 12px;
  -webkit-overflow-scrolling: touch;
}

.aw-sheet__close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--hairline);
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-soft);
  cursor: pointer;
  transition: background 0.2s;
  z-index: 2;
}

.aw-sheet__close:hover {
  background: var(--tertiary-200);
}

.aw-sheet__close svg {
  height: 14px;
  width: 14px;
}

.lb {
  position: fixed;
  inset: 0;
  z-index: 400;
  display: none;
  background: rgba(20, 20, 18, 0.96);
  align-items: center;
  justify-content: center;
  cursor: zoom-in;
}

.lb.is-open {
  display: flex;
}

.lb.is-zoomed {
  cursor: zoom-out;
}

.lb__close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 10;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  cursor: pointer;
  transition: background 0.2s;
}

.lb__close:hover {
  background: rgba(255, 255, 255, 0.15);
}

.lb__close svg {
  height: 18px;
  width: 18px;
  stroke-width: 2;
}

.lb__wrap {
  overflow: hidden;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lb__img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transform-origin: center center;
  transition: transform 0.25s ease;
  user-select: none;
  -webkit-user-drag: none;
}

.gw-sheet {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  pointer-events: none;
}

.gw-sheet.is-open {
  pointer-events: auto;
}

.gw-sheet__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(52, 53, 47, 0.48);
  backdrop-filter: blur(2px);
  opacity: 0;
  transition: opacity 0.35s;
}

.gw-sheet.is-open .gw-sheet__backdrop {
  opacity: 1;
}

.gw-sheet__panel {
  width: 100%;
  max-width: 520px;
  background: var(--bg);
  border-radius: 24px 24px 0 0;
  padding: 14px 24px calc(28px + env(safe-area-inset-bottom));
  transform: translateY(101%);
  transition: transform 0.44s cubic-bezier(0.22, 1, 0.36, 1);
  position: relative;
  z-index: 1;
}

.gw-sheet.is-open .gw-sheet__panel {
  transform: translateY(0);
  box-shadow: 0 -22px 54px -22px rgba(52, 53, 47, 0.5);
}

.gw-sheet__x {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--hairline);
  background: var(--bg);
  color: var(--ink-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s;
  z-index: 2;
}

.gw-sheet__x:hover {
  background: var(--tertiary-200);
}

.gw-sheet__x svg {
  height: 14px;
  width: 14px;
}

.gw-sheet__panel {
  position: relative;
  padding-top: 18px;
}

.gw-sheet__handle {
  width: 46px;
  height: 5px;
  border-radius: 999px;
  background: var(--line);
  margin: 0 auto 22px;
}

.gw-sheet__title {
  font-family: var(--serif);
  font-size: 1.6rem;
  text-align: center;
  color: var(--ink);
  line-height: 1.1;
  margin: 0 0 6px;
}

.gw-sheet__sub {
  font-size: 0.86rem;
  color: var(--ink-soft);
  text-align: center;
  margin: 0 0 20px;
  line-height: 1.5;
}

.gw-sheet__namein {
  width: 100%;
  border: 1px solid var(--hairline);
  border-radius: 999px;
  background: var(--tertiary-100);
  padding: 13px 18px;
  margin-bottom: 10px;
  font-family: var(--sans);
  font-size: 0.88rem;
  color: var(--ink);
  transition: border-color 0.25s;
}

.gw-sheet__namein::placeholder {
  color: var(--tertiary-400);
}

.gw-sheet__namein:focus {
  outline: none;
  border-color: var(--primary);
}

.gw-sheet__textarea {
  width: 100%;
  border: 1px solid var(--hairline);
  border-radius: 14px;
  background: var(--tertiary-100);
  padding: 16px 18px;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1rem;
  color: var(--ink);
  line-height: 1.6;
  resize: none;
  min-height: 110px;
  transition: border-color 0.25s;
}

.gw-sheet__textarea::placeholder {
  color: var(--tertiary-400);
  font-style: italic;
}

.gw-sheet__textarea:focus {
  outline: none;
  border-color: var(--primary);
}

.gw-sheet__send {
  width: 100%;
  border: 0;
  background: var(--primary);
  color: #fff;
  border-radius: 999px;
  padding: 17px;
  margin-top: 14px;
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.3s;
}

.gw-sheet__send:hover {
  background: var(--primary-500);
}

.gw-sheet__send:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.gw-sheet__cancel {
  width: 100%;
  border: 1px solid var(--hairline);
  background: none;
  color: var(--ink-soft);
  border-radius: 999px;
  padding: 15px;
  margin-top: 10px;
  font-family: var(--sans);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.25s;
}

.gw-sheet__cancel:hover {
  background: var(--tertiary-200);
}

.closing {
  position: relative;
  padding: 90px 30px;
  text-align: center;
  overflow: hidden;
}

.closing__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

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

.closing__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(247, 244, 239, 0.78), rgba(232, 225, 214, 0.86));
}

.closing__inner {
  position: relative;
  z-index: 1;
}

.closing__mono {
  color: var(--primary);
  margin-bottom: 18px;
}

.closing__mono svg {
  height: 96px;
}

.closing__title {
  font-family: var(--serif);
  font-style: italic;
  font-size: 2rem;
  color: var(--primary-600);
  margin: 0 0 12px;
}

.closing__text {
  font-size: 0.9rem;
  color: var(--ink-soft);
  max-width: 24ch;
  margin: 0 auto;
}

.card__garland {
  width: 100%;
  max-width: 210px;
  height: auto;
  display: block;
  margin: 0 auto 14px;
  color: var(--primary);
}

.intro__bouquet {
  width: 140px;
  height: auto;
  display: block;
  margin: 28px auto 0;
  color: var(--primary);
}

.parents__olive {
  width: 180px;
  height: auto;
  display: block;
  margin: 0 auto 10px;
  color: var(--primary);
}

.closing__branches {
  width: 260px;
  height: auto;
  display: block;
  margin: 0 auto 20px;
  color: var(--primary-600);
}

.rsvp__card {
  position: relative;
  overflow: visible;
}

.rsvp__card::before, .rsvp__card::after {
  content: "";
  position: absolute;
  width: 52px;
  height: 52px;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 52 52' fill='none' stroke='%237C9580' stroke-width='1.1' stroke-linecap='round' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M4 48 C4 34 14 18 28 8'/%3E%3Cpath d='M8 38 C5 31 5 23 9 18 C13 24 12 33 8 38 Z' fill='%237C9580' fill-opacity='.12'/%3E%3Cpath d='M18 22 C15 15 15 8 19 4 C23 9 22 18 18 22 Z' fill='%237C9580' fill-opacity='.11'/%3E%3Ccircle cx='4' cy='48' r='2' fill='none'/%3E%3Ccircle cx='30' cy='7' r='2' fill='none'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  pointer-events: none;
  opacity: 0.7;
}

.rsvp__card::before {
  top: -10px;
  left: -10px;
  background-position: top left;
}

.rsvp__card::after {
  top: -10px;
  right: -10px;
  background-position: top right;
  transform: scaleX(-1);
}

.footer {
  background: var(--tertiary-600);
  color: var(--tertiary-200);
  text-align: center;
  padding: 60px 30px 0;
}

.footer__inner {
  margin-bottom: 40px;
}

.footer__circle {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.22);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--serif);
  font-size: 1.7rem;
  letter-spacing: 0.06em;
  color: #fff;
  margin: 0 auto 22px;
}

.footer__names {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: 2rem;
  color: #fff;
  margin: 0 0 16px;
  letter-spacing: 0.02em;
  line-height: 1.1;
}

.footer__names-amp {
  font-style: normal;
  color: var(--gold-soft);
}

.footer__date {
  font-size: 0.62rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--tertiary-400);
  margin: 0;
}

.footer__imoments {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 22px 30px calc(96px + env(safe-area-inset-bottom));
}

.footer__credit-line {
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--tertiary-400);
  margin: 0;
  line-height: 1.8;
}

.footer__imoments-link {
  font-weight: 600;
  letter-spacing: 0.3em;
  color: #fff;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.28);
  padding-bottom: 1px;
  transition: color 0.3s ease, border-color 0.3s ease;
}

.footer__imoments-link:hover {
  color: var(--gold-soft);
  border-color: var(--gold-soft);
}

.invite__bottom-space {
  height: 72px;
  background: var(--tertiary-600);
}

.eh-story-timeline {
  position: relative;
  text-align: left;
  max-width: 420px;
  margin: 0 auto;
  padding-top: 12px;
}
.eh-story-timeline::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 30px;
  width: 1px;
  transform: translateX(-50%);
  background: repeating-linear-gradient(var(--hairline) 0 4px, transparent 4px 11px);
  opacity: 0.55;
}

.story__chapter {
  position: relative;
  padding: 0 0 72px;
}
.story__chapter:last-child {
  padding-bottom: 4px;
}

.story__dot {
  position: absolute;
  left: 50%;
  top: 16px;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  border: 1.5px solid var(--primary);
  background: var(--bg);
  transform: translate(-50%, 0);
  z-index: 3;
}

.story__num {
  position: absolute;
  top: -30px;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: 5.4rem;
  line-height: 1;
  color: var(--primary-200);
  z-index: 0;
  pointer-events: none;
  user-select: none;
}

.story__chapter[data-side=left] .story__num {
  right: 8px;
}

.story__chapter[data-side=right] .story__num {
  left: 8px;
}

.story__photo {
  position: relative;
  z-index: 1;
  width: 76%;
  border-radius: 5px;
  overflow: hidden;
  background: var(--tertiary-200);
  box-shadow: 0 34px 56px -38px rgba(52, 53, 47, 0.6);
}
.story__photo img {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  display: block;
}

.story__chapter[data-side=right] .story__photo {
  margin-left: auto;
}

.story__copy {
  position: relative;
  z-index: 2;
  margin-top: 22px;
  max-width: 31ch;
}

.story__chapter[data-side=right] .story__copy {
  margin-left: auto;
  text-align: right;
}

.story__year {
  font-size: 0.66rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--primary-500);
  margin-bottom: 9px;
}

.story__caption {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: 1.7rem;
  line-height: 1.14;
  color: var(--ink);
  margin: 0 0 11px;
}

.story__body {
  font-size: 0.92rem;
  line-height: 1.66;
  color: var(--ink-soft);
  margin: 0;
}

@media (prefers-reduced-motion: no-preference) {
  .story__chapter.reveal.is-visible {
    animation: none;
  }
  .story__chapter .story__num {
    opacity: 0;
    transform: translateY(22px) scale(0.82);
    transition: opacity 0.8s ease, transform 0.9s cubic-bezier(0.2, 0.72, 0.2, 1);
  }
  .story__chapter .story__photo {
    opacity: 0;
    clip-path: inset(0 100% 0 0);
    transform: scale(1.05);
    transition: opacity 0.6s ease, clip-path 0.95s cubic-bezier(0.2, 0.72, 0.2, 1), transform 1.05s cubic-bezier(0.2, 0.72, 0.2, 1);
  }
  .story__chapter[data-side=right] .story__photo {
    clip-path: inset(0 0 0 100%);
  }
  .story__chapter .story__dot {
    opacity: 0;
    transform: translate(-50%, 0) scale(0);
  }
  .story__chapter .story__copy > * {
    opacity: 0;
    transform: translateX(-20px);
    transition: opacity 0.7s ease, transform 0.85s cubic-bezier(0.2, 0.72, 0.2, 1);
  }
  .story__chapter[data-side=right] .story__copy > * {
    transform: translateX(20px);
  }
  .story__chapter .story__year {
    transition-delay: 0.16s;
  }
  .story__chapter .story__caption {
    transition-delay: 0.28s;
  }
  .story__chapter .story__body {
    transition-delay: 0.4s;
  }
  .story__chapter.is-visible .story__num {
    opacity: 0.6;
    transform: none;
  }
  .story__chapter.is-visible .story__photo {
    opacity: 1;
    clip-path: inset(0 0 0 0);
    transform: none;
  }
  .story__chapter.is-visible .story__dot {
    opacity: 1;
    transform: translate(-50%, 0) scale(1);
    transition: opacity 0.5s ease 0.25s, transform 0.6s cubic-bezier(0.2, 0.72, 0.2, 1) 0.25s;
  }
  .story__chapter.is-visible .story__copy > * {
    opacity: 1;
    transform: none;
  }
}
.eh-story-grid {
  display: flex;
  flex-direction: column;
  gap: 48px;
  text-align: left;
}
.eh-story-item {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.eh-story-item--alt .eh-story-photo {
  order: 2;
}
.eh-story-item--alt .eh-story-text {
  order: 1;
}
.eh-story-photo {
  width: 100%;
  border-radius: 4px;
  overflow: hidden;
  aspect-ratio: 4/3;
}
.eh-story-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}
.eh-story-photo:hover img {
  transform: scale(1.02);
}
.eh-story-text {
  padding: 0 4px;
}
.eh-story-title {
  font-family: var(--serif);
  font-size: clamp(22px, 6vw, 28px);
  font-weight: 400;
  color: var(--ink);
  margin-bottom: 8px;
}
.eh-story-subtitulo {
  font-family: var(--body);
  font-size: 15px;
  font-style: italic;
  color: var(--sage-mid, #7b8c71);
  line-height: 1.5;
  margin-bottom: 8px;
}
.eh-story p {
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink-soft);
}

@media (min-width: 500px) {
  .eh-story-item {
    flex-direction: row;
    align-items: center;
    gap: 24px;
  }
  .eh-story-item .eh-story-photo {
    flex: 1;
    min-width: 0;
  }
  .eh-story-item .eh-story-text {
    flex: 1;
    min-width: 0;
  }
  .eh-story-item--alt {
    flex-direction: row-reverse;
  }
  .eh-story-item--alt .eh-story-photo {
    order: 0;
  }
  .eh-story-item--alt .eh-story-text {
    order: 0;
  }
}