* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --cream: #f5f0e7;
  --paper: #fbf8f2;
  --ink: #292b22;
  --olive: #52563b;
  --deep: #2d3022;
  --gold: #a98b55;
  --gold-light: #d5bd8c;
  --line: rgba(83, 73, 50, .18);
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Manrope", sans-serif;
}

html {
  scroll-behavior: smooth;
  overscroll-behavior-y: none;
}

body {
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  overflow-x: hidden;
}

body.loading { overflow: hidden; }

a { color: inherit; text-decoration: none; }

.noise {
  position: fixed;
  inset: 0;
  z-index: 90;
  opacity: .035;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.8'/%3E%3C/svg%3E");
}

.loader {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: grid;
  place-content: center;
  gap: 24px;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 45%, rgba(255,255,255,.8), transparent 38%),
    #efeadf;
}
.loader::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .075;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg width='92' height='92' viewBox='0 0 92 92' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='%238c7447' stroke-width='.7'%3E%3Cpath d='M46 7l8.5 25.5L80 24 63.5 46 80 68l-25.5-8.5L46 85l-8.5-25.5L12 68l16.5-22L12 24l25.5 8.5z'/%3E%3Ccircle cx='46' cy='46' r='18'/%3E%3Cpath d='M0 46h28M64 46h28M46 0v28M46 64v28'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 92px 92px;
  mask-image: radial-gradient(circle at center, transparent 12%, #000 82%);
}
.loader::after {
  content: "";
  position: absolute;
  inset: 14px;
  border: 1px solid rgba(139,111,65,.18);
  pointer-events: none;
}
.envelope-heading {
  position: absolute;
  z-index: 2;
  top: clamp(52px, 11svh, 100px);
  left: 24px;
  right: 24px;
  text-align: center;
  color: var(--olive);
}
.envelope-heading p {
  color: var(--gold);
  font: italic 20px/1 var(--serif);
}
.envelope-heading h1 {
  margin: 11px 0 10px;
  font: 500 clamp(39px, 10vw, 60px)/.9 var(--serif);
  letter-spacing: -.03em;
}
.envelope-heading h1 i { color: var(--gold); font-weight: 400; }
.envelope-heading span {
  font-size: 7px;
  font-weight: 600;
  letter-spacing: .24em;
  text-transform: uppercase;
}

