/* Layout depends on available space. Compact scenes stay in normal document flow. */
html{scrollbar-gutter:stable}
body{min-width:0}
#main{min-width:0}
#main :is(.detail-copy,.source-text,.source-description,.source-page-head,.gift-copy,.builder-form,.source-card,.venue-card-copy,.business-cards>article){min-width:0;overflow-wrap:anywhere}
#main :is(input,select,textarea){max-width:100%;min-width:0}
#main img{max-width:100%}
html .gift-story .gift-card{width:min(80%,440px);height:auto;min-height:0;aspect-ratio:1.586}
html .gift-story .gift-drift{min-height:0;transform-origin:center}
html .gift-story .gift-front .gift-brand{width:clamp(84px,10vw,132px);height:auto;aspect-ratio:1}
html .gift-story .gift-front #preview-value{font-size:clamp(28px,3.4vw,42px)}
html .gift-story .gift-back :is(p,small){font-size:12px;line-height:1.45;max-width:none}
html .gift-story .gift-back h3{font-size:20px}
html .gift-story .gift-copy{min-width:0;padding:clamp(28px,3.2vw,52px)}
html .gift-story .gift-copy h2{font-size:clamp(32px,3.5vw,54px);line-height:1.08}
html .gift-story .gift-copy .btn{max-width:100%;white-space:normal;text-align:center}
@media(min-width:1100px) and (min-height:700px) and (prefers-reduced-motion:no-preference){
 html .gift-story{height:180svh}
 html .gift-story .gift-stage{position:sticky;top:var(--contact-bar-height);height:calc(100svh - var(--contact-bar-height));min-height:0;grid-template-columns:minmax(0,1.05fr) minmax(0,1fr)}
 html .gift-story .gift-art{height:100%;min-height:0}
}
@media(max-width:1099px),(max-height:699px),(prefers-reduced-motion:reduce){
 html .gift-story{height:auto;overflow:hidden}
 html .gift-story .gift-stage{position:static;top:auto;height:auto;min-height:0;display:grid;grid-template-columns:minmax(0,1fr)}
 html .gift-story .gift-art{height:clamp(300px,52vw,430px);min-height:0}
 html .gift-story .gift-copy{height:auto;min-height:0;padding:30px clamp(24px,5vw,52px) 36px}
 html .gift-story .gift-copy h2{font-size:clamp(32px,5.4vw,44px)}
 html .gift-story .gift-drift{transform:none!important}
 html .gift-story .gift-card{transform:none!important}
 html .gift-story .gift-front .gift-brand{width:clamp(88px,18vw,132px)}
 html .gift-story .gift-front #preview-value{font-size:clamp(28px,6vw,42px)}
 html .gift-story .gift-gold-fill,html .gift-story .gift-gold-lines,html .gift-story .gift-atmosphere{display:none}
 html .gift-story .gift-copy{background:linear-gradient(145deg,#433021,#30251e)}
}
@media(max-width:1199px){
 :root{--contact-bar-height:128px}
 html body .header{min-height:128px;padding:12px 24px}
 html .header .header-actions{gap:10px}
 html .header .top-action{box-sizing:border-box;min-height:48px;padding:10px 14px}
 html .header .top-contact{min-width:0}
 .container{max-width:100%}
}
@media(max-width:1099px){
 html .builder-layout{display:flex;flex-direction:column;gap:28px}
 html .builder-preview{position:static;width:min(100%,560px);margin-inline:auto}
 html .builder-form{width:100%;max-width:760px;margin-inline:auto}
 html .source-product .detail-layout{grid-template-columns:minmax(0,1fr);gap:28px}
 html .source-product .detail-layout>img{position:static;width:100%;max-width:640px;max-height:none;aspect-ratio:1.2;justify-self:center}
 html .builder-panel{min-height:0}
}
@media(max-width:800px){
 html .section{padding-block:48px}
 html .hero.home-start{min-height:0}
 html .source-page{padding-block:32px 48px}
 html .source-page-head{padding-top:0;margin-bottom:28px}
 html .builder-steps{grid-template-columns:repeat(3,minmax(0,1fr));gap:0;margin-bottom:24px}
 html .builder-steps button{width:100%;min-height:48px;padding:10px 6px;justify-content:center;text-align:center;overflow-wrap:anywhere}
 html .builder-steps strong{font-size:13px}
 html .certificate-builder .gift-card{width:min(82%,440px);height:auto;min-height:0;aspect-ratio:1.586}
 html .certificate-builder .gift-art{height:clamp(300px,62vw,410px);min-height:0!important}
 html .certificate-builder .gift-drift{transform:none}
 html .certificate-builder .gift-front .gift-brand{width:clamp(90px,22vw,132px);height:auto;aspect-ratio:1}
 html .certificate-builder #preview-value{font-size:clamp(28px,7vw,40px)}
 html .gift-art .gift-turner{transition-duration:500ms}
 html .source-catalog-controls{grid-template-columns:repeat(2,minmax(0,1fr))}
 html .footer{gap:24px}
}
@media(max-width:599px){
 :root{--contact-bar-height:128px}
 html body .header{min-height:128px;padding:10px 16px}
 html .header .header-actions{gap:8px}
 html .header .top-action{min-height:48px;padding:9px 7px;font-size:12px}
 html .header .top-utilities{gap:4px}
 html .header #menu-toggle{min-width:36px;width:36px}
 html .header .top-contact{gap:8px}
 html .hero.home-start .hero-image{height:clamp(260px,76vw,420px);min-height:0}
 html .hero.home-start h1{font-size:clamp(36px,9.4vw,54px);line-height:1.08}
 html .hero.home-start .hero-copy{padding-top:14px}
 html .gift-story .gift-art{height:clamp(270px,85vw,360px)}
 html .gift-story .gift-copy{padding:26px 22px 30px}
 html .gift-story .gift-copy .small{font-size:13px;line-height:1.6}
 html .gift-story .gift-front .gift-brand{width:clamp(86px,23vw,112px)}
 html .gift-art .card-turn{bottom:12px;right:12px;min-height:42px;padding:8px 12px;font-size:12px}
 html .gift-art .gift-back{padding:16px}
 html .gift-art .gift-back :is(p,small){font-size:11px;line-height:1.35}
 html .gift-art .gift-back h3{font-size:18px}
 html .source-cards,html .venue-grid,html .business-cards,html .journal-grid{grid-template-columns:minmax(0,1fr)}
 html .builder-options{grid-template-columns:minmax(0,1fr)}
 html .builder-swatches{flex-wrap:wrap}
 html .builder-review>div{grid-template-columns:minmax(0,1fr);gap:6px}
 html .builder-review dd{min-width:0;overflow-wrap:anywhere}
 html .builder-actions .btn{min-width:0}
 html .builder-step-caption{scroll-margin-top:calc(var(--contact-bar-height) + 12px)}
 html .source-text :is(a,p),html .contact-primary a{overflow-wrap:anywhere}
}
@media(max-width:359px){
 html body .header{padding-inline:12px}
 html .header a.header-phone{font-size:12px}
 html .header .header-phone small{font-size:8px}
 html .header .top-messengers summary{width:36px;height:36px;min-height:36px}
 html .header .top-contact{gap:6px}
 html .header .top-action{font-size:11px;padding-inline:5px;gap:4px}
 html .header .top-action [data-ui-icon]{display:none}
 html .gift-story .gift-art{height:270px}
 html .gift-art .gift-back{padding:12px}
 html .gift-art .gift-back :is(p,small){font-size:10px}
 html .gift-art .gift-back h3{font-size:16px}
}
@media(max-height:540px) and (max-width:1199px){
 :root{--contact-bar-height:110px}
 html body .header{min-height:110px;padding-block:7px}
 html .header .header-actions{gap:6px}
 html .header .header-phone small{display:none}
 html .header .top-action{min-height:42px;padding-block:7px}
 .spa-nav-dialog{height:100dvh;max-height:100dvh}
}
@supports(padding:max(0px)){
 html body .header{padding-left:max(16px,env(safe-area-inset-left));padding-right:max(16px,env(safe-area-inset-right))}
 @media(max-width:359px){html body .header{padding-left:max(12px,env(safe-area-inset-left));padding-right:max(12px,env(safe-area-inset-right))}}
}
/* Scale the card artwork against the card itself, including a narrow fold cover screen. */
@supports(width:1cqw){
 html :is(.gift-story,.certificate-builder) .gift-card{container-type:inline-size}
 html :is(.gift-story,.certificate-builder) .gift-card .gift-front{padding:5cqw;gap:3cqw}
 html :is(.gift-story,.certificate-builder) .gift-card .gift-front .gift-brand{width:30cqw;height:30cqw;max-width:132px;max-height:132px;margin:0;padding:0;align-self:center}
 html :is(.gift-story,.certificate-builder) .gift-card #preview-value{font-size:clamp(24px,11cqw,44px);line-height:1.1;margin:0}
 html :is(.gift-story,.certificate-builder) .gift-card .gift-back{padding:5cqw;gap:2cqw}
 html :is(.gift-story,.certificate-builder) .gift-card .gift-back :is(p,small){font-size:clamp(8px,3cqw,12px);line-height:1.3;margin-block:3px}
 html :is(.gift-story,.certificate-builder) .gift-card .gift-back h3{font-size:clamp(14px,5cqw,20px);line-height:1.15;margin-block:4px}
}
@media(min-width:1200px){html body .header{min-height:102px}}
/* The drawer starts at 1199px; its menu glyph must use the same breakpoint. */
@media(max-width:1199px){
 html .header #menu-toggle{display:flex;flex-direction:column;justify-content:center;align-items:center;gap:6px;padding:0}
 html .header #menu-toggle>span{display:block;flex:none;width:23px;height:1.5px;background:currentColor;border-radius:2px}
}
@media(max-width:800px){
 html .certificate-builder .builder-steps{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));overflow:visible;white-space:normal}
 html .certificate-builder .builder-steps li{min-width:0}
 html .certificate-builder .builder-steps strong{display:block;white-space:normal;overflow-wrap:anywhere;font-size:12px}
}
@media(max-width:359px){html .certificate-builder .builder-steps{grid-template-columns:repeat(2,minmax(0,1fr))}}
