/* Responsive layout for touch screens; desktop composition remains intact. */
html{-webkit-text-size-adjust:100%;text-size-adjust:100%}
.section>*{min-width:0}
.product-info>*,.detail-copy,.contact-item,.contact-grid{min-width:0}
.product-name,.detail-copy h2{overflow-wrap:anywhere}
.product-image img{width:100%;height:100%}
#about h2 br{display:initial}
@media(max-width:1024px){
 :root{--demo-height:29px;--header-height:88px}
 .demo-bar{height:var(--demo-height);line-height:var(--demo-height)}
 .hero{height:calc(100vh - var(--demo-height));height:calc(100svh - var(--demo-height))}
 header{height:var(--header-height);top:var(--demo-height);padding:0 max(24px,env(safe-area-inset-left))}
 .desktop-nav{display:none}
 .brand{font-size:24px;line-height:1.1}
 .menu-toggle{display:flex;align-items:center;justify-content:center;flex-direction:column;gap:6px;width:44px;height:44px;padding:0;background:transparent;touch-action:manipulation}
 .menu-toggle span{display:block;height:1px;width:24px;background:currentColor;transition:transform .25s}
 .menu-toggle[aria-expanded=true] span:first-child{transform:translateY(3.5px) rotate(45deg)}
 .menu-toggle[aria-expanded=true] span:last-child{transform:translateY(-3.5px) rotate(-45deg)}
 header.menu-open{position:fixed;top:var(--demo-height);background:var(--cream);color:var(--wine)}
 #mobile-menu{position:fixed;inset:calc(var(--demo-height) + var(--header-height)) 0 0;width:100%;max-height:calc(100vh - var(--demo-height) - var(--header-height));max-height:calc(100dvh - var(--demo-height) - var(--header-height));padding:16px max(24px,env(safe-area-inset-left)) max(28px,env(safe-area-inset-bottom));background:var(--cream);z-index:20;overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;box-shadow:none}
 #mobile-menu a{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:18px 0;border-bottom:1px solid var(--line);font:clamp(27px,5vw,40px)/1.1 var(--serif)}
 #mobile-menu a span{font:11px Arial,sans-serif;flex-shrink:0}
 #mobile-menu p{font-size:12px;margin-top:28px}
 .section{padding:72px max(24px,env(safe-area-inset-left))}
 #about,.contacts{grid-template-columns:minmax(0,1fr);gap:38px}
 #about h2{font-size:clamp(36px,5.4vw,54px);overflow-wrap:normal}
 .about-intro{max-width:570px}
 .products{grid-template-columns:repeat(3,minmax(0,1fr));gap:30px 18px}
 .product-name{font-size:22px}
 .story{min-height:0}
 .story-photo{aspect-ratio:1;position:relative;height:auto}
 .story-photo picture{aspect-ratio:1;height:auto}
 .story-photo img{aspect-ratio:1;width:100%;height:auto}
 .story-text{padding:52px 7% 58px}
 .contact-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
 dialog{width:calc(100% - 40px);max-width:760px;max-height:calc(100vh - 40px);max-height:calc(100dvh - 40px);overscroll-behavior:contain;-webkit-overflow-scrolling:touch;border-radius:2px}
 #product-detail{grid-template-columns:1fr 1fr}
 .detail-image{width:100%;height:100%;min-height:0;max-height:none;object-fit:contain;background:#eee8e0}
 .detail-copy{padding:58px 28px 32px}
 .detail-copy h2{font-size:34px}
 .detail-copy .button{gap:20px;min-height:48px}
 #product-dialog>.close{position:sticky;top:8px;float:right;margin:8px 8px -52px 0;right:8px;width:44px;height:44px;touch-action:manipulation}
}
@media(max-width:600px){
 :root{--demo-height:27px;--header-height:76px}
 header{padding:0 max(20px,env(safe-area-inset-left))}
 .brand{font-size:22px}
 .demo-bar{font-size:8px;letter-spacing:.06em;height:var(--demo-height);line-height:var(--demo-height)}
 .hero{height:calc(100vh - var(--demo-height));height:calc(100svh - var(--demo-height));min-height:560px;max-height:none}
 .hero-content{left:max(20px,env(safe-area-inset-left));right:max(20px,env(safe-area-inset-right));bottom:max(32px,env(safe-area-inset-bottom))}
 h1{font-size:clamp(40px,12vw,56px);line-height:1.03}
 .hero-copy{font-size:13px;line-height:1.65;margin:20px 0 24px}
 .hero-content .eyebrow{font-size:8px;letter-spacing:.13em;margin-bottom:18px}
 .hero-image{object-position:56% center}
 .hero .button{min-height:50px;width:100%;padding:14px 20px}
 .section{padding:56px max(20px,env(safe-area-inset-left))}
 h2{font-size:clamp(33px,9.2vw,42px)}
 .small-label{white-space:normal;margin-top:15px}
 .catalog-note{font-size:12px;line-height:1.65;margin:16px 0 24px}
 .catalog-filters{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;margin-bottom:26px}
 .filter-button{min-width:0;min-height:46px;padding:12px 8px;gap:8px;font-size:12px;justify-content:center;touch-action:manipulation}
 .filter-button span{font-size:9px}
 .products{grid-template-columns:repeat(2,minmax(0,1fr));gap:26px 12px}
 .product-name{font-size:clamp(17px,4.7vw,21px);line-height:1.2}
 .product-info{gap:8px;align-items:flex-start;margin-top:12px}
 .product-info>span{flex-shrink:0}
 .product-open{touch-action:manipulation}
 .story-text{padding:48px max(24px,env(safe-area-inset-left)) 52px}
 .story-text h2{font-size:clamp(34px,9.5vw,43px)}
 #about h2{font-size:clamp(33px,9vw,42px);line-height:1.1}
 .delivery-steps article{gap:18px}
 .delivery-steps article>div{min-width:0}
 .delivery-steps h3{font-size:19px}
 .delivery-steps p,.about-intro,.contact-intro{font-size:13px}
 .contact-grid{gap:28px 18px}
 .contact-main{font-size:22px}
 .contact-item .eyebrow{font-size:9px;letter-spacing:.1em}
 footer{padding:45px max(20px,env(safe-area-inset-left)) max(25px,env(safe-area-inset-bottom))}
 .footer-top{display:block;padding-bottom:30px}
 .footer-brand{font-size:42px}
 .footer-bottom{flex-direction:column;gap:14px;line-height:1.7}
 dialog{width:calc(100% - 24px);max-height:calc(100vh - 24px);max-height:calc(100dvh - 24px)}
 #product-detail{grid-template-columns:minmax(0,1fr)}
 .detail-image{height:auto;min-height:0;max-height:45vh;max-height:45svh;object-fit:contain}
 .detail-copy{padding:28px 22px 28px}
 .detail-copy h2{font-size:30px}
 .detail-copy p{font-size:13px;line-height:1.7}
 .detail-copy .button{margin-top:12px}
}
@media(max-width:380px){.contact-grid{grid-template-columns:minmax(0,1fr)}.contact-grid>.demo-caption{grid-column:auto}.filter-button{gap:5px;padding:12px 5px;font-size:11px}.demo-bar{font-size:7px}}
@media(max-height:500px) and (max-width:1024px){#mobile-menu a{font-size:25px;padding:12px 0}.hero{min-height:550px}#mobile-menu p{margin-top:16px}}
@media(hover:none){.filter-button:hover,.button:hover,.close:hover{transform:none;box-shadow:none}.product-open:hover img{transform:none}}
@media(prefers-reduced-motion:reduce){.product.reveal{transition:none}}
