*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; background: #f2eee4; }
body { width: 100%; min-width: 0; max-width: 100%; margin: 0; overflow-x: hidden; font-family: 'Montserrat', sans-serif; color: var(--color-text, #353733); }
button, input, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
img { display: block; max-width: 100%; }
[data-parallax] { transform: translate3d(0, var(--parallax-y, 0), 0) scale(1.04); will-change: transform; }
.invitation { min-height: 100vh; overflow: clip; background-color: var(--color-background); background-image: radial-gradient(rgba(53,55,51,.035) .6px, transparent .7px), radial-gradient(rgba(53,55,51,.025) .5px, transparent .6px); background-position: 0 0, 7px 9px; background-size: 11px 11px, 13px 13px; }
.section { position: relative; min-height: 85vh; padding: clamp(5rem, 18vw, 9rem) 0; }
.album-container { position: relative; width: min(100% - 36px, 1100px); margin-inline: auto; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { font-family: 'Cormorant Garamond', serif; font-weight: 500; }
p { line-height: 1.8; }
.section-heading { margin-bottom: clamp(3.5rem, 12vw, 7rem); text-align: center; }
.section-heading > span, .eyebrow { display: block; margin-bottom: .75rem; color: var(--color-accent); font-size: .62rem; font-weight: 600; letter-spacing: .26em; text-transform: uppercase; }
.section-heading h2 { margin: 0; font-size: clamp(3rem, 13vw, 6rem); line-height: .88; letter-spacing: -.035em; }
.paper { background: var(--color-paper); box-shadow: 0 12px 30px rgba(42,40,36,.1); }
.paper-button { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: .8rem 1.05rem; border: 1px solid var(--color-primary); border-radius: 1px; background: transparent; color: var(--color-primary); font-size: .63rem; font-weight: 600; letter-spacing: .15em; text-decoration: none; text-transform: uppercase; transition: background-color .3s, color .3s, transform .2s; cursor: pointer; }
.paper-button span { margin-left: .5rem; }
.paper-button:active, .polaroid:active { transform: scale(.98); }
:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 4px; }

/* Cover */
.cover { display: grid; place-items: center; align-content: center; min-height: 100svh; padding: max(2rem, env(safe-area-inset-top)) 1rem max(2rem, env(safe-area-inset-bottom)); position: relative; background: var(--color-background); isolation: isolate; }
.cover::before, .cover::after { content: ''; position: absolute; width: 110px; height: 180px; border: 1px solid color-mix(in srgb, var(--color-accent), transparent 70%); border-radius: 50%; z-index: -1; }
.cover::before { top: -55px; left: -65px; transform: rotate(36deg); }
.cover::after { right: -70px; bottom: -65px; transform: rotate(-28deg); }
.passport-scene { width: min(62vw, 245px); perspective: 1300px; filter: drop-shadow(0 24px 20px rgba(36,38,38,.16)); }
.passport { position: relative; display: block; width: 100%; aspect-ratio: .70; padding: 10px; border: 0; border-radius: 3px 7px 7px 3px; background: var(--color-primary); color: var(--color-paper); transform-origin: left center; transform-style: preserve-3d; cursor: pointer; transition: transform 1s cubic-bezier(.65,.05,.36,1), filter .8s; }
.passport::after { content: ''; position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(105deg, transparent 25%, rgba(255,255,255,.11) 48%, transparent 65%); transform: translateX(-130%); animation: passportShine 3.8s 1.5s infinite; }
.passport-border { position: relative; display: flex; height: 100%; flex-direction: column; align-items: center; justify-content: center; border: 1px solid color-mix(in srgb, var(--color-paper), transparent 40%); }
.passport-border::before, .passport-border::after { content: '✦  ·  ✦  ·  ✦'; position: absolute; left: 0; right: 0; color: color-mix(in srgb, var(--color-paper), transparent 28%); font-size: .45rem; letter-spacing: .45em; }
.passport-border::before { top: 16px; }.passport-border::after { bottom: 16px; }
.passport-spine { position: absolute; inset: 0 auto 0 9px; width: 1px; background: rgba(255,255,255,.2); }
.passport-kicker { font-size: .58rem; letter-spacing: .38em; text-transform: uppercase; }
.passport strong { margin: .4rem 0 1.4rem; font-family: 'Italiana', serif; font-size: clamp(1.6rem, 7vw, 2.15rem); font-weight: 400; letter-spacing: .07em; text-transform: uppercase; }
.passport-emblem { display: grid; width: 54px; height: 54px; place-items: center; margin-bottom: 1.1rem; border: 1px solid currentColor; border-radius: 50%; }
.passport-emblem svg { width: 30px; }
.passport-initials { font-family: 'Cormorant Garamond', serif; font-size: 2.2rem; line-height: 1; }
.passport-names { margin-top: .8rem; font-family: 'Cormorant Garamond', serif; font-size: .95rem; font-style: italic; }
.passport-date { margin-top: .25rem; font-size: .54rem; letter-spacing: .18em; }
.passport-micro { position: absolute; bottom: 32px; max-width: 80%; font-size: .3rem; letter-spacing: .17em; text-transform: uppercase; }
.cover-action { display: flex; flex-direction: column; align-items: center; gap: .55rem; margin-top: 2rem; border: 0; background: transparent; color: var(--color-muted); font-size: .56rem; letter-spacing: .16em; text-transform: uppercase; cursor: pointer; }
.cover-arrow { font-size: 1rem; animation: arrowFloat 1.7s ease-in-out infinite; }
.passport-opened .passport { transform: rotateY(-155deg) rotateZ(-2deg); filter: brightness(.88); }
.passport-opened .cover-action { opacity: .45; }
@keyframes passportShine { 0%, 65% { transform: translateX(-130%); } 90%,100% { transform: translateX(130%); } }
@keyframes arrowFloat { 50% { transform: translateY(6px); } }

/* Intro collage */
.intro-collage { min-height: 1220px; padding-top: 6.5rem; background: color-mix(in srgb, var(--color-background), var(--color-secondary) 7%); }
.collage-stage { height: 1050px; }
.passport-card { position: absolute; top: 0; left: 0; width: 42%; height: 225px; padding: 1.25rem; color: var(--color-paper); background: var(--color-primary); transform: rotate(-3deg); z-index: 2; }
.passport-card span, .passport-card small { display: block; font-size: .48rem; letter-spacing: .18em; text-transform: uppercase; }
.passport-card svg { width: 38px; margin: 2rem auto 1.25rem; }
.passport-card strong { display: block; text-align: center; font-family: 'Cormorant Garamond'; font-size: 2rem; font-weight: 400; }
.passport-card small { position: absolute; bottom: 18px; }
.invitation-card { position: absolute; top: 18px; right: -8px; width: 62%; min-height: 260px; padding: 1.65rem 1rem; text-align: center; transform: rotate(2deg); z-index: 3; }
.invitation-card > span { font-size: .51rem; letter-spacing: .23em; text-transform: uppercase; }
.invitation-card h1 { margin: 1.8rem 0 .8rem; font-size: clamp(2.15rem, 10vw, 3.2rem); line-height: .72; }
.invitation-card h1 i { display: block; margin: .45rem; color: var(--color-accent); font-family: Sacramento, cursive; font-size: .75em; font-weight: 400; }
.invitation-card p { font-family: Sacramento, cursive; font-size: 1.25rem; }
.polaroid { margin: 0; padding: 9px 9px 30px; background: var(--color-paper); box-shadow: 0 12px 30px rgba(42,40,36,.12); transition: transform .35s; }
.polaroid img { width: 100%; height: 100%; object-fit: cover; }
.polaroid figcaption { padding-top: .55rem; font-family: Sacramento, cursive; font-size: 1.15rem; text-align: center; }
.intro-photo { position: absolute; width: 52%; height: 330px; z-index: 4; }
.intro-photo-1 { top: 290px; left: -8px; transform: rotate(-3deg); }
.intro-photo-2 { top: 375px; right: -10px; transform: rotate(3deg); z-index: 5; }
.date-card { position: absolute; top: 650px; left: 2%; width: 59%; padding: 1.3rem; transform: rotate(1deg); text-align: center; z-index: 4; }
.date-card small { display: block; margin-bottom: .5rem; color: var(--color-accent); font-size: .5rem; letter-spacing: .2em; text-transform: uppercase; }
.date-card strong { font-family: 'Cormorant Garamond'; font-size: 1.2rem; font-weight: 500; }
.side-note { position: absolute; top: 675px; right: -5px; display: flex; width: 37%; height: 185px; flex-direction: column; align-items: center; justify-content: center; border: 1px solid var(--color-accent); color: var(--color-primary); transform: rotate(-2deg); z-index: 3; }
.side-note span { font-family: Sacramento, cursive; font-size: 1.75rem; line-height: .9; }
.travel-ticket { position: absolute; top: 880px; left: 3%; width: 72%; padding: .7rem 1rem; border-block: 1px dashed var(--color-accent); font-size: .54rem; font-weight: 600; letter-spacing: .17em; transform: rotate(2deg); }
.postal-stamp, .passport-mark { display: grid; place-items: center; border: 1px solid var(--color-accent); border-radius: 50%; color: var(--color-accent); font-size: .42rem; letter-spacing: .12em; line-height: 1.45; text-align: center; text-transform: uppercase; }
.postal-stamp { position: absolute; top: 836px; right: 2%; width: 82px; aspect-ratio: 1; transform: rotate(12deg); }
.flight-path { position: absolute; top: 920px; right: 10%; color: var(--color-primary); }
.flight-path svg { width: 35px; transform: rotate(-15deg); }
.intro-note { position: absolute; top: 980px; left: 8%; right: 8%; font-family: 'Cormorant Garamond'; font-size: 1.25rem; font-style: italic; text-align: center; }

/* Boarding pass */
.countdown-section { min-height: 82vh; display: grid; align-items: center; padding-top: 4rem; }
.boarding-pass { position: relative; display: grid; overflow: hidden; border: 1px solid color-mix(in srgb, var(--color-primary), transparent 55%); background: var(--color-paper); box-shadow: 0 15px 38px rgba(42,40,36,.09); }
.boarding-pass header { display: flex; justify-content: space-between; padding: .85rem 1rem; background: var(--color-primary); color: var(--color-paper); font-size: .5rem; letter-spacing: .17em; text-transform: uppercase; }
.boarding-main { padding: 2.5rem 1rem; text-align: center; }
.boarding-main > p { margin-bottom: .25rem; color: var(--color-accent); font-size: .52rem; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; }
.boarding-main h2 { margin-bottom: 2rem; font-size: clamp(2.6rem, 12vw, 4.5rem); }
.countdown-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.countdown-grid div { position: relative; }
.countdown-grid div:not(:last-child)::after { content: ':'; position: absolute; right: -2px; top: .35rem; color: var(--color-accent); }
.countdown-grid strong, .countdown-grid span { display: block; }
.countdown-grid strong { font-family: 'Cormorant Garamond'; font-size: clamp(1.7rem, 9vw, 3rem); font-weight: 400; }
.countdown-grid span { font-size: .42rem; letter-spacing: .12em; text-transform: uppercase; }
.today { font-family: 'Cormorant Garamond'; font-size: 1.7rem; }
.boarding-pass aside { display: grid; grid-template-columns: auto 1fr; gap: .2rem .8rem; padding: 1.2rem 1rem; border-top: 1px dashed var(--color-secondary); font-size: .5rem; letter-spacing: .13em; }
.boarding-pass aside i { display: none; }.boarding-pass aside span { color: var(--color-muted); }.boarding-pass aside b { font-weight: 500; }
.barcode { grid-column: 1 / -1; height: 25px; margin-top: .7rem; background: repeating-linear-gradient(90deg, var(--color-primary) 0 1px, transparent 1px 4px, var(--color-primary) 4px 6px, transparent 6px 9px); }

/* Venues */
.venues-section::before, .story-section::before { content: ''; position: absolute; inset: 0; background: color-mix(in srgb, var(--color-secondary), transparent 88%); transform: skewY(-2deg); transform-origin: top left; }
.venue { position: relative; display: grid; margin-bottom: 8rem; }
.venue-image { margin: 0; width: 94%; box-shadow: 0 18px 38px rgba(42,40,36,.11); transform: rotate(-1.5deg); }
.venue-image img { width: 100%; aspect-ratio: 1.2; object-fit: var(--photo-fit, cover); object-position: var(--focal-point, 50% 50%); }
.venue-copy { position: relative; width: 90%; margin: -2.5rem 0 0 auto; padding: 2.2rem 1.6rem; background: var(--color-paper); box-shadow: 0 12px 30px rgba(42,40,36,.09); }
.venue-reverse .venue-image { margin-left: auto; transform: rotate(1.5deg); }
.venue-reverse .venue-copy { margin-right: auto; margin-left: 0; }
.venue-icon { position: absolute; top: 1.5rem; right: 1.5rem; width: 38px; color: var(--color-accent); }
.venue-copy h3 { margin-bottom: 1.5rem; padding-right: 2.5rem; font-size: clamp(2rem, 9vw, 3rem); line-height: 1; }
.venue-copy p { display: flex; align-items: flex-start; gap: .7rem; margin-bottom: .55rem; font-size: .73rem; line-height: 1.6; }
.venue-copy p svg { width: 16px; min-width: 16px; margin-top: .2rem; color: var(--color-accent); }
.venue-copy .paper-button { margin-top: 1rem; }

/* Timeline */
.timeline-section { padding-bottom: 10rem; }
.timeline-container { max-width: 720px; }
.timeline-list { position: relative; }
.timeline-list::before { content: ''; position: absolute; top: 0; bottom: 0; left: 25px; width: 1px; background: var(--color-secondary); transform-origin: top; }
.timeline-item { display: grid; grid-template-columns: 50px 53px 1fr; gap: .65rem; align-items: start; min-height: 145px; }
.timeline-icon { position: relative; display: grid; width: 50px; height: 50px; place-items: center; border: 1px solid var(--color-secondary); border-radius: 50%; background: var(--color-background); z-index: 1; }
.timeline-icon svg { width: 23px; color: var(--color-primary); }
.timeline-item time { padding-top: 1.05rem; color: var(--color-accent); font-family: 'Cormorant Garamond'; font-size: 1.1rem; }
.timeline-item h3 { margin: .45rem 0 .1rem; font-size: 1.65rem; }
.timeline-item p { color: var(--color-muted); font-size: .7rem; line-height: 1.6; }

/* Story and gallery */
.story-entry { position: relative; display: grid; margin-bottom: 9rem; }
.story-photo { width: 91%; height: 340px; padding-bottom: 34px; transform: rotate(-2deg); }
.story-photo img { object-fit: cover; }
.story-reverse .story-photo { margin-left: auto; transform: rotate(2deg); }
.story-copy { position: relative; width: 88%; margin: -3rem 0 0 auto; padding: 2rem 1.5rem; background: var(--color-paper); box-shadow: 0 12px 28px rgba(42,40,36,.08); z-index: 2; }
.story-reverse .story-copy { margin-right: auto; margin-left: 0; }
.story-year { color: var(--color-accent); font-size: .6rem; letter-spacing: .25em; }
.story-copy h3 { margin: .5rem 0; font-size: 2rem; line-height: 1; }
.story-copy p { margin: 0; font-size: .78rem; }
.passport-mark { position: absolute; right: -14px; bottom: -42px; width: 78px; height: 78px; transform: rotate(-12deg); }
.gallery-section { padding-bottom: 12rem; }
.gallery-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; align-items: start; }
.gallery-item { margin: 0; padding: 7px; background: var(--color-paper); box-shadow: 0 10px 25px rgba(42,40,36,.1); }
.gallery-item:nth-child(3n+1) { transform: rotate(-1.5deg); }.gallery-item:nth-child(3n+2) { transform: rotate(1.5deg); }
.gallery-item img { width: 100%; object-fit: cover; }.gallery-tall img { aspect-ratio: .7; }.gallery-square img { aspect-ratio: 1; }.gallery-wide { grid-column: 1 / -1; }.gallery-wide img { aspect-ratio: 1.65; }
.gallery-item figcaption { padding: .45rem .2rem .15rem; font-family: Sacramento, cursive; font-size: 1rem; text-align: center; }
.gallery-label { width: fit-content; margin: 2.5rem auto 0; color: var(--color-muted); font-family: 'Cormorant Garamond'; font-size: 1.6rem; font-style: italic; line-height: 1; text-align: center; transform: rotate(-3deg); }
.gallery-label strong { color: var(--color-primary); font-family: Sacramento, cursive; font-size: 1.7rem; font-weight: 400; }

/* Dress and gift */
.dress-section { min-height: 95vh; display: grid; align-items: center; background: var(--color-primary); }
.dress-card { position: relative; max-width: 600px; margin: auto; padding: 4rem 1.5rem 3rem; border: 1px solid var(--color-secondary); background: var(--color-paper); text-align: center; box-shadow: 0 20px 50px rgba(25,25,25,.18); }
.dress-card::before { content: ''; position: absolute; inset: 10px; border: 1px solid color-mix(in srgb, var(--color-accent), transparent 55%); pointer-events: none; }
.ticket-number { position: absolute; top: 24px; left: 0; right: 0; color: var(--color-accent); font-size: .48rem; letter-spacing: .2em; }
.dress-card h2 { margin-bottom: 1.8rem; font-size: clamp(3.2rem, 14vw, 5rem); text-transform: uppercase; }
.attire-icons { display: flex; align-items: center; justify-content: center; gap: 1.4rem; color: var(--color-primary); }
.attire-icons svg { width: 60px; height: 75px; }.attire-icons i { font-family: Sacramento; font-size: 2rem; }
.dress-card h3 { margin: 1rem 0 .2rem; color: var(--color-accent); font-family: Montserrat; font-size: .6rem; font-weight: 600; letter-spacing: .25em; text-transform: uppercase; }
.dress-card > strong { font-family: 'Cormorant Garamond'; font-size: 1.5rem; font-weight: 500; }.dress-card p { max-width: 430px; margin: 1.2rem auto; font-size: .75rem; }
.palette { display: flex; justify-content: center; gap: .65rem; margin-top: 1.8rem; }.palette span { width: 28px; height: 28px; border: 3px solid var(--color-paper); border-radius: 50%; box-shadow: 0 0 0 1px var(--color-secondary); }
.gift-section { min-height: 85vh; display: grid; align-items: center; }
.gift-postcard { display: grid; background: var(--color-paper); box-shadow: 0 16px 40px rgba(42,40,36,.11); transform: rotate(-1deg); }
.postcard-copy, .postcard-art { padding: 2.2rem 1.5rem; }
.postcard-copy > span { color: var(--color-accent); font-size: .5rem; letter-spacing: .2em; text-transform: uppercase; }
.postcard-copy h2 { margin: 1.3rem 0; font-size: 2.8rem; line-height: .88; }.postcard-copy p { font-size: .78rem; }.postcard-copy code { display: block; margin: 1.7rem 0 1rem; font-family: Montserrat; font-size: .7rem; letter-spacing: .08em; }
.postcard-art { position: relative; min-height: 225px; border-top: 1px solid var(--color-secondary); }
.postcard-art > svg { position: absolute; left: 12%; bottom: 15%; width: 75px; color: var(--color-secondary); }.postcard-art address { position: absolute; right: 1.5rem; bottom: 2rem; width: 55%; padding-bottom: .5rem; border-bottom: 1px solid var(--color-secondary); font-family: 'Cormorant Garamond'; font-size: 1rem; font-style: italic; line-height: 1.5; }
.postage { position: absolute; top: 1.5rem; right: 1.5rem; display: grid; width: 60px; height: 72px; place-items: center; border: 1px dashed var(--color-accent); color: var(--color-accent); font-family: 'Cormorant Garamond'; font-size: .9rem; text-align: center; }

/* Shared album */
.shared-album-section { padding-top: clamp(6rem, 20vw, 10rem); padding-bottom: clamp(5rem, 16vw, 8rem); }
.shared-album-layout { display: flex; flex-direction: column; align-items: center; gap: 3rem; text-align: center; }
.shared-album-polaroid { width: min(82vw, 320px); transform: rotate(-2deg); margin: 0; }
.shared-album-polaroid .responsive-picture { aspect-ratio: 2 / 3; background: var(--color-paper); }
.shared-album-copy { display: flex; flex-direction: column; align-items: center; gap: 1rem; max-width: 420px; }
.shared-album-copy h2 { margin: .5rem 0; font-size: clamp(2.6rem, 11vw, 4.2rem); line-height: .9; text-transform: uppercase; }
.shared-album-copy p { font-size: .8rem; line-height: 1.7; max-width: 340px; }
.album-button { min-height: 52px; width: 100%; max-width: 320px; font-size: .65rem; }
.album-button svg { width: 18px; margin-right: .6rem; }
.album-stamp { display: grid; place-items: center; width: 72px; aspect-ratio: 1; border: 1px solid var(--color-accent); border-radius: 50%; color: var(--color-accent); font-size: .38rem; letter-spacing: .1em; line-height: 1.3; text-align: center; text-transform: uppercase; margin-top: .5rem; transform: rotate(8deg); }
.album-qr { width: 120px; height: 120px; margin-top: 1rem; background: var(--color-paper); border: 1px solid var(--color-secondary); }

/* RSVP and final */
.rsvp-section { padding-top: 8rem; background: color-mix(in srgb, var(--color-secondary), transparent 88%); }
.rsvp-paper { max-width: 720px; margin: auto; padding: 3.5rem 1.35rem; background: var(--color-paper); box-shadow: 0 15px 40px rgba(42,40,36,.09); }
.rsvp-paper header { margin-bottom: 3rem; text-align: center; }.rsvp-paper header > span { color: var(--color-accent); font-family: Sacramento; font-size: 1.5rem; }.rsvp-paper h2 { margin: .5rem 0; font-size: clamp(3rem, 13vw, 5rem); line-height: .9; }.rsvp-paper header p { font-size: .72rem; }
.rsvp-paper form > label, .guest-fields label { display: block; margin-bottom: 2rem; }.rsvp-paper label > span, .rsvp-paper legend { display: block; margin-bottom: .45rem; font-size: .57rem; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; }
.rsvp-paper input:not([type=radio]), .rsvp-paper textarea { width: 100%; padding: .65rem .15rem; border: 0; border-bottom: 1px solid var(--color-secondary); border-radius: 0; outline: 0; background: transparent; color: var(--color-text); resize: vertical; }
.rsvp-paper input:focus, .rsvp-paper textarea:focus { border-color: var(--color-primary); }
.rsvp-paper fieldset { margin: 0 0 2rem; padding: 0; border: 0; }.radio { display: inline-flex; align-items: center; gap: .4rem; margin-right: 1.6rem; cursor: pointer; }.radio input { width: 16px; height: 16px; accent-color: var(--color-primary); }.radio span { margin: 0 !important; }
.submit-button { width: 100%; margin-top: .75rem; }.submit-button:disabled { opacity: .55; }.form-status { min-height: 1.5rem; margin: 1rem 0 0; font-family: 'Cormorant Garamond'; font-size: 1.15rem; text-align: center; }.form-status.error { color: var(--color-accent); }
.final-section { position: relative; padding: 0 0 5rem; background: var(--color-background); text-align: center; }
.final-photo { position: relative; height: min(110vw, 760px); margin: 0; overflow: hidden; }.final-photo::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(28,31,29,.72), transparent 65%); }.final-photo img { width: 100%; height: 100%; object-fit: cover; }
.final-overlay { position: absolute; inset: auto 1rem 8%; color: var(--color-paper); z-index: 1; }.final-overlay span { font-family: Sacramento; font-size: 2rem; }.final-overlay h2 { margin: .1rem 0 .7rem; font-size: clamp(3rem, 13vw, 6rem); line-height: .82; }.final-overlay strong, .final-overlay time { display: block; }.final-overlay strong { font-family: 'Cormorant Garamond'; font-size: 1.5rem; font-weight: 400; }.final-overlay time { margin-top: .5rem; font-size: .55rem; letter-spacing: .17em; text-transform: uppercase; }
.final-stamp { width: min(75%, 350px); margin: -1px auto 2rem; padding: 1rem; border: 1px solid var(--color-accent); color: var(--color-accent); font-size: .55rem; letter-spacing: .14em; text-transform: uppercase; }.final-section > p { padding: 0 2rem; font-family: Sacramento; font-size: 1.65rem; }
.end-flight { position: relative; width: min(85%, 400px); height: 110px; margin: 2rem auto; color: var(--color-primary); }.end-flight > svg:first-child { position: absolute; left: 3px; top: 6px; width: 28px; transform: rotate(8deg); }.end-flight > svg:last-child { width: 100%; fill: none; stroke: currentColor; stroke-width: 1; }
.the-end { font-family: 'Cormorant Garamond'; font-size: .8rem; letter-spacing: .4em; text-transform: uppercase; }

