/* A real portfolio image, a matte presentation case, and a single paper band. */
#hero.hero-scene{height:600svh}
.hero-scene+.promise-scene{margin-top:-100svh}
.hero-design-backdrop{opacity:calc(1 - var(--gift-backdrop-fade,0)*.96)}
.hero-design-sheet.is-gift-selected{opacity:var(--gift-source-opacity,1)}
.gift-scene{position:absolute;inset:0;z-index:3;margin:0;pointer-events:none;opacity:var(--gift-reveal-opacity,0);isolation:isolate}
.gift-atmosphere{position:absolute;inset:0;background:radial-gradient(ellipse at 50% 42%,#f8f7f257,transparent 65%);opacity:var(--gift-backdrop-fade,0)}
.gift-flight{position:absolute;left:0;top:0;width:var(--gift-width,600px);height:var(--gift-height,480px);transform-origin:0 0;transform:var(--gift-transform,translate(-200vw,-200vh));will-change:transform}
.gift-package{position:relative;width:100%;height:100%;border-radius:4px;background:#292c29;transform:perspective(1400px) rotateX(calc(var(--gift-case-settle,0)*9deg)) rotateZ(calc(var(--gift-case-settle,0)*-4deg));transform-style:flat;box-shadow:0 1px 0 #151714,0 7px 0 -1px #3d403b,0 10px 0 -2px #242622,0 24px 40px -9px #3431262b,0 55px 70px -35px #3431262b}
.gift-website{position:absolute;inset:0;border:1px solid #dedbd5;border-radius:4px;overflow:hidden;background:white;backface-visibility:hidden;transform:scale(calc(1 - var(--gift-case-settle,0)*.055));transform-origin:center}
.gift-website>img{display:block;width:100%;height:100%;object-fit:cover;object-position:top;max-width:none}
.gift-browser-line{position:absolute;top:0;left:0;right:0;height:24px;display:flex;align-items:center;gap:4px;padding:0 10px;border-bottom:1px solid #ddd8cd;background:#fbfaf6f5;opacity:var(--gift-lift,0);font-size:8px;color:#77766d;letter-spacing:.015em}
.gift-browser-line i{width:4px;height:4px;border-radius:50%;background:#c9c3b7}.gift-browser-line span{margin-left:auto}
.gift-case-edge{position:absolute;inset:0;border:1px solid #ffffff13;border-radius:4px;opacity:var(--gift-case-settle,0)}
.gift-sleeve-clip{position:absolute;inset:0;overflow:hidden;border-radius:4px}
.gift-sleeve{position:absolute;inset:0 0 0 9px;background:#e9e6de;transform:translateX(calc((1 - var(--gift-sleeve,0))*103%));border:1px solid #f9f8f1;border-right-color:#d5d0c5;border-bottom-color:#c8c4b8;border-radius:2px;box-shadow:-8px 0 12px -6px #0006,inset 1px 0 #fff8;will-change:transform}
.gift-sleeve:after{content:'';position:absolute;inset:0;background:linear-gradient(115deg,#fff3,transparent 46%,#98907708);pointer-events:none}
.gift-cover-content{position:absolute;z-index:1;inset:8% 20% 8% 7%;display:flex;flex-direction:column;align-items:flex-start;color:#282c28}
.gift-edition{font-family:'DM Sans',sans-serif;font-size:clamp(7px,calc(var(--gift-width,600px)*.014),9px);line-height:1.4;letter-spacing:.17em;font-weight:500;color:#676b60;margin-bottom:clamp(10px,calc(var(--gift-width,600px)*.025),16px)}
.gift-brand{display:flex;align-items:center;gap:clamp(7px,calc(var(--gift-width,600px)*.018),11px)}
.gift-brand img{width:clamp(22px,calc(var(--gift-width,600px)*.052),32px);height:clamp(22px,calc(var(--gift-width,600px)*.052),32px);filter:none;flex:none}
.gift-brand strong{font-size:clamp(22px,calc(var(--gift-width,600px)*.055),34px);font-weight:800;letter-spacing:-.065em;line-height:1;color:#282c28}
.gift-cover-title{margin:clamp(10px,calc(var(--gift-width,600px)*.03),20px) 0 0;font-size:clamp(14px,calc(var(--gift-width,600px)*.034),22px);font-weight:600;letter-spacing:-.035em;color:#282c28;line-height:1.4;white-space:nowrap}
.gift-contents{margin-top:clamp(18px,calc(var(--gift-width,600px)*.062),38px)}
.gift-contents>p{margin:0;font-size:clamp(10px,calc(var(--gift-width,600px)*.022),14px);font-weight:500;line-height:1.4;color:#596052}
.gift-contents ul{margin:clamp(5px,calc(var(--gift-width,600px)*.014),9px) 0 0;padding-left:1.15em;list-style:disc;font-size:clamp(13px,calc(var(--gift-width,600px)*.028),18px);font-weight:500;line-height:1.65;letter-spacing:-.025em}
.gift-contents li{padding-left:.1em;white-space:nowrap}
.gift-contents li::marker{color:#b94c32;font-size:.8em}
/* Release the completed sleeve layer while preserving the case perspective. */
.gift-flight[data-delivered="true"]{will-change:auto}
.gift-flight[data-delivered="true"] .gift-sleeve{transform:none;will-change:auto}

/* Keep the ribbon in the same paint plane as its cover. An explicit-height
   reveal avoids clip-path compositing on nested iOS perspective layers. */
.gift-band{position:absolute;z-index:4;top:-1px;left:84%;width:8%;height:var(--gift-band-height,0px);overflow:hidden;isolation:isolate;will-change:height}
.gift-band-art{position:absolute;inset:0 0 auto;height:calc(var(--gift-height,480px) + 3px);background:#b94c32;box-shadow:1px 0 1px #692f2626,-1px 0 #ffffff38,inset 0 1px #d98466,inset 0 -2px #893321}
.gift-band-art>span{position:absolute;left:50%;top:13%;writing-mode:vertical-rl;font:500 calc(var(--gift-width,600px)*.013)/1 'DM Sans',sans-serif;letter-spacing:.17em;color:#f0d6c8;transform:translateX(-50%)}
.gift-band-art>i{position:absolute;left:50%;bottom:12%;height:calc(var(--gift-width,600px)*.055);width:1px;background:#dc9b83;transform:translateX(-50%)}
.gift-message{position:absolute;top:calc(43svh + var(--gift-height,480px)*.54 + 38px);left:20px;right:20px;text-align:center;opacity:var(--gift-text-opacity,0);transform:translateY(calc((1 - var(--gift-text-opacity,0))*12px));color:#292c28}
.gift-message>span{font-size:11px;font-weight:500;color:#9b4933;letter-spacing:-.02em}
.hero-scene .gift-message h2{font-size:clamp(21px,1.8vw,26px);font-weight:600;line-height:1.5;letter-spacing:-.05em;margin-top:9px}
.gift-message .gift-message-highlight{position:relative;display:inline-block;isolation:isolate;padding:0 .08em;color:inherit}
.gift-message-highlight::before{content:'';position:absolute;z-index:-1;left:0;right:0;bottom:.12em;height:.44em;border-radius:2px;background:#ff4f302e;transform:scaleX(var(--gift-handoff,0));transform-origin:left center;pointer-events:none}
.gift-message .gift-next-cue{display:flex;align-items:center;justify-content:center;gap:6px;width:max-content;max-width:100%;margin:14px auto 0;font-size:12px;font-weight:600;line-height:1.8;color:#54594f}
.gift-next-cue>span:last-child{flex:none;color:var(--orange,#ff4f30)}
@media(max-width:900px){#hero.hero-scene{height:550svh}.gift-message{top:var(--gift-message-top,calc(42svh + var(--gift-height,240px)*.54 + 36px))}.gift-message>span{font-size:10px}.hero-scene .gift-message h2{font-size:20px}.gift-message .gift-next-cue{font-size:11px;margin-top:12px}.gift-sleeve{left:5px}.gift-browser-line{height:18px;font-size:7px;padding:0 7px}.gift-browser-line i{width:3px;height:3px}}
@media(min-width:901px) and (max-height:760px){.gift-message{top:calc(43svh + var(--gift-height,400px)*.54 + 21px)}.hero-scene .gift-message h2{font-size:23px;margin-top:6px}.gift-message .gift-next-cue{font-size:11px;margin-top:10px}.gift-message>span{font-size:10px}}
@media(max-width:900px) and (max-height:500px){.gift-message{top:var(--gift-message-top,61svh)}.gift-message>span{font-size:9px}.hero-scene .gift-message h2{font-size:18px;line-height:1.4;margin-top:4px}.gift-message .gift-next-cue{font-size:10px;line-height:1.5;margin-top:8px}.gift-sleeve{left:3px}}
@media(prefers-reduced-motion:reduce){.gift-scene{display:none!important}.hero-design-backdrop{opacity:1}.hero-design-sheet.is-gift-selected{opacity:1}.hero-scene+.promise-scene{margin-top:0}}
@media print{.gift-scene{display:none}.hero-design-sheet.is-gift-selected{opacity:1}}

@media(max-width:900px) and (max-height:500px) and (orientation:landscape){
  .gift-cover-content{inset:8% 20% 8% 7%}
  .gift-edition{display:none}
  .gift-brand img{width:22px;height:22px}
  .gift-brand strong{font-size:22px}
  .gift-cover-title{font-size:13px;margin-top:8px}
  .gift-contents{margin-top:16px}
  .gift-contents>p{font-size:10px}
  .gift-contents ul{display:grid;grid-template-columns:max-content max-content;gap:2px 22px;font-size:12px;line-height:1.5;margin-top:5px}
  .gift-message{left:55%;right:20px;text-align:center}
}
