/* Ideverto v2.60: mobile layout for portfolio demonstration pages. */
@media (max-width:800px){
 header.head{height:auto;min-height:74px;display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:10px;padding-top:12px;padding-bottom:12px;max-width:100%}
 header.head .nav{display:flex!important;order:20;flex:1 0 100%;width:100%;min-width:0;max-width:100%;overflow-x:auto;overflow-y:hidden;scrollbar-width:thin;overscroll-behavior-x:contain;gap:18px;white-space:nowrap;padding:8px 0}
 header.head .nav a{flex:0 0 auto;min-height:40px;display:inline-flex;align-items:center}
 .shell{max-width:100%;min-width:0}
 .hero,.hero>*,.story,.proof-grid,.trust-grid,.cta-grid,.features,.feature-grid{min-width:0;max-width:100%}
 .hero,.story,.proof-grid,.trust-grid,.cta-grid{grid-template-columns:minmax(0,1fr)}
 .hero h1{font-size:clamp(39px,12vw,68px);line-height:1.02;letter-spacing:-.06em;overflow-wrap:anywhere}
 .menu h2,.story h2,.proof h2,.trust h2,.features h2,.tracks h2,.section-head h2{font-size:clamp(30px,9vw,46px);line-height:1.08;letter-spacing:-.05em;overflow-wrap:anywhere}
 .hero p,.story p,.section-head p{overflow-wrap:anywhere}
 .grid,.feature-grid,.proof-grid,.metric-grid{min-width:0}
 .metric-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
 .metric,.card{min-width:0}
 .metric strong{font-size:clamp(20px,7vw,35px)}
 .foot{flex-wrap:wrap;gap:14px}
 .hero .plate{max-width:100%;right:0;width:min(350px,100%)}
 .scanner{max-width:100%}
 .orb-wrap{min-width:0;max-width:100%;width:100%;overflow:hidden}
 .orb{max-width:100%}
 .float.f1{left:0}.float.f2{right:0}
}
@media (max-width:380px){
 .hero h1{font-size:clamp(36px,11.5vw,46px)}
 .hero .plate{width:min(290px,100%)}
 .hero .scan-value{font-size:clamp(28px,12vw,48px)}
 .menu h2,.story h2,.proof h2,.trust h2,.features h2{font-size:clamp(28px,8.8vw,36px)}
 .metric-grid{grid-template-columns:minmax(0,1fr)}
}
/* Avoid intrinsic grid minimum widths and oversized CTA headings on narrow screens. */
@media (max-width:800px){
 header.head .logo{font-size:clamp(16px,5.6vw,22px);letter-spacing:-.035em;min-width:0;max-width:100%;overflow-wrap:anywhere}
 header.head>:not(.nav){min-width:0;max-width:100%;flex-shrink:1}
 header.head>a:not(.logo){padding:9px 11px;font-size:clamp(11px,3.4vw,14px)}
 .shell.hero{grid-template-columns:minmax(0,1fr)!important}
 .proof-grid,.feature-grid,.trust-grid,.story,.cta-grid{grid-template-columns:minmax(0,1fr)!important}
 .hero h1,.hero p,.hero .actions{min-width:0;max-width:100%}
 .hero .orb-wrap{overflow:hidden;max-width:100%;width:100%}
 .cta h2{font-size:clamp(38px,10vw,59px);line-height:1.05;letter-spacing:-.055em;overflow-wrap:anywhere}
 .services h2{font-size:clamp(30px,9vw,48px);line-height:1.08;overflow-wrap:anywhere}
}
@media (max-width:380px){
 .hero .plate{width:calc(100% - 40px);max-width:275px;right:10px}
}
/* Navigation must be reachable without horizontal swiping; keep all section links visible. */
@media(max-width:800px){
 header.head .nav{flex-wrap:wrap;overflow:visible;white-space:normal;gap:4px 12px;max-height:none}
 header.head .nav a{flex:0 1 auto;white-space:normal;min-width:0}
 .shell.hero:before{width:100%;max-width:100%;height:490px;right:0;left:0;top:-140px;filter:blur(42px);pointer-events:none}
}
/* Keep decorative hero glow in the 800-1200px tablet landscape range. */
@media (min-width:801px) and (max-width:1200px){
  .shell.hero::before{right:0;left:auto;width:100%;max-width:100%;pointer-events:none}
}
@media (max-width:800px){header.head .nav a{min-height:44px}}
/* Leave room for the rotated cup without widening the document. */
body[data-concept="mellow"] .cup{min-width:0;margin-inline:12px}