/* Controls and reveal */
.scroll-progress { position: fixed; top: 0; left: 0; width: 100%; height: 2px; transform-origin: left; z-index: 100; }
.dot-navigation { position: fixed; right: max(8px, env(safe-area-inset-right)); top: 50%; display: none; flex-direction: column; gap: 12px; transform: translateY(-50%); z-index: 90; }.dot-navigation button { position: relative; width: 18px; height: 18px; padding: 0; border: 0; background: transparent; cursor: pointer; }.dot-navigation button::after { content: ''; position: absolute; inset: 6px; border: 1px solid var(--color-primary); border-radius: 50%; }.dot-navigation button span { position: absolute; right: 24px; top: 0; padding: .25rem .45rem; background: var(--color-paper); font-size: .48rem; letter-spacing: .1em; opacity: 0; pointer-events: none; transition: opacity .2s; white-space: nowrap; }
.music-control { position: fixed; right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom)); display: grid; width: 42px; height: 42px; place-items: center; border: 1px solid var(--color-primary); border-radius: 50%; background: var(--color-paper); color: var(--color-primary); box-shadow: 0 5px 15px rgba(42,40,36,.1); z-index: 90; cursor: pointer; }.music-control.playing span { animation: musicPulse 1.4s infinite; }
[data-reveal] { opacity: 0; transition: opacity .9s cubic-bezier(.22,.7,.22,1) var(--delay, 0ms), transform .9s cubic-bezier(.22,.7,.22,1) var(--delay, 0ms); will-change: transform, opacity; }
.reveal-up { transform: translateY(28px); }.reveal-left { transform: translateX(-28px) rotate(-3deg); }.reveal-right { transform: translateX(28px) rotate(2deg); }.reveal-scale { transform: scale(.96) rotate(-1deg); }
[data-reveal].is-visible { opacity: 1; }.reveal-up.is-visible, .reveal-left.is-visible, .reveal-right.is-visible { transform: translate(0,0); }.reveal-scale.is-visible { transform: scale(1); }
@keyframes musicPulse { 50% { transform: scale(1.18); } }

