:root {
  color-scheme: light only;
  --black: #0c0c0c;
  --near-black: #171717;
  --paper: #f2f1ed;
  --white: #fff;
  --gray: #a6a6a2;
  --soft-gray: #deded9;
  --line: rgba(12,12,12,.16);
  --white-line: rgba(255,255,255,.2);
  --serif: "Italiana", Didot, "Times New Roman", serif;
  --sans: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --shadow: 0 28px 75px rgba(0,0,0,.14);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; overflow-x: hidden; background: var(--paper); color: var(--black); font-family: var(--sans); font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
body.cover-locked { overflow: hidden; }
button,input,select,textarea { font: inherit; }
button,a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
svg { fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.7; }
::selection { background: var(--black); color: var(--white); }

.section { position: relative; padding-block: clamp(105px,11vw,170px); }
.section-shell { width: min(100% - 64px,1220px); margin-inline: auto; }
section[id] { scroll-margin-top: 96px; }
h1,h2,h3,p { margin-top: 0; }
h1,h2,h3 { text-wrap: balance; }
h2 { margin-bottom: 0; font-family: var(--serif); font-size: clamp(59px,7vw,105px); font-weight: 400; letter-spacing: -.055em; line-height: .86; }
h2 i { font-weight: 400; }
.kicker { display: inline-flex; align-items: center; gap: 12px; font-size: 9px; font-weight: 700; letter-spacing: .2em; line-height: 1.2; text-transform: uppercase; }
.kicker::before { width: 32px; height: 1px; background: currentColor; content: ""; }
.kicker.inverted { color: rgba(255,255,255,.7); }
.pill-button { min-height: 56px; border: 1px solid var(--black); border-radius: 999px; background: var(--black); color: var(--white); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 24px; padding: 0 28px; font-size: 12px; font-weight: 700; transition: color .35s,background .35s,transform .35s cubic-bezier(.2,.8,.2,1),box-shadow .35s; }
.pill-button svg { width: 18px; }
.pill-button:hover { background: transparent; color: var(--black); box-shadow: 0 15px 30px rgba(0,0,0,.08); transform: translateY(-3px); }
.pill-button:active { transform: scale(.98); }

/* Opening */
.opening { position: fixed; z-index: 1000; inset: 0; min-height: 100dvh; display: grid; grid-template-columns: 1fr 1fr; background: var(--paper); opacity: 1; visibility: visible; transition: opacity .85s,visibility .85s,transform 1s cubic-bezier(.2,.8,.2,1); }
.opening.is-open { opacity: 0; visibility: hidden; pointer-events: none; transform: scale(1.025); }
.opening-visual { position: relative; overflow: hidden; background: var(--black); }
.opening-visual > img { position: absolute; z-index: 2; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 60% center; filter: invert(1) grayscale(1) contrast(1.2); opacity: .84; mix-blend-mode: screen; animation: image-arrive 1.4s cubic-bezier(.2,.8,.2,1) both; }
.opening-grid { position: absolute; z-index: 1; inset: 0; background-image: linear-gradient(rgba(255,255,255,.075) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.075) 1px,transparent 1px); background-size: 72px 72px; mask-image: linear-gradient(to bottom,#000,transparent 85%); }
.opening-index,.opening-mark { position: absolute; z-index: 5; color: rgba(255,255,255,.76); font-size: 9px; font-weight: 700; letter-spacing: .17em; text-transform: uppercase; }
.opening-index { top: 35px; left: 38px; }
.opening-mark { right: 38px; bottom: 34px; font-family: var(--serif); font-size: 18px; }
.opening-orbit { position: absolute; z-index: 3; border: 1px solid rgba(255,255,255,.22); border-radius: 50%; animation: orbit 11s ease-in-out infinite; }
.orbit-one { width: 470px; height: 470px; top: -230px; right: -90px; }
.orbit-two { width: 280px; height: 280px; bottom: 8%; left: -150px; animation-delay: -4s; }
.opening-copy { display: flex; align-items: flex-start; justify-content: center; flex-direction: column; padding: clamp(55px,8vw,130px); }
.opening-copy h1 { margin: 30px 0 25px; font-family: var(--serif); font-size: clamp(82px,9.3vw,142px); font-weight: 400; letter-spacing: -.065em; line-height: .67; }
.opening-copy h1 span { display: block; }
.opening-copy h1 i { position: absolute; margin: 15px 0 0 .16em; font-size: .38em; font-weight: 400; transform: translateX(-50%); }
.opening-copy h1 span:last-child { margin-left: .42em; }
.opening-date { display: flex; align-items: center; gap: 20px; margin-bottom: 32px; font-size: 11px; font-weight: 700; letter-spacing: .11em; }
.opening-date b { font-weight: 500; }
.guest-ticket { position: relative; width: min(100%,410px); margin-bottom: 25px; border: 1px solid var(--line); background: rgba(255,255,255,.45); padding: 18px 20px; }
.guest-ticket::after { position: absolute; top: -1px; right: 38px; width: 1px; height: calc(100% + 2px); background: var(--line); content: ""; }
.guest-ticket small { display: block; color: #676762; font-size: 8px; letter-spacing: .12em; text-transform: uppercase; }
.guest-ticket strong { display: block; max-width: calc(100% - 50px); margin-top: 4px; overflow: hidden; font-family: var(--serif); font-size: 27px; font-weight: 400; text-overflow: ellipsis; white-space: nowrap; }
.guest-ticket > span { position: absolute; top: 50%; right: -13px; font-size: 7px; letter-spacing: .15em; transform: rotate(90deg) translateY(-50%); }
.opening-note { margin: 14px 0 0 7px; color: #777771; font-size: 8px; }

/* Interface */
.interface-control { opacity: 0; pointer-events: none; transition: opacity .55s,transform .55s; }
body.invitation-open .interface-control { opacity: 1; pointer-events: auto; }
.topbar { position: fixed; z-index: 100; top: 18px; left: 50%; width: min(calc(100% - 36px),1180px); min-height: 64px; border: 1px solid rgba(255,255,255,.62); border-radius: 18px; background: rgba(242,241,237,.78); box-shadow: 0 14px 45px rgba(0,0,0,.1); backdrop-filter: blur(22px) saturate(.8); -webkit-backdrop-filter: blur(22px) saturate(.8); display: flex; align-items: center; justify-content: space-between; padding: 0 13px 0 22px; transform: translate(-50%,-14px); }
body.invitation-open .topbar { transform: translateX(-50%); }
.brand-mark { font-family: var(--serif); font-size: 22px; letter-spacing: -.04em; }
.brand-mark span { margin-inline: 2px; font-family: var(--sans); font-size: 11px; }
.topbar nav { display: flex; align-items: center; gap: 31px; }
.topbar nav a { color: #696965; font-size: 10px; font-weight: 700; transition: color .25s; }
.topbar nav a:hover { color: var(--black); }
.top-actions { display: flex; gap: 6px; }
.round-button { width: 40px; height: 40px; border: 1px solid rgba(0,0,0,.07); border-radius: 50%; background: rgba(255,255,255,.8); color: var(--black); cursor: pointer; display: grid; place-items: center; transition: transform .25s,background .25s; }
.round-button:hover { background: var(--white); transform: translateY(-2px); }
.round-button svg { width: 18px; }
.round-button .sound-off,.round-button.is-muted .sound-on { display: none; }
.round-button.is-muted .sound-off { display: block; }
.round-button:not(.is-muted) { animation: music-ring 2.6s ease-in-out infinite; }
.bottom-dock { display: none; }

/* Hero */
.hero { position: relative; overflow: hidden; min-height: 100svh; display: grid; grid-template-columns: .87fr 1.13fr; align-items: center; gap: clamp(50px,7vw,105px); padding: clamp(130px,14vh,175px) max(32px,calc((100vw - 1220px)/2)) 90px; background: var(--paper); }
.grain { position: absolute; inset: 0; opacity: .22; 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='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.13'/%3E%3C/svg%3E"); }
.hero::before { position: absolute; top: 0; right: 12%; width: 1px; height: 100%; background: var(--line); content: ""; }
.hero-copy { position: relative; z-index: 2; max-width: 570px; }
.hero-copy h1 { margin: 45px 0 36px; font-family: var(--serif); font-size: clamp(90px,10vw,151px); font-weight: 400; letter-spacing: -.072em; line-height: .66; }
.hero-copy h1 i { font-size: .48em; font-weight: 400; }
.hero-details { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-bottom: 34px; padding-top: 22px; border-top: 1px solid var(--line); }
.hero-details p { margin: 0; }
.hero-details small { display: block; color: #73736e; font-size: 8px; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; }
.hero-details strong { display: block; margin-top: 4px; font-size: 11px; font-weight: 600; }
.hero-gallery { --parallax-x: 0px; --parallax-y: 0px; position: relative; z-index: 2; min-height: min(70vh,720px); justify-self: end; width: min(100%,660px); }
.hero-photo { position: absolute; overflow: hidden; background: #d8d8d4; box-shadow: var(--shadow); transition: transform .55s cubic-bezier(.2,.8,.2,1); }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.04); transition: transform 1s cubic-bezier(.2,.8,.2,1),filter .6s; }
.hero-photo:hover img { transform: scale(1.035); filter: grayscale(.25); }
.photo-woman { top: 0; left: 0; width: 66%; height: 79%; transform: translate3d(var(--parallax-x),var(--parallax-y),0); }
.photo-woman img { object-position: center 18%; }
.photo-man { right: 0; bottom: 0; width: 52%; height: 52%; border: 12px solid var(--paper); transform: translate3d(calc(-1 * var(--parallax-x)),calc(-1 * var(--parallax-y)),0); }
.hero-stamp { position: absolute; z-index: 5; top: 9%; right: 1%; width: 112px; height: 112px; border: 1px solid var(--black); border-radius: 50%; background: rgba(242,241,237,.86); backdrop-filter: blur(12px); display: grid; place-content: center; text-align: center; animation: stamp-float 5.5s ease-in-out infinite; }
.hero-stamp small,.hero-stamp span { font-size: 7px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.hero-stamp strong { font-family: var(--serif); font-size: 44px; font-weight: 400; line-height: .8; }
.hero-caption { position: absolute; bottom: 6%; left: 4%; font-family: var(--serif); font-size: 22px; font-style: italic; line-height: .95; transform: rotate(-90deg); transform-origin: left top; }
.scroll-indicator { position: absolute; z-index: 3; bottom: 26px; left: 50%; display: flex; align-items: center; gap: 10px; font-size: 8px; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; transform: translateX(-50%); }
.scroll-indicator i { position: relative; width: 34px; height: 1px; overflow: hidden; background: var(--line); }
.scroll-indicator i::after { position: absolute; inset: 0; background: var(--black); content: ""; animation: scroll-line 2s infinite; }

.marquee { overflow: hidden; border-block: 1px solid var(--black); background: var(--black); color: var(--white); }
.marquee > div { width: max-content; display: flex; align-items: center; gap: 32px; padding-block: 16px; animation: ticker 28s linear infinite; }
.marquee span { font-family: var(--serif); font-size: 23px; }
.marquee i { font-size: 9px; font-style: normal; }

/* Intro */
.intro-section { overflow: hidden; background: var(--white); }
.intro-section::after { position: absolute; right: -190px; bottom: -270px; width: 560px; height: 560px; border: 1px solid var(--line); border-radius: 50%; content: ""; }
.intro-layout { display: grid; grid-template-columns: .55fr 1.45fr; gap: clamp(70px,11vw,160px); }
.intro-number { display: flex; align-items: flex-start; justify-content: space-between; flex-direction: column; min-height: 350px; border-right: 1px solid var(--line); padding-right: 45px; }
.intro-number span { font-family: var(--serif); font-size: 21px; }
.intro-number strong { color: #cecec9; font-family: var(--serif); font-size: 116px; font-weight: 400; line-height: .7; }
.intro-copy { max-width: 820px; }
.intro-copy h2 { margin-top: 34px; }
.intro-copy h2 i { color: #8c8c87; }
.intro-copy p { max-width: 700px; margin: 38px 0 0 auto; color: #666661; font-size: 14px; }

/* Couple */
.couple-section { overflow: hidden; background: var(--black); color: var(--white); }
.couple-section::before { position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.035) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.035) 1px,transparent 1px); background-size: 86px 86px; content: ""; mask-image: radial-gradient(circle at 50% 55%,#000,transparent 80%); }
.section-heading { position: relative; display: grid; grid-template-columns: 1fr auto; align-items: end; }
.section-heading .kicker { grid-column: 1/-1; margin-bottom: 28px; }
.section-heading h2 i { color: #9c9c97; }
.section-index { color: #858580; font-size: 8px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; }
.couple-grid { position: relative; display: grid; grid-template-columns: 1fr 100px 1fr; align-items: center; gap: 25px; margin-top: 80px; }
.person-card { overflow: hidden; border: 1px solid var(--white-line); }
.person-light { background: var(--paper); color: var(--black); }
.person-dark { background: var(--near-black); color: var(--white); }
.person-image { position: relative; overflow: hidden; aspect-ratio: 1.05; }
.person-image img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.08); transition: filter .7s,transform .9s cubic-bezier(.2,.8,.2,1); }
.person-light .person-image img { object-position: center 20%; }
.person-card:hover .person-image img { filter: grayscale(.2); transform: scale(1.035); }
.person-image > span { position: absolute; top: 19px; right: 20px; width: 48px; height: 48px; border: 1px solid rgba(255,255,255,.65); border-radius: 50%; background: rgba(0,0,0,.26); color: #fff; display: grid; place-items: center; font-family: var(--serif); font-size: 17px; font-style: italic; backdrop-filter: blur(8px); }
.person-info { min-height: 290px; display: flex; align-items: flex-start; flex-direction: column; padding: 35px; }
.person-info small { color: #777772; font-size: 8px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; }
.person-dark .person-info small { color: #94948e; }
.person-info h3 { margin: 9px 0 20px; font-family: var(--serif); font-size: clamp(48px,5vw,67px); font-weight: 400; letter-spacing: -.05em; line-height: .9; }
.person-info p { color: #6d6d68; font-size: 11px; }
.person-dark .person-info p { color: #a0a09b; }
.person-info a { margin-top: auto; border-bottom: 1px solid currentColor; padding-bottom: 4px; font-size: 10px; font-weight: 700; }
.person-info a span { display: inline-block; margin-left: 8px; transition: transform .3s; }
.person-info a:hover span { transform: translate(3px,-3px); }
.couple-symbol { display: grid; width: 74px; height: 74px; margin-inline: auto; border: 1px solid var(--white-line); border-radius: 50%; place-items: center; font-family: var(--serif); font-size: 39px; font-style: italic; animation: symbol-turn 12s linear infinite; }

/* Quote */
.quote-section { position: relative; overflow: hidden; min-height: 660px; background: var(--paper); display: grid; place-items: center; padding: 100px 32px; }
.quote-branch { position: absolute; inset: 0; background: url('img/bg-cover.jpg') right center/auto 130% no-repeat; filter: grayscale(1) contrast(1.3); opacity: .3; mix-blend-mode: multiply; animation: branch-drift 12s ease-in-out infinite; }
.quote-section::after { position: absolute; width: 440px; height: 440px; border: 1px solid var(--line); border-radius: 50%; content: ""; animation: breathe 8s ease-in-out infinite; }
.quote-copy { position: relative; z-index: 2; max-width: 980px; text-align: center; }
.quote-copy blockquote { margin: 36px 0 0; font-family: var(--serif); font-size: clamp(55px,8vw,113px); line-height: .88; letter-spacing: -.055em; }
.quote-counter { position: absolute; right: 5%; bottom: 5%; color: #cacac5; font-family: var(--serif); font-size: 100px; }

/* Event */
.event-section { overflow: hidden; background: var(--black); color: var(--white); }
.event-section::before { position: absolute; inset: 0; background: radial-gradient(circle at 80% 14%,rgba(255,255,255,.08),transparent 28%); content: ""; }
.event-heading { position: relative; display: grid; grid-template-columns: 1fr 390px; align-items: end; gap: 70px; }
.event-heading h2 { margin-top: 30px; }
.event-heading h2 i { color: #999994; }
.event-heading > p { margin: 0; color: #9a9a95; font-size: 13px; }
.countdown { position: relative; display: grid; grid-template-columns: repeat(4,1fr); margin: 82px 0; border-block: 1px solid var(--white-line); }
.countdown > div { position: relative; display: flex; align-items: center; justify-content: center; flex-direction: column; min-height: 155px; border-right: 1px solid var(--white-line); }
.countdown > div:last-child { border-right: 0; }
.countdown strong { font-family: var(--serif); font-size: clamp(58px,7vw,92px); font-weight: 400; line-height: .75; }
.countdown strong.tick { animation: count-pop .36s cubic-bezier(.2,.8,.2,1); }
.countdown span { margin-top: 14px; color: #81817c; font-size: 8px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; }
.event-grid { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.event-card { min-height: 570px; border: 1px solid var(--white-line); background: var(--near-black); display: flex; align-items: flex-start; flex-direction: column; padding: clamp(34px,5vw,58px); }
.event-card.inverse { background: var(--paper); color: var(--black); }
.event-label { width: 100%; display: flex; align-items: center; justify-content: space-between; }
.event-label span { color: #666661; font-family: var(--serif); font-size: 41px; }
.event-label small { font-size: 8px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; }
.event-card h3 { margin: 70px 0 13px; font-family: var(--serif); font-size: clamp(53px,5.6vw,75px); font-weight: 400; letter-spacing: -.045em; line-height: .88; }
.event-time { color: #989893; font-size: 11px; }
.event-place { width: 100%; margin-top: auto; padding-top: 24px; border-top: 1px solid var(--white-line); }
.inverse .event-place { border-color: var(--line); }
.event-place small { display: block; color: #777772; font-size: 8px; letter-spacing: .14em; text-transform: uppercase; }
.event-place strong { display: block; margin-top: 7px; font-size: 12px; }
.event-place span { display: block; color: #888883; font-size: 10px; }
.event-links { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 26px; }
.event-links a { min-height: 44px; border: 1px solid var(--white-line); border-radius: 99px; display: inline-flex; align-items: center; padding: 0 18px; font-size: 10px; font-weight: 700; transition: background .3s,color .3s,transform .3s; }
.inverse .event-links a { border-color: var(--line); }
.event-links a:hover { background: var(--white); color: var(--black); transform: translateY(-2px); }
.inverse .event-links a:hover { background: var(--black); color: var(--white); }
.live-card { position: relative; display: grid; grid-template-columns: 120px 1fr auto; align-items: center; gap: 35px; margin-top: 20px; border: 1px solid var(--white-line); padding: 35px 42px; }
.live-dot { width: 80px; height: 80px; border: 1px solid var(--white-line); border-radius: 50%; display: grid; place-content: center; text-align: center; }
.live-dot i { width: 7px; height: 7px; margin: 0 auto 5px; border-radius: 50%; background: var(--white); box-shadow: 0 0 0 7px rgba(255,255,255,.08); animation: live-pulse 1.7s infinite; }
.live-dot span { font-size: 8px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; }
.live-card small { color: #8c8c87; font-size: 8px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.live-card h3 { margin: 3px 0; font-family: var(--serif); font-size: 34px; font-weight: 400; }
.live-card p { margin: 0; color: #8f8f8a; font-size: 11px; }
.live-card > a { min-height: 45px; border-radius: 99px; background: var(--white); color: var(--black); display: inline-flex; align-items: center; gap: 16px; padding: 0 20px; font-size: 10px; font-weight: 700; }

/* Gift */
.gift-section { overflow: hidden; background: var(--white); }
.gift-section::before { position: absolute; left: -210px; top: -260px; width: 550px; height: 550px; border: 1px solid var(--line); border-radius: 50%; content: ""; }
.gift-layout { position: relative; display: grid; grid-template-columns: .9fr 1.1fr; align-items: center; gap: clamp(70px,9vw,130px); }
.gift-heading h2 { margin-top: 31px; font-size: clamp(58px,6vw,84px); }
.gift-heading h2 i { color: #91918c; }
.gift-heading p { max-width: 510px; margin: 32px 0 0; color: #6c6c67; font-size: 13px; }
.gift-stack { position: relative; min-height: 500px; }
.bank-card { position: absolute; width: min(100%,460px); min-height: 290px; border: 1px solid var(--black); box-shadow: var(--shadow); padding: 30px; transition: transform .55s cubic-bezier(.2,.8,.2,1); }
.bank-dark { z-index: 2; top: 0; left: 0; background: var(--black); color: var(--white); transform: rotate(-3deg); }
.bank-light { right: 0; bottom: 0; background: var(--paper); transform: rotate(3deg); }
.bank-card:hover { z-index: 3; transform: rotate(0) translateY(-6px); }
.bank-card > div { display: flex; align-items: center; justify-content: space-between; }
.bank-card > div span { font-family: var(--serif); font-size: 27px; }
.bank-card > div small { color: #858580; font-size: 8px; letter-spacing: .15em; text-transform: uppercase; }
.card-chip { display: block; width: 41px; height: 29px; margin: 37px 0 23px; border: 1px solid currentColor; border-radius: 5px; opacity: .55; }
.bank-card > strong { display: block; font-family: var(--serif); font-size: clamp(30px,3.4vw,41px); font-weight: 400; letter-spacing: .07em; }
.bank-card > p { color: #858580; font-size: 10px; }
.bank-card button { border: 0; background: transparent; color: inherit; cursor: pointer; padding: 0; font-size: 10px; font-weight: 700; }
.bank-card button span { display: inline-block; margin-left: 8px; transition: transform .3s; }
.bank-card button:hover span { transform: translate(3px,-3px); }
.is-copied { color: #777 !important; }

/* RSVP */
.rsvp-section { overflow: hidden; background: var(--paper); }
.rsvp-layout { display: grid; grid-template-columns: .8fr 1.2fr; align-items: start; gap: clamp(65px,9vw,130px); }
.rsvp-copy { position: sticky; top: 125px; }
.rsvp-copy .kicker { margin-top: 30px; color: #6f6f6a; }
.rsvp-copy h2 { margin-top: 29px; font-size: clamp(60px,6vw,86px); }
.rsvp-copy h2 i { color: #8e8e89; }
.rsvp-copy p { max-width: 440px; margin-top: 30px; color: #696964; font-size: 13px; }
.rsvp-card { border: 1px solid var(--black); background: var(--white); box-shadow: var(--shadow); padding: clamp(28px,4.5vw,52px); }
.rsvp-card form { display: grid; gap: 20px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.field { display: grid; gap: 8px; }
.field label { font-size: 8px; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; }
.field input,.field select,.field textarea { width: 100%; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; outline: 0; background: transparent; color: var(--black); padding: 13px 2px; font-size: 12px; transition: border-color .25s; }
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus,.field select:focus,.field textarea:focus { border-color: var(--black); }
.submit-button { justify-self: start; margin-top: 4px; }
.rsvp-note { margin-top: 30px; padding-top: 25px; border-top: 1px solid var(--line); }
.rsvp-note small { font-size: 8px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.rsvp-note p { margin: 10px 0 0; font-family: var(--serif); font-size: 23px; }
.invitalab-rsvp-status { border-radius: 0 !important; }

/* Closing */
.closing-section { min-height: 820px; display: grid; grid-template-columns: 1.05fr .95fr; background: var(--black); color: var(--white); }
.closing-images { position: relative; overflow: hidden; min-height: 820px; }
.closing-images::after { position: absolute; inset: 0; background: linear-gradient(90deg,transparent 65%,var(--black)); content: ""; }
.closing-images img { position: absolute; width: 58%; height: 76%; object-fit: cover; filter: grayscale(1) contrast(1.08); }
.closing-images img:first-child { top: 7%; left: 6%; object-position: center 18%; }
.closing-images img:last-child { right: 3%; bottom: 4%; border: 12px solid var(--black); }
.closing-copy { position: relative; z-index: 2; display: flex; align-items: flex-start; justify-content: center; flex-direction: column; padding: clamp(55px,8vw,120px); }
.closing-copy h2 { margin: 32px 0; }
.closing-copy h2 i { color: #90908b; }
.closing-copy p { max-width: 470px; color: #92928d; font-size: 13px; }
.closing-copy > strong { margin-top: 30px; font-family: var(--serif); font-size: 34px; font-weight: 400; }
.closing-copy > strong span { color: #8c8c87; }
.closing-copy > small { margin-top: 75px; color: #686863; font-size: 8px; letter-spacing: .1em; }

/* Motion */
.reveal { opacity: 0; transform: translateY(32px); transition: opacity .9s cubic-bezier(.2,.8,.2,1),transform .9s cubic-bezier(.2,.8,.2,1); }
.reveal.reveal-delay { transition-delay: .14s; }
.reveal.is-visible { opacity: 1; transform: none; }
@keyframes image-arrive { from { opacity: 0; transform: scale(1.08); } to { opacity: .84; transform: scale(1); } }
@keyframes orbit { 0%,100% { transform: translate3d(0,0,0); } 50% { transform: translate3d(22px,18px,0); } }
@keyframes music-ring { 0%,100% { box-shadow: 0 0 0 0 rgba(0,0,0,0); } 50% { box-shadow: 0 0 0 7px rgba(0,0,0,.07); } }
@keyframes stamp-float { 0%,100% { transform: translateY(0) rotate(-3deg); } 50% { transform: translateY(-12px) rotate(2deg); } }
@keyframes scroll-line { from { transform: translateX(-100%); } to { transform: translateX(100%); } }
@keyframes ticker { to { transform: translateX(-50%); } }
@keyframes symbol-turn { to { transform: rotate(360deg); } }
@keyframes branch-drift { 0%,100% { transform: translateX(0) scale(1.02); } 50% { transform: translateX(22px) scale(1.06); } }
@keyframes breathe { 0%,100% { transform: scale(.94); opacity: .6; } 50% { transform: scale(1.06); opacity: 1; } }
@keyframes live-pulse { 0%,100% { box-shadow: 0 0 0 0 rgba(255,255,255,.12); } 50% { box-shadow: 0 0 0 12px rgba(255,255,255,0); } }
@keyframes count-pop { 0% { opacity: .25; transform: translateY(9px); } 100% { opacity: 1; transform: none; } }

@media (max-width: 1040px) {
  .opening-copy { padding: 55px; }
  .hero { grid-template-columns: .9fr 1.1fr; gap: 45px; }
  .hero-copy h1 { font-size: clamp(80px,10vw,115px); }
  .couple-grid { grid-template-columns: 1fr 70px 1fr; gap: 18px; }
  .couple-symbol { width: 58px; height: 58px; }
  .gift-layout,.rsvp-layout { gap: 65px; }
  .live-card { grid-template-columns: 90px 1fr; }
  .live-card > a { grid-column: 2; justify-self: start; }
}

@media (max-width: 820px) {
  .section-shell { width: min(100% - 40px,720px); }
  .section { padding-block: 100px; }
  section[id] { scroll-margin-top: 84px; }
  .opening { grid-template-columns: 1fr; grid-template-rows: 43dvh 57dvh; overflow-y: auto; }
  .opening-visual { min-height: 300px; }
  .opening-visual > img { object-position: 68% 32%; }
  .opening-copy { align-items: center; justify-content: center; padding: 30px 24px 42px; text-align: center; }
  .opening-copy h1 { margin: 18px 0 14px; font-size: clamp(70px,16vw,100px); line-height: .76; }
  .opening-copy h1 i { display: none; }
  .opening-copy h1 span:last-child { margin: 4px 0 0; }
  .opening-date { margin-bottom: 15px; }
  .guest-ticket { margin-bottom: 16px; text-align: left; }
  .opening-note { margin-left: 0; }
  .topbar { top: 12px; min-height: 58px; }
  .topbar nav { display: none; }
  .bottom-dock { position: fixed; z-index: 100; bottom: max(12px,env(safe-area-inset-bottom)); left: 50%; width: min(calc(100% - 24px),560px); min-height: 64px; border: 1px solid rgba(255,255,255,.68); border-radius: 20px; background: rgba(242,241,237,.86); box-shadow: 0 15px 45px rgba(0,0,0,.15); backdrop-filter: blur(22px) saturate(.75); -webkit-backdrop-filter: blur(22px) saturate(.75); display: grid; grid-template-columns: repeat(5,1fr); padding: 6px; transform: translate(-50%,15px); }
  body.invitation-open .bottom-dock { transform: translateX(-50%); }
  .dock-item { min-height: 52px; border-radius: 14px; color: #777772; display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 2px; font-size: 7px; font-weight: 700; transition: background .25s,color .25s; }
  .dock-item svg { width: 18px; height: 18px; }
  .dock-item.active { background: var(--black); color: var(--white); }
  .hero { min-height: auto; grid-template-columns: 1fr; gap: 60px; padding: 125px 40px 115px; text-align: center; }
  .hero-copy { justify-self: center; }
  .hero-copy h1 { font-size: clamp(91px,18vw,128px); }
  .hero-details { text-align: left; }
  .hero-gallery { min-height: 650px; width: min(90%,580px); justify-self: center; }
  .scroll-indicator { display: none; }
  .intro-layout { grid-template-columns: 1fr; gap: 55px; }
  .intro-number { min-height: auto; border-right: 0; border-bottom: 1px solid var(--line); padding: 0 0 35px; flex-direction: row; align-items: end; }
  .intro-number strong { font-size: 85px; }
  .intro-copy p { margin-left: 0; }
  .couple-grid { grid-template-columns: 1fr; max-width: 590px; margin-inline: auto; }
  .couple-symbol { margin-block: -4px; }
  .person-image { aspect-ratio: 1.08; }
  .quote-section { min-height: 570px; }
  .event-heading { grid-template-columns: 1fr; gap: 30px; }
  .event-grid { grid-template-columns: 1fr; }
  .event-card { min-height: 520px; }
  .gift-layout,.rsvp-layout { grid-template-columns: 1fr; }
  .gift-stack { min-height: 530px; max-width: 600px; width: 100%; margin-inline: auto; }
  .rsvp-copy { position: static; }
  .closing-section { grid-template-columns: 1fr; }
  .closing-images { min-height: 620px; }
  .closing-images::after { background: linear-gradient(0deg,var(--black),transparent 38%); }
  .closing-copy { min-height: 600px; padding-bottom: 120px; }
}

@media (max-width: 560px) {
  .section-shell { width: min(100% - 32px,520px); }
  .section { padding-block: 84px; }
  h2 { font-size: clamp(53px,15vw,68px); }
  .kicker { font-size: 8px; }
  .opening { grid-template-rows: 40dvh 60dvh; }
  .opening-visual { min-height: 260px; }
  .opening-index { top: 20px; left: 22px; }
  .opening-mark { right: 22px; bottom: 20px; }
  .opening-copy { padding: 20px 20px 34px; }
  .opening-copy h1 { font-size: clamp(62px,19vw,80px); }
  .opening-date { font-size: 9px; }
  .guest-ticket { padding: 13px 16px; }
  .guest-ticket strong { font-size: 22px; }
  .opening-copy .pill-button { width: 100%; }
  .topbar { width: calc(100% - 24px); padding-left: 17px; }
  .hero { padding: 110px 20px 105px; }
  .hero-copy h1 { margin: 36px 0 30px; font-size: clamp(70px,21.5vw,90px); }
  .hero-copy h1 br { display: none; }
  .hero-copy h1 i { display: block; margin-block: .12em; font-size: .4em; }
  .hero-copy .pill-button { width: 100%; }
  .hero-details { gap: 12px; }
  .hero-gallery { min-height: 480px; width: 92%; }
  .photo-woman { width: 72%; height: 78%; }
  .photo-man { width: 58%; height: 52%; border-width: 8px; }
  .hero-stamp { width: 86px; height: 86px; right: -4%; }
  .hero-stamp strong { font-size: 34px; }
  .hero-caption { display: none; }
  .marquee > div { gap: 24px; padding-block: 13px; }
  .marquee span { font-size: 19px; }
  .intro-number strong { font-size: 68px; }
  .intro-copy p { font-size: 12px; }
  .section-heading { grid-template-columns: 1fr; }
  .section-heading .section-index { margin-top: 25px; }
  .couple-grid { margin-top: 55px; }
  .person-info { min-height: 255px; padding: 29px 23px; }
  .person-info h3 { font-size: 50px; }
  .quote-section { min-height: 500px; padding-inline: 20px; }
  .quote-counter { font-size: 72px; }
  .countdown { margin: 58px 0; }
  .countdown > div { min-height: 108px; }
  .countdown strong { font-size: 45px; }
  .countdown span { font-size: 7px; }
  .event-card { min-height: 455px; padding: 31px 24px; }
  .event-card h3 { margin-top: 50px; font-size: 49px; }
  .event-links { flex-direction: column; width: 100%; }
  .event-links a { justify-content: space-between; width: 100%; }
  .live-card { grid-template-columns: 1fr; gap: 24px; padding: 29px 23px; text-align: center; }
  .live-dot { justify-self: center; }
  .live-card > a { grid-column: 1; justify-self: stretch; justify-content: center; }
  .gift-stack { min-height: 510px; }
  .bank-card { min-height: 270px; padding: 25px 21px; }
  .bank-card > strong { font-size: 29px; }
  .bank-dark { transform: rotate(-1.5deg); }
  .bank-light { transform: rotate(1.5deg); }
  .form-grid { grid-template-columns: 1fr; }
  .rsvp-card { padding: 28px 19px; }
  .submit-button { width: 100%; }
  .closing-images { min-height: 480px; }
  .closing-copy { min-height: 550px; padding: 70px 24px 120px; }
  .closing-copy > small { margin-top: 55px; }
}

@media (max-width: 360px) {
  .opening-copy h1 { font-size: 59px; }
  .opening-note { display: none; }
  .hero-copy h1 { font-size: 70px; }
  .hero-details strong { font-size: 9px; }
  .bottom-dock { width: calc(100% - 16px); }
  .dock-item { font-size: 6px; }
  .countdown strong { font-size: 38px; }
  .bank-card > strong { font-size: 25px; }
}

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

@media (prefers-color-scheme: dark) {
  body,.opening,.hero,.intro-section,.quote-section,.gift-section,.rsvp-section { background-color: var(--paper) !important; color: var(--black) !important; }
  input,select,textarea { color: var(--black) !important; }
}

:focus-visible { outline: 3px solid #246cff; outline-offset: 4px; }
