:root {
  color-scheme: light;
  --ink: #151310;
  --ink-soft: #28231e;
  --paper: #f1ece2;
  --paper-deep: #ded3c3;
  --gold: #b99867;
  --amber: #9a5f2e;
  --sage: #4f5042;
  --white: #fffdf8;
  --line-dark: rgba(21, 19, 16, .22);
  --line-light: rgba(255, 253, 248, .26);
  --ease: cubic-bezier(.22, 1, .36, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; overflow-x: hidden; background: var(--ink); color: var(--paper); font-family: "Manrope", sans-serif; }
body.is-locked { overflow: hidden; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
img { display: block; max-width: 100%; }
button { color: inherit; }
::selection { background: var(--gold); color: var(--ink); }

.grain {
  position: fixed;
  z-index: 200;
  inset: 0;
  pointer-events: none;
  opacity: .1;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.92' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='.35'/%3E%3C/svg%3E");
  mix-blend-mode: soft-light;
}

.scroll-progress {
  position: fixed;
  z-index: 120;
  inset: 0 0 auto;
  height: 2px;
  background: rgba(255,255,255,.12);
}

.scroll-progress span { display: block; width: 0; height: 100%; background: var(--gold); }

.invitation-gate {
  position: fixed;
  z-index: 180;
  inset: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: var(--white);
  background: #0f0e0c;
  transition: visibility 0s linear 1.6s;
}

.invitation-gate.is-open { visibility: hidden; }

.gate-picture {
  position: absolute;
  inset: 0;
  background: url("assets/images/lake-silhouette-wide.webp") center 44% / cover no-repeat;
  filter: grayscale(.35) brightness(.46) contrast(1.08);
  transform: scale(1.08);
  animation: gateDrift 14s var(--ease) both;
}

.gate-shade {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 44%, transparent 0 14%, rgba(10,9,8,.18) 42%, rgba(10,9,8,.78) 100%),
    linear-gradient(180deg, rgba(11,10,9,.22), rgba(11,10,9,.72));
}

.gate-content { position: relative; z-index: 3; width: min(780px, calc(100% - 40px)); text-align: center; transition: opacity .5s ease, transform .8s var(--ease); }
.is-open .gate-content { opacity: 0; transform: scale(.94); }
.gate-overline { display: block; margin-bottom: 28px; font-size: 10px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; }
.gate-monogram { display: grid; place-items: center; width: 112px; height: 112px; margin: 0 auto 28px; border: 1px solid rgba(255,255,255,.5); border-radius: 50%; font: 400 33px/1 "Cormorant Garamond", serif; letter-spacing: -.06em; }
.gate-monogram span { margin: -9px 0; color: var(--gold); font-size: 17px; font-style: italic; }
.gate-content h1 { margin: 0; font: 400 clamp(66px, 11vw, 150px)/.72 "Cormorant Garamond", serif; letter-spacing: -.06em; }
.gate-content h1 em { color: var(--gold); font-weight: 400; }
.gate-content > p { margin: 26px 0 0; color: rgba(255,255,255,.78); font-size: 11px; letter-spacing: .18em; text-transform: uppercase; }
.gate-button { display: inline-flex; align-items: center; gap: 22px; margin-top: 44px; padding: 7px 7px 7px 23px; border: 1px solid rgba(255,255,255,.5); border-radius: 999px; background: rgba(0,0,0,.18); backdrop-filter: blur(12px); cursor: pointer; font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; transition: border-color .3s, background .3s, transform .3s; }
.gate-button i { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--paper); color: var(--ink); font-style: normal; transition: transform .4s var(--ease); }
.gate-button:hover { border-color: white; background: rgba(255,255,255,.08); transform: translateY(-2px); }
.gate-button:hover i { transform: rotate(45deg); }