@media (min-width: 600px) {
  .album-container { width: min(100% - 64px, 1100px); }
  .dot-navigation { display: flex; }
  .intro-collage { min-height: 1120px; }.collage-stage { height: 980px; max-width: 760px; }.passport-card { width: 35%; height: 280px; }.invitation-card { width: 52%; min-height: 315px; }.intro-photo { width: 43%; height: 410px; }.intro-photo-1 { top: 330px; left: 6%; }.intro-photo-2 { top: 395px; right: 8%; }.date-card { top: 735px; left: 14%; width: 43%; }.side-note { top: 710px; right: 6%; width: 29%; }.travel-ticket { top: 890px; width: 55%; }.postal-stamp { top: 850px; right: 17%; }.intro-note { top: 950px; }
  .boarding-pass { grid-template-columns: 1fr 180px; }.boarding-pass header { grid-column: 1 / -1; }.boarding-pass aside { border-top: 0; border-left: 1px dashed var(--color-secondary); align-content: center; }.countdown-grid span { font-size: .5rem; }
  .venue-copy { width: 70%; padding: 3rem; }.venue-image { width: 78%; }.timeline-item { grid-template-columns: 65px 80px 1fr; }.timeline-list::before { left: 32px; }.timeline-icon { width: 65px; height: 65px; }.timeline-item time { padding-top: 1.4rem; font-size: 1.3rem; }
  .story-photo { width: 76%; height: 480px; }.story-copy { width: 60%; padding: 2.8rem; }.gallery-grid { grid-template-columns: repeat(3, 1fr); gap: 16px; }.gallery-wide { grid-column: span 2; }.gallery-item:nth-child(4) { margin-top: -80px; }
  .gift-postcard { grid-template-columns: 1.15fr .85fr; }.postcard-art { border-top: 0; border-left: 1px solid var(--color-secondary); }  .rsvp-paper { padding: 4.5rem; }.guest-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
  .shared-album-layout { flex-direction: row; gap: 4rem; text-align: left; align-items: center; }
  .shared-album-copy { align-items: flex-start; }
  .album-button { width: auto; }
}

