:root {
  --ink: #101312;
  --forest: #1b2520;
  --paper: #f3efe7;
  --ivory: #fbf8f1;
  --gold: #cbb080;
  --muted: #716d65;
  --line: rgba(26, 31, 28, .16);
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Manrope", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; overflow-x: hidden; background: var(--paper); color: var(--ink); font-family: var(--sans); font-weight: 300; line-height: 1.7; }
body.locked { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { color: inherit; }
img { display: block; width: 100%; }

.grain { position: fixed; inset: 0; z-index: 80; opacity: .025; pointer-events: none; background-image: radial-gradient(rgba(20,20,18,.75) .45px, transparent .45px); background-size: 4px 4px; }
.eyebrow, .chapter { display: block; margin: 0 0 16px; font-size: .62rem; font-weight: 600; text-transform: uppercase; letter-spacing: .24em; }
.eyebrow { color: #806d4e; }
.chapter { color: rgba(16,19,18,.42); }
.section { position: relative; padding: clamp(95px,12vw,170px) max(7vw,22px); }
h1, h2, h3, p { margin-top: 0; }
h2 { margin-bottom: 0; font: 500 clamp(3.2rem,6.8vw,7rem)/.91 var(--serif); letter-spacing: -.045em; }

.invitation-gate { position: fixed; inset: 0; z-index: 100; overflow: hidden; background: #080b09; color: #fff; transition: opacity .9s ease, visibility .9s ease; }
.invitation-gate.opening { opacity: 0; visibility: hidden; transition-delay: .75s; }
.gate-image, .gate-veil { position: absolute; inset: 0; }
.gate-image img { height: 100%; object-fit: cover; object-position: center 35%; transform: scale(1.035); transition: transform 1.7s cubic-bezier(.2,.8,.2,1); }
.gate-veil { background: radial-gradient(circle at 50% 35%, rgba(0,0,0,.08), rgba(4,8,5,.75) 80%), linear-gradient(180deg,rgba(4,7,5,.18),rgba(4,7,5,.72)); }
.gate-content { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 100svh; padding: 28px 20px; text-align: center; text-shadow: 0 4px 30px rgba(0,0,0,.45); }
.gate-content > p, .gate-content > small { color: rgba(255,255,255,.7); font-size: .58rem; text-transform: uppercase; letter-spacing: .22em; }
.gate-monogram { margin: 5vh 0 2vh; font: 400 clamp(4rem,9vw,8rem)/.8 var(--serif); }
.gate-monogram span, .gate-content h2 em { color: var(--gold); font-weight: 400; }
.gate-rule { display: flex; align-items: center; gap: 16px; width: min(470px,80vw); }
.gate-rule i { flex: 1; height: 1px; background: rgba(255,255,255,.42); }
.gate-rule b { color: #f0e2ca; font-size: .58rem; letter-spacing: .25em; }
.gate-content h2 { margin: 24px 0 30px; font: 400 clamp(3.8rem,8vw,8rem)/.82 var(--serif); letter-spacing: -.05em; }
.gate-content h2 em { padding: 0 .14em; font-size: .65em; }
.gate-content button { display: inline-flex; align-items: center; gap: 26px; padding: 15px 0; border: 0; border-bottom: 1px solid rgba(255,255,255,.78); background: transparent; text-transform: uppercase; font-size: .62rem; letter-spacing: .18em; cursor: pointer; }
.gate-content button i { color: var(--gold); font-style: normal; }
.gate-content > small { margin-top: 30px; opacity: .7; }
.invitation-gate.opening .gate-image img { transform: scale(1.12); }

.hero { position: relative; min-height: 100svh; overflow: hidden; background: var(--ink); color: #fff; }
.hero-photo, .hero-shade { position: absolute; inset: 0; }
.hero-photo img { height: 100%; object-fit: cover; object-position: center 34%; animation: heroZoom 14s ease-out both; }
@keyframes heroZoom { from { transform: scale(1.07); } to { transform: scale(1.01); } }
.hero-shade { background: linear-gradient(180deg,rgba(5,7,6,.43),transparent 37%,rgba(5,7,6,.8)), linear-gradient(90deg,rgba(5,7,6,.24),transparent 50%,rgba(5,7,6,.2)); }
.hero-nav { position: absolute; z-index: 2; left: max(4vw,20px); right: max(4vw,20px); top: max(28px,env(safe-area-inset-top)); display: flex; justify-content: space-between; font-size: .56rem; text-transform: uppercase; letter-spacing: .23em; }
.hero-copy { position: absolute; z-index: 2; left: max(5vw,22px); right: max(5vw,22px); bottom: clamp(100px,13vh,150px); text-shadow: 0 5px 35px rgba(0,0,0,.38); }
.hero-copy > p { margin-bottom: 18px; color: #e9dcc3; font-size: .61rem; text-transform: uppercase; letter-spacing: .25em; }
.hero-copy h1 { display: flex; align-items: center; gap: .18em; margin: 0; font: 400 clamp(5.2rem,12vw,11rem)/.73 var(--serif); letter-spacing: -.065em; }
.hero-copy h1 em { color: var(--gold); font-size: .58em; font-weight: 400; }
.hero-date { display: flex; align-items: center; gap: 17px; width: min(500px,100%); margin-top: 35px; color: #f6eee2; font: italic 1.15rem var(--serif); }
.hero-date i { width: 52px; height: 1px; background: rgba(255,255,255,.5); }
.scroll-cue { position: absolute; z-index: 2; right: max(4vw,20px); bottom: 31px; display: flex; align-items: center; gap: 13px; font-size: .57rem; text-transform: uppercase; letter-spacing: .2em; }
.scroll-cue i { display: grid; place-items: center; width: 39px; height: 39px; border: 1px solid rgba(255,255,255,.5); border-radius: 50%; font-style: normal; }

.intro { max-width: 1150px; margin: auto; text-align: center; }
.intro h2 { max-width: 1050px; margin: auto; }
.intro-copy { max-width: 650px; margin: 38px auto 0; color: var(--muted); }
.signature { margin-top: 54px; font: italic 3.2rem var(--serif); }
.signature span { color: #9b8157; }

.editorial-split { display: grid; grid-template-columns: 1.05fr .95fr; min-height: 850px; background: var(--forest); color: #fff; }
.split-photo { min-height: 720px; overflow: hidden; }
.split-photo img { height: 100%; object-fit: cover; object-position: center 32%; }
.split-copy { display: flex; flex-direction: column; justify-content: center; padding: clamp(70px,9vw,145px); }
.split-copy .chapter { color: rgba(255,255,255,.4); }
.split-copy .eyebrow { color: var(--gold); }
.split-copy h2 { font-size: clamp(3.6rem,6.3vw,6.6rem); }
.split-copy > p:not(.eyebrow) { max-width: 570px; margin: 35px 0 0; color: rgba(255,255,255,.66); }
.split-copy blockquote { margin: 60px 0 0; padding-left: 25px; border-left: 1px solid var(--gold); color: #e5d7bd; font: italic 1.55rem var(--serif); }

.date-section { text-align: center; background: var(--ivory); }
.date-lockup { display: flex; justify-content: center; align-items: center; gap: 36px; margin: 45px 0 20px; }
.date-lockup > span { font: 400 clamp(9rem,20vw,18rem)/.64 var(--serif); letter-spacing: -.08em; }
.date-lockup div { display: grid; gap: 6px; padding-left: 34px; border-left: 1px solid var(--line); text-align: left; }
.date-lockup b { font: 400 clamp(2.6rem,5vw,5rem) var(--serif); }
.date-lockup small { color: #806d4e; font-size: .7rem; text-transform: uppercase; letter-spacing: .24em; }
.date-note { color: var(--muted); }
.line-button, .share-button { display: inline-flex; justify-content: space-between; align-items: center; gap: 35px; margin-top: 28px; padding: 14px 0; border: 0; border-bottom: 1px solid currentColor; background: transparent; cursor: pointer; }
.line-button span, .share-button span { color: var(--gold); }
.countdown { display: grid; grid-template-columns: repeat(4,1fr); max-width: 1020px; margin: 75px auto 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.countdown div { padding: 31px 10px; border-right: 1px solid var(--line); }
.countdown div:last-child { border: 0; }
.countdown strong, .countdown span { display: block; }
.countdown strong { font: 400 clamp(2.5rem,5vw,5rem) var(--serif); }
.countdown span { color: var(--muted); font-size: .57rem; text-transform: uppercase; letter-spacing: .2em; }

.gallery-section { background: #dcd5ca; }
.gallery-heading { max-width: 940px; margin: 0 0 70px; }
.gallery-grid { display: grid; grid-template-columns: 1.25fr .75fr; grid-template-rows: repeat(2, minmax(360px,42vw)); gap: 15px; max-width: 1450px; margin: auto; }
.gallery-grid figure { position: relative; margin: 0; overflow: hidden; background: #222; }
.gallery-grid .gallery-main { grid-row: 1 / span 2; }
.gallery-grid img { height: 100%; object-fit: cover; transition: transform .8s ease; }
.gallery-main img { object-position: center; }
.gallery-grid figure:nth-child(2) img { object-position: center 28%; }
.gallery-grid figure:hover img { transform: scale(1.025); }
.gallery-grid figcaption { position: absolute; left: 25px; bottom: 22px; padding: 7px 11px; background: rgba(10,12,11,.62); color: #fff; font-size: .57rem; text-transform: uppercase; letter-spacing: .18em; backdrop-filter: blur(10px); }

.details-section { background: var(--ink); color: #fff; }
.details-heading { max-width: 930px; }
.details-heading .chapter { color: rgba(255,255,255,.38); }
.details-heading .eyebrow { color: var(--gold); }
.details-heading > p:last-of-type { margin: 25px 0 0; color: rgba(255,255,255,.62); }
.solid-button { display: inline-flex; align-items: center; justify-content: space-between; gap: 30px; min-width: 250px; margin-top: 32px; padding: 16px 22px; border: 1px solid var(--gold); background: transparent; color: inherit; cursor: pointer; }
.solid-button span { color: var(--gold); }
.timeline { display: grid; grid-template-columns: repeat(4,1fr); margin-top: 90px; border-top: 1px solid rgba(255,255,255,.17); border-bottom: 1px solid rgba(255,255,255,.17); }
.timeline article { display: flex; gap: 18px; padding: 32px 18px; border-right: 1px solid rgba(255,255,255,.17); }
.timeline article:last-child { border: 0; }
.timeline article > span { color: var(--gold); font: 1.4rem var(--serif); }
.timeline small, .timeline strong { display: block; }
.timeline small { color: rgba(255,255,255,.48); font-size: .55rem; text-transform: uppercase; letter-spacing: .15em; }
.timeline strong { margin-top: 4px; font: 1.3rem var(--serif); }
.etiquette { display: grid; grid-template-columns: repeat(2,1fr); gap: 16px; margin-top: 55px; }
.etiquette article { padding: 35px; border: 1px solid rgba(255,255,255,.14); }
.etiquette small, .etiquette strong { display: block; }
.etiquette small { color: var(--gold); text-transform: uppercase; letter-spacing: .17em; }
.etiquette strong { margin: 13px 0; font: 2.15rem var(--serif); }
.etiquette p { margin: 0; color: rgba(255,255,255,.55); }

.rsvp-section { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(55px,10vw,150px); background: var(--paper); }
.rsvp-copy { align-self: start; position: sticky; top: 80px; }
.rsvp-copy p:last-child { max-width: 500px; margin-top: 28px; color: var(--muted); }
.rsvp-form { display: grid; gap: 24px; padding: clamp(30px,5vw,58px); border: 1px solid var(--line); background: var(--ivory); }
.rsvp-form label > span { display: block; margin-bottom: 8px; color: #625b53; font-size: .64rem; text-transform: uppercase; letter-spacing: .14em; }
.rsvp-form input, .rsvp-form select, .rsvp-form textarea { width: 100%; padding: 13px 0; border: 0; border-bottom: 1px solid rgba(16,19,18,.28); border-radius: 0; outline: none; background: transparent; color: var(--ink); }
.rsvp-form textarea { resize: vertical; }
.rsvp-form input:focus, .rsvp-form select:focus, .rsvp-form textarea:focus { border-color: #8c754e; }
.rsvp-form .solid-button { width: 100%; background: var(--ink); color: #fff; }
.form-note { color: var(--muted); text-align: center; }

.closing { min-height: 850px; display: grid; place-items: center; overflow: hidden; color: #fff; text-align: center; }
.closing-image, .closing-shade { position: absolute; inset: 0; }
.closing-image img { height: 100%; object-fit: cover; object-position: center; }
.closing-shade { background: rgba(6,9,7,.66); }
.closing-copy { position: relative; z-index: 2; max-width: 1050px; }
.closing-copy .eyebrow { color: var(--gold); }
.closing-copy .share-button { color: #fff; }
.closing-monogram { margin-top: 75px; font: 4.3rem var(--serif); }
.closing-monogram span { color: var(--gold); }
.momentia-card { display: flex; justify-content: space-between; align-items: center; gap: 35px; padding: 32px max(5vw,22px); background: #d5c5aa; color: #171b18; }
.momentia-card small, .momentia-card strong { display: block; }
.momentia-card small { margin-bottom: 4px; font-size: .56rem; text-transform: uppercase; letter-spacing: .17em; }
.momentia-card strong { font: 1.5rem var(--serif); }
.momentia-card a { display: inline-flex; gap: 20px; padding-bottom: 5px; border-bottom: 1px solid currentColor; }
footer { display: flex; justify-content: space-between; gap: 20px; padding: 34px max(5vw,22px); background: var(--ink); color: rgba(255,255,255,.48); font-size: .6rem; text-transform: uppercase; letter-spacing: .16em; }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s ease; }
.reveal.visible { opacity: 1; transform: none; }

@media (max-width: 900px) {
  .editorial-split, .rsvp-section { grid-template-columns: 1fr; }
  .split-photo { min-height: 760px; }
  .split-copy { padding: 90px 28px; }
  .rsvp-copy { position: static; }
  .timeline { grid-template-columns: repeat(2,1fr); }
  .timeline article:nth-child(2) { border-right: 0; }
  .timeline article:nth-child(-n+2) { border-bottom: 1px solid rgba(255,255,255,.17); }
}

@media (max-width: 620px) {
  .section { padding: 90px 18px; }
  .gate-content h2 { font-size: 3.6rem; }
  .gate-content > small { display: none; }
  .gate-image img { object-position: 52% center; }
  .hero-photo img { object-position: 52% center; }
  .hero-nav { font-size: .47rem; }
  .hero-nav span:last-child { display: none; }
  .hero-copy { left: 18px; right: 18px; bottom: 105px; text-align: center; }
  .hero-copy h1 { display: block; font-size: clamp(4.4rem,22vw,6.4rem); line-height: .64; }
  .hero-copy h1 span, .hero-copy h1 em { display: block; }
  .hero-copy h1 em { margin: .2em 0 .13em; font-size: .4em; }
  .hero-copy > p { font-size: .51rem; }
  .hero-date { justify-content: center; font-size: 1rem; }
  .hero-date i { width: 24px; }
  .scroll-cue { display: none; }
  h2 { font-size: clamp(3.1rem,14vw,4.5rem); }
  .intro-copy { font-size: .93rem; }
  .split-photo { min-height: 620px; }
  .date-lockup { gap: 18px; }
  .date-lockup > span { font-size: 8.5rem; }
  .date-lockup div { padding-left: 18px; }
  .date-lockup b { font-size: 2.6rem; }
  .date-lockup small { font-size: .54rem; }
  .countdown { margin-top: 55px; }
  .countdown div { padding: 23px 4px; }
  .countdown strong { font-size: 2.1rem; }
  .countdown span { font-size: .46rem; }
  .gallery-heading { margin-bottom: 45px; }
  .gallery-grid { display: flex; gap: 10px; margin: 0 -18px; padding: 0 18px 15px; overflow-x: auto; scroll-snap-type: x mandatory; }
  .gallery-grid figure, .gallery-grid .gallery-main { flex: 0 0 86vw; height: 600px; scroll-snap-align: center; }
  .gallery-grid .gallery-main img { object-position: 60% center; }
  .timeline { grid-template-columns: 1fr; }
  .timeline article { border-right: 0; border-bottom: 1px solid rgba(255,255,255,.17) !important; }
  .timeline article:last-child { border-bottom: 0 !important; }
  .etiquette { grid-template-columns: 1fr; }
  .rsvp-form { padding: 28px 20px; }
  .closing { min-height: 760px; }
  .closing-image img { object-position: 58% center; }
  .momentia-card { align-items: flex-start; flex-direction: column; }
  footer { flex-direction: column; text-align: center; }
}

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