.gate-fold { position: absolute; z-index: 5; left: 0; right: 0; height: 50.5%; pointer-events: none; background: var(--ink); transform: scaleY(0); transition: transform .85s var(--ease); }
.gate-fold--top { top: 0; transform-origin: top; }
.gate-fold--bottom { bottom: 0; transform-origin: bottom; }
.invitation-gate.is-opening .gate-fold { transform: scaleY(1); }
.invitation-gate.is-open .gate-fold--top { transform: translateY(-101%); transition-delay: .18s; }
.invitation-gate.is-open .gate-fold--bottom { transform: translateY(101%); transition-delay: .18s; }

.site-header {
  position: fixed;
  z-index: 110;
  top: 0;
  left: 0;
  right: 0;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  padding: 18px clamp(18px, 4vw, 58px);
  color: var(--white);
  transition: padding .4s, background .4s, color .4s, border-color .4s, transform .8s var(--ease);
  transform: translateY(-110%);
}

body.invitation-open .site-header { transform: none; }
.site-header.is-scrolled { padding-block: 10px; border-bottom: 1px solid rgba(21,19,16,.12); background: rgba(241,236,226,.9); color: var(--ink); backdrop-filter: blur(18px); }
.header-mark { width: max-content; font: 500 25px/1 "Cormorant Garamond", serif; text-decoration: none; letter-spacing: -.06em; }
.header-mark span { color: var(--gold); font-size: 15px; font-style: italic; }
.site-header nav { display: flex; gap: 26px; }
.site-header nav a { position: relative; font-size: 10px; font-weight: 600; letter-spacing: .12em; text-decoration: none; text-transform: uppercase; }
.site-header nav a::after { content: ""; position: absolute; right: 0; bottom: -5px; left: 0; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .35s var(--ease); }
.site-header nav a:hover::after { transform: scaleX(1); transform-origin: left; }
.header-rsvp { justify-self: end; padding: 11px 15px; border: 1px solid currentColor; border-radius: 999px; background: transparent; cursor: pointer; font-size: 9px; font-weight: 600; letter-spacing: .11em; text-transform: uppercase; transition: background .3s, color .3s; }
.header-rsvp:hover { background: var(--white); color: var(--ink); }
.site-header.is-scrolled .header-rsvp:hover { background: var(--ink); color: var(--paper); }