@media (min-width: 1024px) {
  .section { padding-block: 9rem; }.cover { min-height: 100vh; }.passport-scene { width: 255px; }.paper-button:hover { background: var(--color-primary); color: var(--color-paper); }.polaroid:hover { transform: scale(1.02) rotate(0); }.dot-navigation button:hover span { opacity: 1; }
  .intro-collage { min-height: 1050px; }.collage-stage { max-width: 980px; height: 900px; }.passport-card { left: 3%; width: 28%; }.invitation-card { right: 5%; width: 42%; }.intro-photo { width: 35%; height: 450px; }.intro-photo-1 { top: 285px; left: 20%; }.intro-photo-2 { top: 360px; right: 17%; }.date-card { top: 700px; left: 8%; width: 31%; }.side-note { top: 650px; right: 5%; width: 22%; }.travel-ticket { top: 820px; left: 28%; width: 42%; }.postal-stamp { top: 750px; right: 18%; }.intro-note { top: 890px; }
  .venue { grid-template-columns: 1.2fr .8fr; align-items: center; margin-bottom: 12rem; }.venue-image { width: 100%; }.venue-copy { width: 115%; margin: 0 0 0 -15%; padding: 4rem; }.venue-reverse { grid-template-columns: .8fr 1.2fr; }.venue-reverse .venue-image { grid-column: 2; grid-row: 1; }.venue-reverse .venue-copy { grid-column: 1; grid-row: 1; width: 115%; margin: 0 -15% 0 0; z-index: 1; }
  .story-entry { grid-template-columns: 1.1fr .9fr; align-items: center; margin-bottom: 12rem; }.story-photo { width: 100%; height: 530px; }.story-copy { width: 115%; margin: 0 0 0 -15%; padding: 4rem; }.story-reverse { grid-template-columns: .9fr 1.1fr; }.story-reverse .story-photo { grid-column: 2; grid-row: 1; }.story-reverse .story-copy { grid-column: 1; grid-row: 1; width: 115%; margin: 0 -15% 0 0; z-index: 1; }
  .final-photo { margin-inline: auto; max-width: 1300px; height: 780px; }
  .shared-album-polaroid { width: min(30vw, 340px); }
}