.footer-mark i { color: var(--gold); font-weight: 400; }
.envelope-scene {
  position: relative;
  width: min(330px, 82vw);
  height: 235px;
  display: grid;
  place-items: end center;
  perspective: 1000px;
}
.seal-hint {
  position: absolute;
  left: 50%;
  bottom: -42px;
  width: max-content;
  transform: translateX(-50%);
  color: #887d68;
  font-size: 7px;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
}
.envelope {
  position: relative;
  width: 100%;
  aspect-ratio: 1.55;
  transform-style: preserve-3d;
  filter: drop-shadow(0 24px 22px rgba(60, 53, 37, .15));
}
.loader:not(.opening) .envelope {
  animation: envelopeFloat 3.4s ease-in-out infinite;
}
@keyframes envelopeFloat {
  0%, 100% { transform: translateY(0) rotateZ(-.25deg); }
  50% { transform: translateY(-8px) rotateZ(.25deg); }
}
.envelope-back {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(121, 101, 68, .25);
  border-radius: 3px;
  background: #ddd3c1;
}
.invitation-letter {
  position: absolute;
  z-index: 2;
  left: 7%;
  right: 7%;
  bottom: 6%;
  height: 88%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 13px;
  border: 1px solid rgba(169,139,85,.28);
  background:
    linear-gradient(rgba(255,255,255,.66), rgba(255,255,255,.66)),
    url("assets/wedding-hero-mobile.jpg") center 35%/cover;
  box-shadow: 0 4px 16px rgba(61,52,37,.13);
}
.invitation-letter::after {
  content: "";
  position: absolute;
  inset: 7px;
  border: 1px solid rgba(169,139,85,.18);
}
.invitation-letter small,
.invitation-letter span {
  z-index: 1;
  color: #74694d;
  font: 600 7px/1 var(--sans);
  letter-spacing: .28em;
  text-transform: uppercase;
}
.invitation-letter strong {
  z-index: 1;
  color: var(--olive);
  font: 500 42px/1 var(--serif);
  letter-spacing: .12em;
}
.invitation-letter strong i { color: var(--gold); font-weight: 400; }
.envelope-front {
  position: absolute;
  z-index: 4;
  inset: 0;
  border-radius: 3px;
  background:
    linear-gradient(155deg, rgba(255,255,255,.25), transparent 45%),
    #eee7da;
  clip-path: polygon(0 18%, 50% 59%, 100% 18%, 100% 100%, 0 100%);
  box-shadow: inset 0 -1px 0 rgba(121,101,68,.12);
}
.envelope-flap {
  position: absolute;
  z-index: 6;
  left: 0;
  top: 0;
  width: 100%;
  height: 58%;
  background: #e5ddcf;
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  transform-origin: top center;
  backface-visibility: visible;
  filter: drop-shadow(0 2px 1px rgba(82,69,48,.08));
}
.envelope-flap::after {
  content: "";
  position: absolute;
  inset: 1px;
  clip-path: inherit;
  background: linear-gradient(165deg, rgba(255,255,255,.38), transparent 60%);
}
.butterflies {
  position: absolute;
  z-index: 7;
  left: 50%;
  top: 43%;
  width: 1px;
  height: 1px;
  pointer-events: none;
}
.butterfly {
  position: absolute;
  width: 24px;
  height: 17px;
  opacity: 0;
  transform: scale(.2);
}
.butterfly::before,
.butterfly::after {
  content: "";
  position: absolute;
  top: 1px;
  width: 13px;
  height: 15px;
  background: linear-gradient(145deg, #f7efd9, #b9924e);
  box-shadow: inset 0 0 0 1px rgba(102,76,36,.18);
}
.butterfly::before {
  right: 50%;
  border-radius: 80% 25% 65% 30%;
  transform-origin: right center;
  animation: wingLeft .22s ease-in-out infinite alternate;
}
.butterfly::after {
  left: 50%;
  border-radius: 25% 80% 30% 65%;
  transform-origin: left center;
  animation: wingRight .22s ease-in-out infinite alternate;
}
.butterfly i {
  position: absolute;
  z-index: 2;
  left: 50%;
  top: 3px;
  width: 2px;
  height: 13px;
  border-radius: 99px;
  background: #765d32;
  transform: translateX(-50%);
}
.butterfly-2,
.butterfly-4 { scale: .72; }
.butterfly-2::before,
.butterfly-2::after { animation-duration: .17s; }
.butterfly-3::before,
.butterfly-3::after { animation-duration: .27s; }
.butterfly-4::before,
.butterfly-4::after { animation-duration: .2s; }
.butterfly-3::before,
.butterfly-3::after { background: linear-gradient(145deg, #fffdf7, #d4bc89); }
@keyframes wingLeft {
  from { transform: rotateY(15deg) rotateZ(-8deg); }
  to { transform: rotateY(72deg) rotateZ(4deg); }
}
@keyframes wingRight {
  from { transform: rotateY(-15deg) rotateZ(8deg); }
  to { transform: rotateY(-72deg) rotateZ(-4deg); }
}
.wax-seal {
  position: absolute;
  z-index: 8;
  left: 50%;
  top: 50%;
  width: 54px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: #f5e4bd;
  background: radial-gradient(circle at 35% 30%, #b79352, #826431 70%);
  box-shadow: inset 0 0 0 3px rgba(255,255,255,.15), 0 5px 12px rgba(67,49,21,.2);
  transform: translate(-50%, -50%);
  cursor: default;
  opacity: .82;
  transition: filter .3s, opacity .3s;
}
.wax-seal span {
  display: grid;
  place-items: center;
  width: 37px;
  aspect-ratio: 1;
  border: 1px solid rgba(255,238,196,.55);
  border-radius: 50%;
  font: italic 14px/1 var(--serif);
  letter-spacing: .04em;
}
.wax-seal.ready {
  cursor: pointer;
  opacity: 1;
  animation: sealPulse 1.8s ease-in-out infinite;
}
.wax-seal.ready:hover { filter: brightness(1.08); }
.wax-seal.ready:active { filter: brightness(.95); }
@keyframes sealPulse {
  0%, 100% { box-shadow: inset 0 0 0 3px rgba(255,255,255,.15), 0 5px 12px rgba(67,49,21,.2), 0 0 0 0 rgba(169,139,85,.3); }
  50% { box-shadow: inset 0 0 0 3px rgba(255,255,255,.15), 0 5px 12px rgba(67,49,21,.2), 0 0 0 10px rgba(169,139,85,0); }
}

.cursor-glow {
  position: fixed;
  width: 280px;
  aspect-ratio: 1;
  border-radius: 50%;
  z-index: 2;
  pointer-events: none;
  background: radial-gradient(circle, rgba(255,248,218,.18), transparent 68%);
  transform: translate(-50%, -50%);
  mix-blend-mode: screen;
}

.hero {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  display: grid;
  place-items: center;
  isolation: isolate;
}

.hero-image, .closing-image {
  position: absolute;
  inset: -6%;
  z-index: -3;
  background: url("assets/wedding-hero.jpg") center/cover no-repeat;
  will-change: transform;
}

.hero-wash {
  position: absolute;
  inset: 0;
  z-index: -2;
  background: linear-gradient(180deg, rgba(245,239,224,.12), rgba(243,236,220,.1) 58%, rgba(67,63,44,.16));
}

.hero::after {
  content: "";
  position: absolute;
  inset: 18px;
  z-index: 0;
  border: 1px solid rgba(117, 91, 51, .22);
  pointer-events: none;
}

.topbar {
  position: absolute;
  z-index: 3;
  top: 40px;
  left: 52px;
  right: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #514a35;
}
.mini-mark { font: 500 21px/1 var(--serif); letter-spacing: .16em; }
.mini-mark i { color: var(--gold); }
.topbar-note { font-size: 10px; letter-spacing: .3em; text-transform: uppercase; }

.hero-content {
  position: relative;
  z-index: 2;
  width: min(900px, 92vw);
  padding-top: 32px;
  text-align: center;
}

.eyebrow {
  color: #685d42;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .34em;
  text-transform: uppercase;
}

.ornament { display: flex; align-items: center; justify-content: center; gap: 12px; margin: 24px auto 18px; color: var(--gold); }
.ornament span { width: 44px; height: 1px; background: currentColor; opacity: .5; }
.ornament i { font-style: normal; font-size: 9px; }

.hero-names {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: clamp(12px, 3vw, 44px);
  font-family: var(--serif);
  font-size: clamp(74px, 12vw, 168px);
  font-weight: 500;
  line-height: .78;
  letter-spacing: -.065em;
  color: #303226;
}
.hero-names .name { display: inline-block; text-shadow: 0 8px 30px rgba(80, 62, 33, .08); }
.hero-names .amp {
  font-size: .48em;
  font-style: italic;
  font-weight: 400;
  color: var(--gold);
  letter-spacing: 0;
}

.hero-meta {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 18px;
  margin-top: 38px;
  font-size: 11px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: #5d563f;
}
.hero-meta b { width: 3px; height: 3px; border-radius: 50%; background: var(--gold); }

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  margin-top: 44px;
  padding: 15px 24px;
  border: 1px solid rgba(82, 77, 53, .32);
  border-radius: 99px;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  background: rgba(255,255,255,.19);
  backdrop-filter: blur(8px);
  transition: background .35s, color .35s, transform .35s;
}
.hero-cta i { font-style: normal; font-size: 15px; transition: transform .35s; }
.hero-cta:hover { color: #fff; background: var(--olive); transform: translateY(-2px); }
.hero-cta:hover i { transform: translateY(3px); }
.swipe-cue {
  margin: 34px auto 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  border: 0;
  color: #665e45;
  background: transparent;
  cursor: pointer;
}
.page-cue { display: none; }
.swipe-cue i {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 1px solid rgba(82,77,53,.3);
  border-radius: 50%;
  color: var(--gold);
  font: normal 15px/1 var(--sans);
  animation: swipeUp 1.7s ease-in-out infinite;
}
.swipe-cue span {
  font-size: 7px;
  font-weight: 600;
  letter-spacing: .24em;
  text-transform: uppercase;
}
@keyframes swipeUp {
  0%, 100% { transform: translateY(3px); }
  50% { transform: translateY(-4px); }
}

.hero-scroll {
  position: absolute;
  z-index: 3;
  right: 45px;
  bottom: 47px;
  display: flex;
  align-items: center;
  gap: 13px;
  writing-mode: vertical-rl;
  color: #5a543e;
}
.hero-scroll span { font-size: 8px; letter-spacing: .3em; text-transform: uppercase; }
.hero-scroll div { height: 54px; width: 1px; background: rgba(70,64,44,.2); overflow: hidden; }
.hero-scroll i { display: block; width: 1px; height: 55%; background: var(--gold); animation: scrollLine 2s ease-in-out infinite; }

@keyframes scrollLine { 0% { transform: translateY(-110%); } 100% { transform: translateY(210%); } }

.section-kicker {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 80px;
  color: #766e5b;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .28em;
  text-transform: uppercase;
}
.section-kicker span {
  display: grid;
  place-items: center;
  width: 29px;
  aspect-ratio: 1;
  border: 1px solid var(--line);
  border-radius: 50%;
  font: italic 12px/1 var(--serif);
  letter-spacing: 0;
}
.section-kicker.light { color: rgba(255,255,255,.6); }
.section-kicker.light span { border-color: rgba(255,255,255,.18); }

.invitation, .details {
  position: relative;
  padding: 100px max(6vw, 28px) 140px;
  background: var(--paper);
}

.invitation::before {
  content: "∞";
  position: absolute;
  top: 8%;
  right: 5%;
  color: rgba(169,139,85,.06);
  font: 280px/1 var(--serif);
}

.invitation-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(310px, .7fr);
  gap: clamp(70px, 10vw, 160px);
  align-items: center;
  max-width: 1160px;
  margin: 0 auto;
}

.invitation-copy { max-width: 650px; }
.script-note { margin-bottom: 24px; color: var(--gold); font: italic 26px/1 var(--serif); }
.invitation-copy h2, .venue-copy h2 {
  font: 500 clamp(48px, 6vw, 82px)/.98 var(--serif);
  letter-spacing: -.035em;
}
.couple-title i {
  display: inline-block;
  margin: 0 .08em;
  color: var(--gold);
  font-weight: 400;
}
.body-copy {
  max-width: 550px;
  margin-top: 34px;
  color: #6a685f;
  font: 300 14px/2 var(--sans);
}
.signature {
  margin-top: 8px;
  color: var(--olive);
  font: italic 28px/1 var(--serif);
}
.signature i { margin: 0 8px; color: var(--gold); }
.signature-wrap {
  display: inline-block;
  margin-top: 42px;
  padding-left: 22px;
  border-left: 1px solid var(--gold);
}
.signature-wrap small {
  color: #8b826f;
  font-size: 8px;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
}

.date-card {
  position: relative;
  min-height: 470px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 1px solid rgba(169,139,85,.35);
  padding: 42px 0 34px;
  color: var(--ink);
  background:
    radial-gradient(circle at var(--glow-x, 75%) var(--glow-y, 15%), rgba(255,255,255,.8), transparent 38%),
    linear-gradient(145deg, #fbf8f1, #eee6d8);
  box-shadow: 0 35px 70px rgba(62,55,40,.11);
  transform-style: preserve-3d;
}
.date-card::before, .date-card::after {
  content: "";
  position: absolute;
  inset: 14px;
  border: 1px solid rgba(169,139,85,.18);
  pointer-events: none;
}
.date-card::after { inset: 25px; border-color: rgba(169,139,85,.08); }
.card-glow {
  position: absolute;
  width: 220px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: rgba(213,189,140,.13);
  filter: blur(40px);
  left: var(--glow-x, 50%);
  top: var(--glow-y, 50%);
  transform: translate(-50%,-50%);
}
.date-card p, .date-card small { position: relative; font-size: 9px; letter-spacing: .34em; text-transform: uppercase; }
.date-card-title { color: var(--gold-light); }
.calendar-head {
  position: relative;
  width: 80%;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 25px;
  padding-bottom: 17px;
  border-bottom: 1px solid rgba(169,139,85,.25);
}
.calendar-head p {
  color: var(--olive);
  font: 500 34px/1 var(--serif);
  letter-spacing: 0;
  text-transform: none;
}
.calendar-head span {
  color: var(--gold);
  font-size: 9px;
  letter-spacing: .24em;
}
.calendar-week,
.calendar-days {
  position: relative;
  width: 80%;
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  align-items: center;
  text-align: center;
}
.calendar-week {
  margin-bottom: 13px;
  color: #a19886;
  font-size: 7px;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.calendar-days {
  row-gap: 10px;
  color: #5f5c51;
  font: 400 10px/1 var(--sans);
}
.calendar-days > span {
  position: relative;
  min-height: 20px;
  display: grid;
  place-items: center;
}
.wedding-day i {
  position: absolute;
  color: var(--gold);
  font: normal 35px/1 var(--serif);
  transform: translateY(-1px);
  filter: drop-shadow(0 3px 5px rgba(0,0,0,.18));
}
.wedding-day b {
  position: relative;
  z-index: 1;
  color: #fff;
  font: 600 9px/1 var(--sans);
}
.date-primary {
  position: relative;
  display: flex;
  align-items: center;
  gap: 22px;
  margin: 34px 0;
}
.date-primary strong {
  color: #fff;
  font: 300 112px/.72 var(--sans);
  letter-spacing: -.08em;
}
.date-primary > div {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  padding-left: 22px;
  border-left: 1px solid rgba(213,189,140,.45);
}
.date-primary b { color: #fff; font: 500 30px/1 var(--serif); }
.date-primary span { color: rgba(255,255,255,.5); font-size: 8px; letter-spacing: .22em; text-transform: uppercase; }
.date-time {
  position: relative;
  width: 80%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 23px;
  padding-top: 17px;
  border-top: 1px solid rgba(169,139,85,.25);
}
.date-time small { color: #8c8372; }
.date-time b { color: var(--olive); font: 600 25px/1 var(--serif); }
.date-rule { position: relative; display: flex; align-items: center; width: 70%; gap: 13px; margin: 28px 0; }
.date-rule span { font-size: 8px; letter-spacing: .2em; text-transform: uppercase; }
.date-rule i { height: 1px; flex: 1; background: var(--gold); opacity: .5; }

.countdown {
  position: relative;
  overflow: hidden;
  padding: 95px max(6vw, 28px) 125px;
  background: var(--deep);
  color: #f8f2e7;
}
.countdown::before {
  content: "";
  position: absolute;
  width: 580px;
  aspect-ratio: 1;
  left: -250px;
  bottom: -350px;
  border: 1px solid rgba(213,189,140,.15);
  border-radius: 50%;
  box-shadow: 0 0 0 50px rgba(213,189,140,.03), 0 0 0 100px rgba(213,189,140,.02);
}
.countdown-heading { text-align: center; }
.countdown-heading p { font: italic 22px/1 var(--serif); color: var(--gold-light); }
.countdown-heading h2 { margin-top: 16px; font: 400 clamp(54px, 7vw, 94px)/.9 var(--serif); letter-spacing: -.04em; }
.countdown-heading em { color: var(--gold-light); font-weight: 400; }
.countdown-heart {
  position: relative;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  margin: 27px auto -37px;
}
.countdown-heart::before,
.countdown-heart::after {
  content: "";
  position: absolute;
  inset: 3px;
  border: 1px solid rgba(213,189,140,.24);
  border-radius: 50%;
  animation: heartRipple 2.2s ease-out infinite;
}
.countdown-heart::after { animation-delay: 1.1s; }
.countdown-heart span {
  color: var(--gold-light);
  font: normal 22px/1 var(--serif);
  filter: drop-shadow(0 3px 8px rgba(0,0,0,.18));
  animation: heartbeat 1.35s ease-in-out infinite;
}
@keyframes heartbeat {
  0%, 42%, 100% { transform: scale(1); }
  12% { transform: scale(1.18); }
  24% { transform: scale(1.04); }
  32% { transform: scale(1.14); }
}
@keyframes heartRipple {
  0% { opacity: .7; transform: scale(.55); }
  100% { opacity: 0; transform: scale(1.45); }
}
.countdown-grid {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  margin-top: 80px;
}
.cd-item { min-width: clamp(110px, 13vw, 185px); text-align: center; }
.cd-num { display: block; font: 300 clamp(54px, 7vw, 96px)/1 var(--serif); font-variant-numeric: tabular-nums; }
.cd-label { display: block; margin-top: 12px; color: rgba(255,255,255,.45); font-size: 8px; letter-spacing: .3em; text-transform: uppercase; }
.cd-separator { padding-top: 12px; color: var(--gold); font: 300 48px/1 var(--serif); animation: pulse 1s step-end infinite; }
@keyframes pulse { 50% { opacity: .2; } }

.details { background: var(--cream); }
.dress-code {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  padding: 95px max(6vw, 28px) 100px;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 44%, rgba(255,255,255,.9), transparent 38%),
    #eee8dd;
}
.dress-code::before,
.dress-code::after {
  content: "";
  position: absolute;
  width: 430px;
  aspect-ratio: 1;
  border: 1px solid rgba(169,139,85,.13);
  border-radius: 50%;
  pointer-events: none;
}
.dress-code::before { left: -260px; top: -220px; }
.dress-code::after { right: -260px; bottom: -220px; }
.dress-content {
  width: min(880px, 100%);
  margin: auto;
  text-align: center;
}
.dress-content h2 {
  font: 500 clamp(52px, 7vw, 90px)/.9 var(--serif);
  letter-spacing: -.04em;
}
.dress-content h2 em { color: var(--gold); font-weight: 400; }
.dress-copy {
  max-width: 520px;
  margin: 27px auto 44px;
  color: #706c61;
  font: 300 13px/1.8 var(--sans);
}
.palette {
  display: flex;
  justify-content: center;
  gap: clamp(18px, 4vw, 52px);
}
.color-swatch {
  display: grid;
  justify-items: center;
  gap: 12px;
}
.color-swatch i {
  width: clamp(58px, 8vw, 92px);
  aspect-ratio: 1;
  border: 7px solid rgba(255,255,255,.65);
  border-radius: 50%;
  box-shadow: 0 12px 25px rgba(57,50,37,.12), inset 0 0 0 1px rgba(73,66,51,.08);
  transition: transform .35s;
}
.color-swatch:hover i { transform: translateY(-5px) scale(1.04); }
.color-swatch span {
  color: #777062;
  font-size: 8px;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.swatch-ivory i { background: #f4efe3; }
.swatch-champagne i { background: #d9c49c; }
.swatch-sage i { background: #9ca187; }
.swatch-taupe i { background: #9a8774; }
.dress-note {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin-top: 38px;
  color: #91836d;
  font: italic 16px/1 var(--serif);
}
.dress-note span { color: var(--gold); font-size: 7px; }
.details-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(60px, 9vw, 140px);
  align-items: center;
  max-width: 1120px;
  margin: 0 auto;
}
.venue-visual { display: grid; place-items: center; min-height: 570px; background: linear-gradient(145deg, #e4ddce, #f7f2e8); overflow: hidden; }
.venue-frame { position: relative; width: 70%; height: 78%; display: grid; place-items: center; }
.arch { position: absolute; inset: 0; border: 1px solid rgba(110,103,76,.26); border-radius: 50% 50% 4px 4px / 34% 34% 4px 4px; }
.arch-a { transform: translate(-24px, 25px); }
.arch-b { transform: translate(24px, -25px); border-color: rgba(169,139,85,.48); }
.venue-mark { z-index: 2; color: var(--olive); font: 500 clamp(42px,5vw,70px)/1 var(--serif); letter-spacing: .13em; }
.venue-mark i { color: var(--gold); }
.venue-copy p:not(.script-note) { margin-top: 25px; color: #6e6b61; font: 300 14px/1.9 var(--sans); }
.venue-info { display: flex; gap: 42px; margin-top: 38px; padding: 26px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.venue-info div { display: grid; gap: 7px; }
.venue-info small { color: #8b8575; font-size: 8px; letter-spacing: .22em; text-transform: uppercase; }
.venue-info strong { font: 500 20px/1 var(--serif); }
.outline-button { display: inline-flex; gap: 30px; align-items: center; margin-top: 34px; padding: 14px 20px; border: 1px solid var(--olive); font-size: 9px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; transition: .35s; }
.outline-button i { font-size: 15px; font-style: normal; }
.outline-button:hover { color: #fff; background: var(--olive); }

.closing {
  position: relative;
  min-height: 86svh;
  display: grid;
  place-items: center;
  overflow: hidden;
  isolation: isolate;
}
.closing-image { filter: saturate(.65); }
.closing-overlay { position: absolute; inset: 0; z-index: -2; background: rgba(36,38,27,.58); }
.closing-content { color: #fff; text-align: center; }
.closing-content > p { color: var(--gold-light); font: italic 24px/1 var(--serif); }
.closing-content h2 { margin: 18px 0 32px; font: 400 clamp(60px, 9vw, 120px)/.82 var(--serif); letter-spacing: -.045em; }
.closing-names { color: #f6ead1; font: italic 30px/1 var(--serif); }
.closing-names i { margin: 0 7px; color: var(--gold-light); }
.closing-content time { display: block; margin-top: 24px; font-size: 9px; letter-spacing: .34em; }

footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 30px max(5vw, 24px);
  background: #22251b;
  color: rgba(255,255,255,.45);
  font-size: 8px;
  letter-spacing: .23em;
  text-transform: uppercase;
}
.footer-mark { color: #fff; font: 500 19px/1 var(--serif); letter-spacing: .14em; text-transform: none; }

.audio-player { position: fixed; z-index: 100; right: 24px; top: 50%; transform: translateY(-50%); }
#yt-player { position: absolute; width: 1px; height: 1px; overflow: hidden; opacity: 0; }
.sound-button {
  width: 44px;
  min-height: 118px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  border: 1px solid rgba(255,255,255,.3);
  border-radius: 99px;
  color: white;
  background: rgba(40,42,30,.68);
  backdrop-filter: blur(10px);
  cursor: pointer;
}
.sound-label { writing-mode: vertical-rl; font: 500 7px/1 var(--sans); letter-spacing: .24em; text-transform: uppercase; }
.sound-bars { height: 13px; display: flex; align-items: center; gap: 2px; }
.sound-bars i { display: block; width: 1px; height: 4px; background: var(--gold-light); }
.sound-button.playing .sound-bars i { animation: bar .65s ease-in-out infinite alternate; }
.sound-button.playing .sound-bars i:nth-child(2) { animation-delay: -.3s; }
.sound-button.playing .sound-bars i:nth-child(3) { animation-delay: -.5s; }
@keyframes bar { to { height: 13px; } }

.petals { position: fixed; inset: 0; z-index: 80; pointer-events: none; overflow: hidden; }
.petal { position: absolute; top: -40px; width: 7px; height: 12px; border-radius: 80% 0 80% 20%; background: linear-gradient(135deg, #fff, #d9c59f); box-shadow: 0 1px 4px rgba(80,60,30,.15); will-change: transform; }
.petal.petal-green {
  background: linear-gradient(135deg, #536044, #25301f);
  box-shadow: 0 2px 5px rgba(28,40,24,.24);
}
.reveal { opacity: 0; transform: translateY(42px); }

@media (max-width: 760px) {
  html, body { height: 100%; overflow: hidden; }
  body { -webkit-text-size-adjust: 100%; }
  main {
    will-change: transform;
    transition: transform .95s cubic-bezier(.76, 0, .24, 1);
    touch-action: pan-x;
  }
  .page-cue {
    position: fixed;
    z-index: 200;
    left: 50%;
    bottom: max(22px, calc(env(safe-area-inset-bottom) + 14px));
    display: flex;
    margin: 0;
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateX(-50%);
    transition: opacity .3s;
  }
  .page-cue span {
    padding: 3px 7px;
    border-radius: 99px;
    background: rgba(245,240,231,.72);
    backdrop-filter: blur(5px);
  }
  main > section {
    width: 100%;
    height: 100svh;
    min-height: 100svh;
    overflow: hidden;
  }
  footer { display: none; }
  .cursor-glow { display: none; }
  .hero::after { inset: 10px; }
  .topbar {
    top: max(25px, env(safe-area-inset-top));
    left: 28px;
    right: 28px;
  }
  .topbar-note { font-size: 7px; }
  .hero-image {
    inset: -2%;
    background-image: url("assets/wedding-hero-mobile.jpg");
    background-position: center;
  }
  .hero-content {
    top: -15svh;
    padding: 0 28px;
  }
  .eyebrow { max-width: 270px; margin: auto; line-height: 1.7; font-size: 8px; }
  .ornament { margin: 18px auto; }
  .hero-names { flex-direction: column; gap: 0; font-size: clamp(73px, 24vw, 108px); line-height: .64; }
  .hero-names .name-first { font-size: .82em; }
  .hero-names .amp { margin: 14px 0; font-size: .42em; }
  .hero-meta { gap: 10px; margin-top: 35px; font-size: 8px; letter-spacing: .14em; }
  .hero-meta b { width: 2px; height: 2px; }
  .hero-scroll { right: 20px; bottom: 31px; }
  .hero-scroll span { display: none; }
  .audio-player { right: 14px; top: auto; bottom: 18px; transform: none; }
  .sound-button { width: 40px; min-height: 40px; aspect-ratio: 1; }
  .sound-label { display: none; }
  .section-kicker { margin-bottom: 22px; }
  .invitation, .details { padding: 30px 22px 24px; }
  .invitation-layout, .details-layout { grid-template-columns: 1fr; gap: 16px; }
  .invitation-copy h2, .venue-copy h2 { font-size: 39px; }
  .invitation-copy { text-align: center; }
  .script-note { margin-bottom: 10px; font-size: 20px; }
  .body-copy { margin-top: 15px; font-size: 11px; line-height: 1.65; }
  .signature-wrap { margin-top: 15px; padding: 11px 0 0; border-left: 0; border-top: 1px solid var(--gold); }
  .signature { font-size: 22px; }
  .date-card { min-height: 285px; width: min(100%, 350px); margin: auto; padding: 25px 0 20px; }
  .calendar-head { margin-bottom: 16px; }
  .calendar-head p { font-size: 27px; }
  .calendar-week { margin-bottom: 9px; }
  .calendar-days { row-gap: 6px; }
  .date-primary { gap: 16px; margin: 25px 0 22px; }
  .date-primary strong { font-size: 70px; }
  .date-primary > div { gap: 5px; padding-left: 16px; }
  .date-primary b { font-size: 25px; }
  .date-time { margin-top: 14px; padding-top: 12px; }
  .countdown { padding: 72px 15px 90px; }
  .countdown-heading h2 { font-size: 50px; }
  .countdown-grid { margin-top: 56px; }
  .countdown-heart { margin-top: 19px; margin-bottom: -38px; }
  .cd-item { min-width: 68px; }
  .cd-num { font-size: 45px; }
  .cd-separator { padding-top: 7px; font-size: 32px; }
  .venue-visual { min-height: 210px; height: 210px; }
  .venue-frame { width: 54%; height: 72%; }
  .venue-copy { text-align: center; }
  .venue-copy p:not(.script-note) { margin-top: 12px; font-size: 11px; line-height: 1.55; }
  .venue-info { justify-content: center; gap: 28px; }
  .venue-info { margin-top: 14px; padding: 14px 0; }
  .outline-button { margin-top: 15px; }
  .closing-content h2 { font-size: 61px; }
  .dress-code { padding: 30px 22px 24px; }
  .dress-content h2 { font-size: 46px; }
  .dress-copy { margin: 20px auto 30px; font-size: 11px; }
  .palette { gap: 10px; }
  .color-swatch { gap: 9px; }
  .color-swatch i { width: 64px; border-width: 5px; }
  .color-swatch span { font-size: 6px; letter-spacing: .1em; }
  .dress-note { margin-top: 27px; font-size: 14px; }
  footer span:first-child { display: none; }
}

@media (max-width: 760px) and (max-height: 720px) {
  .hero-content { top: -11svh; }
  .eyebrow { max-width: 250px; }
  .ornament { margin: 12px auto; }
  .hero-names { font-size: clamp(66px, 21vw, 88px); }
  .hero-names .amp { margin: 10px 0; }
  .hero-meta { margin-top: 27px; }
  .invitation, .details { padding-top: 18px; }
  .section-kicker { margin-bottom: 12px; }
  .invitation-copy h2, .venue-copy h2 { font-size: 34px; }
  .body-copy { font-size: 10px; }
  .date-card { min-height: 245px; padding: 18px 0 14px; }
  .calendar-head { margin-bottom: 10px; }
  .calendar-days { row-gap: 3px; }
  .date-primary { margin: 17px 0 15px; }
  .date-primary strong { font-size: 58px; }
  .venue-visual { min-height: 150px; height: 150px; }
  .dress-content h2 { font-size: 39px; }
  .dress-copy { margin: 15px auto 22px; }
  .color-swatch i { width: 52px; }
  .dress-note { margin-top: 18px; }
}

@media (max-width: 360px) {
  .topbar { left: 23px; right: 23px; }
  .hero-content { padding-inline: 22px; }
  .hero-meta { gap: 7px; font-size: 7px; }
  .swipe-cue span { font-size: 6px; }
  .cd-item { min-width: 62px; }
  .cd-num { font-size: 41px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .intro, .hero-names .name, .hero-names .amp { opacity: 1 !important; transform: none !important; }
  .petals, .cursor-glow { display: none; }
  * { animation-duration: .001ms !important; animation-iteration-count: 1 !important; }
}