.hero { position: relative; min-height: 100svh; display: grid; align-items: end; padding: 130px clamp(22px, 7vw, 105px) 7vh; overflow: hidden; color: var(--white); }
.hero-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 42%; transform: scale(1.03); animation: heroDrift 16s var(--ease) both; }
.hero-vignette { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,8,6,.18) 0, rgba(10,8,6,.1) 32%, rgba(10,8,6,.85) 100%), linear-gradient(90deg, rgba(10,8,6,.4), transparent 60%); }
.hero-copy { position: relative; z-index: 2; max-width: 1080px; }
.overline { margin: 0 0 24px; font-size: 10px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; }
.overline--dark { color: #665f56; }
.hero h2 { margin: 0; font: 400 clamp(78px, 14.5vw, 210px)/.67 "Cormorant Garamond", serif; letter-spacing: -.07em; }
.hero h2 span { display: block; margin-left: 17vw; }
.hero h2 em { display: inline-block; color: var(--gold); font-size: .62em; font-weight: 400; line-height: 1; transform: translateY(-.06em); }
.hero-lede { max-width: 600px; margin: 32px 0 0; font: 400 clamp(20px, 2.2vw, 29px)/1.35 "Cormorant Garamond", serif; color: rgba(255,255,255,.82); }
.hero-meta { position: absolute; z-index: 2; top: 50%; font-size: 9px; letter-spacing: .18em; text-transform: uppercase; writing-mode: vertical-rl; }
.hero-meta--left { left: 26px; transform: translateY(-50%) rotate(180deg); }
.hero-meta--right { right: 26px; transform: translateY(-50%); }
.scroll-cue { position: absolute; z-index: 3; right: clamp(22px, 7vw, 105px); bottom: 7vh; display: flex; align-items: center; gap: 13px; font-size: 9px; letter-spacing: .14em; text-decoration: none; text-transform: uppercase; }
.scroll-cue i { display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid rgba(255,255,255,.4); border-radius: 50%; font-style: normal; animation: bounce 2s ease-in-out infinite; }

.invitation { position: relative; min-height: 100svh; display: grid; grid-template-columns: .16fr 1fr .78fr; gap: clamp(32px, 7vw, 110px); align-items: center; padding: 140px clamp(22px, 7vw, 105px); background: var(--paper); color: var(--ink); }
.section-number { align-self: start; color: var(--gold); font: 400 14px/1 "Cormorant Garamond", serif; letter-spacing: .12em; }
.invitation-title h2, .portrait-copy h2, .dress-copy h2, .mood-copy h2 { margin: 0; font: 400 clamp(62px, 8.2vw, 124px)/.76 "Cormorant Garamond", serif; letter-spacing: -.055em; }
.invitation-title h2 em, .portrait-copy h2 em, .dress-copy h2 em, .mood-copy h2 em { color: var(--amber); font-weight: 400; }
.invitation-copy { max-width: 590px; padding-top: 70px; }
.invitation-copy p { margin: 0 0 24px; color: #585149; font-size: 15px; line-height: 1.75; }
.invitation-copy .lead { color: var(--ink); font: 400 clamp(24px, 2.6vw, 36px)/1.28 "Cormorant Garamond", serif; }
.signature { margin-top: 52px; font: italic 400 22px/1.2 "Cormorant Garamond", serif; }
.signature strong { display: block; margin-top: 7px; font-style: normal; font-weight: 500; }

.cinema-frame { position: relative; height: 120svh; overflow: hidden; background: var(--ink); }
.cinema-frame > img { width: 100%; height: 100%; object-fit: cover; object-position: center 52%; filter: saturate(.8) contrast(1.03); }
.cinema-frame::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(13,11,9,.68), transparent 60%), linear-gradient(180deg, transparent 62%, rgba(13,11,9,.65)); }
.cinema-caption { position: absolute; z-index: 2; left: clamp(22px, 7vw, 105px); bottom: 10vh; }
.cinema-caption span { font-size: 10px; letter-spacing: .18em; text-transform: uppercase; }
.cinema-caption p { margin: 18px 0 0; font: italic 400 clamp(48px, 7vw, 100px)/.84 "Cormorant Garamond", serif; }
.cinema-index { position: absolute; z-index: 2; right: 27px; bottom: 28px; font-size: 8px; letter-spacing: .18em; text-transform: uppercase; }

.date-section { min-height: 100svh; display: flex; flex-direction: column; justify-content: space-between; padding: 120px clamp(22px, 6vw, 90px) 60px; background: var(--ink); }
.date-section > .overline { color: var(--gold); }
.date-display { display: flex; align-items: center; justify-content: center; gap: clamp(5px, 2vw, 30px); white-space: nowrap; }
.date-display span { font: 400 clamp(90px, 20vw, 290px)/.7 "Cormorant Garamond", serif; letter-spacing: -.08em; }
.date-display i { color: var(--gold); font: italic 400 clamp(46px, 8vw, 100px)/1 "Cormorant Garamond", serif; }
.date-bottom { display: flex; justify-content: space-between; align-items: end; gap: 40px; padding-top: 36px; border-top: 1px solid var(--line-light); }
.date-bottom > p { margin: 0; font: 400 clamp(21px, 2vw, 29px)/1.35 "Cormorant Garamond", serif; }
.date-bottom > p strong { color: var(--gold); font-weight: 400; }
.countdown { display: grid; grid-template-columns: repeat(4, minmax(55px, 1fr)); gap: clamp(16px, 3vw, 42px); }
.countdown div { min-width: 58px; }
.countdown strong { display: block; font: 400 clamp(34px, 4vw, 54px)/1 "Cormorant Garamond", serif; }
.countdown span { display: block; margin-top: 6px; color: rgba(255,255,255,.52); font-size: 8px; letter-spacing: .14em; text-transform: uppercase; }