/* Mobile navigation, audio and focal-point image system */
.responsive-picture { display: block; width: 100%; height: 100%; overflow: hidden; }
.responsive-picture img { width: 100%; height: 100%; object-fit: var(--photo-fit, cover); object-position: var(--focal-point, 50% 50%); }
.responsive-picture.image-load-error { position: relative; border: 1px dashed var(--color-accent); }
.responsive-picture.image-load-error::after { content: attr(data-image-error); position: absolute; inset: 0; display: grid; place-items: center; padding: 1rem; background: var(--color-paper); color: var(--color-muted); font-size: .58rem; letter-spacing: .12em; text-align: center; text-transform: uppercase; }
.mobile-navigation { position: fixed; right: 0; bottom: 0; left: 0; display: grid; visibility: hidden; width: 100%; min-height: calc(64px + env(safe-area-inset-bottom)); grid-template-columns: repeat(5, minmax(0, 1fr)); padding: 5px 7px env(safe-area-inset-bottom); border-top: 1px solid color-mix(in srgb, var(--color-primary), transparent 80%); background: color-mix(in srgb, var(--color-paper), transparent 5%); box-shadow: 0 -7px 24px rgba(36,35,32,.08); opacity: 0; pointer-events: none; transform: translateY(100%); transition: visibility 0s linear .55s, opacity .55s ease, transform .55s cubic-bezier(.22,.7,.22,1); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); z-index: 95; }
.invitation-open .mobile-navigation { visibility: visible; opacity: 1; pointer-events: auto; transform: translateY(0); transition-delay: 0s; }
.mobile-navigation button { position: relative; display: flex; min-width: 0; min-height: 54px; padding: 4px 2px 3px; border: 0; background: transparent; color: var(--color-primary); flex-direction: column; align-items: center; justify-content: center; gap: 3px; opacity: .42; cursor: pointer; transition: opacity .25s ease, transform .2s ease; }
.mobile-navigation button:active { transform: scale(.95); }
.mobile-navigation button.is-active { opacity: 1; }
.mobile-navigation button.is-active::after { content: ''; position: absolute; bottom: 1px; width: 3px; height: 3px; border-radius: 50%; background: currentColor; }
.mobile-navigation svg { width: 19px; height: 19px; }
.mobile-navigation span { overflow: hidden; max-width: 100%; font-size: .43rem; font-weight: 600; letter-spacing: .06em; text-overflow: ellipsis; text-transform: uppercase; white-space: nowrap; }
.music-control { right: max(16px, env(safe-area-inset-right)); bottom: calc(78px + env(safe-area-inset-bottom)); top: auto; visibility: hidden; width: 46px; height: 46px; border-radius: 50%; opacity: 0; pointer-events: none; transform: translateY(10px); transition: visibility 0s linear .45s, opacity .45s ease, transform .45s ease, box-shadow .3s ease; z-index: 96; }
.invitation-open .music-control { visibility: visible; opacity: 1; pointer-events: auto; transform: translateY(0); transition-delay: 0s; }
.music-control svg { width: 21px; height: 21px; }
.music-control.playing span { animation: none; }
.music-pause, .music-control.playing .music-play { display: none; }
.music-control.playing .music-pause { display: block; }
.audio-bars { position: absolute; right: -3px; bottom: 2px; display: flex; height: 12px; align-items: end; gap: 2px; }
.audio-bars i { display: block; width: 2px; height: 4px; background: var(--color-accent); opacity: 0; }
.music-control.playing .audio-bars i { opacity: 1; animation: audioBar .9s ease-in-out infinite alternate; }
.music-control.playing .audio-bars i:nth-child(2) { height: 8px; animation-delay: -.35s; }
.music-control.playing .audio-bars i:nth-child(3) { height: 6px; animation-delay: -.6s; }
.music-tooltip { position: absolute; top: 54px; right: 0; display: none; width: max-content; max-width: 250px; padding: .5rem .65rem; background: var(--color-paper); box-shadow: 0 5px 15px rgba(35,34,31,.08); font-size: .5rem; letter-spacing: .08em; pointer-events: none; }
@keyframes audioBar { to { transform: scaleY(1.8); } }

