/* 13 — ornaments & decorative copy */
.orn { display: flex; align-items: center; justify-content: center; gap: 12px; margin: 16px auto; color: #c9a878; }
.orn::before, .orn::after { content: ""; width: 44px; height: 1px; background: linear-gradient(90deg, transparent, #d5b996); }
.orn::after { background: linear-gradient(90deg, #d5b996, transparent); }
.orn span { font-size: 12px; line-height: 1; }
.orn em { font-style: normal; font: 10px var(--display); letter-spacing: .2em; color: #b3976f; }
.vtext { position: absolute; z-index: 1; writing-mode: vertical-rl; font: 500 12px/2.1 var(--serif); letter-spacing: .42em; color: #b99a76; opacity: .8; pointer-events: none; }
.vtext--l { left: 2px; top: 16%; }
.vtext--r { right: 2px; bottom: 14%; }
.poem { margin: 14px auto 0; font: 13px/2 var(--serif); letter-spacing: .16em; color: #a68a6d; text-align: center; }
.classical { margin: 12px 0 0; padding: 10px 10px; border: 1px dashed #d8c3a5; border-radius: 4px; font: 12px/1.9 var(--serif); letter-spacing: .06em; color: #7c6350; text-align: center; background: #fffaf2b0; }
.classical strong { color: #8e342b; font-weight: 500; }
.corner-frame { position: relative; }
.corner-frame::before, .corner-frame::after { content: ""; position: absolute; width: 20px; height: 20px; border: 1px solid #c9a878; pointer-events: none; z-index: 3; }
.corner-frame::before { top: -7px; left: -7px; border-right: 0; border-bottom: 0; }
.corner-frame::after { bottom: -7px; right: -7px; border-left: 0; border-top: 0; }

/* 00 — invitation cover: fullscreen envelope */
.cover { position: fixed; inset: 0; z-index: 60; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 24px; text-align: center; cursor: pointer; background: radial-gradient(ellipse at 50% 26%, #7a2820 0%, #5c150f 48%, #3c0c0c 100%); transition: opacity .6s ease .1s; }
.cover::after { content: ""; position: absolute; inset: 0; opacity: .1; 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='.4'/%3E%3C/svg%3E"); pointer-events: none; }
.cover.is-leaving { opacity: 0; pointer-events: none; }
.cover.is-leaving .cover__envelope { transform: translateY(-26px) scale(.97); }
.cover__halo { position: absolute; width: min(120vw, 640px); aspect-ratio: 1; top: 6%; border-radius: 50%; background: radial-gradient(circle, #a0443426 0%, transparent 62%); }
.cover__eyebrow { position: relative; font: 10px var(--display); letter-spacing: .3em; color: #cf9d76; margin: 0 0 10px; }
.cover__title { position: relative; margin: 0 0 10px; font: 500 clamp(44px, 9vw, 64px)/1.15 var(--serif); color: #f6e3c8; letter-spacing: .32em; text-indent: .32em; text-shadow: 0 6px 30px #0000004d; }
.cover__title-en { position: relative; margin: 0 0 4px; font: 9px var(--display); letter-spacing: .32em; color: #c99f72; }
.cover__orn { position: relative; display: flex; align-items: center; gap: 10px; margin: 0 0 22px; color: #d8b07a; font-size: 11px; }
.cover__orn::before, .cover__orn::after { content: ""; width: 56px; height: 1px; background: linear-gradient(90deg, transparent, #e8c28a99); }
.cover__orn::after { background: linear-gradient(90deg, #e8c28a99, transparent); }
.cover__verse { position: absolute; bottom: calc(78px + env(safe-area-inset-bottom)); left: 0; right: 0; margin: 0; font: 11.5px/2 var(--serif); letter-spacing: .28em; color: #cf9d76; }
.cover__envelope { position: relative; width: min(84vw, 400px); aspect-ratio: 8 / 5.4; transition: transform .6s var(--ease-dream); }
.cover__letter { position: absolute; z-index: 2; left: 5%; right: 5%; top: 6%; bottom: 12%; background: linear-gradient(160deg, #fffdf7, #f2e6d4); border: 1px solid #d9c6ab; border-radius: 5px; box-shadow: 0 10px 30px #00000038; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 9px; transition: transform .95s var(--ease-dream) .45s; }
.cover__letter-tiny { font: 8px var(--display); letter-spacing: .24em; color: #a18a6f; }
.cover__letter-names { font: 500 clamp(20px, 5.6vw, 27px) var(--serif); color: #5c4a3c; letter-spacing: .06em; }
.cover__letter-names i { font: italic clamp(16px, 4.4vw, 22px) var(--display); color: #b3926a; padding: 0 5px; }
.cover__letter-date { font: 11px var(--display); letter-spacing: .2em; color: #9d7f5e; }
.cover__pocket { position: absolute; inset: 0; z-index: 3; background: linear-gradient(150deg, #f3e3d0 0%, #e8d2b9 46%, #f6e9d8 100%); background-image: radial-gradient(#b98d5f1f 1px, transparent 1.4px), linear-gradient(150deg, #f3e3d0 0%, #e8d2b9 46%, #f6e9d8 100%); background-size: 16px 16px, 100% 100%; clip-path: polygon(0 0, 50% 56%, 100% 0, 100% 100%, 0 100%); border-radius: 6px; box-shadow: inset 0 -2px 0 #cbb49366, 0 24px 60px #00000052; }
.cover__pocket::after { content: ""; position: absolute; inset: 9px; border: 1px solid #b98d5f40; pointer-events: none; }
.cover__addressee { position: absolute; left: 0; right: 0; bottom: 8%; text-align: center; font: 500 12px var(--serif); letter-spacing: .28em; color: #8a6a4e; }
.cover__stamp { position: absolute; z-index: 3; top: 12%; right: 8%; width: 46px; height: 58px; padding: 5px 0; background: linear-gradient(160deg, #fdf6e9, #efe0c4); border: 1px dashed #b98d5f; border-radius: 3px; display: grid; place-items: center; align-content: center; gap: 3px; transform: rotate(3deg); box-shadow: 0 3px 8px #00000030; }
.cover__stamp b { font: 500 20px/1 var(--serif); color: #8e342b; }
.cover__stamp i { font: 7px/1 var(--display); font-style: normal; letter-spacing: .06em; color: #a18768; }
.cover__postmark { position: absolute; z-index: 3; top: 24%; right: 21%; width: 64px; height: 64px; border-radius: 50%; border: 1px solid #c9a87890; box-shadow: inset 0 0 0 2.5px #c9a8784d; display: grid; place-content: center; gap: 2px; transform: rotate(-11deg); color: #b98d5f; }
.cover__postmark span { font: 7px/1 var(--serif); letter-spacing: .14em; }
.cover__postmark em { font: 6.5px/1 var(--display); font-style: normal; letter-spacing: .08em; }
.cover__flap { position: absolute; inset: 0 0 auto 0; height: 57%; z-index: 4; background: linear-gradient(180deg, #eed9c2 0%, #dfc4a4 82%); clip-path: polygon(0 0, 100% 0, 50% 100%); border-radius: 6px 6px 0 0; transform-origin: top center; transition: transform .85s var(--ease-soft), z-index 0s linear .42s; }
.cover__seal { position: absolute; z-index: 5; left: 50%; top: 47%; width: 56px; height: 56px; transform: translate(-50%, -50%); border-radius: 50%; display: grid; place-items: center; font: 400 26px var(--serif); color: #f6d9a8; background: radial-gradient(circle at 34% 28%, #9d3a2c, #6b1710 78%); border: 1px solid #e8c28a59; box-shadow: 0 4px 14px #00000042; transition: opacity .35s ease .12s, transform .5s var(--ease-dream) .12s; }
.cover__hint { position: absolute; bottom: calc(30px + env(safe-area-inset-bottom)); left: 0; right: 0; margin: 0; display: flex; align-items: center; justify-content: center; gap: 9px; font-size: 12px; letter-spacing: .14em; color: #e8c9a2; }
.cover.is-open .cover__flap { transform: rotateX(-164deg); z-index: 1; }
.cover.is-open .cover__letter { transform: translateY(-54%); }
.cover.is-open .cover__seal { opacity: 0; transform: translate(-50%, -50%) rotate(24deg) scale(1.35); }
.cover.is-leaving .cover__hint { opacity: 0; }

/* 01 — Opening */
.scene--opening { min-height: 100svh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 84px 24px 78px; text-align: center; }
.opening__names { margin: 22px 0 0; font: 500 clamp(22px, 6vw, 30px) var(--serif); color: #5c493b; letter-spacing: .08em; }
.opening__names i { font: italic clamp(18px, 5vw, 24px) var(--display); color: #ba9871; padding: 0 6px; }
.opening__date { margin: 12px 0 0; font: 12px var(--display); letter-spacing: .22em; color: #a18768; }
.opening__date em { font-style: normal; color: #c9a27a; padding: 0 4px; }
.opening__halo { position: absolute; width: min(88vw, 440px); aspect-ratio: 1; top: 13%; border-radius: 50%; background: radial-gradient(circle, #fffdf7 0%, #f3e5d8aa 45%, transparent 72%); filter: blur(5px); }
.opening__eyebrow { position: relative; z-index: 2; font: 10px var(--display); letter-spacing: .28em; color: #ad9476; margin-bottom: 14px; }
.flower-stage { width: min(100%, 360px); height: min(54vh, 430px); min-height: 315px; position: relative; display: grid; place-items: center; cursor: pointer; perspective: 900px; outline: none; }
.flower-stage:focus-visible { outline: 1px dashed var(--gold); outline-offset: 4px; border-radius: 24px; }
.flower { position: absolute; width: 158px; height: 158px; top: 10%; z-index: 3; filter: drop-shadow(0 12px 22px #9e7e5a24); transition: transform 1.2s var(--ease-dream), opacity .8s ease; }
.petal { position: absolute; width: 54px; height: 88px; left: 52px; top: 13px; border-radius: 80% 15% 70% 25%; transform-origin: 50% 85%; background: linear-gradient(135deg, #fffdf8 0%, #f1d9d0 62%, #d6b7a5 100%); box-shadow: inset 3px 3px 12px #ffffffc9, inset -3px -5px 10px #c8a59425; }
.petal--1 { transform: rotate(0deg) translateY(-10px); }
.petal--2 { transform: rotate(60deg) translateY(-10px); }
.petal--3 { transform: rotate(120deg) translateY(-10px); }
.petal--4 { transform: rotate(180deg) translateY(-10px); }
.petal--5 { transform: rotate(240deg) translateY(-10px); }
.petal--6 { transform: rotate(300deg) translateY(-10px); }
.flower__heart { position: absolute; width: 25px; height: 25px; border-radius: 50%; left: 66px; top: 66px; background: radial-gradient(circle at 35% 30%, #fff1c8, #cba16a 75%); box-shadow: 0 0 0 6px #e8d0a944; }
.silk { position: absolute; top: 8%; bottom: 9%; width: 48%; border-radius: 48% 52% 12% 18%; opacity: .62; filter: blur(.2px); background: linear-gradient(100deg, #fffdf8 0%, #e6d3c5 25%, #fff9ee 48%, #d8c0ad 75%, #fffaf2 100%); box-shadow: inset 8px 0 18px #ffffffb0, 0 15px 45px #b7a18a16; transition: transform 1.25s var(--ease-dream), opacity 1s ease; }
.silk--left { left: 1%; transform: rotate(8deg) skewY(7deg); }
.silk--right { right: 1%; transform: rotate(-8deg) skewY(-7deg) scaleX(-1); }
.envelope { position: absolute; z-index: 4; bottom: 10%; width: min(82%, 290px); height: 168px; opacity: 0; transform: translateY(32px) scale(.9); transition: opacity .7s ease, transform 1s var(--ease-dream); }
.envelope__back { position: absolute; inset: 0; border-radius: 5px; background: #e6d5c2; box-shadow: 0 20px 45px #8f755229; }
.letter { position: absolute; z-index: 1; left: 8%; right: 8%; bottom: 12px; height: 145px; background: linear-gradient(135deg, #fffdf7, #f4eadb); border: 1px solid #d7c4a9; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; transition: transform 1.1s var(--ease-dream); }
.letter__tiny { font: 8px var(--display); letter-spacing: .15em; color: #a18a6f; }
.letter__title { font: 12px var(--serif); letter-spacing: .08em; }
.letter__names { font: 21px var(--serif); color: #6b584a; }
.letter__names i { font: italic 18px var(--display); color: #ba9871; padding: 0 5px; }
.letter__date { font: 11px var(--display); letter-spacing: .17em; color: #9d7f5e; }
.envelope__front { position: absolute; z-index: 2; inset: 0; background: linear-gradient(145deg, transparent 49.5%, #d5c0a7 50%) left top / 50% 100% no-repeat, linear-gradient(215deg, transparent 49.5%, #e8d8c4 50%) right top / 50% 100% no-repeat; clip-path: polygon(0 0, 50% 54%, 100% 0, 100% 100%, 0 100%); }
.wax-seal { position: absolute; z-index: 3; width: 34px; height: 34px; left: calc(50% - 17px); top: 48%; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(circle at 35% 25%, #ead2a8, #a98250); color: #fff5df; font-size: 19px; box-shadow: 0 2px 8px #80603b55; transition: opacity .3s, transform .5s; }
.opening__copy { position: relative; z-index: 5; max-width: 350px; margin-top: -2px; }
.opening__copy h1 { font: 400 clamp(21px, 5.6vw, 27px)/1.75 var(--serif); letter-spacing: .06em; color: var(--ink-deep); margin: 15px 0 12px; }
.opening__hint { font-size: 11px; letter-spacing: .08em; color: #a18a73; display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 22px; }
.hint-pulse { width: 5px; height: 5px; border-radius: 50%; background: #b9956b; animation: pulse 1.8s ease-in-out infinite; }
.scene--opening.is-open .flower { transform: translateY(-70px) scale(.72); opacity: .15; }
.scene--opening.is-open .silk--left { transform: translateX(-62%) rotate(12deg) skewY(7deg); opacity: .18; }
.scene--opening.is-open .silk--right { transform: translateX(62%) rotate(-12deg) skewY(-7deg) scaleX(-1); opacity: .18; }
.scene--opening.is-open .envelope { opacity: 1; transform: translateY(0) scale(1); }
.scene--opening.is-open .letter { transform: translateY(-88px); }
.scene--opening.is-open .wax-seal { opacity: 0; transform: scale(1.5) rotate(25deg); }
.scene--opening.is-open .opening__hint { opacity: .55; }

/* 02 — 囍 poster + countdown */
.scene--poster { min-height: 100svh; display: grid; place-items: center; padding: 96px 24px 92px; text-align: center; }
.poster__bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; animation: ken-burns 26s var(--ease-soft) infinite alternate; }
.poster__veil { position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, #400a0ad9 0%, #58000080 34%, #58000066 62%, #380707ee 100%); }
.poster__content { position: relative; z-index: 2; width: min(100%, 430px); display: grid; justify-items: center; }
.poster__seal { position: relative; width: 78px; height: 78px; margin-bottom: 22px; border-radius: 50%; border: 1px solid #e8c28a66; background: #58000080; backdrop-filter: blur(3px); display: grid; place-items: center; }
.poster__seal span { font: 400 34px var(--serif); color: #f3d7a6; line-height: 1; }
.poster__seal::before { content: ""; position: absolute; inset: -9px; border: 1px dashed #e8c28a4d; border-radius: 50%; animation: spin-slow 30s linear infinite; }
.scene--poster .eyebrow { color: #d8b07a; }
.poster__names { margin: 14px 0 10px; font: 400 clamp(34px, 9vw, 50px)/1.3 var(--serif); letter-spacing: .04em; color: #f9eeda; text-shadow: 0 4px 30px #00000059; white-space: nowrap; }
.poster__names i { font: italic 32px var(--display); color: #e0af72; padding: 0 6px; }
.poster__date { margin: 0 0 26px; font: 13px var(--display); letter-spacing: .2em; color: #e3c191; }
.poster__date em { font-style: normal; color: #b3764f; padding: 0 4px; }
.countdown { display: flex; gap: 9px; }
.countdown__cell { min-width: 64px; padding: 13px 9px 10px; border-radius: 10px; background: #ffffff12; border: 1px solid #e8c28a3d; backdrop-filter: blur(6px); box-shadow: inset 0 1px 0 #ffffff1c; }
.countdown__cell strong { display: block; font: 400 27px/1 var(--display); color: #ffe9cf; font-variant-numeric: tabular-nums; }
.countdown__cell span { display: block; margin-top: 6px; font: 8px var(--display); letter-spacing: .22em; color: #cf9d76; }
.countdown__cell.is-tick strong { animation: tick-pop .4s var(--ease-dream); }
.poster__till { margin: 18px 0 0; font-size: 11px; letter-spacing: .12em; color: #d8b07a; }
.poster__verse { margin: 12px 0 0; font: 11px var(--display); letter-spacing: .3em; color: #cf9d76; }
.scroll-cue--gold { color: #cf9d76; }
.scroll-cue--gold span { background: #a86a4d; }
.scroll-cue--gold span::after { background: #f3d7a6; }

/* 03 — first memory */
.scene--memory { display: flex; flex-direction: column; justify-content: center; padding: 92px 0 96px; background: linear-gradient(180deg, #f6eee3aa, #f9f6ee 85%); }
.memory-layout { display: grid; grid-template-columns: 1fr; }
.memory-copy { margin: 35px 0 26px; max-width: 350px; }
.memory-copy h2 em, .rsvp__content h2 em { color: #b18e73; font-style: normal; }
.memory-copy .body-copy { max-width: 300px; }
.love-stats { display: flex; margin-top: 26px; border-block: 1px solid #e6d7c4; }
.love-stat { flex: 1; padding: 15px 4px 13px; text-align: center; }
.love-stat + .love-stat { border-left: 1px solid #e6d7c4; }
.love-stat strong { display: block; font: 400 24px/1.1 var(--display); color: #9d6b43; font-variant-numeric: tabular-nums; }
.love-stat span { display: block; margin-top: 5px; font-size: 9px; letter-spacing: .12em; color: #a18768; }
.photo-frame { margin: 0; }
.photo-frame--portrait { width: 83%; margin-left: auto; }
.photo-arch { overflow: hidden; border-radius: 160px 160px 6px 6px; box-shadow: 0 22px 55px #87735b29; border: 1px solid #e9dcc9; background: #fffdf8; padding: 7px; }
.photo-arch img { width: 100%; aspect-ratio: 3 / 4.05; object-fit: cover; border-radius: 155px 155px 3px 3px; }
.photo-frame figcaption { display: flex; justify-content: space-between; padding: 13px 4px 0; font: 9px var(--display); letter-spacing: .12em; color: #a28a70; }
.polaroid { width: 56%; margin: -58px 6% 0 auto; padding: 8px 8px 12px; background: #fffdf8; border: 1px solid #eee3d2; box-shadow: 0 18px 40px #87735b2e; transform: rotate(3deg); position: relative; z-index: 2; }
.polaroid img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.polaroid small { display: block; padding-top: 8px; text-align: center; font: 8px var(--display); letter-spacing: .18em; color: #a28a70; }
.floating-petal { position: absolute; width: 22px; height: 36px; border-radius: 90% 10% 80% 20%; background: linear-gradient(135deg, #fff9f2, #dfb9a7); opacity: .75; filter: blur(.2px); }
.floating-petal--a { top: 38%; left: -1%; transform: rotate(-28deg); }
.floating-petal--b { bottom: 8%; left: 8%; transform: rotate(42deg) scale(.7); }

/* 04 — happy moments: random draw */
.scene--moments { display: flex; flex-direction: column; justify-content: center; padding: 48px 0 52px; background: linear-gradient(180deg, #f9f6ee, #f4e9dc 100%); }
.scene--moments .scene__content { max-width: 620px; }
.moment-stage { position: relative; display: grid; place-items: center; padding: 10px 0 20px; perspective: 1200px; }
.moment-stage__glow { position: absolute; width: min(78vw, 380px); aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, #fffdf8 0%, #f6e3cf88 46%, transparent 70%); filter: blur(4px); }
.moment-petals { position: absolute; inset: -30px; pointer-events: none; overflow: visible; }
.moment-card { position: relative; z-index: 1; width: min(100%, 340px); aspect-ratio: 3 / 4.05; cursor: pointer; transform-style: preserve-3d; transition: transform .85s var(--ease-dream); }
.moment-card.is-open { transform: rotateY(180deg); }
.moment-card.is-flicking { animation: moment-flick .85s var(--ease-soft); }
.moment-card:focus-visible { outline: 1px dashed var(--gold); outline-offset: 8px; border-radius: 18px; }
.moment-card__face { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; border-radius: 16px; overflow: hidden; display: flex; flex-direction: column; }
.moment-card__face--back { align-items: center; justify-content: center; gap: 15px; background: linear-gradient(165deg, #8e342b, #5c150f 70%); border: 1px solid #a04a38; box-shadow: 0 22px 50px #6b3a2b45; }
.moment-card__back::after { content: ""; position: absolute; inset: 9px; border: 1px solid #e8c28a3d; border-radius: 11px; pointer-events: none; }
.moment-card__seal { width: 66px; height: 66px; border-radius: 50%; display: grid; place-items: center; font: 400 31px var(--serif); color: #f6d9a8; border: 1px solid #e8c28a66; background: #00000026; }
.moment-card__back-text { font: 13px/1.9 var(--serif); letter-spacing: .12em; color: #f3ddc0; text-align: center; }
.moment-card__back-tiny { font: 8px var(--display); letter-spacing: .22em; color: #cf9d76; }
.moment-card__face--front { transform: rotateY(180deg); background: #fffdf8; border: 1px solid #e9dcc9; box-shadow: 0 22px 50px #87735b2b; }
.moment-card__photo { flex: 1; min-height: 0; overflow: hidden; background: #eee3d2; }
.moment-card__photo img { width: 100%; height: 100%; object-fit: cover; }
.moment-card__photo img.is-developing { animation: moment-develop 1.5s var(--ease-dream); }
.moment-card__body { position: relative; padding: 13px 15px 13px; }
.moment-card__date { margin: 0 0 4px; font: 11px var(--display); letter-spacing: .15em; color: #ad8a66; }
.moment-card__title { margin: 0 0 6px; font: 500 18px var(--serif); color: var(--ink-deep); }
.moment-card__text { margin: 0; font-size: 11.5px; line-height: 1.8; color: #8d7b6a; }
.moment-card__no { position: absolute; top: 14px; right: 15px; font: 8px var(--display); letter-spacing: .18em; color: #bb9d78; }
.moment-card__body.is-swapping .moment-card__date { animation: fade-up .5s .05s var(--ease-dream) backwards; }
.moment-card__body.is-swapping .moment-card__title { animation: fade-up .55s .16s var(--ease-dream) backwards; }
.moment-card__body.is-swapping .moment-card__text { animation: fade-up .6s .28s var(--ease-dream) backwards; }
.moment-card__body.is-swapping .moment-card__no { animation: fade-up .5s .4s var(--ease-dream) backwards; }
.moment-actions { display: grid; justify-items: center; gap: 14px; margin-top: 4px; }
.moment-actions .primary-button { background: #7a2820; border-color: #7a2820; }
.moment-actions .primary-button span { color: #f3d7a6; }
.moment-count { margin: 0; font-size: 11px; color: #a18768; letter-spacing: .05em; text-align: center; }
.moment-count strong { font: 500 15px var(--display); color: #9d6b43; }

/* 05 — the wall of us */
.scene--wall { display: flex; flex-direction: column; justify-content: center; padding: 38px 0 36px; background: linear-gradient(180deg, #f4e9dd 0%, #f9f6ee 100%); }
.scene--wall .section-heading { margin: 14px auto 18px; }
.scene--wall .scene__content { margin-bottom: 12px; }
.wall { position: relative; overflow-x: auto; overflow-y: hidden; cursor: grab; scrollbar-width: none; -webkit-overflow-scrolling: touch; padding: 10px var(--page-gutter) 12px; }
.wall::-webkit-scrollbar { display: none; }
.wall.is-dragging { cursor: grabbing; }
.wall.is-dragging .wall-frame { pointer-events: none; }
.wall__row { display: grid; grid-auto-flow: column; grid-template-rows: repeat(3, clamp(124px, 15vh, 195px)); grid-auto-columns: max-content; align-items: center; gap: 22px 18px; width: max-content; padding: 4px 10px; }
.wall-frame { position: relative; display: flex; flex-direction: column; height: 100%; padding: 0; border: 0; background: transparent; cursor: zoom-in; transform: rotate(var(--tilt, 0deg)); transition: transform .35s var(--ease-dream); }
.wall-frame:hover, .wall-frame:focus-visible { transform: rotate(0deg) translateY(-5px); z-index: 2; }
.wall-frame__photo { display: block; flex: 1; min-height: 0; overflow: hidden; box-shadow: 0 14px 34px #6d553f33; transition: box-shadow .35s; }
.wall-frame__photo img { width: 100%; height: 100%; object-fit: cover; }
.wall-frame__cap { display: block; max-width: 100%; padding: 8px 2px 0; font: 10px var(--serif); letter-spacing: .06em; color: #8d7360; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wall-frame--white .wall-frame__photo { background: #fffdf8; border: 1px solid #eee3d2; padding: 8px; }
.wall-frame--wood .wall-frame__photo { background: linear-gradient(160deg, #8a6a4e, #65472f 78%); border: 1px solid #59402e; padding: 9px; box-shadow: inset 0 0 0 1px #c8b29540, 0 14px 34px #6d553f3d; }
.wall-frame--wood .wall-frame__photo img { outline: 1px solid #00000026; }
.wall-frame--mono .wall-frame__photo { background: #fffdf8; border: 1px solid #eee3d2; padding: 8px 8px 5px; }
.wall-frame--mono .wall-frame__cap { font: italic 11px var(--display); color: #9d7c5c; text-align: center; }
.wall-frame--xl { width: 236px; }
.wall-frame--l { width: 204px; }
.wall-frame--m { width: 176px; }
.wall-frame--s { width: 148px; }
.wall-note { height: 100%; display: grid; place-items: center; padding: 6px 10px; }
.wall-note span { position: relative; display: grid; place-items: center; width: 156px; aspect-ratio: 1; padding: 16px 13px; background: #fff8e0; box-shadow: 0 12px 26px #8a704629; font: 12.5px/1.9 var(--serif); color: #7c6350; text-align: center; transform: rotate(var(--tilt, 0deg)); }
.wall-note span::before { content: ""; position: absolute; top: -9px; left: 50%; transform: translateX(-50%) rotate(-2deg); width: 58px; height: 18px; background: #e8d0a9b3; }
.wall-plaque { height: 100%; display: grid; place-content: center; justify-items: center; gap: 11px; padding: 0 26px; border-radius: 12px; background: linear-gradient(165deg, #7a2820, #4d0f0f); box-shadow: 0 16px 36px #4d0f0f40; transform: rotate(-1.2deg); }
.wall-plaque__seal { width: 54px; height: 54px; border-radius: 50%; border: 1px solid #e8c28a66; display: grid; place-items: center; font: 26px var(--serif); color: #f6d9a8; }
.wall-plaque strong { font: 500 16px var(--display); letter-spacing: .18em; color: #ffe9cf; }
.wall-plaque em { font: 7.5px var(--display); font-style: normal; letter-spacing: .2em; color: #cf9d76; }
.wall__progressbar { width: min(calc(100% - var(--page-gutter) * 2), 320px); height: 2px; margin: 12px auto 0; background: #e5d5c2; border-radius: 2px; overflow: hidden; }
.wall__progressbar span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #c99b6b, #7a2820); border-radius: 2px; transition: width .18s linear; }
.wall__hint { text-align: center; margin: 8px 0 0; font: 10px var(--display); letter-spacing: .22em; color: #a18768; }

/* 06 — everyday love */
.scene--everyday { min-height: 100svh; display: flex; flex-direction: column; justify-content: center; padding: 48px 0 52px; background: #e9dbcd; }
.everyday__image { position: relative; width: calc(100% - 42px); max-width: 560px; margin: 0 auto; }
.everyday__image img { width: 100%; aspect-ratio: 4 / 4.2; object-fit: cover; box-shadow: 0 22px 55px #6d553f2b; border-radius: 4px; }
.everyday__sticker { position: absolute; right: -12px; bottom: 24px; width: 62px; height: 62px; border: 1px solid #fff4e5a8; border-radius: 50%; display: grid; place-content: center; text-align: center; font: italic 12px/1.1 var(--display); color: #fff9ed; background: #7a4a3366; backdrop-filter: blur(3px); transform: rotate(10deg); }
.everyday__copy { width: min(calc(100% - 50px), 430px); margin: 35px auto 0; }
.everyday__copy h2 { font: 400 31px/1.65 var(--serif); color: #594638; letter-spacing: .06em; margin: 14px 0; }
.everyday__copy h2 em { font-style: normal; color: #a77f63; }
.everyday__copy > p:not(.eyebrow) { font-size: 13px; line-height: 2; color: #826d5a; }
.everyday__quote { margin: 20px 0 0; padding: 14px 16px; border-left: 2px solid #c99b6b; background: #fffdf8a8; font: 13px/1.9 var(--serif); color: #7c6350; letter-spacing: .04em; }
.everyday__signature { margin-top: 22px; font: italic 17px var(--display); color: #a08467; }

/* 07 — the reel of us */
.scene--reel { display: flex; flex-direction: column; padding: 44px 0 32px; background: linear-gradient(180deg, #f4e9dd, #f9f6ee 80%); }
.scene--reel .scene__content { margin-bottom: 8px; }
.reel-track { flex: 1 1 0; height: 0; min-height: 0; display: flex; align-items: stretch; gap: 16px; overflow-x: auto; scroll-snap-type: x proximity; padding: 8px var(--page-gutter) 10px; scroll-padding-left: var(--page-gutter); scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.reel-track::-webkit-scrollbar { display: none; }
.reel-frame { flex: 0 0 76%; max-width: 340px; margin: 0; scroll-snap-align: center; display: flex; flex-direction: column; background: #fffdf8; border: 1px solid #e6d7c6; padding: 9px 9px 11px; box-shadow: 0 16px 38px #7a634a17; }
.reel-frame img { flex: 1; min-height: 0; width: 100%; object-fit: cover; }
.reel-frame figcaption { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; padding-top: 11px; }
.reel-frame figcaption span { font: 8px var(--display); letter-spacing: .18em; color: #b3976f; }
.reel-frame figcaption strong { font: 500 17px var(--serif); color: #5c493b; letter-spacing: .1em; }
.reel-frame--cta { display: grid; align-content: center; justify-items: center; gap: 13px; text-align: center; padding: 26px 20px; background: linear-gradient(160deg, #7a2820, #4d0f0f); border-color: #6d221b; }
.reel-frame--cta .eyebrow { color: #d8b07a; }
.reel-frame--cta strong { font: 400 30px var(--display); letter-spacing: .1em; color: #ffe9cf; }
.reel-frame--cta p { margin: 0; font: 14px/1.9 var(--serif); color: #f3ddc0; }
.reel-frame--cta .primary-button { background: #ffe9cf; border-color: #ffe9cf; color: #5d1410; min-height: 42px; font-size: 12px; }
.reel-frame--cta .primary-button span { color: #a86a4d; }
.reel-meta { display: flex; justify-content: space-between; align-items: baseline; width: min(calc(100% - var(--page-gutter) * 2), 760px); margin: 4px auto 0; font: 9px var(--display); letter-spacing: .18em; color: #ad9476; }
.reel-meta span:last-child { color: #9d6b43; font-variant-numeric: tabular-nums; }
.reel-hint { text-align: center; margin: 7px 0 0; font: 10px var(--display); letter-spacing: .22em; color: #a18768; }

/* 08 — vows */
.scene--vows { display: grid; place-items: center; min-height: 100svh; padding: 72px 24px 64px; text-align: center; background: radial-gradient(ellipse at 50% 45%, #fffdf8 0%, #f6e9de 52%, #e9d6c6 100%); }
.vows__silk { position: absolute; width: 130%; height: 48%; left: -15%; border-radius: 50%; background: linear-gradient(170deg, #fffdf8 0%, #e4d1c2 27%, #fffaf1 52%, #d9c0ad 72%, #fffdf8 100%); opacity: .56; filter: blur(1px); transform: rotate(-10deg); }
.vows__silk--one { top: -18%; }
.vows__silk--two { bottom: -22%; transform: rotate(12deg); opacity: .45; }
.vows__content { position: relative; z-index: 2; width: min(100%, 420px); }
.vows__arch { margin: 22px auto 24px; width: 158px; padding: 7px 7px 0; background: #fffdf8b0; border: 1px solid #d5b996; border-bottom: 0; border-radius: 999px 999px 0 0; overflow: hidden; box-shadow: 0 18px 44px #8a6c4c2b; }
.vows__arch img { width: 100%; aspect-ratio: 3 / 3.7; object-fit: cover; border-radius: 999px 999px 0 0; }
.vows__prelude { font: 13px var(--serif); letter-spacing: .12em; color: #8d7867; margin: 0 0 19px; }
.vows__names { font: 400 clamp(34px, 9vw, 48px) var(--serif); letter-spacing: .04em; color: #514035; margin: 0; white-space: nowrap; }
.vows__names i { font: italic 34px var(--display); color: #bd9b75; padding: 0 5px; }
.vows__rule { display: flex; align-items: center; justify-content: center; gap: 12px; margin: 22px 0; font: 9px var(--display); letter-spacing: .18em; color: #ad9274; }
.vows__rule span { width: 28px; height: 1px; background: #d6bd9e; }
.vows__date { font: 17px var(--display); letter-spacing: .22em; color: #8f7354; }
.vows__message { margin: 22px 0 28px; font: 14px/2 var(--serif); color: #887462; letter-spacing: .05em; }
.petal-field { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.burst-petal { position: absolute; top: 48%; left: 50%; width: 13px; height: 22px; border-radius: 90% 10% 80% 20%; background: linear-gradient(135deg, #fffdf8, #d7ad9a); opacity: 0; animation: petal-burst 1.8s var(--ease-dream) forwards; }

/* 09 — details + schedule */
.scene--details { padding: 34px 0 34px; background: linear-gradient(180deg, #f4e9dc, #f9f6ee 72%); }
.scene--details .section-heading { margin: 8px auto 16px; }
.details-grid { display: grid; gap: 20px; align-items: center; }
.invitation-card { position: relative; background: linear-gradient(145deg, #fffdf8, #f5ecdf); border: 1px solid #e2d2bd; padding: 22px 20px 18px; box-shadow: 0 20px 55px #7b62471c; }
.invitation-card::before { content: ""; position: absolute; inset: 7px; border: 1px solid #e9dcc9; pointer-events: none; }
.invitation-card__top { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.invitation-card__monogram { font: 22px var(--display); color: #947452; letter-spacing: .1em; }
.invitation-card__monogram i { font-size: 14px; font-style: normal; color: #c6a77f; }
.invitation-card__label { font: 8px var(--display); letter-spacing: .24em; color: #b19a7d; }
.date-lockup { display: flex; flex-direction: column; align-items: center; margin: 16px 0 13px; }
.date-lockup__month { font: 12px var(--display); letter-spacing: .25em; color: #a88a67; }
.date-lockup strong { font: 400 58px/.95 var(--display); color: #5c4839; margin: 5px 0; }
.date-lockup__year { font: 10px var(--display); letter-spacing: .2em; color: #a28a70; }
.invitation-card__divider { display: flex; justify-content: center; color: #c1a27b; margin: 13px 0; }
.invitation-card__divider::before, .invitation-card__divider::after { content: ""; width: 58px; height: 1px; background: #e1d0b9; align-self: center; margin: 0 11px; }
.detail-row { display: flex; justify-content: space-between; align-items: baseline; gap: 15px; padding: 9px 0; border-bottom: 1px solid #e9dfd1; font-size: 12px; }
.detail-row span { color: #a08c77; flex: 0 0 70px; }
.detail-row strong { font-weight: 500; color: #665344; text-align: right; line-height: 1.7; }
.detail-row--address { align-items: flex-start; }
.invitation-card__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-top: 14px; }
.invitation-card__actions .primary-button { grid-column: 1 / -1; }
.card-footnote { text-align: center; font: 8px var(--display); letter-spacing: .16em; color: #b19b80; margin: 10px 0 0; }
.invitation-card__actions .primary-button, .invitation-card__actions .secondary-button { min-height: 44px; }
.schedule-card { background: #fffdf8b8; border: 1px solid #e7d9c8; padding: 20px 22px 14px; box-shadow: 0 15px 40px #8e735014; }
.schedule-card h3 { font: 500 18px var(--serif); color: var(--ink-deep); margin: 8px 0 2px; }
.schedule { list-style: none; margin: 14px 0 0; padding: 0; }
.schedule li { position: relative; display: grid; grid-template-columns: 54px 1fr; gap: 14px; padding: 0 0 17px 2px; }
.schedule li::before { content: ""; position: absolute; left: 4px; top: 7px; width: 9px; height: 9px; border-radius: 50%; background: #c6a27a; box-shadow: 0 0 0 4px #c6a27a1f; }
.schedule li::after { content: ""; position: absolute; left: 8px; top: 22px; bottom: 4px; width: 1px; background: #e8dac8; }
.schedule li:last-child::after { display: none; }
.schedule time { font: 500 15px var(--display); color: #9d6b43; letter-spacing: .05em; padding-top: 1px; }
.schedule h4 { margin: 0 0 5px; font: 500 13.5px var(--serif); color: #5c493b; line-height: 1.6; }
.schedule p { margin: 0; font-size: 11px; line-height: 1.75; color: #927f6c; }
.schedule-note { margin: 6px 0 0; font-size: 10px; color: #ad9c89; line-height: 1.8; }

/* 10 — RSVP */
.scene--rsvp { display: flex; flex-direction: column; justify-content: center; padding: 52px 0 30px; background: radial-gradient(ellipse at 50% 20%, #fffdf8, #f4e7dc 75%); }
.rsvp__content { width: min(calc(100% - var(--page-gutter) * 2), 470px); margin: 0 auto; text-align: center; }
.rsvp__ornament { position: absolute; top: 45px; right: 10%; font-size: 38px; color: #d7b99a; opacity: .55; transform: rotate(20deg); }
.rsvp__content h2 { margin: 14px 0 10px; font-size: clamp(26px, 6.4vw, 34px); }
.rsvp__content > .body-copy { max-width: 300px; margin: 0 auto 16px; }
.rsvp-form { text-align: left; padding: 18px 18px 14px; background: #fffdf8b8; border: 1px solid #e7d9c8; box-shadow: 0 15px 40px #8e735018; }
.field { display: block; margin-bottom: 14px; }
.field > span, .attendance-field legend { display: block; font-size: 12px; color: #796655; margin-bottom: 8px; }
.field small { color: #b4a28e; margin-left: 5px; }
.field input, .field textarea, .field select { width: 100%; border: 0; border-bottom: 1px solid #ddcbb6; border-radius: 0; padding: 10px 1px; color: var(--ink-deep); background: transparent; font-size: 14px; outline: none; }
.field textarea { resize: vertical; min-height: 56px; line-height: 1.8; }
.field input::placeholder, .field textarea::placeholder { color: #c0b3a4; font-size: 12px; }
.field input:focus, .field textarea:focus, .field select:focus { border-bottom-color: #a98965; }
.attendance-field { padding: 0; border: 0; margin: 0 0 16px; }
.attendance-field legend { padding: 0; }
.attendance-field { display: flex; flex-wrap: wrap; gap: 9px; }
.attendance-field legend { width: 100%; }
.choice { position: relative; cursor: pointer; }
.choice input { position: absolute; opacity: 0; }
.choice span { display: inline-flex; min-height: 40px; padding: 0 14px; align-items: center; border: 1px solid #e1d2c0; border-radius: 30px; color: #8f7b67; font-size: 12px; transition: background .2s, border .2s; }
.choice input:checked + span { background: #e9d9c7; border-color: #c6a784; color: #5e4938; }
.choice input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 3px; }
.rsvp-submit { width: 100%; margin-top: 4px; }
.form-note { color: #ad9c89; font-size: 10px; line-height: 1.7; text-align: center; margin: 13px 0 0; }
.rsvp-success { padding: 35px 20px; background: #fffdf8c7; border: 1px solid #e7d9c8; }
.success-flower { font-size: 40px; color: #c4a17b; margin-bottom: 12px; }
.rsvp-success h3 { font: 500 20px var(--serif); color: var(--ink-deep); }
.rsvp-success p:not(.eyebrow) { font-size: 13px; line-height: 1.9; color: #8d7965; }
/* 11 — ending */
.scene--ending { display: grid; place-content: center; justify-items: center; text-align: center; background: radial-gradient(ellipse at 50% 30%, #fffdf8, #f6e9de 78%); }
.footer { padding: 0 20px; color: #a38a70; }
.footer__mark { font: 27px var(--display); letter-spacing: .1em; }
.footer__mark span { color: #c4a17b; font-size: 18px; }
.ending-photos { display: flex; align-items: flex-start; gap: 16px; margin-bottom: 30px; }
.ending-photos figure { margin: 0; width: 122px; padding: 6px 6px 20px; background: #fffdf8; border: 1px solid #eee3d2; box-shadow: 0 12px 28px #8a704626; }
.ending-photos img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.ending-photos figure:nth-child(1) { transform: rotate(-4deg); }
.ending-photos figure:nth-child(2) { transform: translateY(-10px) rotate(2.5deg); }
.ending-photos figure:nth-child(3) { transform: rotate(-2deg); }
.footer__names { margin: 18px 0 12px; font: 500 23px var(--serif); color: #5c493b; letter-spacing: .1em; }
.footer__names i { font: italic 19px var(--display); color: #ba9871; padding: 0 6px; }
.footer > p { font: 9px var(--display); letter-spacing: .2em; }
.footer .footer__small { font: 10px var(--serif); letter-spacing: .08em; margin-top: 14px; }
.footer__wish { margin: 24px 0 0; font: 14px/2 var(--serif); color: #8d7867; letter-spacing: .1em; }
.back-top { display: inline-block; margin-top: 28px; font-size: 11px; color: #8c765f; border-bottom: 1px solid #d4b896; padding-bottom: 5px; }

/* 11 — lightbox */
.lightbox { position: fixed; inset: 0; z-index: 90; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 6px; padding: 54px 8px calc(18px + env(safe-area-inset-bottom)); background: #26100dfa; backdrop-filter: blur(8px); }
.lightbox[hidden] { display: none; }
.lightbox__close { position: absolute; z-index: 2; top: calc(14px + env(safe-area-inset-top)); right: 14px; width: 42px; height: 42px; border-radius: 50%; border: 1px solid #e8c28a4d; background: #ffffff10; color: #ffe9cf; font-size: 15px; cursor: pointer; }
.lightbox__nav { width: 44px; height: 64px; border: 1px solid #e8c28a3d; background: #ffffff0d; color: #f3ddc0; border-radius: 999px; font-size: 16px; cursor: pointer; }
.lightbox__nav--prev { justify-self: start; }
.lightbox__nav--next { justify-self: end; }
.lightbox__stage { margin: 0; min-width: 0; display: grid; justify-items: center; gap: 14px; }
.lightbox__stage img { max-width: min(92vw, 900px); max-height: 74svh; width: auto; height: auto; border-radius: 6px; box-shadow: 0 30px 80px #000000a8; background: #3a1a14; }
.lightbox__stage img.is-swapping { animation: lb-in .38s var(--ease-dream); }
.lightbox__stage figcaption { display: grid; gap: 6px; justify-items: center; color: #f3ddc0; }
.lightbox__stage figcaption span { font: 12.5px/1.7 var(--serif); letter-spacing: .08em; }
.lightbox__stage figcaption em { font: 9px var(--display); font-style: normal; letter-spacing: .24em; color: #cf9d76; }
body.has-lightbox { overflow: hidden; }
@media (max-width: 699px) {
  .lightbox { grid-template-columns: 1fr; }
  .lightbox__nav { position: absolute; z-index: 2; bottom: calc(84px + env(safe-area-inset-bottom)); width: 46px; height: 46px; }
  .lightbox__nav--prev { left: 12px; }
  .lightbox__nav--next { right: 12px; }
  .lightbox__stage { grid-row: 1; }
}

/* 12 — desktop layouts */
@media (min-width: 700px) {
  .scene--opening { padding-top: 100px; }
  .flower-stage { height: 430px; }
  .scene--memory .scene__content { display: grid; grid-template-columns: .9fr 1.1fr; gap: 0 42px; align-items: center; }
  .scene--memory .chapter-label { grid-column: 1 / -1; }
  .memory-copy { margin-top: 35px; }
  .photo-frame--portrait { width: 100%; grid-column: 2; grid-row: 2; }
  .polaroid { width: 46%; margin: -40px 0 10px -40px; grid-column: 2; grid-row: 2; align-self: end; justify-self: start; z-index: 3; }
  .photo-arch img { aspect-ratio: 3 / 4.3; }
  .scene--moments .scene__content { max-width: 900px; display: grid; grid-template-columns: 1.05fr .95fr; grid-template-areas: "label stage" "heading stage" "actions stage"; align-items: center; column-gap: 46px; }
  .scene--moments .chapter-label { grid-area: label; }
  .scene--moments .section-heading { grid-area: heading; text-align: left; margin: 14px 0 22px; }
  .scene--moments .section-heading .body-copy { margin: 0; max-width: 300px; }
  .scene--moments .moment-stage { grid-area: stage; padding: 6px 0; }
  .scene--moments .moment-actions { grid-area: actions; justify-items: start; text-align: left; }
  .wall__row { grid-template-rows: repeat(3, clamp(132px, 16.5vh, 205px)); gap: 26px 22px; }
  .wall-frame--xl { width: 300px; }
  .wall-frame--l { width: 262px; }
  .wall-frame--m { width: 226px; }
  .wall-frame--s { width: 188px; }
  .everyday__image { width: min(70%, 700px); }
  .everyday__image img { aspect-ratio: 16 / 8.4; }
  .everyday__copy { text-align: center; }
  .everyday__quote { text-align: left; }
  .reel-track { scroll-padding-left: calc((100% - 760px) / 2 + var(--page-gutter)); }
  .reel-frame { flex: 0 0 44%; max-width: 380px; }
  .reel-frame figcaption strong { font-size: 19px; }
  .reel-meta { font-size: 10px; }
  .details-layout { max-width: 900px; }
  .details-grid { grid-template-columns: 1.05fr .95fr; align-items: center; }
  .invitation-card { padding: 20px 28px 14px; }
  .invitation-card__actions { grid-template-columns: repeat(3, 1fr); margin-top: 12px; }
  .invitation-card__actions .primary-button { grid-column: auto; }
  .invitation-card__actions .primary-button, .invitation-card__actions .secondary-button { min-height: 42px; padding: 0 10px; font-size: 12px; gap: 8px; }
  .date-lockup { margin: 14px 0 10px; }
  .date-lockup strong { font-size: 60px; }
  .invitation-card__divider { margin: 10px 0; }
  .card-footnote { margin: 8px 0 0; }
  .schedule-card { padding: 22px 30px 16px; }
  .schedule li { padding-bottom: 20px; }
  .schedule time { font-size: 16px; }
  .schedule h4 { font-size: 14.5px; }
  .rsvp-form { display: grid; grid-template-columns: 1fr 1fr; column-gap: 20px; align-items: start; }
  .rsvp-form .field--full { grid-column: 1 / -1; }
  .rsvp-form .field--half { grid-column: auto; }
}
