:root {
  --forest: #304034;
  --deep: #1f2d25;
  --moss: #667a5e;
  --sage: #8f9d86;
  --paper: #fcfbf7;
  --ivory: #f3efe6;
  --champagne: #c5b79b;
  --ink: #263128;
  --muted: #74776f;
  --line: rgba(38, 49, 40, .18);
  --serif: "Cormorant Garamond", Georgia, serif;
  --body: Montserrat, Arial, sans-serif;
  --script: "Great Vibes", cursive;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; overflow-x: clip; color: var(--ink); background: var(--paper); font-family: var(--body); font-size: 14px; font-weight: 300; line-height: 1.7; }
body.is-locked { overflow: hidden; }
img { display: block; width: 100%; }
button, input, textarea, select { font: inherit; }
button { color: inherit; }
a { color: inherit; }
[hidden] { display: none !important; }
.kicker { margin: 0 0 20px; color: var(--moss); font-size: 9px; font-weight: 600; letter-spacing: .3em; line-height: 1.4; text-transform: uppercase; }
.kicker.light { color: var(--champagne); }

/* Opening invitation — matched to the supplied 2:3 reference cover. */
.opening {
  position: fixed;
  z-index: 1000;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100svh;
  padding: 12px 0;
  overflow: hidden;
  color: #3f5140;
  background: #fcfbf7;
  transition: opacity .72s ease, transform .72s ease, visibility 0s .72s;
}
.opening__symbols { position: absolute; width: 0; height: 0; overflow: hidden; }
.opening__sheet {
  position: relative;
  display: block;
  width: min(100%, calc((100svh - 24px) * 2 / 3));
  max-width: 640px;
  aspect-ratio: 2 / 3;
  margin: auto;
  overflow: hidden;
  color: #3f5140;
  text-align: center;
}
.opening__paper { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: fill; filter: brightness(1.08) saturate(.82); opacity: .9; transform: scale(1.08); pointer-events: none; }
.opening__monogram {
  position: absolute;
  top: 2.3%;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  font: 500 22px/1 var(--serif);
}
.opening__monogram svg { width: 34px; height: 32px; padding-inline: 8px; border-inline: 1px solid rgba(102,122,94,.2); }
.opening__motto { position: absolute; top: 6.2%; width: 100%; margin: 0; font: 500 11px/1 var(--serif); }
.opening__top-rule {
  position: absolute;
  top: 7.8%;
  left: 43%;
  display: flex;
  align-items: center;
  gap: 6px;
  width: 14%;
  font: 400 14px/1 var(--serif);
  opacity: .75;
}
.opening__top-rule::before, .opening__top-rule::after, .opening__bottom-rule::before, .opening__bottom-rule::after { content: ""; flex: 1; height: 1px; background: currentColor; opacity: .65; }
.opening__title {
  position: absolute;
  top: 11%;
  left: 0;
  width: 100%;
  margin: 0;
  color: #3f5140;
  font: 400 72px/1.1 var(--script);
  letter-spacing: 0;
}
.opening__title-mark { position: absolute; top: 19.3%; left: 45%; width: 10%; font: 400 20px/1 var(--serif); opacity: .6; }
.opening__names {
  position: absolute;
  top: 22%;
  left: 8%;
  width: 84%;
  margin: 0;
  color: #3f5140;
  font: 500 23px/1.35 var(--serif);
}
.opening__names span { margin-inline: 8px; font-size: 1.45em; font-style: italic; line-height: 0; opacity: .5; }
.opening__date-row { position: absolute; top: 26.5%; display: flex; align-items: center; justify-content: center; gap: 16px; width: 100%; }
.opening__date-row svg { width: 25px; height: 32px; transform: rotate(-70deg); }
.opening__date-row svg:last-child { transform: rotate(70deg) scaleX(-1); }
.opening__date-row p { margin: 0; color: #3f5140; font: 500 19px/1 var(--serif); }
.opening__interactive {
  position: absolute;
  top: 31%;
  left: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  height: 39.5%;
  margin: 0;
  padding: 0;
  border: 0;
  outline: 0;
  color: #3f5140;
  background: transparent;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.opening__interactive:focus-visible { outline: 2px solid #3f5140; outline-offset: -3px; }
.opening__stationery { position: relative; display: block; width: 88%; height: 81%; margin-inline: auto; isolation: isolate; }
.opening__photo-frame {
  position: absolute;
  z-index: 5;
  top: 0;
  left: 8%;
  display: block;
  width: 44%;
  aspect-ratio: 4 / 5;
  padding: 5px;
  background: #fcfbf7;
  box-shadow: 0 10px 24px rgba(48,64,52,.14);
  transform: rotate(-4deg);
}
.opening__photo-frame::before { content: ""; position: absolute; z-index: 2; top: -7%; left: 7%; width: 5%; height: 13%; border: 1px solid #c5b79b; border-radius: 8px 8px 4px 4px; }
.opening__photo-frame img { width: 100%; height: 100%; object-fit: cover; object-position: center 34%; }
.opening__envelope {
  position: absolute;
  z-index: 2;
  right: 4%;
  bottom: 2%;
  display: block;
  width: 59%;
  aspect-ratio: 1.5 / 1;
  border: 1px solid rgba(82,99,76,.18);
  border-radius: 1px;
  background: #87977b;
  box-shadow: 0 10px 24px rgba(48,64,52,.13);
  transform: rotate(2deg);
  perspective: 800px;
}
.opening__envelope-body { position: absolute; inset: 0; display: block; background: #87977b; clip-path: polygon(0 0,50% 61.5%,100% 0,100% 100%,0 100%); }
.opening__envelope-flap { position: absolute; z-index: 2; top: 0; left: 0; right: 0; display: block; height: 61.5%; background: #a7b09f; clip-path: polygon(0 0,100% 0,50% 100%); transform-origin: top center; transition: transform .6s ease; }
.opening__envelope-botanical {
  position: absolute;
  z-index: 4;
  top: -34%;
  right: -22%;
  display: block;
  width: 78%;
  height: 130%;
  background: url("assets/botanical-paper-v2.webp") left top / 285% auto no-repeat;
  mix-blend-mode: multiply;
  filter: saturate(1.35) contrast(1.05);
  opacity: .95;
  transform: rotate(18deg);
  -webkit-mask-image: radial-gradient(ellipse 62% 58% at 42% 43%, #000 35%, transparent 100%);
  mask-image: radial-gradient(ellipse 62% 58% at 42% 43%, #000 35%, transparent 100%);
}
.opening__wax-seal { position: absolute; z-index: 6; top: 61%; left: 50%; display: block; width: 20%; aspect-ratio: 1; transform: translate(-50%,-50%); transition: opacity .35s ease, transform .35s ease; }
.opening__wax-seal svg { width: 100%; height: 100%; }
.opening__ribbon { position: absolute; z-index: 7; right: -1%; bottom: -3%; display: block; width: 68%; height: 27%; pointer-events: none; transform: rotate(-7deg); }
.opening__ribbon::before, .opening__ribbon::after { content: ""; position: absolute; display: block; }
.opening__ribbon::before { top: 44%; left: -3%; width: 104%; height: 10px; border-radius: 50%; background: rgba(255,255,255,.78); transform: rotate(4deg); }
.opening__ribbon::after { top: -18%; right: 4%; width: 38%; height: 62%; border: 7px solid rgba(255,255,255,.7); border-left-color: transparent; border-radius: 50%; transform: rotate(-10deg); }
.opening__hint { position: absolute; top: 90%; left: 0; width: 100%; margin: 0; color: #3f5140; font: italic 400 19px/1.2 var(--serif); animation: opening-hint 3.6s ease-in-out infinite; }
.opening__touch { position: absolute; top: 95.5%; left: calc(50% - 10px); width: 20px; height: 24px; opacity: .85; }
.opening__bottom { position: absolute; top: 71.5%; left: 12%; width: 76%; text-align: center; }
.opening__bottom h2 { margin: 0; color: #3f5140; font: 500 20px/1.3 var(--serif); }
.opening__bottom-rule { display: flex; align-items: center; gap: 18px; width: 77%; margin: 6px auto 10px; color: #3f5140; font: 400 15px/1 var(--serif); }
.opening__bottom p { margin: 0; color: #3f5140; font: 400 18px/1.35 var(--serif); }
.opening__couple-sketch { width: 112px; margin: 1px auto 0; color: #667a5e; opacity: .72; }
.opening.is-opening { opacity: 0; visibility: hidden; transform: scale(1.04); pointer-events: none; }
.opening.is-opening .opening__envelope-flap { transform: rotateX(180deg); }
.opening.is-opening .opening__wax-seal { opacity: 0; transform: translate(-50%,-50%) scale(.65); }
@keyframes opening-hint { 0%,100% { opacity: .72; transform: translateY(0); } 50% { opacity: 1; transform: translateY(-1px); } }

@media (max-width: 480px) {
  .opening__monogram { gap: 9px; font-size: 17px; }
  .opening__monogram svg { width: 25px; height: 24px; padding-inline: 5px; }
  .opening__motto { font-size: 8px; }
  .opening__top-rule { gap: 4px; font-size: 10px; }
  .opening__title { font-size: 54px; }
  .opening__title-mark { font-size: 14px; }
  .opening__names { font-size: 16px; }
  .opening__names span { margin-inline: 5px; }
  .opening__date-row { gap: 11px; }
  .opening__date-row svg { width: 18px; height: 22px; }
  .opening__date-row p { font-size: 15px; }
  .opening__hint { font-size: 16px; }
  .opening__touch { left: calc(50% - 9px); width: 18px; height: 18px; }
  .opening__bottom h2 { font-size: 14px; }
  .opening__bottom-rule { gap: 11px; margin: 5px auto 7px; font-size: 12px; }
  .opening__bottom p { font-size: 14px; line-height: 1.25; }
  .opening__couple-sketch { width: 94px; }
}
@media (max-width: 360px) {
  .opening__title { font-size: 44px; }
  .opening__names { font-size: 15px; }
  .opening__date-row { top: 26.8%; }
  .opening__date-row p { font-size: 13px; }
  .opening__motto { font-size: 7px; }
  .opening__hint { font-size: 14px; }
  .opening__bottom h2, .opening__bottom p { font-size: 12px; }
  .opening__bottom-rule { margin-block: 4px 6px; }
}
@media (min-width: 481px) and (max-height: 800px) {
  .opening__title { font-size: 60px; }
  .opening__names { font-size: 18px; }
  .opening__date-row p { font-size: 16px; }
  .opening__bottom h2 { font-size: 16px; }
  .opening__bottom p { font-size: 14px; }
  .opening__bottom-rule { margin-block: 5px 6px; font-size: 14px; }
}

.music-toggle { position: fixed; z-index: 80; right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom)); display: flex; align-items: center; gap: 9px; min-height: 43px; padding: 0 14px; border: 1px solid rgba(255,255,255,.35); border-radius: 40px; color: #fff; background: rgba(31,45,37,.82); box-shadow: 0 8px 22px rgba(20,30,23,.17); backdrop-filter: blur(10px); cursor: pointer; }
.music-toggle > span:last-child { font-size: 7px; font-weight: 600; letter-spacing: .15em; text-transform: uppercase; }
.music-bars { display: flex; align-items: center; gap: 2px; height: 15px; }
.music-bars i { width: 2px; height: 5px; background: var(--champagne); }
.music-toggle[aria-pressed="true"] .music-bars i { animation: equalize .7s ease-in-out infinite alternate; }
.music-toggle[aria-pressed="true"] .music-bars i:nth-child(2) { animation-delay: -.3s; }
.music-toggle[aria-pressed="true"] .music-bars i:nth-child(3) { animation-delay: -.55s; }
.music-toggle[aria-pressed="true"] .music-bars i:nth-child(4) { animation-delay: -.15s; }

.site-header { position: fixed; z-index: 60; top: 0; left: 0; display: grid; grid-template-columns: 1fr auto; align-items: center; width: 100%; height: 64px; padding: 0 18px; color: var(--ink); background: rgba(252,251,247,.91); border-bottom: 1px solid rgba(38,49,40,.09); backdrop-filter: blur(13px); transform: translateY(-110%); transition: transform .6s ease; }
body:not(.is-locked) .site-header.is-visible { transform: translateY(0); }
.header-mark { text-decoration: none; font: 500 18px/1 var(--serif); letter-spacing: .08em; }
.header-mark i { color: var(--champagne); font-weight: 400; }
.site-header nav { display: none; }
.site-header > button { min-height: 38px; padding: 0 15px; border: 1px solid var(--forest); border-radius: 30px; background: transparent; font-size: 7px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; cursor: pointer; }

/* First section after opening */
.intro { width: 100%; padding: 0; color: var(--ink); background: var(--paper); text-align: center; }
.intro__photo-wrap { position: relative; width: 100%; margin: 0 auto clamp(1.2rem, 3vw, 1.8rem); overflow: hidden; }
.intro__photo { display: block; width: 100%; aspect-ratio: 3 / 4.4; object-fit: cover; transform: scale(1.24); transform-origin: center; }
.intro__top-overlay {
  position: absolute;
  z-index: 2;
  top: 0;
  right: 0;
  left: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: clamp(-.5rem, 1vw, .2rem) clamp(.5rem, -1.5vw, 1.2rem) clamp(0rem, .5vw, -.2rem);
  color: #3f5140;
  background: rgba(252,251,247,.94);
  text-align: center;
}
.intro__top-overlay p { margin: 0 0 .6rem; color: #687269; font: italic 500 1.125rem/1.55 var(--serif); }
.intro__top-overlay h2 { margin: 0; color: #3f5140; font: 500 1.375rem/1.4 Spectral, serif; text-transform: uppercase; }
.intro__bottom-overlay {
  position: absolute;
  z-index: 2;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: clamp(2rem, 1vw, 2.5rem) clamp(.8rem, 2.5vw, .2rem) clamp(.2rem, 2vw, -1.4rem);
  color: #3f5140;
  background: rgba(252,251,247,.94);
  text-align: center;
}
.intro__calligraphy-wrap { position: relative; display: flex; justify-content: center; width: 100%; max-width: 420px; }
.intro__calligraphy { position: relative; display: inline-flex; flex-direction: column; align-items: center; transform: rotate(-7deg); }
.intro__groom, .intro__bride { color: #3f5140; font: 700 3.2rem/.95 "Dancing Script", cursive; letter-spacing: 0; }
.intro__groom { margin-left: -3.2rem; }
.intro__bride { margin-top: -.25rem; margin-right: -2.2rem; }
.intro__heart { position: absolute; top: -17px; right: -16px; width: 44px; height: 38px; color: var(--moss); }
.intro__heart svg { width: 100%; height: 100%; }
.intro__date-triplet { display: flex; align-items: center; justify-content: center; gap: clamp(.6rem, 2.5vw, 1.1rem); }
.intro__days, .intro__dates, .intro__year { display: flex; flex-direction: column; gap: .25rem; }
.intro__days { align-items: flex-end; text-align: right; }
.intro__days span { color: #3f5140; font: 500 .95rem/1.4 Spectral, serif; text-transform: uppercase; white-space: nowrap; }
.intro__date-triplet > i { align-self: center; width: 1.5px; height: clamp(38px, 9vw, 48px); background: rgba(102,122,94,.38); opacity: .85; }
.intro__dates { align-items: center; text-align: center; }
.intro__dates span { color: #3f5140; font: 500 1.55rem/1.3 var(--serif); white-space: nowrap; }
.intro__year { align-items: flex-start; gap: 2px; color: #3f5140; text-align: left; font: 500 1.35rem/1.05 Spectral, serif; }
.intro__lunar { margin: .25rem 0 0; color: #687269; font: italic 400 1.08rem/1.4 var(--serif); }

@media (max-width: 480px) {
  .intro__bottom-overlay { padding-top: 35px; }
  .intro__top-overlay p { font-size: 1rem; }
  .intro__top-overlay h2 { font-size: 1.0625rem; }
  .intro__groom, .intro__bride { font-size: 2.2rem; }
  .intro__days span { font-size: .8rem; }
  .intro__dates span { font-size: 1.25rem; }
  .intro__year { font-size: 1.15rem; }
  .intro__lunar { font-size: .96rem; }
}

/* Formal invitation */
.invitation { position: relative; overflow: hidden; padding: 90px 20px 82px; text-align: center; background: var(--paper); }
.invitation::before, .invitation::after { content: ""; position: absolute; width: 190px; height: 260px; opacity: .12; background: url("assets/botanical-paper-v2.webp") top left/500px auto no-repeat; pointer-events: none; }
.invitation::before { top: -40px; left: -55px; }
.invitation::after { right: -55px; bottom: -55px; transform: rotate(180deg); }
.ornament { position: relative; z-index: 1; margin-bottom: 26px; color: var(--moss); font: 400 32px/1 var(--serif); transform: rotate(180deg); }
.ornament--bottom { margin: 34px 0 0; transform: none; }
.families { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1px 1fr; gap: 11px; width: min(100%, 760px); margin: 38px auto 55px; }
.families article { padding: 0 2px; }
.families small { color: var(--moss); font-size: 8px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; }
.families h3 { margin: 10px 0 8px; font: 500 14px/1.55 Spectral, serif; }
.families p { margin: 0; color: var(--muted); font-size: 8px; line-height: 1.65; }
.families__rule { width: 1px; height: 100%; background: var(--line); }
.invitation__lead, .invitation__closing { position: relative; z-index: 1; margin: 0; font: 400 13px/1.8 Spectral, serif; }
.invitation__names { position: relative; z-index: 1; display: grid; place-items: center; gap: 3px; margin: 34px 0; }
.invitation__names span { color: var(--forest); font: 400 clamp(58px, 17vw, 88px)/.78 var(--script); }
.invitation__names i { color: var(--champagne); font: italic 26px/1 var(--serif); }

/* Ceremony */
.ceremony { position: relative; padding: 75px 0 0; overflow: hidden; color: var(--paper); background: var(--forest); }
.ceremony__photo { width: 82%; margin-left: auto; overflow: hidden; }
.ceremony__photo img { aspect-ratio: 3/4.2; object-fit: cover; }
.ceremony__date { position: absolute; z-index: 2; top: 102px; left: 17px; display: grid; align-items: center; color: var(--paper); }
.ceremony__date > span { margin-left: 4px; font-size: 8px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; }
.ceremony__date > strong { font: 400 clamp(104px, 35vw, 190px)/.73 var(--serif); }
.ceremony__date > p { margin: 6px 0 0 8px; font: 500 13px/1.3 var(--serif); letter-spacing: .15em; text-transform: uppercase; }
.ceremony__date p i { color: var(--champagne); font-weight: 400; }
.ceremony__details { position: relative; z-index: 3; width: calc(100% - 38px); margin: -80px auto 0; padding: 40px 30px 45px; color: var(--ink); background: var(--paper); }
.ceremony__details h2 { margin: 0; font: 500 46px/1 var(--serif); }
.ceremony__details time { display: block; margin: 18px 0 12px; font: 500 18px/1 var(--serif); }
.ceremony__details > p:not(.kicker) { margin: 0; color: var(--muted); font-size: 10px; }
.ceremony__details a { display: inline-flex; gap: 40px; align-items: center; margin-top: 25px; padding-bottom: 6px; border-bottom: 1px solid var(--ink); text-decoration: none; font-size: 8px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.reception__details { display: grid; grid-template-columns: 110px 1fr; gap: 21px; align-items: start; padding: 65px 25px 75px; }
.reception__details > span { color: var(--champagne); font: 400 56px/1 var(--serif); }
.reception__details h3 { margin: 0 0 12px; font: 500 31px/1 var(--serif); }
.reception__details div > p:last-child { margin: 0; color: rgba(255,255,255,.65); font: 400 11px/1.75 Spectral, serif; }

/* Save the date */
.save-date { display: grid; grid-template-columns: 1fr; padding: 88px 18px; background: var(--ivory); }
.save-date__heading { margin-bottom: 38px; }
.save-date__heading h2 { margin: 0; font: 400 clamp(66px, 20vw, 112px)/.7 var(--serif); }
.save-date__heading h2 em { color: var(--moss); font: 400 .48em/1 var(--script); }
.save-date__photo { overflow: hidden; }
.save-date__photo img { height: 112%; aspect-ratio: 4/5.5; object-fit: cover; }
.calendar { position: relative; margin: -34px 14px 0; padding: 48px 25px 38px; background: var(--paper); box-shadow: 0 20px 50px rgba(50,55,47,.1); }
.calendar::before { content: ""; position: absolute; top: -12px; left: 0; width: 100%; height: 15px; background: var(--paper); clip-path: polygon(0 65%,4% 15%,8% 70%,12% 5%,16% 73%,20% 12%,24% 76%,28% 5%,32% 70%,36% 12%,40% 73%,44% 0,48% 72%,52% 10%,56% 75%,60% 6%,64% 73%,68% 14%,72% 70%,76% 5%,80% 75%,84% 14%,88% 72%,92% 4%,96% 73%,100% 10%,100% 100%,0 100%); }
.calendar__days, .calendar__grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.calendar__days { margin-bottom: 12px; color: var(--muted); font-size: 7px; font-weight: 600; text-align: center; }
.calendar__grid span { position: relative; display: grid; place-items: center; aspect-ratio: 1; font: 500 13px/1 var(--serif); }
.calendar__grid .is-reception::before { content: "♡"; position: absolute; z-index: 0; top: 50%; left: 50%; color: #9a746d; font: 400 clamp(58px, 6vw, 84px)/1 Georgia, serif; transform: translate(-50%, -48%) scaleX(1.08); pointer-events: none; }
.calendar__grid .is-reception { z-index: 1; color: var(--ink); font-weight: 600; }
.calendar__grid .is-reception b { position: relative; z-index: 1; font: inherit; }
.calendar__grid .is-wedding { border: 1px solid var(--moss); border-radius: 50%; font-weight: 600; }
.countdown { display: grid; grid-template-columns: repeat(4,1fr); margin-top: 30px; padding-top: 25px; border-top: 1px solid var(--line); }
.countdown div { display: grid; gap: 7px; text-align: center; border-right: 1px solid var(--line); }
.countdown div:last-child { border: 0; }
.countdown strong { font: 500 27px/1 var(--serif); }
.countdown span { color: var(--muted); font-size: 6px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.line-button { display: inline-flex; justify-content: space-between; gap: 30px; align-items: center; margin-top: 28px; padding: 8px 0; border: 0; border-bottom: 1px solid currentColor; background: transparent; font-size: 8px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; cursor: pointer; }

/* Editorial story */
.story { padding: 100px 0 0; overflow: hidden; background: var(--paper); }
.story__heading { width: min(84%, 580px); margin: 0 22px 60px auto; }
.story__heading h2 { margin: 0; font: 400 clamp(62px, 18vw, 108px)/.74 var(--serif); }
.story__heading h2 em { color: var(--moss); font-weight: 400; }
.story__heading > p:last-child { width: 85%; margin: 34px 0 0 auto; color: var(--muted); font: italic 13px/1.75 Spectral, serif; }
figure { margin: 0; }
.story button, .dreams button, .album button[data-lightbox] { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.story-shot { width: 78%; }
.story-shot img { aspect-ratio: 3/4; object-fit: cover; }
.story-shot figcaption { margin-top: 9px; color: var(--muted); font-size: 7px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; }
.story-shot--hero { margin-left: 0; }
.story-shot--hero figcaption { margin-left: 20px; }
.story-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; align-items: end; padding: 110px 18px; }
.story-pair .story-shot { width: 100%; }
.story-pair .story-shot:last-child { margin-bottom: 75px; }
.story-wide { position: relative; height: 76svh; min-height: 530px; overflow: hidden; }
.story-wide img { height: 110%; object-fit: cover; }
.story-wide figcaption { position: absolute; right: 22px; bottom: 28px; width: min(72%, 420px); color: #fff; text-align: right; font: italic 18px/1.55 var(--serif); text-shadow: 0 2px 18px rgba(0,0,0,.3); }
.story-aside { display: grid; grid-template-columns: 42% 58%; align-items: center; padding: 115px 0 125px 19px; }
.story-aside__copy { padding-right: 17px; }
.story-aside__copy > span { display: block; width: 34px; padding-top: 5px; border-top: 1px solid var(--ink); font-size: 8px; }
.story-aside__copy h3 { margin: 25px 0; font: italic 33px/1 var(--serif); }
.story-aside__copy p { margin: 0; color: var(--muted); font: 400 10px/1.75 Spectral, serif; }
.story-aside .story-shot { width: 100%; }

.dreams { padding: 95px 0 100px; color: var(--paper); background: var(--forest); }
.dreams__title { padding: 0 24px; }
.dreams__title h2 { margin: 0; font: 400 clamp(54px, 16vw, 92px)/.78 var(--serif); }
.dreams__title h2 em { color: var(--champagne); font-weight: 400; }
.dreams__gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px 10px; margin-top: 58px; padding-inline: 14px; }
.dreams figure { width: 100%; }
.dreams figure:last-child { grid-column: auto; width: 100%; margin: 0; }
.dreams img { aspect-ratio: 2/3; object-fit: cover; }

/* Album */
.album { padding: 100px 15px 110px; overflow: hidden; background: var(--ivory); }
.album__heading { display: grid; grid-template-columns: 70px 1fr; gap: 18px; align-items: start; margin-bottom: 55px; }
.album__heading > span { writing-mode: vertical-rl; color: var(--moss); font-size: 7px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; }
.album__heading h2 { margin: 0; font: 400 clamp(52px, 15vw, 88px)/.8 var(--serif); }
.album__heading h2 em { color: var(--moss); font-weight: 400; }
.album__slideshow { position: relative; width: min(100%, 1200px); margin-inline: auto; outline: 0; }
.album__slideshow:focus-visible { outline: 1px solid var(--moss); outline-offset: 8px; }
.album__viewport { position: relative; height: clamp(410px, 54svh, 500px); overflow: visible; isolation: isolate; }
.album-slide { position: absolute; top: 50%; left: 50%; height: 100%; aspect-ratio: 2/3; visibility: hidden; opacity: 0; transform: translate(-50%, -50%) scale(.7); transition: opacity .65s ease, transform .9s cubic-bezier(.2,.72,.2,1), visibility 0s .9s; }
.album-slide.is-active { z-index: 5; visibility: visible; opacity: 1; transform: translate(-50%, -50%) scale(1); transition-delay: 0s; }
.album-slide.is-prev, .album-slide.is-next, .album-slide.is-prev-2, .album-slide.is-next-2 { visibility: visible; transition-delay: 0s; }
.album-slide.is-prev { z-index: 3; opacity: .48; transform: translate(-103%, -50%) scale(.86); }
.album-slide.is-next { z-index: 3; opacity: .48; transform: translate(3%, -50%) scale(.86); }
.album-slide.is-prev-2 { z-index: 2; opacity: .2; transform: translate(-133%, -50%) scale(.74); }
.album-slide.is-next-2 { z-index: 2; opacity: .2; transform: translate(33%, -50%) scale(.74); }
.album-slide.is-hidden { visibility: hidden; }
.album-slide button { height: 100%; pointer-events: none; }
.album-slide.is-active button { pointer-events: auto; }
.album-slide img { height: 100%; object-fit: contain; background: var(--paper); box-shadow: 0 16px 42px rgba(48, 64, 52, .12); }
.album__controls { position: absolute; z-index: 8; top: 50%; left: 50%; display: flex; align-items: center; justify-content: space-between; width: min(100%, 620px); transform: translate(-50%, -50%); pointer-events: none; }
.album__arrow { display: grid; place-items: center; width: 42px; height: 42px; padding: 0 0 3px; border: 1px solid rgba(38, 49, 40, .12); border-radius: 50%; background: rgba(252, 251, 247, .94); box-shadow: 0 8px 24px rgba(38,49,40,.1); font: 400 27px/1 var(--serif); cursor: pointer; pointer-events: auto; transition: color .25s ease, border-color .25s ease, transform .25s ease; }
.album__arrow:hover, .album__arrow:focus-visible { border-color: var(--moss); color: var(--moss); outline: none; transform: scale(1.05); }
.album__dots { display: flex; align-items: center; justify-content: center; gap: 3px; width: min(100%, 300px); min-height: 12px; margin: 24px auto 0; }
.album__dots button { flex: 0 0 4px; width: 4px; height: 4px; padding: 0; border: 0; border-radius: 50%; background: rgba(102, 122, 94, .24); cursor: pointer; transition: background .25s ease, transform .25s ease; }
.album__dots button.is-active { background: var(--moss); transform: scale(1.65); }
.album__dots button:focus-visible { outline: 1px solid var(--moss); outline-offset: 3px; }

/* Wishes */
.wishes { display: grid; color: var(--paper); background: var(--deep); }
.wishes__photo { min-height: 520px; }
.wishes__photo img { height: 100%; object-fit: cover; }
.wishes__content { padding: 70px 25px 85px; }
.wishes h2 { margin: 0 0 40px; font: 400 clamp(48px, 14vw, 76px)/.82 var(--serif); }
.wishes h2 em { color: var(--champagne); font-weight: 400; }
.wishes form { display: grid; gap: 20px; }
.wishes label { display: grid; gap: 8px; }
.wishes label > span { color: var(--champagne); font-size: 7px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; }
.wishes input, .wishes textarea, .wishes select { width: 100%; padding: 12px 0; border: 0; border-bottom: 1px solid rgba(255,255,255,.25); border-radius: 0; outline: 0; color: #fff; background: transparent; font-size: 12px; }
.wishes input::placeholder, .wishes textarea::placeholder { color: rgba(255,255,255,.4); }
.wishes select option { color: var(--ink); background: #fff; }
.soft-button { display: flex; justify-content: space-between; align-items: center; min-height: 51px; margin-top: 5px; padding: 0 18px; border: 1px solid rgba(255,255,255,.55); color: #fff; background: transparent; font-size: 8px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; cursor: pointer; }
.wish-list { display: grid; gap: 10px; margin-top: 45px; }
.wish-list article { padding: 18px 0; border-top: 1px solid rgba(255,255,255,.14); }
.wish-list p { margin: 0; font: italic 15px/1.55 Spectral, serif; }
.wish-list span { display: block; margin-top: 8px; color: rgba(255,255,255,.45); font-size: 8px; }

/* Gift */
.gift { padding: 100px 24px; color: var(--paper); background: var(--forest); border-top: 1px solid rgba(202,185,147,.28); border-bottom: 1px solid rgba(202,185,147,.28); }
.gift__intro { width: min(100%, 720px); margin: 0 auto; text-align: center; }
.gift__intro .kicker { color: var(--champagne); }
.gift__intro h2 { margin: 0; font: 400 clamp(50px, 14vw, 86px)/.82 var(--serif); }
.gift__intro h2 em { color: var(--champagne); font-weight: 400; }
.gift__intro > p:not(.kicker) { margin: 32px auto 0; max-width: 520px; color: rgba(252,251,247,.72); font: 400 12px/1.8 Spectral, serif; }
.gift__intro .line-button { justify-content: center; gap: 34px; min-width: 240px; margin-top: 34px; padding: 14px 22px; border: 1px solid var(--champagne); border-radius: 999px; color: var(--deep); background: var(--champagne); transition: color .25s ease, background .25s ease, transform .25s ease; }
.gift__intro .line-button:hover, .gift__intro .line-button:focus-visible { color: var(--paper); background: transparent; outline: none; transform: translateY(-2px); }
.gift__panel { display: grid; gap: 15px; width: min(100%, 850px); margin: 50px auto 0; }
.gift__panel article { padding: 30px; border: 1px solid rgba(202,185,147,.55); color: var(--ink); background: var(--paper); text-align: center; }
.gift__panel article > span { color: var(--moss); font-size: 8px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; }
.qr-placeholder { display: grid; place-items: center; width: 170px; height: 170px; margin: 25px auto; border: 1px dashed var(--sage); background: repeating-linear-gradient(45deg, rgba(102,122,94,.04) 0 7px, transparent 7px 14px); }
.qr-placeholder i { font: 500 43px/1 var(--serif); }
.qr-placeholder small { color: var(--muted); font-size: 7px; letter-spacing: .14em; text-transform: uppercase; }
.bank-qr__crop { position: relative; width: min(100%, 310px); aspect-ratio: 638/810; margin: 25px auto; overflow: hidden; background: #f4dfe0; }
.bank-qr__crop img { position: absolute; top: -53.09%; left: -14.89%; width: 129.78%; max-width: none; height: auto; }
.gift__panel h3 { margin: 0; font: 500 28px/1 var(--serif); }
.gift__panel p { color: var(--muted); font-size: 9px; }
.gift__panel article > button { margin-top: 9px; padding: 9px 0; border: 0; border-bottom: 1px solid var(--line); color: #aaa; background: transparent; font-size: 7px; letter-spacing: .13em; text-transform: uppercase; }
.gift__panel article > button:not(:disabled) { color: var(--ink); cursor: pointer; }

/* Thank you */
.thank-you { position: relative; display: grid; place-items: center; min-height: 100svh; overflow: hidden; color: #fff; text-align: center; background: var(--deep); }
.thank-you__media, .thank-you__shade { position: absolute; inset: 0; }
.thank-you__media img { height: 110%; object-fit: cover; }
.thank-you__shade { background: linear-gradient(180deg, rgba(20,29,23,.12), rgba(20,29,23,.78)); }
.thank-you__copy { position: relative; z-index: 2; width: min(88%, 700px); }
.thank-you .script { margin: 0 0 -12px; color: var(--champagne); font: 400 clamp(74px, 21vw, 125px)/1 var(--script); }
.thank-you h2 { margin: 0; font: 500 clamp(31px, 8vw, 52px)/1 var(--serif); }
.thank-you h2 i { color: var(--champagne); font-weight: 400; }
.thank-you__copy > p:not(.script) { margin: 28px auto; max-width: 490px; color: rgba(255,255,255,.75); font: italic 13px/1.75 Spectral, serif; }
.thank-you__copy > span { font-size: 8px; letter-spacing: .25em; }

/* Lightbox */
.lightbox { position: fixed; z-index: 1200; inset: 0; display: grid; grid-template-columns: 44px 1fr 44px; place-items: center; gap: 5px; padding: 15px 10px 35px; background: rgba(19,28,22,.96); backdrop-filter: blur(8px); }
.lightbox img { grid-column: 2; width: auto; max-width: 100%; height: auto; max-height: 88svh; object-fit: contain; box-shadow: 0 20px 70px rgba(0,0,0,.35); }
.lightbox button { width: 42px; height: 42px; border: 1px solid rgba(255,255,255,.32); border-radius: 50%; color: #fff; background: transparent; cursor: pointer; }
.lightbox__close { position: absolute; z-index: 2; top: 14px; right: 14px; font-size: 22px; }
.lightbox__prev { grid-column: 1; }
.lightbox__next { grid-column: 3; }
.lightbox__count { position: absolute; bottom: 8px; left: 0; width: 100%; margin: 0; color: rgba(255,255,255,.55); text-align: center; font-size: 8px; letter-spacing: .16em; }

/* Motion */
.motion-ready [data-reveal] { opacity: 0; transform: translateY(30px); }
.motion-ready [data-reveal].image-reveal { clip-path: inset(0 0 100% 0); transform: none; }
.motion-ready [data-reveal].is-visible { opacity: 1; transform: translateY(0); transition: opacity .9s ease, transform 1s cubic-bezier(.2,.72,.2,1); }
.motion-ready [data-reveal].image-reveal.is-visible { clip-path: inset(0); transition: clip-path 1.25s cubic-bezier(.76,0,.24,1), opacity .8s ease; }
@keyframes equalize { from { height: 4px; } to { height: 14px; } }

@media (min-width: 700px) {
  .site-header { grid-template-columns: 1fr auto 1fr; padding-inline: 34px; }
  .site-header nav { display: flex; gap: 28px; }
  .site-header nav a { text-decoration: none; font-size: 7px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
  .site-header > button { justify-self: end; }
  .opening__content { justify-self: end; align-self: center; margin-right: 6vw; padding: 0; }
  .opening__visual { width: 60%; }
  .opening__veil { background: linear-gradient(90deg, rgba(21,31,25,.02) 30%, var(--deep) 68%); }
  .opening h1 { font-size: clamp(66px, 7vw, 112px); }
  .intro__title { padding: 32vh 7vw 0; }
  .intro__title h2 { font-size: clamp(90px, 11vw, 170px); }
  .intro__note { right: 6vw; width: 390px; }
  .invitation { padding-block: 125px 115px; }
  .families h3 { font-size: 17px; }
  .families p { font-size: 9px; }
  .invitation__names { grid-template-columns: 1fr auto 1fr; width: min(100%, 880px); margin-inline: auto; }
  .invitation__names span { font-size: clamp(70px, 7vw, 105px); }
  .ceremony { display: grid; grid-template-columns: 58% 42%; padding: 110px 5vw 120px; }
  .ceremony__photo { grid-row: 1 / span 2; width: 100%; margin: 0; }
  .ceremony__photo img { aspect-ratio: 4/5; }
  .ceremony__date { top: 155px; left: calc(58% - 35px); }
  .ceremony__details { align-self: end; width: 100%; margin: 0 0 55px -40px; padding: 50px; }
  .reception__details { align-self: start; grid-template-columns: 120px 1fr; padding: 0 15px 0 40px; }
  .save-date { grid-template-columns: 48% 52%; padding: 130px max(4vw, 35px); align-items: center; }
  .save-date__heading { grid-column: 1 / -1; margin-left: 4vw; }
  .save-date__heading h2 { font-size: clamp(90px, 11vw, 160px); }
  .save-date__photo { grid-column: 1; }
  .calendar { grid-column: 2; margin: 0 0 0 -42px; padding: 60px 48px 48px; }
  .story__heading { margin-right: 7vw; }
  .story__heading h2 { font-size: clamp(90px, 10vw, 148px); }
  .story-shot--hero { width: 58%; }
  .story-pair { gap: 4vw; padding: 150px 8vw; }
  .story-pair .story-shot { width: 75%; }
  .story-pair .story-shot:last-child { justify-self: end; margin-bottom: 110px; }
  .story-wide { height: 90vh; }
  .story-aside { grid-template-columns: 42% 58%; padding: 150px 0 150px 9vw; }
  .story-aside__copy { width: 70%; justify-self: center; }
  .dreams { padding-block: 130px; }
  .dreams__title { padding-left: 7vw; }
  .dreams__title h2 { font-size: clamp(84px, 9vw, 138px); }
  .dreams__gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4vw; align-items: end; width: min(86vw, 980px); margin: 70px auto 0; padding: 0; }
  .dreams figure, .dreams figure:last-child { grid-column: auto; width: 100%; margin: 0; }
  .dreams figure:nth-child(2) { margin-bottom: 70px; }
  .album { padding: 140px 4vw; }
  .album__heading { grid-template-columns: 90px 1fr; }
  .album__heading h2 { font-size: clamp(78px, 8vw, 130px); }
  .album__viewport { height: clamp(420px, 50vh, 540px); }
  .wishes { grid-template-columns: 52% 48%; min-height: 860px; }
  .wishes__photo { min-height: 100%; }
  .wishes__content { align-self: center; padding: 80px 6vw; }
  .wishes h2 { font-size: clamp(60px, 6vw, 92px); }
  .gift { padding-block: 140px; }
  .gift__panel { grid-template-columns: 1fr 1fr; }
  .lightbox { grid-template-columns: 64px 1fr 64px; padding-inline: 25px; }
}

@media (min-width: 1200px) {
  .intro__media { inset: 0 8vw 0 22vw; }
  .intro__media::before { content: ""; position: absolute; z-index: 2; inset: 0; box-shadow: inset 0 0 0 1px rgba(255,255,255,.16); pointer-events: none; }
  .intro__title { padding-left: 6vw; }
  .ceremony { padding-inline: 10vw; }
  .save-date { padding-inline: 10vw; }
  .story-shot--hero { width: 50%; margin-left: 8vw; }
  .album { padding-inline: 8vw; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  [data-parallax] { transform: none !important; }
  .motion-ready [data-reveal] { opacity: 1; clip-path: none; transform: none; }
}
