:root{--ivory:#f8f7f0;--paper:#fffdf8;--ink:#1f2b22;--muted:#687168;--sage:#75886d;--sage2:#aab7a2;--mist:#edf0e8;--champagne:#c8ab7b;--line:#dcdfd7;--shadow:0 18px 50px rgba(50,61,49,.07);--page-scroll:0}*{box-sizing:border-box}html{scroll-behavior:smooth;background:#ecece7}body{margin:0;color:var(--ink);background:#ecece7;font-family:Inter,Pretendard,-apple-system,BlinkMacSystemFont,"Apple SD Gothic Neo","Noto Sans KR",system-ui,sans-serif}.site-shell{width:min(100%,760px);margin:0 auto;background:var(--ivory);overflow:hidden}.hero{position:relative;min-height:720px;padding:22px clamp(18px,4vw,34px) 34px;border-bottom:1px solid var(--line);background:linear-gradient(180deg,#fbfaf5 0%,#f5f2e7 65%,#f8f7f0 100%);overflow:hidden}.hero-decor{position:absolute;inset:0;pointer-events:none}.sun-glow{position:absolute;width:340px;height:340px;right:-145px;top:70px;border-radius:50%;background:radial-gradient(circle,rgba(255,245,199,.42),rgba(255,245,199,0) 68%);animation:glowBreath 5s ease-in-out infinite}.arch{position:absolute;left:50%;transform:translateX(-50%);border:1px solid rgba(117,136,109,.26);border-bottom:0;border-radius:48% 48% 0 0/20% 20% 0 0}.arch-outer{top:62px;width:76%;height:470px}.arch-inner{top:88px;width:67%;height:440px;border-color:rgba(200,171,123,.24)}.chandelier{position:absolute;top:4px;left:50%;transform:translateX(-50%);width:260px;height:148px}.crystal{position:absolute;top:0;width:2px;background:linear-gradient(to bottom,rgba(200,171,123,.04),rgba(200,171,123,.78),rgba(200,171,123,.06));transform-origin:top;animation:sway 3.7s ease-in-out infinite}.crystal:after{content:"";position:absolute;left:50%;bottom:-8px;width:8px;height:8px;border-radius:50%;transform:translateX(-50%);background:white;box-shadow:0 0 13px rgba(255,255,255,1),0 0 22px rgba(200,171,123,.54)}.petal{position:absolute;width:10px;height:16px;border-radius:80% 20% 70% 30%;background:rgba(255,255,255,.9);border:1px solid rgba(200,171,123,.12);animation:petal 7s linear infinite}.p1{left:11%;top:88px}.p2{left:77%;top:146px;animation-delay:-2s}.p3{left:62%;top:94px;animation-delay:-4.6s}.p4{left:30%;top:205px;animation-delay:-1.2s}.p5{left:87%;top:232px;animation-delay:-5.4s}.p6{left:47%;top:138px;animation-delay:-3.1s}.sprig{position:absolute;width:150px;height:170px;opacity:.57;fill:var(--mist);stroke:var(--sage);stroke-width:1.4}.sprig ellipse:nth-of-type(2){fill:var(--sage2);opacity:.55}.sprig circle{fill:white;stroke:var(--line)}.sprig-left{left:-40px;top:218px;animation:branchFloat 5s ease-in-out infinite}.sprig-right{right:-42px;top:300px;transform:rotate(180deg);animation:branchFloat2 5.8s ease-in-out infinite}.hero-header{position:relative;z-index:2;display:flex;align-items:center;justify-content:space-between;gap:12px}.eyebrow,.section-kicker{font-size:10px;letter-spacing:.29em;color:var(--sage);font-weight:800}.music-toggle{min-height:44px;border:1px solid var(--line);background:rgba(255,253,248,.9);border-radius:999px;padding:0 14px;display:flex;align-items:center;gap:8px;color:var(--ink);font-size:11px;font-weight:800}.eq{display:flex;align-items:flex-end;gap:2px;width:16px;height:13px}.eq i{width:2px;border-radius:2px;background:var(--sage);animation:eq .8s ease-in-out infinite;animation-play-state:paused}.music-on .eq i{animation-play-state:running}.eq i:nth-child(1){height:5px}.eq i:nth-child(2){height:12px;animation-delay:-.3s}.eq i:nth-child(3){height:8px;animation-delay:-.55s}.eq i:nth-child(4){height:11px;animation-delay:-.15s}.hero-copy{position:relative;z-index:2;text-align:center;padding-top:166px}.hero-kicker{font-size:11px;letter-spacing:.31em;color:var(--sage);margin:0 0 18px}.names{display:flex;justify-content:center;align-items:baseline;gap:12px;margin:0;font-family:Georgia,"Times New Roman",serif;font-weight:400;font-size:clamp(44px,11vw,72px);line-height:1;letter-spacing:-.05em}.names em{font-style:normal;color:var(--champagne);font-size:.7em}.mini-rule{width:54px;height:1px;background:var(--champagne);margin:24px auto}.hero-message{margin:0 auto;max-width:390px;color:var(--muted);font-size:15px;line-height:1.85}.hero-date{margin:24px 0 0;font-family:Georgia,"Times New Roman",serif;font-size:19px;letter-spacing:.06em}.open-button{margin-top:34px;min-height:50px;padding:0 25px;border:0;border-radius:999px;background:var(--ink);color:white;font-size:14px;font-weight:800;letter-spacing:.03em;box-shadow:0 10px 30px rgba(31,43,34,.13);transition:transform .25s ease,box-shadow .25s ease}.open-button:active{transform:scale(.97)}.invite-opened .open-button{animation:buttonPop .55s ease}.microcopy{font-size:11px;color:var(--muted);margin:10px 0 0}.scroll-cue{position:absolute;z-index:2;left:50%;bottom:20px;transform:translateX(-50%);display:flex;align-items:center;gap:8px;color:var(--muted)}.scroll-cue span{width:1px;height:28px;background:linear-gradient(var(--sage),transparent);animation:scrollCue 1.5s ease-in-out infinite}.scroll-cue small{font-size:8px;letter-spacing:.22em}.section{padding:76px 24px}.reveal{opacity:0;transform:translateY(32px) scale(.99);transition:opacity .85s ease,transform .85s cubic-bezier(.2,.8,.2,1)}.reveal.on{opacity:1;transform:none}.intro-section{text-align:center}.section h2,.photo-feature h2,.film-section h2,.gallery-section h2{margin:12px 0 0;font-family:Georgia,"Times New Roman",serif;font-weight:400;font-size:clamp(34px,7vw,48px);line-height:1.25;letter-spacing:-.03em}.section-body{max-width:470px;margin:22px auto 0;color:var(--muted);font-size:14px;line-height:1.9}.section-body.compact{margin:18px 0 0}.leaf-line{width:min(100%,410px);display:block;margin:30px auto 0;fill:none;stroke:var(--sage2);stroke-width:1.2}.leaf-line path{stroke-dasharray:430;stroke-dashoffset:430;transition:stroke-dashoffset 1.7s ease}.reveal.on .leaf-line path{stroke-dashoffset:0}
.photo-feature{padding:20px 18px 72px;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.25fr);gap:20px;align-items:end}.photo-feature-copy{padding:20px 4px 28px}.photo-feature-copy p:last-child,.gallery-heading p:last-child{color:var(--muted);font-size:13px;line-height:1.8}.feature-photo{min-height:520px;border:0;border-radius:110px 110px 26px 26px;overflow:hidden;background:linear-gradient(155deg,#eef1e8,#f9f4e6);position:relative;cursor:pointer}.feature-photo img{animation:kenBurns 9s ease-in-out infinite alternate}.photo-index{grid-column:2;display:flex;align-items:center;gap:12px;font-family:Georgia,"Times New Roman",serif;color:var(--muted);font-size:13px}.photo-index i{height:1px;flex:1;background:var(--line)}
.photo-surface{position:relative;overflow:hidden}.photo-surface img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;z-index:2}.photo-placeholder{position:absolute;inset:0;z-index:1;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:18px;background:radial-gradient(circle at 35% 20%,rgba(255,255,255,.92),transparent 35%),linear-gradient(145deg,#edf0e6,#faf4e7);color:var(--muted)}.photo-placeholder:before{content:"";width:56px;height:56px;margin-bottom:17px;border:1px solid var(--sage2);border-radius:48% 52% 45% 55%;background:radial-gradient(circle at 48% 45%,white 0 11px,transparent 12px),radial-gradient(circle at 25% 65%,white 0 8px,transparent 9px),radial-gradient(circle at 72% 66%,white 0 9px,transparent 10px)}.photo-placeholder b{font-family:Georgia,"Times New Roman",serif;font-size:18px;font-weight:400;color:var(--ink)}.photo-placeholder small{display:block;margin-top:7px;font-size:10px;letter-spacing:.05em}.photo-placeholder em{font-style:normal;margin-top:8px;font-size:11px;color:var(--sage)}.has-photo .photo-placeholder{display:none}
.film-section{padding:56px 0 72px;background:#f2f4ed;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}.film-heading{padding:0 24px 22px;display:flex;align-items:end;justify-content:space-between;gap:18px}.film-heading h2{font-size:38px}.small-button{min-height:42px;padding:0 15px;border:1px solid var(--line);border-radius:999px;background:var(--paper);color:var(--ink);font-size:11px;font-weight:800}.film-window{overflow:hidden;padding:8px 0 12px}.film-track{display:flex;width:max-content;gap:12px;padding-left:16px;animation:filmMove 34s linear infinite}.film-paused .film-track{animation-play-state:paused}.film-card{width:176px;height:252px;padding:0;border:0;border-radius:24px;flex:0 0 auto;cursor:pointer;background:#e7ebe2;transform:rotate(calc((var(--i) % 3 - 1) * .8deg));box-shadow:0 12px 26px rgba(52,68,54,.08)}.film-card:nth-child(3n+2){margin-top:22px}.film-card:nth-child(4n){height:224px;margin-top:10px}.film-note{margin:10px 24px 0;color:var(--muted);font-size:11px}
.countdown-card{margin:72px 18px;padding:28px;border:1px solid var(--line);border-radius:30px;background:var(--paper);box-shadow:var(--shadow)}.countdown-top{display:flex;align-items:flex-end;justify-content:space-between;gap:18px}.dday{font-variant-numeric:tabular-nums;font-size:clamp(48px,10vw,68px)!important;line-height:.95!important}.date-side{margin:0;text-align:right;color:var(--muted);font-size:12px;line-height:1.7;white-space:pre-line}.count-grid{display:grid;grid-template-columns:repeat(4,1fr);margin-top:28px;padding:18px 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line);text-align:center}.count-grid>div+div{border-left:1px solid var(--line)}.count-grid strong{display:block;font-family:Georgia,"Times New Roman",serif;font-size:25px;font-weight:400;font-variant-numeric:tabular-nums}.count-grid span{display:block;margin-top:4px;font-size:9px;letter-spacing:.16em;color:var(--muted)}.card-caption{text-align:center;color:var(--muted);font-size:13px;margin:17px 0 0}
.gallery-section{padding:10px 16px 80px}.gallery-heading{padding:0 8px 24px;max-width:520px}.gallery-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-auto-flow:dense;gap:10px}.gallery-item{border:0;padding:0;border-radius:22px;min-height:240px;background:#edf0e8;cursor:pointer;transform:translateY(var(--shift,0));transition:transform .25s ease,opacity .7s ease;opacity:0;animation:galleryIn .7s var(--delay) ease forwards}.gallery-item.g1,.gallery-item.g5{grid-row:span 2;min-height:500px}.gallery-item.g3{grid-column:span 2;min-height:310px}.gallery-item.g7{min-height:300px}.gallery-item img{transition:transform .75s ease,filter .55s ease}.gallery-item:active img{transform:scale(1.03)}
.venue-section{display:grid;grid-template-columns:.92fr 1.08fr;gap:34px;align-items:center}.venue-art{position:relative;min-height:315px;border:1px solid var(--line);border-radius:30px;background:linear-gradient(145deg,#f6f2e8,#ece8dd);overflow:hidden}.venue-arch{position:absolute;left:18%;right:18%;bottom:0;height:84%;border:1px solid rgba(117,136,109,.3);border-bottom:0;border-radius:50% 50% 0 0/20% 20% 0 0}.venue-light{position:absolute;top:46px;left:50%;width:1px;height:110px;background:var(--champagne);animation:lightPulse 2.9s ease-in-out infinite}.venue-light:after{content:"";position:absolute;top:106px;left:50%;transform:translateX(-50%);width:56px;height:56px;border-radius:50%;border:1px solid var(--champagne);background:rgba(255,255,255,.55);box-shadow:0 0 20px rgba(255,255,255,.85)}.venue-flower{position:absolute;bottom:42px;width:104px;height:78px;background:radial-gradient(circle at 24% 35%,white 0 8px,transparent 9px),radial-gradient(circle at 54% 26%,white 0 9px,transparent 10px),radial-gradient(circle at 74% 48%,#fafafa 0 8px,transparent 9px),radial-gradient(circle at 40% 60%,#fefefe 0 10px,transparent 11px),linear-gradient(145deg,rgba(117,136,109,.28),rgba(170,183,162,.5));border-radius:55% 45% 35% 35%;opacity:.9}.flower-a{left:25px;animation:flowerFloat 4s ease-in-out infinite}.flower-b{right:25px;transform:scaleX(-1);animation:flowerFloatB 4.5s ease-in-out infinite}.venue-art>span{position:absolute;left:0;right:0;bottom:14px;text-align:center;font-size:9px;letter-spacing:.24em;color:var(--muted)}.venue-address{margin:18px 0 0;font-size:15px;font-weight:800}.venue-detail{margin:5px 0 0;color:var(--sage);font-size:13px}.venue-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:24px}.venue-actions a,.closing-actions a,.closing-actions button{min-height:48px;border-radius:14px;text-decoration:none;display:flex;align-items:center;justify-content:center;font-size:13px;font-weight:800;cursor:pointer}.primary-link{background:var(--ink);color:white}.secondary-link{border:1px solid var(--line);background:var(--paper);color:var(--ink)}
.guestbook-section{margin:0 18px 72px;padding:30px;border-radius:30px;background:var(--mist)}.guestbook-head{display:flex;align-items:flex-end;justify-content:space-between;gap:18px}.guestbook-head h2{font-size:34px}.tiny-note{font-size:11px;color:var(--muted)}.guest-form{margin-top:24px;display:grid;gap:12px}.guest-form label>span{display:block;margin-bottom:7px;font-size:12px;font-weight:800}.guest-form input,.guest-form textarea{width:100%;border:1px solid var(--line);background:var(--paper);border-radius:13px;padding:12px 14px;font:inherit;font-size:16px;color:var(--ink);outline:none}.guest-form input:focus,.guest-form textarea:focus{border-color:var(--sage);box-shadow:0 0 0 3px rgba(117,136,109,.13)}.guest-form textarea{resize:vertical;min-height:100px}.hp{position:absolute!important;left:-9999px!important;width:1px!important;height:1px!important;opacity:0!important}.form-row{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}.form-row span{font-size:11px;color:var(--muted)}.form-row button{min-height:44px;padding:0 18px;border:0;border-radius:999px;background:var(--sage);color:white;font-weight:800}.guest-list{margin-top:26px;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}.guest-list article{padding:18px 0}.guest-list article+article{border-top:1px solid var(--line)}.guest-list article>div{display:flex;justify-content:space-between;gap:12px}.guest-list time{font-size:11px;color:var(--muted)}.guest-list p{margin:8px 0 0;color:var(--muted);font-size:13px;line-height:1.8}.guest-enter{animation:guestIn .45s ease both}
.closing-photo{margin:0 18px 24px;position:relative;height:520px;border-radius:120px 120px 28px 28px;overflow:hidden;background:#e9ede5}.closing-photo-slot{position:absolute;inset:0;width:100%;border:0;padding:0;background:transparent}.closing-photo-slot img{filter:brightness(.72);animation:kenBurns 10s ease-in-out infinite alternate-reverse}.closing-overlay{position:absolute;z-index:4;left:0;right:0;bottom:0;padding:40px 24px 30px;color:white;background:linear-gradient(transparent,rgba(20,33,24,.72));pointer-events:none}.closing-overlay span{display:block;font-size:9px;letter-spacing:.3em;margin-bottom:10px}.closing-overlay strong{font-family:Georgia,"Times New Roman",serif;font-size:31px;font-weight:400;line-height:1.25}.closing-section{margin:0 18px 28px;padding:44px 26px;border-radius:30px;background:var(--ink);color:white;text-align:center}.section-kicker.light{color:rgba(255,255,255,.58)}.closing-section h2{font-size:31px;line-height:1.4}.closing-actions{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-top:28px}.closing-actions button,.closing-actions a{border:1px solid rgba(255,255,255,.2);background:rgba(255,255,255,.05);color:white;padding:0 8px}.closing-actions a:last-child{background:white;color:var(--ink);border-color:white}.closing-status{min-height:18px;margin:11px 0 0;font-size:11px;color:rgba(255,255,255,.66)}
.photo-dialog{width:min(94%,680px);max-height:90%;padding:0;border:0;border-radius:24px;background:#111;color:white;overflow:hidden}.photo-dialog::backdrop{background:rgba(12,16,13,.82)}.dialog-media{width:100%;height:min(72vh,690px);display:flex;align-items:center;justify-content:center;background:#111}.dialog-media img{width:100%;height:100%;object-fit:contain}.dialog-placeholder{width:100%;height:100%;min-height:420px;display:flex;flex-direction:column;align-items:center;justify-content:center;background:linear-gradient(145deg,#27332a,#141c17);padding:30px;text-align:center}.dialog-placeholder b{font-family:Georgia,"Times New Roman",serif;font-size:34px}.dialog-placeholder span{margin-top:10px;font-size:12px;color:rgba(255,255,255,.7)}.dialog-placeholder small{margin-top:12px;color:rgba(255,255,255,.55)}.photo-dialog>p{position:absolute;left:18px;bottom:12px;margin:0;font-size:11px;letter-spacing:.12em}.dialog-close,.dialog-nav{position:absolute;z-index:5;border:0;background:rgba(255,255,255,.9);color:#111;border-radius:50%;display:grid;place-items:center}.dialog-close{right:12px;top:12px;width:44px;height:44px;font-size:26px}.dialog-nav{top:50%;transform:translateY(-50%);width:44px;height:54px;font-size:34px}.dialog-prev{left:10px}.dialog-next{right:10px}
button,a{touch-action:manipulation}button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible{outline:3px solid rgba(117,136,109,.28);outline-offset:2px}@media(hover:hover) and (pointer:fine){.gallery-item:hover img,.film-card:hover img{transform:scale(1.04)}.open-button:hover{transform:translateY(-2px);box-shadow:0 14px 34px rgba(31,43,34,.17)}}
@keyframes sway{0%,100%{transform:rotate(-1.3deg)}50%{transform:rotate(1.3deg)}}@keyframes petal{0%{transform:translate3d(0,-20px,0) rotate(0);opacity:0}14%{opacity:.78}100%{transform:translate3d(40px,510px,0) rotate(260deg);opacity:0}}@keyframes branchFloat{0%,100%{transform:rotate(-1deg) translateY(0)}50%{transform:rotate(2deg) translateY(7px)}}@keyframes branchFloat2{0%,100%{transform:rotate(180deg) translateY(0)}50%{transform:rotate(177deg) translateY(-7px)}}@keyframes glowBreath{0%,100%{transform:scale(.95);opacity:.75}50%{transform:scale(1.08);opacity:1}}@keyframes eq{0%,100%{transform:scaleY(.42)}50%{transform:scaleY(1)}}@keyframes scrollCue{0%,100%{opacity:.25;transform:scaleY(.7)}50%{opacity:1;transform:scaleY(1.1)}}@keyframes buttonPop{0%{transform:scale(1)}40%{transform:scale(.95)}75%{transform:scale(1.04)}100%{transform:scale(1)}}@keyframes kenBurns{0%{transform:scale(1.02) translate3d(-1%,0,0)}100%{transform:scale(1.10) translate3d(1.5%,-1%,0)}}@keyframes filmMove{from{transform:translateX(0)}to{transform:translateX(calc(-50% - 6px))}}@keyframes galleryIn{from{opacity:0;transform:translateY(24px)}to{opacity:1;transform:translateY(var(--shift,0))}}@keyframes lightPulse{0%,100%{opacity:.55;filter:drop-shadow(0 0 0 rgba(255,255,255,0))}50%{opacity:1;filter:drop-shadow(0 0 14px rgba(255,255,255,.95))}}@keyframes flowerFloat{0%,100%{transform:translateY(0) rotate(-1deg)}50%{transform:translateY(-5px) rotate(1deg)}}@keyframes flowerFloatB{0%,100%{transform:scaleX(-1) translateY(0) rotate(-1deg)}50%{transform:scaleX(-1) translateY(-5px) rotate(1deg)}}@keyframes guestIn{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:none}}
@media(max-width:620px){.hero{min-height:720px}.hero-copy{padding-top:155px}.photo-feature{grid-template-columns:1fr;padding-top:10px}.photo-feature-copy{padding-bottom:0}.feature-photo{min-height:500px}.photo-index{grid-column:1}.venue-section{grid-template-columns:1fr}.venue-art{min-height:270px}.guestbook-head{align-items:flex-start;flex-direction:column;gap:6px}.closing-actions{grid-template-columns:1fr}.countdown-card{padding:24px 18px}.gallery-grid{gap:8px}.gallery-item{min-height:205px}.gallery-item.g1,.gallery-item.g5{min-height:430px}.gallery-item.g3{min-height:265px}.film-card{width:158px;height:230px}.closing-photo{height:500px}}
@media(max-width:370px){.names{gap:7px}.hero{padding-left:16px;padding-right:16px}.count-grid strong{font-size:21px}.count-grid span{font-size:8px;letter-spacing:.1em}.venue-actions{grid-template-columns:1fr}.gallery-item{min-height:185px}.gallery-item.g1,.gallery-item.g5{min-height:385px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}.reveal{opacity:1;transform:none;transition:none}.crystal,.petal,.eq i,.sprig,.sun-glow,.feature-photo img,.film-track,.venue-light,.venue-flower,.closing-photo-slot img,.scroll-cue span{animation:none!important}.leaf-line path{stroke-dashoffset:0}.gallery-item{opacity:1!important;animation:none!important;transform:none!important}}

/* ---------- v3: first-screen hero photo ---------- */
.hero-photo-layer{position:absolute;inset:0;z-index:0;overflow:hidden;background:linear-gradient(180deg,#f8f7f0,#edf0e8)}
.hero-photo-layer img{width:100%;height:100%;object-fit:cover;object-position:50% 42%;opacity:0;transform:scale(1.08);filter:saturate(.88) brightness(.92);transition:opacity .8s ease,transform 7s ease}
.hero-photo-layer.has-photo img{opacity:1}
.invite-opened .hero-photo-layer.has-photo img{transform:scale(1.015)}
.hero-photo-scrim{position:absolute;inset:0;z-index:1;pointer-events:none;background:linear-gradient(180deg,rgba(20,31,24,.16) 0%,rgba(248,247,240,.05) 26%,rgba(248,247,240,.34) 52%,rgba(248,247,240,.94) 78%,#f8f7f0 100%)}
.hero-photo-layer.has-photo~.hero-decor{opacity:.55}
.hero-photo-layer.has-photo~.hero-decor .arch{border-color:rgba(255,255,255,.34)}
.hero-photo-layer.has-photo~.hero-decor .sprig{opacity:.38}
.hero-photo-layer.has-photo~.hero-header .eyebrow{color:#fff;text-shadow:0 1px 10px rgba(18,27,21,.45)}
.hero-photo-layer.has-photo~.hero-header .music-toggle{background:rgba(255,255,255,.86);backdrop-filter:blur(10px)}
.hero-photo-layer.has-photo~.hero-copy{padding-top:250px}
.hero-photo-layer.has-photo~.hero-copy .hero-kicker{color:#405242;font-weight:900}
.hero-photo-layer.has-photo~.hero-copy .names{color:#18231c;text-shadow:0 1px 0 rgba(255,255,255,.6)}
.hero-photo-layer.has-photo~.hero-copy .hero-message{color:#465147}
.hero-photo-layer.has-photo~.scroll-cue{color:#536056}
@media(max-width:620px){.hero-photo-layer.has-photo~.hero-copy{padding-top:238px}.hero-photo-layer img{object-position:50% 42%}}
@media(prefers-reduced-motion:reduce){.hero-photo-layer img{transition:none!important;transform:none!important}}

/* ---------- v4: smaller framed first-screen photo ---------- */
.hero{min-height:820px}
.hero-photo-layer{
  inset:auto;
  top:86px;
  left:50%;
  width:min(82%,520px);
  height:390px;
  transform:translateX(-50%);
  border-radius:190px 190px 28px 28px;
  border:1px solid rgba(200,171,123,.30);
  box-shadow:0 18px 46px rgba(45,58,46,.10);
  background:linear-gradient(160deg,#eef1e9,#fbf7ed);
}
.hero-photo-layer img{
  object-fit:cover;
  object-position:50% 42%;
  transform:scale(1.025);
  filter:saturate(.92) brightness(.98);
}
.invite-opened .hero-photo-layer.has-photo img{transform:scale(1)}
.hero-photo-scrim{
  inset:auto;
  top:86px;
  left:50%;
  width:min(82%,520px);
  height:390px;
  transform:translateX(-50%);
  border-radius:190px 190px 28px 28px;
  background:linear-gradient(180deg,rgba(20,31,24,.05) 0%,rgba(248,247,240,0) 55%,rgba(31,43,34,.12) 100%);
}
.hero-photo-layer.has-photo~.hero-decor{opacity:.72}
.hero-photo-layer.has-photo~.hero-decor .arch{opacity:.28}
.hero-photo-layer.has-photo~.hero-header .eyebrow{color:var(--sage);text-shadow:none}
.hero-photo-layer.has-photo~.hero-copy{padding-top:452px}
.hero-photo-layer.has-photo~.hero-copy .hero-kicker{color:var(--sage)}
.hero-photo-layer.has-photo~.hero-copy .names{color:var(--ink);text-shadow:none}
.hero-photo-layer.has-photo~.hero-copy .hero-message{color:var(--muted)}
.hero-photo-layer.has-photo~.scroll-cue{color:var(--muted)}

@media(max-width:620px){
  .hero{min-height:820px}
  .hero-photo-layer,.hero-photo-scrim{top:82px;width:82%;height:370px;border-radius:170px 170px 24px 24px}
  .hero-photo-layer.has-photo~.hero-copy{padding-top:430px}
  .hero-photo-layer img{object-position:50% 42%}
}
@media(max-width:390px){
  .hero-photo-layer,.hero-photo-scrim{width:86%;height:350px;border-radius:155px 155px 22px 22px}
  .hero-photo-layer.has-photo~.hero-copy{padding-top:410px}
}


/* ---------- v5: invitation gate, 18-photo gallery, visible first interaction ---------- */
body.cover-locked{overflow:hidden}
.intro-cover{position:fixed;inset:0;z-index:9999;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:16px;padding:22px 18px 26px;background:linear-gradient(180deg,#fbfaf5 0%,#f4f0e5 60%,#edf1e9 100%);overflow:hidden;transition:transform .9s cubic-bezier(.76,0,.24,1),opacity .75s ease,visibility .9s}
.cover-opening .intro-cover{transform:translateY(-100%);opacity:.12}
.cover-opened .intro-cover{visibility:hidden;pointer-events:none}
.cover-glow{position:absolute;left:50%;top:10%;width:min(78vw,560px);aspect-ratio:1;border-radius:50%;transform:translateX(-50%);background:radial-gradient(circle,rgba(255,244,193,.48),rgba(255,244,193,0) 68%);animation:glowBreath 4.8s ease-in-out infinite}
.cover-kicker{position:relative;z-index:2;font-size:10px;letter-spacing:.32em;font-weight:800;color:var(--sage)}
.cover-photo-frame{position:relative;z-index:2;width:min(74vw,420px);height:min(47vh,420px);min-height:280px;overflow:hidden;border:1px solid rgba(200,171,123,.34);border-radius:48% 48% 24px 24px/24% 24% 24px 24px;background:linear-gradient(145deg,#eef2ea,#fbf7ed);box-shadow:0 20px 55px rgba(48,62,49,.10)}
.cover-photo-frame img{width:100%;height:100%;opacity:0;transition:opacity .55s ease,transform 7s ease;transform:scale(1.02);filter:saturate(.94) brightness(1.01)}
.cover-photo-frame.has-photo img{opacity:1;animation:coverBreath 9s ease-in-out infinite alternate}
.cover-photo-fallback{position:absolute;inset:0;display:grid;place-content:center;text-align:center;color:var(--muted);gap:6px;background:radial-gradient(circle at 42% 26%,rgba(255,255,255,.96),transparent 32%),linear-gradient(145deg,#edf0e6,#faf4e7)}
.cover-photo-fallback span{font-family:Georgia,"Times New Roman",serif;font-size:44px;color:var(--ink)}
.cover-photo-fallback small{font-size:10px;letter-spacing:.08em}
.cover-photo-frame.has-photo .cover-photo-fallback{display:none}
.cover-copy{position:relative;z-index:2;text-align:center}
.cover-names{display:flex;justify-content:center;align-items:baseline;gap:9px;margin:2px 0 0;font-family:Georgia,"Times New Roman",serif;font-size:clamp(34px,9vw,50px);letter-spacing:-.045em}
.cover-names em{font-style:normal;color:var(--champagne);font-size:.72em}
.cover-date{margin:8px 0 0;color:var(--muted);font-family:Georgia,"Times New Roman",serif;font-size:14px;letter-spacing:.06em}
.cover-open-button{position:relative;margin-top:18px;min-width:180px;min-height:52px;border:0;border-radius:999px;background:var(--ink);color:#fff;font:inherit;font-size:14px;font-weight:850;letter-spacing:.06em;box-shadow:0 12px 34px rgba(31,43,34,.18);animation:openPulse 2.1s ease-in-out infinite}
.cover-open-button:active{transform:scale(.97)}
.cover-music-note{margin:9px 0 0;font-size:10px;color:var(--muted)}
.music-credit{margin:24px 0 0;font-size:9px;line-height:1.7;color:rgba(255,255,255,.48)}
.music-credit a{color:rgba(255,255,255,.72);text-underline-offset:2px}
.hero .open-button,.hero .microcopy{display:none!important}
.gallery-heading p{max-width:470px}
@keyframes coverBreath{from{transform:scale(1.015) translate3d(-.4%,0,0)}to{transform:scale(1.045) translate3d(.6%,-.5%,0)}}
@keyframes openPulse{0%,100%{box-shadow:0 12px 34px rgba(31,43,34,.18);transform:translateY(0)}50%{box-shadow:0 15px 40px rgba(31,43,34,.24);transform:translateY(-2px)}}
@media(max-width:420px){.intro-cover{gap:13px;padding-top:16px}.cover-photo-frame{width:min(78vw,340px);height:min(45vh,370px);min-height:260px}.cover-open-button{margin-top:14px}.cover-music-note{margin-top:7px}}
@media(prefers-reduced-motion:reduce){.intro-cover,.cover-photo-frame img,.cover-open-button{animation:none!important;transition:none!important}.cover-opening .intro-cover{transform:none;opacity:0}.cover-glow{animation:none!important}}

/* ==========================================================
   v7 — 17-photo gallery, readability, gratitude accounts
   ========================================================== */
#invitationTitle,#closingMessage{white-space:pre-line}

/* The main invitation page keeps the photo as a framed image,
   but all important copy sits on an opaque ivory panel. */
.hero{min-height:900px;background:linear-gradient(180deg,#fbfaf6 0%,#f3f1e8 66%,#f8f7f0 100%)}
.hero-photo-layer,.hero-photo-scrim{z-index:1}
.hero-decor{z-index:0}
.hero-header{z-index:4}
.hero-copy{z-index:3;padding-top:462px;display:flex;justify-content:center}
.hero-text-panel{
  width:min(100%,560px);
  padding:26px 22px 28px;
  border:1px solid rgba(220,223,215,.95);
  border-radius:26px;
  background:rgba(255,253,248,.97);
  box-shadow:0 16px 42px rgba(50,61,49,.09);
  backdrop-filter:blur(5px);
}
.hero-text-panel .hero-kicker{color:#62735d;font-weight:900}
.hero-text-panel .names{color:#18231c;text-shadow:none}
.hero-text-panel .hero-message{color:#48534a;font-weight:560}
.hero-text-panel .hero-date{color:#1f2b22;font-weight:700}
.hero-photo-scrim{background:linear-gradient(180deg,rgba(22,33,25,.03),rgba(22,33,25,.02) 70%,rgba(22,33,25,.12))}
.hero-photo-layer.has-photo~.hero-copy{padding-top:462px}
.scroll-cue{bottom:12px}

/* Make the last (17th) gallery photo stand out in the dense layout. */
.gallery-grid .gallery-item:last-child{grid-column:span 2;min-height:330px}
.gallery-grid .gallery-item:last-child:after{
  content:"17 · LAST SCENE";
  position:absolute;right:12px;bottom:12px;z-index:4;
  padding:7px 10px;border-radius:999px;
  background:rgba(255,253,248,.88);color:var(--ink);
  font-size:9px;font-weight:900;letter-spacing:.12em;
  backdrop-filter:blur(7px);
}
.gallery-item{position:relative}

/* Tasteful expandable family gift section. */
.gift-section{margin:0 18px 72px;padding:34px 24px;border:1px solid var(--line);border-radius:30px;background:linear-gradient(180deg,#fffdf8,#f7f5ed)}
.gift-heading{text-align:center;max-width:510px;margin:0 auto}
.gift-heading h2{font-size:38px}
.gift-intro{margin:16px auto 0;max-width:440px;color:var(--muted);font-size:13px;line-height:1.9}
.gift-groups{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:28px}
.gift-group{border:1px solid var(--line);border-radius:20px;background:var(--paper);overflow:hidden;transition:border-color .25s ease,box-shadow .25s ease}
.gift-group.is-open{border-color:rgba(117,136,109,.46);box-shadow:0 12px 30px rgba(50,61,49,.06)}
.gift-group-toggle{width:100%;min-height:64px;border:0;background:transparent;padding:0 17px;display:grid;grid-template-columns:1fr auto auto;align-items:center;gap:10px;color:var(--ink);font:inherit;text-align:left;cursor:pointer}
.gift-side-title{font-family:Georgia,"Times New Roman",serif;font-size:20px}
.gift-toggle-copy{font-size:11px;color:var(--sage);font-weight:850}
.gift-chevron{font-size:18px;color:var(--muted);transition:transform .25s ease}
.gift-group.is-open .gift-chevron{transform:rotate(180deg)}
.gift-panel{border-top:1px solid var(--line);padding:5px 16px 12px}
.gift-panel[hidden]{display:none}
.gift-account-row{display:grid;grid-template-columns:minmax(90px,.8fr) minmax(0,1.4fr) auto;align-items:center;gap:12px;padding:16px 0}
.gift-account-row+.gift-account-row{border-top:1px solid var(--line)}
.gift-account-meta{min-width:0;display:flex;flex-direction:column;gap:4px}
.gift-relation{font-size:10px;color:var(--sage);font-weight:900;letter-spacing:.06em}
.gift-account-meta strong{font-size:14px;overflow-wrap:anywhere}
.gift-account-detail{min-width:0;display:flex;flex-direction:column;gap:4px;color:var(--muted);font-size:12px}
.gift-account-number{color:var(--ink);font-size:13px;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.gift-copy-button{min-width:54px;min-height:40px;border:1px solid var(--line);border-radius:999px;background:#f4f2ea;color:var(--ink);font-size:11px;font-weight:900;cursor:pointer}
.gift-empty{margin:12px 0 5px;padding:16px;border-radius:14px;background:#f5f3ec;color:var(--muted);font-size:12px;line-height:1.7;text-align:center}
.gift-status{min-height:18px;margin:13px 0 0;text-align:center;color:var(--muted);font-size:11px}

@media(max-width:620px){
  .hero{min-height:880px}
  .hero-copy,.hero-photo-layer.has-photo~.hero-copy{padding-top:438px}
  .hero-text-panel{padding:23px 17px 25px;border-radius:23px}
  .hero-text-panel .names{font-size:clamp(38px,11vw,52px)}
  .hero-text-panel .hero-message{font-size:14px;line-height:1.75}
  .hero-text-panel .hero-date{font-size:17px}
  .gallery-grid .gallery-item:last-child{min-height:270px}
  .gift-section{padding:30px 18px}
  .gift-groups{grid-template-columns:1fr}
  .gift-account-row{grid-template-columns:1fr auto;gap:8px 12px}
  .gift-account-meta{grid-column:1}
  .gift-account-detail{grid-column:1}
  .gift-copy-button{grid-column:2;grid-row:1 / span 2}
}
@media(max-width:390px){
  .hero-copy,.hero-photo-layer.has-photo~.hero-copy{padding-top:418px}
  .hero{min-height:850px}
}
/* v6.1 spacing: keep text panel fully below the photo frame on small screens. */
@media(max-width:620px){.hero-copy,.hero-photo-layer.has-photo~.hero-copy{padding-top:456px}}
@media(max-width:390px){.hero-copy,.hero-photo-layer.has-photo~.hero-copy{padding-top:440px}}


/* ==========================================================
   v9 — Modern typography + natural mobile wrapping
   ========================================================== */
:root{
  --font-ui:"Avenir Next","Pretendard Variable","Pretendard","SUIT Variable","SUIT","Apple SD Gothic Neo","Noto Sans KR","Helvetica Neue",Arial,sans-serif;
  --font-display:"Avenir Next","Pretendard Variable","Pretendard","SUIT Variable","SUIT","Apple SD Gothic Neo","Noto Sans KR","Helvetica Neue",Arial,sans-serif;
}
body{font-family:var(--font-ui);font-weight:400;letter-spacing:-.012em}
button,input,textarea,a{font-family:inherit}

/* Korean copy should wrap by phrase, not character-by-character. */
.hero-message,.section-body,.photo-feature-copy p,.gallery-heading p,.venue-address,.venue-detail,
.gift-intro,.guest-list p,.closing-section h2,.cover-music-note,.card-caption,
#invitationTitle,#photoFeatureTitle,#closingTitle,#closingMessage{
  word-break:keep-all;
  overflow-wrap:break-word;
}

/* Remove forced line-break behavior from configurable copy. */
#invitationTitle,#photoFeatureTitle,#closingTitle,#closingMessage{
  white-space:normal;
  text-wrap:balance;
}

/* Modern display typography — no old-style serif on Korean headings. */
.names,.cover-names,.section h2,.photo-feature h2,.film-section h2,.gallery-section h2,
.photo-placeholder b,.photo-index,.hero-date,.cover-date,.count-grid strong,.gift-side-title,
.dday,.closing-overlay strong{
  font-family:var(--font-display);
}
.names,.cover-names{
  font-weight:560;
  letter-spacing:-.045em;
  line-height:1.08;
  white-space:nowrap;
}
.names em,.cover-names em{font-family:var(--font-ui);font-weight:350;letter-spacing:0}

.section h2,.photo-feature h2,.film-section h2,.gallery-section h2{
  font-weight:560;
  letter-spacing:-.045em;
  line-height:1.32;
  text-wrap:balance;
}
.hero-kicker,.eyebrow,.section-kicker,.cover-kicker{
  font-family:var(--font-ui);
  font-weight:750;
  letter-spacing:.22em;
}
.hero-message{font-size:15px;line-height:1.78;max-width:430px}
.hero-date,.cover-date{font-weight:520;letter-spacing:.025em}

/* Slightly calmer hierarchy for better readability. */
.intro-section h2{max-width:560px;margin-left:auto;margin-right:auto}
.intro-section .section-body{max-width:520px}
.photo-feature-copy h2{font-size:clamp(30px,6vw,43px)}
.gallery-heading h2{font-size:clamp(30px,6.5vw,44px)}
.gift-heading h2,.guestbook-head h2{font-family:var(--font-display);font-weight:580;letter-spacing:-.04em;line-height:1.3}
.closing-section h2{font-family:var(--font-display);font-weight:520;letter-spacing:-.035em;line-height:1.55;text-wrap:balance;max-width:560px;margin-left:auto;margin-right:auto}
.closing-overlay strong{font-weight:580;letter-spacing:-.035em;line-height:1.35;text-wrap:balance;word-break:keep-all}

@media(max-width:620px){
  .section{padding:66px 22px}
  .section h2,.photo-feature h2,.film-section h2,.gallery-section h2{font-size:clamp(29px,8.1vw,38px);line-height:1.34}
  .hero-text-panel .names{font-size:clamp(36px,10.5vw,48px)}
  .hero-message{font-size:14px;line-height:1.75}
  .hero-date{font-size:16px}
  .photo-feature-copy h2{font-size:clamp(28px,7.7vw,36px)}
  .gift-heading h2,.guestbook-head h2{font-size:31px;line-height:1.32}
  .closing-section h2{font-size:27px;line-height:1.55;padding:0 3px}
}

@media(max-width:390px){
  .section h2,.photo-feature h2,.film-section h2,.gallery-section h2{font-size:29px}
  .hero-text-panel{padding-left:15px;padding-right:15px}
  .hero-text-panel .names{gap:8px;font-size:36px}
  .hero-kicker{letter-spacing:.18em}
  .hero-message{max-width:310px}
}

/* v12: guestbook connection status + loading polish */
.guest-empty{margin:0;padding:22px 4px;text-align:center;color:var(--muted);font-size:13px;line-height:1.7}.guest-form button:disabled{opacity:.58;cursor:wait}.photo-surface:not(.has-photo):not(.missing-photo) .photo-placeholder em{animation:loadingPulse 1.3s ease-in-out infinite}@keyframes loadingPulse{0%,100%{opacity:.42}50%{opacity:.9}}

/* v13: mobile audio retry */
.music-retry{position:relative;z-index:4;margin:12px auto 0;width:min(100%,520px);display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 12px 10px 15px;border:1px solid rgba(117,136,109,.28);border-radius:16px;background:rgba(255,253,248,.94);backdrop-filter:blur(12px);box-shadow:0 10px 30px rgba(31,43,34,.07);font-size:12px;line-height:1.45;color:var(--muted)}
.music-retry[hidden]{display:none!important}.music-retry button{flex:0 0 auto;min-height:40px;border:0;border-radius:999px;padding:0 15px;background:var(--ink);color:#fff;font:inherit;font-size:12px;font-weight:800;white-space:nowrap}.music-retry button:active{transform:scale(.97)}
@media(max-width:420px){.music-retry{font-size:11px}.music-retry button{padding-inline:13px}}