@media (max-width: 767px) {
  html, body, .invitation { max-width: 100%; overflow-x: hidden; }
  .invitation { overflow-x: clip; }
  .invitation main { padding-bottom: calc(112px + env(safe-area-inset-bottom)); }
  .dot-navigation { display: none; }
  .section { min-height: auto; padding-block: clamp(5rem, 20vw, 7rem); scroll-margin-top: 12px; }
  .album-container { width: min(100% - 28px, 430px); }
  .section-heading { margin-bottom: 3.75rem; }
  .section-heading h2 { max-width: 100%; font-size: clamp(2.8rem, 12vw, 3.8rem); overflow-wrap: normal; }
  .section-heading > span { font-size: .58rem; }
  .paper-button { min-height: 48px; padding-inline: 1rem; }

  /* The collage is composed independently for a phone viewport. */
  .intro-collage { min-height: 1840px; padding-top: 6rem; }
  .collage-stage { width: min(100% - 24px, 410px); height: 1690px; }
  .passport-card { top: 0; left: 0; width: 44%; height: 235px; padding: 1rem; }
  .passport-card svg { margin-block: 1.4rem .8rem; }
  .invitation-card { top: 20px; right: -4px; width: 62%; min-height: 255px; padding: 1.5rem .8rem; }
  .invitation-card h1 { font-size: clamp(2rem, 10vw, 2.75rem); }
  .collage-hero { top: 292px; left: 4%; width: 92%; height: auto; padding: 7px; }
  .collage-hero .responsive-picture { aspect-ratio: 2 / 3; background: var(--color-paper); }
  .collage-hero img { object-fit: contain; }
  .intro-photo { width: min(74vw, 300px); height: auto; padding: 8px 8px 30px; }
  .intro-photo .responsive-picture { aspect-ratio: 2 / 3; }
  .intro-photo-1 { top: 865px; left: -3px; }
  .intro-photo-2 { top: 1055px; right: -4px; }
  .travel-manifest { top: 825px; right: 0; width: 43%; z-index: 5; }
  .date-card { top: 1460px; left: 1%; width: 59%; }
  .side-note { top: 1450px; right: -5px; width: 37%; height: 175px; }
  .travel-ticket { top: 1650px; left: 2%; width: 71%; }
  .postal-stamp { top: 1590px; right: 1%; }
  .flight-path { top: 1680px; right: 11%; }
  .intro-note { top: 1730px; left: 6%; right: 6%; font-size: 1.18rem; }

  .venue { margin-bottom: 7rem; }
  .venue-image { width: 100%; }
  .venue-image img { aspect-ratio: 4 / 3; }
  .venue-copy { width: 94%; padding: 2rem 1.35rem; }
  .venue-copy p, .story-copy p, .dress-card p, .postcard-copy p, .rsvp-paper header p { font-size: .9rem; line-height: 1.65; }

  .story-entry, .story-reverse { display: flex; margin-bottom: 8rem; flex-direction: column; }
  .story-copy, .story-reverse .story-copy { order: 1; width: 100%; margin: 0; padding: 2rem 1.4rem; }
  .story-photo, .story-reverse .story-photo { order: 2; width: 100%; height: auto; margin: 1.5rem 0 0; padding: 8px 8px 31px; transform: rotate(-1.25deg); }
  .story-reverse .story-photo { transform: rotate(1.25deg); }
  .story-photo .responsive-picture { background: var(--color-paper); }
  .story-photo.photo--portrait .responsive-picture { aspect-ratio: 4 / 5; }
  .story-photo.photo--landscape .responsive-picture { aspect-ratio: 3 / 2; }
  .story-photo.photo-fit--contain img { object-fit: contain; }
  .story-copy h3 { font-size: clamp(2rem, 9vw, 2.75rem); }
  .passport-mark { right: 8px; bottom: -39px; }

  .gallery-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 10px; }
  .gallery-item { grid-column: 1 / -1; padding: 7px; }
  .gallery-layout-small { grid-column: span 1; }
  .gallery-item .responsive-picture { background: var(--color-paper); }
  .gallery-item.gallery-portrait:not(.gallery-layout-small) .responsive-picture { aspect-ratio: 4 / 5; }
  .gallery-item.gallery-landscape:not(.gallery-layout-small) .responsive-picture { aspect-ratio: 3 / 2; }
  .gallery-layout-small .responsive-picture { aspect-ratio: 1; }
  .gallery-item.photo-fit--contain img { object-fit: contain; }
  .gallery-layout-small img { object-fit: cover; }
  .gallery-item:nth-child(4) { margin-top: 0; }
  .gallery-item figcaption { font-size: .9rem; }

  .timeline-item { grid-template-columns: 50px 52px minmax(0, 1fr); }
  .timeline-item h3 { font-size: 1.55rem; }
  .timeline-item p { font-size: .76rem; }
  .countdown-grid span { font-size: .4rem; }
  .dress-card { padding-inline: 1.25rem; }
  .dress-card h2 { font-size: clamp(2.8rem, 13vw, 4rem); }
  .gift-postcard { transform: none; }
  .rsvp-paper { padding: 3.5rem 1.25rem; }
  .rsvp-paper h2 { font-size: clamp(2.9rem, 12vw, 4.1rem); }
  .rsvp-paper input:not([type=radio]), .rsvp-paper textarea { min-height: 48px; font-size: 16px; }
  .rsvp-paper textarea { line-height: 1.5; }
  .submit-button { min-height: 54px; font-size: .68rem; }
  .final-section { padding-bottom: calc(7rem + env(safe-area-inset-bottom)); }
  .final-photo { height: min(145vw, 680px); }
  .final-photo .responsive-picture { height: 100%; }
  .final-photo img { object-fit: cover; object-position: var(--focal-point); }
  .photo-credit { margin-bottom: 1rem; }
}

@media (min-width: 768px) {
  .mobile-navigation { display: none; }
  .music-control:hover .music-tooltip { display: block; }
  .responsive-picture img { object-position: var(--focal-point, 50% 50%); }
  .story-entry { grid-template-columns: .9fr 1.1fr; }
  .story-copy { grid-column: 1; grid-row: 1; align-self: center; margin: 0 -15% 0 0; z-index: 2; }
  .story-photo { grid-column: 2; grid-row: 1; width: 100%; margin: 0; }
  .story-reverse { grid-template-columns: 1.1fr .9fr; }
  .story-reverse .story-copy { grid-column: 2; grid-row: 1; margin: 0 0 0 -15%; }
  .story-reverse .story-photo { grid-column: 1; grid-row: 1; }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
  .gallery-layout-large { grid-column: span 2; }
  .gallery-portrait .responsive-picture { aspect-ratio: 2 / 3; }
  .gallery-landscape .responsive-picture { aspect-ratio: 3 / 2; }
}