.portrait-story { position: relative; min-height: 130svh; display: grid; grid-template-columns: 1.08fr .92fr; grid-template-rows: auto auto; align-items: start; column-gap: clamp(45px, 8vw, 130px); row-gap: clamp(46px, 6vw, 86px); padding: 150px clamp(22px, 7vw, 105px); overflow: hidden; background: var(--paper); color: var(--ink); }
.portrait-main { grid-column: 1; grid-row: 1 / span 2; align-self: center; width: 100%; max-width: 660px; margin: 0; }
.portrait-main img { width: 100%; aspect-ratio: 4/5; object-fit: cover; object-position: center 30%; filter: saturate(.72) contrast(1.03); }
.portrait-main figcaption { display: flex; justify-content: space-between; margin-top: 13px; font-size: 8px; letter-spacing: .15em; text-transform: uppercase; }
.portrait-copy { position: relative; z-index: 3; grid-column: 2; grid-row: 1; max-width: 700px; }
.portrait-copy .section-number { display: block; margin-bottom: 55px; }
.portrait-copy h2 { font-size: clamp(58px, 7vw, 110px); }
.portrait-copy > p:last-child { max-width: 540px; margin: 38px 0 0; color: #585149; font-size: 15px; line-height: 1.7; }
.portrait-detail { position: relative; z-index: 2; grid-column: 2; grid-row: 2; justify-self: end; width: min(28vw, 430px); margin: 0; transform: rotate(2deg); }
.portrait-detail img { width: 100%; aspect-ratio: 4/5; object-fit: cover; box-shadow: 0 28px 70px rgba(40,30,20,.22); filter: saturate(.78); }

.venue { min-height: 100svh; display: grid; grid-template-columns: 1.12fr .88fr; background: #393a31; }
.venue-map { position: relative; min-height: 760px; overflow: hidden; background: #d7cbb8; color: var(--ink); }
.venue-map::before { content: ""; position: absolute; inset: 0; opacity: .22; background-image: linear-gradient(rgba(21,19,16,.15) 1px, transparent 1px), linear-gradient(90deg, rgba(21,19,16,.15) 1px, transparent 1px); background-size: 80px 80px; }
.venue-map svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.venue-map .road { fill: none; stroke: rgba(21,19,16,.42); stroke-width: 2; stroke-dasharray: 10 10; }
.venue-map circle { fill: var(--amber); }
.venue-map .pin-ring { fill: none; stroke: var(--amber); stroke-width: 2; animation: mapPulse 2.5s ease-out infinite; transform-origin: 525px 330px; }
.map-label { position: absolute; padding: 7px 10px; border: 1px solid rgba(21,19,16,.35); border-radius: 999px; font: italic 400 15px/1 "Cormorant Garamond", serif; }
.map-label--one { left: 13%; top: 23%; }
.map-label--two { left: 57%; bottom: 18%; }
.map-label--three { left: 58%; top: 36%; color: var(--amber); }
.venue-copy { display: flex; flex-direction: column; justify-content: center; padding: 100px clamp(28px, 6vw, 90px); }
.venue-copy .overline { color: #d6c5ab; }
.venue-copy h2 { margin: 0; font: 400 clamp(60px, 7.4vw, 112px)/.76 "Cormorant Garamond", serif; letter-spacing: -.055em; }
.venue-copy h2 em { color: #d6c5ab; font-weight: 400; }
.venue-copy > p { max-width: 510px; margin: 34px 0; color: rgba(255,255,255,.7); font-size: 15px; line-height: 1.7; }
.line-button { display: flex; align-items: center; justify-content: space-between; gap: 30px; width: min(400px, 100%); padding: 16px 0; border-bottom: 1px solid rgba(255,255,255,.48); text-decoration: none; font-size: 10px; font-weight: 600; letter-spacing: .13em; text-transform: uppercase; transition: border-color .3s, padding .3s; }
.line-button i { font-style: normal; font-size: 19px; transition: transform .4s var(--ease); }
.line-button:hover { padding-left: 8px; border-color: white; }
.line-button:hover i { transform: rotate(45deg); }
.venue-copy small { margin-top: 16px; color: rgba(255,255,255,.42); font-size: 9px; line-height: 1.5; }

.dress-code { position: relative; min-height: 100svh; display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-content: center; padding: 130px clamp(22px, 7vw, 105px); overflow: hidden; background: var(--paper); color: var(--ink); }
.dress-copy { max-width: 710px; }
.dress-copy > p:last-child { max-width: 560px; margin: 35px 0 0; color: #585149; font-size: 15px; line-height: 1.75; }
.palette { display: grid; grid-template-columns: repeat(5, 1fr); align-self: center; min-height: 420px; }
.palette span { position: relative; display: flex; align-items: end; justify-content: center; padding: 22px 7px; background: var(--color); transition: flex .6s var(--ease), transform .6s var(--ease); }
.palette span:hover { flex: 1.55; transform: translateY(-12px); }
.palette b { color: var(--paper); font-size: 8px; font-weight: 600; letter-spacing: .13em; text-transform: uppercase; writing-mode: vertical-rl; transform: rotate(180deg); mix-blend-mode: difference; }
.palette-note { position: absolute; right: clamp(22px,7vw,105px); bottom: 55px; margin: 0; color: #766e65; font-size: 9px; letter-spacing: .08em; }

.day { padding: 140px clamp(22px, 7vw, 105px); background: var(--ink); }
.day-intro { display: grid; grid-template-columns: .45fr 1fr; gap: 50px; align-items: end; margin-bottom: 80px; }
.day-intro .overline { align-self: start; color: var(--gold); }
.day-intro h2 { margin: 0; font: 400 clamp(68px, 9.5vw, 142px)/.72 "Cormorant Garamond", serif; letter-spacing: -.06em; }
.day-intro h2 em { color: var(--gold); font-weight: 400; }
.schedule { border-top: 1px solid var(--line-light); }
.schedule article { display: grid; grid-template-columns: minmax(100px,.45fr) 1fr 50px; gap: 40px; align-items: start; padding: 35px 0; border-bottom: 1px solid var(--line-light); }
.schedule time { color: var(--gold); font: 400 clamp(35px, 4vw, 55px)/1 "Cormorant Garamond", serif; }
.schedule h3 { margin: 0 0 8px; font: 400 clamp(29px, 3vw, 41px)/1 "Cormorant Garamond", serif; }
.schedule p { max-width: 590px; margin: 0; color: rgba(255,255,255,.55); font-size: 13px; line-height: 1.6; }
.schedule article > span { justify-self: end; color: rgba(255,255,255,.36); font-size: 9px; letter-spacing: .12em; }

.mood-check { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(55px, 10vw, 150px); align-items: center; padding: 140px clamp(22px, 7vw, 105px); background: #d8c7ae; color: var(--ink); }
.mood-copy h2 { font-size: clamp(60px, 7.5vw, 115px); }
.mood-options { display: grid; }
.mood-options button { position: relative; padding: 25px 50px 25px 0; border: 0; border-bottom: 1px solid var(--line-dark); background: transparent; color: var(--ink); cursor: pointer; text-align: left; font: 400 clamp(29px, 3.6vw, 50px)/1 "Cormorant Garamond", serif; transition: padding .35s var(--ease), color .35s; }
.mood-options button::after { content: "+"; position: absolute; right: 0; top: 50%; font: 400 26px/1 "Manrope", sans-serif; transform: translateY(-50%); transition: transform .4s var(--ease); }
.mood-options button:hover, .mood-options button.is-selected { padding-left: 12px; color: #7d4827; }
.mood-options button.is-selected::after { transform: translateY(-50%) rotate(45deg); }
.mood-result { grid-column: 2; margin: -55px 0 0; min-height: 24px; color: #695d50; font: italic 400 18px/1.3 "Cormorant Garamond", serif; }

.photo-ribbon { position: relative; min-height: 100svh; display: grid; align-items: center; overflow: hidden; padding: 100px 0 150px; background: var(--paper); color: var(--ink); }
.ribbon-track { display: flex; align-items: center; gap: clamp(16px, 2vw, 30px); width: max-content; padding-inline: 4vw; transform: translateX(var(--ribbon-shift, 0px)); transition: transform .1s linear; }
.ribbon-card { width: clamp(290px, 34vw, 520px); height: clamp(300px, 38vw, 570px); margin: 0; overflow: hidden; transform: rotate(var(--tilt, -1deg)); }
.ribbon-card:nth-child(even) { --tilt: 1.3deg; }
.ribbon-card--tall { width: clamp(230px, 27vw, 410px); height: clamp(390px, 49vw, 720px); }
.ribbon-card img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.77) contrast(1.02); transition: transform 1.2s var(--ease); }
.ribbon-card:hover img { transform: scale(1.035); }
.ribbon-caption { position: absolute; right: clamp(22px,7vw,105px); bottom: 55px; display: grid; text-align: right; }
.ribbon-caption span { font-size: 9px; letter-spacing: .14em; text-transform: uppercase; }
.ribbon-caption strong { margin-top: 5px; font: italic 400 29px/1 "Cormorant Garamond", serif; }

.finale { position: relative; min-height: 110svh; display: grid; place-items: center; overflow: hidden; color: var(--white); text-align: center; }
.finale > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: brightness(.56) saturate(.66); transform: scale(1.04); }
.finale-shade { position: absolute; inset: 0; background: radial-gradient(circle at center, transparent 0 18%, rgba(10,9,8,.25) 55%, rgba(10,9,8,.84)), linear-gradient(180deg, rgba(10,9,8,.14), rgba(10,9,8,.55)); }
.finale-copy { position: relative; z-index: 2; width: min(1050px, calc(100% - 40px)); }
.finale-copy h2 { margin: 0; font: 400 clamp(80px, 13vw, 190px)/.7 "Cormorant Garamond", serif; letter-spacing: -.065em; }
.finale-copy h2 em { color: #dbc49e; font-weight: 400; }
.finale-copy > p:last-of-type { max-width: 530px; margin: 34px auto; font: 400 clamp(18px, 2vw, 25px)/1.45 "Cormorant Garamond", serif; color: rgba(255,255,255,.75); }
.finale-button { display: inline-flex; align-items: center; gap: 24px; padding: 7px 7px 7px 24px; border: 1px solid rgba(255,255,255,.55); border-radius: 999px; background: rgba(0,0,0,.18); backdrop-filter: blur(10px); cursor: pointer; font-size: 10px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.finale-button i { display: grid; place-items: center; width: 43px; height: 43px; border-radius: 50%; background: var(--paper); color: var(--ink); font-style: normal; transition: transform .4s var(--ease); }
.finale-button:hover i { transform: rotate(45deg); }
.finale-date { position: absolute; z-index: 2; right: 28px; bottom: 28px; font-size: 9px; letter-spacing: .16em; writing-mode: vertical-rl; }

footer { display: flex; justify-content: space-between; gap: 24px; padding: 26px clamp(22px, 5vw, 75px); background: var(--ink); color: rgba(255,255,255,.54); font-size: 9px; letter-spacing: .13em; text-transform: uppercase; }
footer a { text-decoration: none; }

.rsvp-modal { position: fixed; z-index: 220; inset: 0; visibility: hidden; }
.rsvp-modal.is-open { visibility: visible; }
.modal-backdrop { position: absolute; inset: 0; width: 100%; border: 0; background: rgba(12,10,8,.72); opacity: 0; cursor: default; backdrop-filter: blur(10px); transition: opacity .45s; }
.is-open .modal-backdrop { opacity: 1; }
.rsvp-sheet { position: absolute; top: 0; right: 0; bottom: 0; width: min(680px, 100%); overflow-y: auto; padding: clamp(80px, 10vh, 120px) clamp(24px, 6vw, 80px) 60px; background: var(--paper); color: var(--ink); transform: translateX(102%); transition: transform .65s var(--ease); }
.is-open .rsvp-sheet { transform: none; }
.modal-close { position: absolute; top: 25px; right: 25px; display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid var(--line-dark); border-radius: 50%; background: transparent; cursor: pointer; font-size: 21px; transition: transform .3s, background .3s; }
.modal-close:hover { background: var(--ink); color: var(--paper); transform: rotate(90deg); }
.rsvp-heading > span { color: #766e65; font-size: 9px; letter-spacing: .16em; text-transform: uppercase; }
.rsvp-heading h2, .rsvp-success h2 { margin: 18px 0 20px; font: 400 clamp(58px, 8vw, 92px)/.73 "Cormorant Garamond", serif; letter-spacing: -.055em; }
.rsvp-heading h2 em { color: var(--amber); font-weight: 400; }
.rsvp-heading p { max-width: 470px; margin: 0; color: #665f56; font-size: 13px; line-height: 1.65; }
.rsvp-form { display: grid; gap: 24px; margin-top: 45px; }
.rsvp-form > label { display: grid; gap: 9px; }
.rsvp-form label > span, .rsvp-form legend { color: #625b52; font-size: 9px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.rsvp-form input, .rsvp-form select, .rsvp-form textarea { width: 100%; border: 0; border-bottom: 1px solid var(--line-dark); border-radius: 0; padding: 12px 0; background: transparent; color: var(--ink); outline: 0; }
.rsvp-form input:focus, .rsvp-form select:focus, .rsvp-form textarea:focus { border-color: var(--amber); }
.rsvp-form fieldset { display: grid; gap: 11px; margin: 0; padding: 0; border: 0; }
.rsvp-form legend { margin-bottom: 10px; }
.radio-line { display: flex !important; grid-template-columns: auto 1fr; align-items: center; gap: 10px !important; padding: 12px 0; border-bottom: 1px solid rgba(21,19,16,.1); cursor: pointer; }
.radio-line input { width: 17px; height: 17px; margin: 0; accent-color: var(--amber); }
.radio-line span { color: var(--ink) !important; font-size: 13px !important; font-weight: 400 !important; letter-spacing: 0 !important; text-transform: none !important; }
.form-submit { display: flex; align-items: center; justify-content: space-between; margin-top: 10px; padding: 6px 6px 6px 20px; border: 1px solid var(--ink); border-radius: 999px; background: var(--ink); color: var(--paper); cursor: pointer; font-size: 10px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.form-submit i { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--paper); color: var(--ink); font-style: normal; }
.rsvp-form > small { color: #81786e; font-size: 8px; line-height: 1.5; }
.rsvp-success { padding-top: 90px; text-align: center; }
.rsvp-success > span { display: grid; place-items: center; width: 80px; height: 80px; margin: 0 auto 26px; border: 1px solid var(--line-dark); border-radius: 50%; color: var(--amber); font-size: 25px; }
.rsvp-success p { color: #665f56; }
.rsvp-success button { margin-top: 25px; padding: 13px 18px; border: 1px solid var(--ink); border-radius: 999px; background: transparent; cursor: pointer; font-size: 9px; letter-spacing: .1em; text-transform: uppercase; }

.reveal { opacity: 0; transform: translateY(42px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }

@keyframes gateDrift { from { transform: scale(1.08); } to { transform: scale(1.18) translateX(-1.5%); } }
@keyframes heroDrift { from { transform: scale(1.03); } to { transform: scale(1.11) translateX(-1%); } }
@keyframes heroDriftMobile { from { transform: scale(1.45); } to { transform: scale(1.52) translateX(-.7%); } }
@keyframes bounce { 50% { transform: translateY(6px); } }
@keyframes mapPulse { 0% { transform: scale(.65); opacity: 1; } 75%,100% { transform: scale(1.55); opacity: 0; } }

@media (max-width: 960px) {
  .site-header { grid-template-columns: 1fr auto; }
  .site-header nav { display: none; }
  .invitation { grid-template-columns: 50px 1fr; }
  .invitation-copy { grid-column: 2; padding-top: 0; }
  .date-bottom { display: grid; }
  .portrait-story { grid-template-columns: 1fr; grid-template-rows: auto; }
  .portrait-main { grid-column: 1; grid-row: auto; max-width: 72vw; }
  .portrait-copy { grid-column: 1; grid-row: auto; margin-left: 10vw; }
  .portrait-detail { grid-column: 1; grid-row: auto; width: min(46vw, 430px); }
  .venue { grid-template-columns: 1fr; }
  .venue-map { min-height: 58svh; }
  .dress-code, .mood-check { grid-template-columns: 1fr; }
  .palette { min-height: 330px; }
  .mood-result { grid-column: 1; margin: 0; }
  .day-intro { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .site-header { padding: 11px 14px; }
  .header-rsvp { padding: 10px 12px; font-size: 8px; }
  .hero { padding: 110px 20px 45px; }
  .hero-image { object-position: 60% center; transform-origin: 68% 42%; animation-name: heroDriftMobile; }
  .hero h2 { font-size: clamp(76px, 27vw, 116px); }
  .hero h2 span { margin-left: 8vw; }
  .hero-lede { padding-right: 25px; font-size: 20px; }
  .hero-meta { display: none; }
  .scroll-cue { right: 20px; bottom: 45px; }
  .scroll-cue span { display: none; }
  .invitation { grid-template-columns: 1fr; min-height: auto; gap: 42px; padding: 95px 20px; }
  .invitation > .section-number { order: -1; }
  .invitation-copy { grid-column: 1; }
  .invitation-title h2, .portrait-copy h2, .dress-copy h2, .mood-copy h2 { font-size: 64px; }
  .cinema-frame { height: 100svh; }
  .cinema-frame > img { object-position: 52% center; }
  .cinema-caption { left: 20px; bottom: 70px; }
  .cinema-caption p { font-size: 52px; }
  .date-section { min-height: 92svh; padding: 95px 18px 45px; }
  .date-display { gap: 4px; }
  .date-display span { font-size: 24vw; }
  .date-display i { font-size: 9vw; }
  .countdown { gap: 8px; }
  .countdown div { min-width: 0; }
  .countdown strong { font-size: 34px; }
  .countdown span { font-size: 7px; letter-spacing: .08em; }
  .portrait-story { min-height: auto; padding: 90px 20px 170px; }
  .portrait-main { max-width: 90%; }
  .portrait-copy { margin-left: 0; }
  .portrait-copy .section-number { margin-bottom: 32px; }
  .portrait-detail { right: auto; bottom: auto; width: min(70vw, 390px); }
  .venue-map { min-height: 55svh; }
  .venue-copy { padding: 90px 22px; }
  .venue-copy h2 { font-size: 65px; }
  .dress-code { min-height: auto; gap: 55px; padding: 95px 20px 110px; }
  .palette { min-height: 270px; }
  .palette-note { left: 20px; right: auto; bottom: 50px; }
  .day { padding: 95px 20px; }
  .day-intro { margin-bottom: 50px; }
  .day-intro h2 { font-size: 68px; }
  .schedule article { grid-template-columns: 78px 1fr; gap: 18px; }
  .schedule article > span { display: none; }
  .schedule time { font-size: 32px; }
  .schedule h3 { font-size: 28px; }
  .mood-check { gap: 55px; padding: 95px 20px; }
  .mood-options button { font-size: 33px; }
  .photo-ribbon { min-height: 90svh; padding-top: 75px; }
  .ribbon-card { width: 74vw; height: 82vw; }
  .ribbon-card--tall { width: 62vw; height: 95vw; }
  .ribbon-caption { right: 20px; bottom: 42px; }
  .finale { min-height: 100svh; }
  .finale > img { object-position: 47% center; }
  .finale-copy h2 { font-size: 82px; }
  .finale-date { display: none; }
  footer { flex-wrap: wrap; }
  footer span:nth-child(2) { display: none; }
  .rsvp-sheet { padding: 80px 22px 45px; }
}

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