/* Mobile composition: native scrolling, light glass and comfortable controls. */
html{-webkit-text-size-adjust:100%;text-size-adjust:100%}
.section-pad,.site-header{
  padding-left:max(var(--pad),env(safe-area-inset-left,0px));
  padding-right:max(var(--pad),env(safe-area-inset-right,0px));
}
.mobile-nav,.site-dialog{overscroll-behavior:contain}
.site-dialog{
  max-width:min(680px,calc(100vw - max(24px,env(safe-area-inset-left,0px)) - max(24px,env(safe-area-inset-right,0px))));
  max-height:calc(100dvh - max(24px,env(safe-area-inset-top,0px)) - max(24px,env(safe-area-inset-bottom,0px)));
}
.dialog-close{width:44px;height:44px;display:grid;place-items:center;touch-action:manipulation}
:is(button,summary,.choice,a.button,.hero-project-link){touch-action:manipulation}

@media(max-width:900px){
  :root{--mobile-head:76px}
  html{scroll-padding-top:calc(90px + env(safe-area-inset-top,0px))}
  .site-header{height:calc(var(--mobile-head) + env(safe-area-inset-top,0px));padding-top:env(safe-area-inset-top,0px)}
  .site-header .brand{min-height:44px}
  .menu-toggle{flex:none}
  .mobile-nav:not([hidden]){
    inset:calc(var(--mobile-head) + env(safe-area-inset-top,0px)) 0 0;
    padding-left:max(var(--pad),env(safe-area-inset-left,0px));
    padding-right:max(var(--pad),env(safe-area-inset-right,0px));
    background:radial-gradient(ellipse at 90% 0%,#65508824,transparent 65%),#0b0b12;
    -webkit-overflow-scrolling:touch;
  }
  .hero{padding-top:calc(150px + env(safe-area-inset-top,0px))}
  .hero-trust{
    left:max(var(--pad),env(safe-area-inset-left,0px));
    right:max(var(--pad),env(safe-area-inset-right,0px));
  }
}

@media(max-width:700px){
  :root{--mobile-head:72px}
  .hero{padding-top:calc(112px + env(safe-area-inset-top,0px))}
  .hero-trust{left:auto;right:auto}
  .hero-controls{margin-top:12px}
  .rave-motion-toggle{min-height:44px;padding:10px 12px;font-size:10px;gap:10px;color:#c9bcd9;background:linear-gradient(130deg,#6c54861f,#16131e88);border-color:#b9a1d446;border-radius:6px}
  .hero-trust>div>a{min-height:44px}
  .hero-trust>p{margin-bottom:9px}
  .hero-actions{column-gap:20px;row-gap:12px}
  .hero .button{margin-top:0}
  .development .service-body{margin-left:23px;padding-right:23px}
  .development .service-body p{line-height:1.85}
  .development .service-body .tags{gap:7px}
  .products .case-content .text-button{min-height:48px}
  .site-dialog .dialog-inner{padding-top:60px}
  .site-dialog .dialog-inner h2{font-size:clamp(26px,7vw,36px);line-height:1.25}
}

@media(max-width:370px){
  .hero-actions{column-gap:17px}
  .development .service-body{margin-left:18px;padding-right:18px}
}

/* Reflections and bevels supply the depth; scrolling glass needs no live blur. */
@media(hover:none),(pointer:coarse){
  .collaboration .partner-scene .partner-slot,
  .products .info-display,
  .products .case-surface,
  .development .service,
  .approach .process li>div,
  .brief-section .brief-builder{
    backdrop-filter:none;-webkit-backdrop-filter:none;
  }
  .kinetic-strip:hover>div{animation-play-state:running}
  .kinetic-strip:focus>div,body.rave-paused .kinetic-strip>div{animation-play-state:paused}
  .hero-project-link:hover{color:#e2d9ee}
  .products .case-content .text-button:hover{color:var(--paper)}
  .products .own-product-links button:hover{padding-left:16px;color:var(--paper)}
}
@media(max-width:700px) and (hover:none),(max-width:700px) and (pointer:coarse){
  .products .own-product-links button:hover{padding-left:10px}
}

@media(max-width:900px) and (max-height:500px) and (orientation:landscape){
  .mobile-nav:not([hidden]){padding-top:12px}
  .mobile-nav a{font-size:21px;min-height:58px;padding-block:15px}
}
@media(prefers-reduced-motion:reduce){
  .kinetic-strip:hover>div{animation:none}
}
