/* Service & Retail, Christmas Edition.
   Copied from references/pins: 01 stripe cloth + scalloped card, 03 script + serif,
   04 ivory paper + velvet ribbon, 12 torn paper, 15/19 wrapped boxes, 20 giant bow.
   Smoothness rule: shadows, folds and textures are baked into art/*.webp. Nothing here
   uses filter, mask, blend or backdrop, and only transform and opacity ever animate. */
@font-face { font-family: 'Great Vibes'; src: url(art/great-vibes.woff2) format('woff2'); font-display: block; }
@font-face { font-family: 'Playfair Display'; font-weight: 400; src: url(art/playfair-display-latin-400-normal.woff2) format('woff2'); font-display: block; }
@font-face { font-family: 'Playfair Display'; font-weight: 600; src: url(art/playfair-display-latin-600-normal.woff2) format('woff2'); font-display: block; }
@font-face { font-family: 'Inter'; font-weight: 400; src: url(art/inter-latin-400-normal.woff2) format('woff2'); font-display: swap; }
@font-face { font-family: 'Inter'; font-weight: 600; src: url(art/inter-latin-600-normal.woff2) format('woff2'); font-display: swap; }

:root { --ink: #2b0d10; --wine: #6c0612; --red: #9d0a18; --ivory: #f6f1e8; --soft: #6d524c; --line: #cdb9a4; --out: cubic-bezier(.16, 1, .3, 1); }
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body { background: var(--ivory); color: var(--ink); font: 400 15px/1.45 Inter, system-ui, sans-serif; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { display: block; user-select: none; -webkit-user-drag: none; }
.script { font-family: 'Great Vibes', cursive; font-weight: 400; }
.serif { font-family: 'Playfair Display', Georgia, serif; }

.btn { font: 600 max(14px, .75vw)/1 Inter, system-ui, sans-serif; letter-spacing: .04em; color: #fff6ea; background: var(--wine); border: 0; border-radius: 2px; padding: 1.28em 2.1em; cursor: pointer; box-shadow: inset 0 0 0 4px var(--wine), inset 0 0 0 5px #c9787f; transition: transform .16s ease-out, background-color .2s; touch-action: manipulation; }
.btn:hover { background: #830a18; }
.btn:active { transform: scale(.97); }
.btn:focus-visible { outline: 2px solid var(--red); outline-offset: 4px; }
.btn--small { padding: 1.08em 1.7em; font-size: max(13px, .7vw); }

/* Intro: pin 01 */
.intro { position: fixed; inset: 0; z-index: 60; overflow: hidden; background: #e8e2d5 url(art/stripe.webp) center 0 / 400px; display: grid; place-items: center; will-change: transform; }
.invite { --w: min(78dvh, 100vw); position: relative; width: var(--w); aspect-ratio: 1040 / 1240; margin-top: 5dvh; container-type: inline-size; will-change: transform, opacity; }
.invite__card { position: absolute; inset: 0; width: 100%; height: 100%; }
.invite__bow { position: absolute; width: 54%; left: 23%; top: -9%; }
.invite__copy { position: absolute; inset: 35% 13% 13%; display: flex; flex-direction: column; align-items: center; justify-content: space-between; text-align: center; }
.invite__logo { width: 14cqw; }
.invite__eyebrow { font: 400 max(13px, 3cqw)/1 'Playfair Display', serif; color: var(--soft); }
.invite__title { color: var(--wine); font-weight: 400; line-height: 1; }
.invite__title .script { display: block; font-size: 19cqw; line-height: 1; }
.invite__title .serif { display: block; font-size: 9.6cqw; letter-spacing: .02em; text-transform: uppercase; margin-top: -1cqw; }
@media (max-width: 560px) { .invite__copy { inset: 34% 12% 12%; } .invite .btn { padding: 14px 18px; font-size: 13px; } }

/* Snow: a few sprites moved by the compositor */
.snow { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.snow i { position: absolute; top: -12px; border-radius: 50%; background: #fff; will-change: transform; animation: fall linear infinite; }
@keyframes fall { to { transform: translate3d(var(--dx), 106vh, 0); } }
.is-off .snow { display: none; }

/* Gift page: pin 04 */
.stage { position: relative; min-height: 100dvh; visibility: hidden; overflow: hidden; background: var(--ivory) url(art/paper.webp) 0 0 / 512px; display: flex; flex-direction: column; padding: 0 clamp(20px, 4vw, 72px) 2.2dvh; --u: min(15.6dvh, 8.75vw); }
.stage__swag { position: absolute; left: 0; right: 0; top: calc(var(--u) * -.12); height: calc(var(--u) * .78); background: url(art/swag.webp) center / 100% 100% no-repeat; }
.stage__bow { position: absolute; width: calc(var(--u) * 1.75); left: calc(50% - var(--u) * .875); top: calc(var(--u) * -.30); z-index: 2; pointer-events: none; }
.stage__header { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: calc(var(--u) * .6); min-height: calc(var(--u) * 1.32); }
.stage__brand { display: flex; align-items: center; gap: 20px; }
.stage__logo { height: max(46px, 2.4vw); width: auto; }
.stage__title { font: 400 clamp(20px, 2vw, 72px)/1 'Playfair Display', serif; color: var(--wine); white-space: nowrap; }
.stage__title .script { font-size: 1.55em; line-height: .6; }
.stage__progress { font: 400 clamp(14px, 1.1vw, 40px)/1 'Playfair Display', serif; color: var(--soft); font-variant-numeric: tabular-nums; }
.stage__progress b { font-weight: 600; color: var(--wine); display: inline-block; }

.card-grid { --gap: clamp(18px, 2vw, 38px); flex: 1; display: grid; align-content: center; justify-content: center; gap: calc(var(--gap) * .8) var(--gap); grid-template-columns: repeat(6, minmax(0, min(290px, calc((100dvh - var(--u) * 1.32 - 2.2dvh - var(--gap) - 24px) / 2.36)))); }
@media (max-width: 1080px) { .card-grid { grid-template-columns: repeat(4, minmax(0, 240px)); padding-block: 20px; } }
@media (max-width: 700px) { .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); --gap: 18px; } .stage { --u: 92px; } .stage__header { flex-direction: column; padding-top: 122px; gap: 12px; } }

.card { position: relative; aspect-ratio: 520 / 611; container-type: inline-size; }
.card__shadow { position: absolute; left: -13%; top: -8%; width: 128%; height: 121%; max-width: none; pointer-events: none; }
.card__reveal { position: absolute; inset: 0; border-radius: 4px; background: #fffaf1 url(art/paper.webp) 0 0 / 400px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 6cqw; gap: 2.4cqw; box-shadow: inset 0 0 0 1px #e6d8c4, inset 0 0 0 6px #fffaf1, inset 0 0 0 7px #c68086; visibility: hidden; }
.is-open .card__reveal { visibility: visible; }
.card__face { width: 38cqw; height: 38cqw; border-radius: 50%; box-shadow: 0 0 0 3px #fffaf1, 0 0 0 4px var(--red); background: #eadfce; }
.card__name { font: 600 max(14px, 9.4cqw)/1.1 'Playfair Display', serif; color: var(--wine); }
.card__meta { font-size: max(10.5px, 5.5cqw); line-height: 1.28; color: var(--soft); }
.card__meta b { display: block; font-weight: 600; color: var(--ink); }
.card__done { font: 600 max(10.5px, 5.2cqw)/1 Inter, sans-serif; color: #1c5a3a; opacity: 0; transition: opacity .3s; }
.is-presented .card__done { opacity: 1; }

.gift { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: none; cursor: pointer; transition: transform .35s var(--out); touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
@media (hover: hover) { .gift:hover { transform: translate3d(0, -6px, 0); } }
.gift:active { transform: scale(.975); transition-duration: .1s; }
.gift:focus-visible { outline: 2px solid var(--red); outline-offset: 6px; }
.gift img { position: absolute; pointer-events: none; }
.gift__whole, .gift__half { inset: 0; width: 100%; height: 100%; }
.gift__half { visibility: hidden; }
.gift__clip { position: absolute; inset: 0; overflow: hidden; border-radius: 3px; pointer-events: none; }
.gift__v { left: 40%; top: 0; width: 20%; height: 100%; }
.gift__h { left: 0; top: 33%; width: 100%; height: 17%; }
.gift__bow { width: 94%; left: 3%; top: 8.2%; }
.gift__no { position: absolute; right: 7%; bottom: 5%; min-width: 17cqw; text-align: center; font: 400 12cqw/1 'Great Vibes', cursive; color: var(--wine); background: #fffaf1; padding: 2cqw 3cqw; border-radius: 2px; box-shadow: 0 1px 3px rgba(40, 5, 8, .4), inset 0 0 0 1px #d9b9a8; }
.gift.is-spent { visibility: hidden; }
.is-unwrapping { z-index: 5; }
.is-unwrapping .gift img { will-change: transform, opacity; }

/* Presenter: pins 03 and 04 */
.overlay { position: fixed; inset: 0; z-index: 50; visibility: hidden; opacity: 0; overflow: auto; background: var(--ivory) url(art/paper.webp) 0 0 / 512px; display: flex; flex-direction: column; will-change: opacity; }
.overlay__chrome { display: flex; justify-content: space-between; align-items: center; padding: 22px clamp(20px, 3.4vw, 60px) 0; }
.overlay__logo { height: max(42px, 2.2vw); }
.overlay__body { flex: 1; display: grid; grid-template-columns: minmax(0, 1fr) clamp(250px, 21vw, 800px); align-items: center; gap: clamp(28px, 3.4vw, 64px); padding: 0 clamp(20px, 3.4vw, 60px) 3dvh; }
.overlay__frame { position: relative; justify-self: end; width: min(100%, calc((100dvh - 170px) * 16 / 9)); background: #fff; border: clamp(8px, .9vw, 16px) solid #fffaf1; box-shadow: 0 0 0 4px #fffaf1, 0 0 0 5px var(--red), 0 18px 34px rgba(60, 14, 10, .22); will-change: transform, opacity; }
.overlay__image { width: 100%; aspect-ratio: 16 / 9; }
.overlay__bow { position: absolute; width: clamp(110px, 13vw, 230px); left: 0; top: 0; transform: translate(-46%, -44%) rotate(-24deg); }
.overlay__panel > * { will-change: transform, opacity; }
.overlay__kicker { font-size: clamp(30px, 2.7vw, 104px); line-height: 1; color: var(--red); }
.overlay__name { font: 600 clamp(30px, 3.1vw, 120px)/1.04 'Playfair Display', serif; letter-spacing: -.015em; color: var(--wine); margin: 8px 0 12px; text-wrap: balance; }
.overlay__company { font: 400 clamp(17px, 1.4vw, 54px)/1.25 'Playfair Display', serif; }
.overlay__category { font-size: clamp(14px, 1.05vw, 40px); color: var(--soft); margin: 6px 0 22px; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.overlay__contact { display: block; width: fit-content; max-width: 100%; color: var(--ink); text-decoration: none; font-size: clamp(14px, 1.05vw, 40px); line-height: 1.9; overflow-wrap: anywhere; }
.overlay__contact:hover { color: var(--red); }
@media (max-width: 860px) { .overlay__body { grid-template-columns: 1fr; align-content: center; } .overlay__frame { justify-self: center; } }

#confetti { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 70; pointer-events: none; display: none; }
@media (prefers-reduced-motion: reduce) { .snow { display: none; } .gift { transition: none; } }

/* Dressing: pins 19 and 21. Everything is a pre-rendered picture. */
.panel { position: absolute; inset: calc(var(--u, 120px) * .18) 10px 2px; border: 92px solid transparent; border-image: url(art/panel.webp) 200 fill / 92px / 0 round; pointer-events: none; }
.corner { position: absolute; width: var(--c, max(150px, 25vw)); pointer-events: none; }
.corner--a { left: -1.2vw; top: -1.2vw; } .corner--b { right: -1.2vw; top: -1.2vw; } .corner--c { left: -1.2vw; bottom: -1.2vw; } .corner--d { right: -1.2vw; bottom: -1.2vw; }
.invite { z-index: 1; }
.intro, .stage, .finale { background: #e8e2d5 url(art/stripe.webp) center 0 / 400px; }
.stage { padding: 0 clamp(30px, 6.4vw, 260px) 46px; --c: max(130px, 21vw); }
.stage__header { padding-top: calc(var(--u) * .84); min-height: calc(var(--u) * 1.5); padding-inline: 10px; }
.stage__bow { top: calc(var(--u) * -.2); z-index: 4; }
.garland { position: absolute; left: -1vw; right: -1vw; top: calc(var(--u) * -.34); height: calc(var(--u) * 1.16); background: url(art/garland.webp) center / 100% 100% no-repeat; z-index: 3; pointer-events: none; }
.garland i { position: absolute; width: 26px; height: 26px; margin: -13px; border-radius: 50%; background: radial-gradient(circle, #fff8dd 0 9%, rgba(255, 214, 122, .75) 16%, rgba(255, 196, 92, .22) 42%, transparent 68%); animation: glow 3.4s ease-in-out infinite; will-change: opacity; }
@keyframes glow { 0%, 100% { opacity: .95; } 50% { opacity: .25; } }
.is-away .garland i { animation-play-state: paused; }
.card-grid { position: relative; z-index: 2; gap: calc(var(--gap) * .72) var(--gap); }
@media (min-width: 1081px) { .card-grid { --gap: clamp(16px, 1.7vw, 70px); grid-template-columns: repeat(6, minmax(0, min(13.6vw, calc((100dvh - var(--u) * 1.5 - 46px - var(--gap) - 12px) / 2.37)))); } }
.overlay__edge { position: absolute; inset: 0; border: 16px solid transparent; border-image: url(art/stripe.webp) 60 / 16px round; box-shadow: inset 0 0 0 3px var(--red), inset 0 0 0 6px #fffaf1; pointer-events: none; }
.overlay .corner { --c: clamp(0px, 24vw, 470px); right: 0; bottom: 0; }
.overlay__chrome, .overlay__body { position: relative; z-index: 1; }
.overlay__chrome { padding-top: 38px; padding-inline: clamp(38px, 4vw, 70px); }
.overlay__body { padding-inline: clamp(38px, 4vw, 70px); padding-bottom: 5dvh; }
.overlay__frame { width: min(100%, calc((100dvh - 190px) * 16 / 9)); }

/* Ending: pin 20 */
.finale { position: fixed; inset: 0; z-index: 55; visibility: hidden; overflow: hidden; will-change: opacity; --u: 100px; }
.finale__copy { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.finale__bow { width: min(42dvh, 62vw); margin-bottom: 0; will-change: transform, opacity; }
.finale__title { font-size: min(21dvh, 20vw); line-height: 1; color: var(--wine); }
.finale__sub { font: 400 clamp(17px, 3.2dvh, 64px)/1 'Playfair Display', serif; color: var(--soft); margin: 1.4dvh 0 3.4dvh; }
@media (max-width: 1080px) { .card-grid { padding-block: 10px 30px; } }
@media (max-width: 700px) { .stage { padding-inline: 40px; } .stage__header { padding-top: 128px; } .garland { background-size: 900px 100%; height: 106px; top: -26px; } .overlay .corner { display: none; } .card__name { font-size: 13px; } }
@media (max-width: 700px) { .panel { inset: 18px 0 0; border-width: 50px; border-image-width: 50px; } .stage { padding-inline: 30px; } .stage__header { padding-inline: 0; } .stage__brand { gap: 12px; } .stage__logo { height: 32px; } .stage__title { font-size: 18px; } .finale__title { font-size: 17vw; } }
@media (min-width: 701px) and (max-width: 900px) { .stage__header { flex-direction: column; gap: 10px; padding-top: calc(var(--u) * 1.75); } }
.stage, .intro, .finale { user-select: none; -webkit-user-select: none; }
.is-presented .card__reveal { cursor: pointer; }
.card__reveal:focus-visible { outline: 2px solid var(--red); outline-offset: 4px; }
/* a stray mouse click must not open a mail or phone app mid-meeting; phones keep tap to call */
@media (pointer: fine) { .overlay__contact { pointer-events: none; } }
/* phones held sideways */
@media (max-height: 480px) and (orientation: landscape) { .overlay__chrome { padding-top: 24px; } .overlay__body { grid-template-columns: minmax(0, 1fr) 230px; padding-bottom: 24px; gap: 20px; } .overlay__frame { width: min(100%, calc((100dvh - 112px) * 16 / 9)); } .overlay__kicker { font-size: 24px; } .overlay__name { font-size: 24px; margin: 2px 0 4px; } .overlay__category { margin: 2px 0 6px; padding-bottom: 6px; } .overlay .corner { display: none; } .invite .btn { padding: 8px 14px; font-size: 12px; } }
.card__reveal { gap: 2.8cqw; padding: 5cqw 6cqw; }
.card__face { width: 47cqw; height: 47cqw; margin-bottom: 2cqw; }