@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; }
  [data-reveal] { opacity: 1; transform: none; } [data-parallax] { transform: none; }
}

/* Premium physical passport and expanded editorial scale */
.album-container { width: min(100% - 32px, 1180px); }
.cover { gap: 0; transition: opacity .7s ease, transform .85s cubic-bezier(.22,.7,.22,1), filter .7s ease; }
.cover::before, .cover::after { transition: opacity .7s ease, transform 1s cubic-bezier(.22,.7,.22,1); }
.passport-scene { width: min(80vw, 340px); perspective: 1800px; filter: drop-shadow(0 25px 25px rgba(32,35,36,.2)); transition: transform 1s cubic-bezier(.22,.7,.22,1), opacity .65s ease, filter .8s ease; }
.passport { display: block; width: 100%; aspect-ratio: .70; padding: 0; overflow: visible; border-radius: 4px 10px 10px 4px; background: transparent; transform: translateY(0); transform-style: preserve-3d; animation: passportFloat 4s ease-in-out infinite; transition: transform .8s cubic-bezier(.22,.7,.22,1); }
.passport::after { display: none; }
.passport-pages { position: absolute; inset: 4px -5px 4px 4px; display: block; overflow: hidden; border: 1px solid color-mix(in srgb, var(--color-accent), transparent 58%); border-radius: 3px 9px 9px 3px; background: repeating-linear-gradient(0deg, var(--color-paper) 0 3px, color-mix(in srgb, var(--color-paper), var(--color-secondary) 14%) 3px 4px); box-shadow: 4px 4px 0 color-mix(in srgb, var(--color-paper), var(--color-secondary) 18%), 7px 7px 18px rgba(30,31,31,.17); transform: translateZ(-3px); transition: transform 1.15s cubic-bezier(.22,.7,.22,1), box-shadow .8s ease; }
.passport-page-content { position: absolute; inset: 12px; display: flex; flex-direction: column; align-items: center; justify-content: center; border: 1px solid color-mix(in srgb, var(--color-accent), transparent 55%); background: var(--color-paper); color: var(--color-primary); }
.passport-page-content::before { content: ''; width: 70px; height: 70px; margin-bottom: 1.4rem; border: 1px solid var(--color-accent); border-radius: 50%; background: radial-gradient(circle, transparent 44%, color-mix(in srgb, var(--color-accent), transparent 82%) 45% 47%, transparent 48%); }
.passport-page-content small { font-size: .47rem; letter-spacing: .22em; text-transform: uppercase; }
.passport-page-content b { margin: .4rem 0 1.4rem; font-family: 'Cormorant Garamond', serif; font-size: 1.5rem; font-weight: 500; }
.passport-page-content i { font-family: Sacramento, cursive; font-size: 1.45rem; }
.page-stamp { position: absolute; right: 14px; bottom: 20px; display: grid; width: 62px; height: 62px; place-items: center; border: 1px solid var(--color-accent); border-radius: 50%; color: var(--color-accent); font-size: .4rem; letter-spacing: .12em; transform: rotate(-12deg); }
.passport-cover { position: absolute; inset: 0; display: block; border-radius: inherit; transform: translateZ(4px); transform-origin: left center; transform-style: preserve-3d; transition: transform 1.35s cubic-bezier(.58,.02,.22,1); z-index: 2; }
.passport-cover-front, .passport-cover-back { position: absolute; inset: 0; display: block; overflow: hidden; border-radius: inherit; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.passport-cover-front { padding: 12px; background-color: var(--color-primary); background-image: radial-gradient(rgba(255,255,255,.055) .7px, transparent .8px), linear-gradient(105deg, transparent 12%, rgba(255,255,255,.06) 46%, rgba(0,0,0,.065) 100%); background-size: 7px 7px, 100% 100%; box-shadow: inset 10px 0 13px rgba(18,24,29,.2), inset -2px 0 0 rgba(255,255,255,.1), 0 3px 0 color-mix(in srgb, var(--color-primary), black 20%); }
.passport-cover-front::after { content: ''; position: absolute; inset: 5px 4px 5px auto; width: 2px; background: rgba(255,255,255,.1); box-shadow: 3px 0 0 rgba(0,0,0,.08); }
.passport-cover-back { display: flex; flex-direction: column; align-items: center; justify-content: center; border: 1px solid color-mix(in srgb, var(--color-paper), transparent 55%); background: color-mix(in srgb, var(--color-primary), black 10%); color: var(--color-paper); transform: rotateY(180deg); }
.passport-cover-back::after { content: ''; position: absolute; inset: 10px; border: 1px solid rgba(255,255,255,.2); }
.passport-cover-back span, .passport-cover-back small { font-size: .48rem; letter-spacing: .2em; text-transform: uppercase; }
.passport-cover-back b { margin: 1.2rem 0; font-family: 'Cormorant Garamond', serif; font-size: 2.4rem; font-weight: 400; }
.passport-border { height: 100%; }
.passport-spine { inset: 0 auto 0 11px; width: 2px; background: rgba(15,23,29,.2); box-shadow: 2px 0 0 rgba(255,255,255,.1); }
.cover-action { margin-top: 1.15rem; gap: .35rem; font-size: .6rem; transition: opacity .45s ease, transform .55s cubic-bezier(.22,.7,.22,1); }
.cover-arrow { animation: arrowFine 2.4s ease-in-out infinite; }
.cover:not(.passport-opening) .passport:hover { transform: translateY(-5px) scale(1.015); }
.cover:not(.passport-opening) .passport-scene:hover { filter: drop-shadow(0 31px 28px rgba(32,35,36,.25)); }
.passport-opening::before { opacity: .45; transform: rotate(28deg) scale(1.12); }
.passport-opening::after { opacity: .45; transform: rotate(-20deg) scale(1.12); }
.passport-opening .cover-action { opacity: 0; transform: translateY(12px); }
.passport-opening .passport { animation: none; transform: translateY(-4px) scale(1.025); }
.passport-opening .passport-scene { transform: translateX(18%) scale(1.015); filter: drop-shadow(0 34px 30px rgba(32,35,36,.24)); }
.passport-opening .passport-pages { transform: translateZ(-3px) translateX(5px); box-shadow: 5px 6px 0 color-mix(in srgb, var(--color-paper), var(--color-secondary) 18%), 11px 13px 26px rgba(30,31,31,.19); }
.passport-opening .passport-cover { transform: translateZ(4px) rotateY(-168deg); }
.passport-opened .passport { filter: none; transform: translateY(-4px) scale(1.035); }
.passport-opened .passport-cover { transform: translateZ(4px) rotateY(-176deg); }
.passport-opened .passport-page-content { animation: passportPageReveal .6s .05s cubic-bezier(.22,.7,.22,1) both; }
.cover-exiting { opacity: 0; filter: blur(1.5px); transform: translateY(-8px) scale(1.025); pointer-events: none; }
.cover-exiting .passport-scene { transform: translateX(18%) translateY(-8px) scale(1.07); }
.passport-was-opened .passport { animation: none; }
.invitation.is-entering #invitation-start { animation: invitationEnter .9s ease both; }
@keyframes passportFloat { 50% { transform: translateY(-4px); } }
@keyframes passportPageReveal { from { opacity: .35; transform: scale(.975); } to { opacity: 1; transform: scale(1); } }
@keyframes arrowFine { 50% { transform: translateY(5px); } }
@keyframes invitationEnter { from { opacity: .25; } to { opacity: 1; } }

/* Real photography integrated into the travel scrapbook */
.intro-collage { min-height: 1580px; padding-top: 7rem; }
.collage-stage { height: 1430px; }
.collage-hero { position: absolute; top: 285px; left: 8%; width: 84%; height: 520px; margin: 0; padding: 8px; background: var(--color-paper); box-shadow: 0 20px 42px rgba(35,34,31,.15); transform: rotate(-1.3deg); z-index: 3; }
.collage-hero img { width: 100%; height: 100%; object-fit: var(--photo-fit, cover); object-position: var(--focal-point, 50% 50%); }
.paper-tape { position: absolute; top: -15px; left: 50%; width: 76px; height: 29px; background: color-mix(in srgb, var(--color-paper), var(--color-accent) 12%); box-shadow: 0 2px 5px rgba(40,37,32,.08); opacity: .88; transform: translateX(-50%) rotate(-2deg); z-index: 4; }
.intro-photo { z-index: 6; }
.intro-photo-1 { top: 750px; left: -4px; width: 53%; height: 345px; }
.intro-photo-2 { top: 820px; right: -5px; width: 51%; height: 355px; }
.travel-manifest { position: absolute; top: 660px; right: 1%; display: grid; width: 43%; padding: 1rem; transform: rotate(3deg); z-index: 5; }
.travel-manifest small { margin-top: .45rem; color: var(--color-accent); font-size: .42rem; letter-spacing: .16em; text-transform: uppercase; }
.travel-manifest b { font-family: 'Cormorant Garamond', serif; font-size: .9rem; font-weight: 500; }
.date-card { top: 1130px; left: 3%; width: 56%; }
.side-note { top: 1155px; right: -5px; height: 180px; }
.travel-ticket { top: 1360px; }
.postal-stamp { top: 1300px; }
.flight-path { top: 1390px; }
.intro-note { top: 1450px; }
.collage-hero img, .intro-photo img, .story-photo img, .gallery-item img, .final-photo img { filter: none; }
.story-photo, .gallery-item, .collage-hero { position: relative; }
.story-photo, .gallery-item { overflow: visible; }
.story-photo img, .gallery-item img { overflow: hidden; }
.reveal-scale { transform: translateY(30px) rotate(-4deg) scale(.95); }
.reveal-scale.is-visible { transform: translateY(0) rotate(-1deg) scale(1); }
.collage-hero.is-visible { transform: rotate(-1.3deg); }
.intro-photo-1.is-visible { transform: rotate(-3deg); }
.intro-photo-2.is-visible { transform: rotate(3deg); }
.gallery-item:nth-child(3n+1).is-visible { transform: rotate(-1.5deg); }
.gallery-item:nth-child(3n+2).is-visible { transform: rotate(1.5deg); }
.photo-credit { display: block; width: fit-content; margin: 2.5rem auto 0; color: var(--color-muted); font-size: .42rem; letter-spacing: .12em; text-decoration: none; text-transform: uppercase; }

@media (min-width: 600px) {
  .album-container { width: min(100% - 56px, 1180px); }
  .passport-scene { width: clamp(330px, 50vw, 410px); }
  .intro-collage { min-height: 1550px; }
  .collage-stage { height: 1390px; max-width: 900px; }
  .collage-hero { top: 300px; left: 16%; width: 68%; height: 650px; }
  .intro-photo-1 { top: 820px; left: 0; width: 40%; height: 430px; }
  .intro-photo-2 { top: 860px; right: 0; width: 39%; height: 440px; }
  .travel-manifest { top: 650px; right: 1%; width: 28%; }
  .date-card { top: 1210px; left: 35%; width: 34%; }
  .side-note { top: 1170px; right: 4%; width: 25%; }
  .travel-ticket { top: 1350px; left: 20%; width: 48%; }
  .postal-stamp { top: 1305px; right: 16%; }
  .flight-path { top: 1380px; }
  .intro-note { top: 1430px; }
}

@media (min-width: 1024px) {
  .passport-scene { width: clamp(320px, 27vw, 480px); }
  .passport-opening .passport-scene { transform: translateX(13%); }
  .cover-exiting .passport-scene { transform: translateX(13%) scale(1.08); }
  .passport-kicker { font-size: .68rem; }
  .passport strong { font-size: clamp(2.1rem, 3vw, 3rem); }
  .passport-emblem { width: 70px; height: 70px; }
  .passport-initials { font-size: 3rem; }
  .cover-action { margin-top: 1.3rem; }
  .section-heading h2 { font-size: clamp(4.4rem, 7vw, 7rem); }
  .intro-collage { min-height: 1350px; }
  .collage-stage { max-width: 1100px; height: 1190px; }
  .passport-card { top: 35px; left: 1%; width: 27%; height: 300px; }
  .invitation-card { top: 25px; right: 2%; width: 38%; min-height: 330px; }
  .collage-hero { top: 245px; left: 27%; width: 46%; height: 650px; }
  .intro-photo-1 { top: 620px; left: 1%; width: 28%; height: 430px; }
  .intro-photo-2 { top: 680px; right: 1%; width: 28%; height: 440px; }
  .travel-manifest { top: 430px; right: 1%; width: 24%; padding: 1.5rem; }
  .date-card { top: 930px; left: 34%; width: 31%; }
  .side-note { top: 875px; right: 12%; width: 18%; }
  .travel-ticket { top: 1085px; left: 31%; width: 39%; }
  .postal-stamp { top: 1015px; right: 20%; }
  .flight-path { top: 1110px; right: 15%; }
  .intro-note { top: 1160px; }
}

@media (max-width: 767px) {
  .passport-scene { perspective: 1450px; }
  .passport:active { transform: translateY(1px) scale(.99); }
  .passport-opening .passport { transform: translateY(-3px) scale(.985); }
  .passport-opening .passport-scene { transform: translateX(9%) scale(.985); filter: drop-shadow(0 28px 25px rgba(32,35,36,.22)); }
  .passport-opening .passport-pages { transform: translateZ(-3px) translateX(2px); }
  .passport-opened .passport { transform: translateY(-3px) scale(.99); }
  .cover-exiting { transform: translateY(-10px) scale(1.015); }
  .cover-exiting .passport-scene { transform: translateX(9%) translateY(-10px) scale(1.025); }
}
