/* Mobile and tablet layout: keep the desktop composition untouched. */
@media(max-width:1023px){
  .site-header{height:78px;z-index:1001}
  .header-inner{padding-inline:clamp(18px,4vw,32px)}
  .lw-site .header-row{width:100%;height:100%;flex-direction:row!important;flex-wrap:nowrap!important;align-items:center!important;justify-content:space-between!important;gap:0!important}
  .lw-site .header-row>.elementor-element{margin:0!important}
  .lw-site .brand{flex:0 0 auto;width:auto!important}
  .lw-site .nav-links,.lw-site .header-cta{display:none!important}
  .lw-site .header-account{display:block!important;position:absolute!important;top:50%;right:calc(clamp(14px,4vw,24px) + 52px);z-index:1003;width:auto!important;max-width:calc(100vw - 210px);transform:translateY(-50%)}
  .lw-site .header-account .cabinet-icon{min-height:38px;padding:0 9px;gap:7px;font-size:12px;white-space:nowrap}
  .lw-site .header-account .cabinet-icon span{max-width:76px;font-size:12px}
  .menu-toggle{display:flex!important;position:absolute;top:50%;right:clamp(14px,4vw,24px);transform:translateY(-50%);z-index:1003;width:44px!important;height:44px!important;min-width:44px!important;min-height:44px!important;flex-direction:column;align-items:center;justify-content:center;padding:0!important;border:1px solid #ffffff24!important;border-radius:50%!important;background:#111115!important;box-shadow:none!important}
  .menu-toggle span{width:19px;height:1.5px;margin:3px 0;background:#ededf0!important;transition:transform .25s,opacity .25s}
  .menu-toggle[aria-expanded=true] span:first-child{transform:translateY(3.75px) rotate(45deg)}
  .menu-toggle[aria-expanded=true] span:last-child{transform:translateY(-3.75px) rotate(-45deg)}
  .lw-site #mobile-nav:not([hidden]){position:fixed!important;inset:0!important;z-index:1002;display:flex;width:100vw!important;max-width:none!important;height:100vh;height:100dvh;min-height:100svh;flex-direction:column;justify-content:center;gap:4px;overflow-y:auto;margin:0!important;padding:calc(env(safe-area-inset-top) + 88px) 28px calc(env(safe-area-inset-bottom) + 28px);box-sizing:border-box;border:0;background:#0b0b0d;animation:lw-menu-in .28s ease both}
  .lw-site #mobile-nav a{padding:15px 0;border-bottom:1px solid #ffffff12;font-size:clamp(20px,4vw,25px);line-height:1.25;color:#f1f1f4}
  #mobile-nav .mobile-auth{margin-top:22px;padding:16px 20px;border:1px solid #ffffff24;border-radius:999px;text-align:center;color:#fff;font-size:17px}
  #mobile-nav .mobile-nav-close{position:absolute;top:calc(env(safe-area-inset-top) + 18px);right:clamp(18px,4vw,28px);width:46px;height:46px;padding:0;border:1px solid #ffffff35;border-radius:50%;background:#151519}
  #mobile-nav .mobile-nav-close:before,#mobile-nav .mobile-nav-close:after{content:"";position:absolute;top:21px;left:13px;width:18px;height:1.5px;border-radius:2px;background:#fff}
  #mobile-nav .mobile-nav-close:before{transform:rotate(45deg)}#mobile-nav .mobile-nav-close:after{transform:rotate(-45deg)}
  body.lw-menu-open{position:fixed;inset-inline:0;overflow:hidden;width:100%;}
  .lw-site .hero{padding:142px 24px 0}
  .lw-site .hero-title .elementor-heading-title{font-size:clamp(52px,8vw,76px);line-height:.98}
  .lw-site .hero-description{max-width:370px;font-size:16px;line-height:1.6}
  /* Reveal effects can leave content hidden when mobile browsers skip/interupt observers. */
  .reveal-ready{opacity:1;transform:none;transition:none}
}
@media(max-width:767px){
  html{scroll-padding-top:82px}
  .site-header{height:calc(76px + env(safe-area-inset-top))}
  .header-inner{padding:env(safe-area-inset-top) 20px 0}
  .lw-site .brand a{height:36px!important;line-height:36px!important}
  .lw-site .brand a:before{top:2px}
  .menu-toggle{right:20px}
  .lw-site .hero{padding:calc(20px + env(safe-area-inset-top)) 22px 0;min-height:0}
  .lw-site .hero-content{gap:0}
  .lw-site .hero-eyebrow{margin-bottom:27px}
  .hero-eyebrow p{font-size:8px;letter-spacing:.14em}
  .lw-site .hero-title{width:100%}
  .lw-site .hero-title .elementor-heading-title{max-width:540px;margin-inline:auto;font-size:clamp(53px,14.5vw,66px);line-height:.96;letter-spacing:-.065em}
  .lw-site .hero-title .soft-white,.lw-site .hero-title .coral-word{display:block}
  .lw-site .hero-description{max-width:360px;margin:35px auto 0;padding-inline:2px;font-size:17px;line-height:1.58}
  .lw-site .hero-actions{margin-top:28px;gap:10px}
  .lw-site .hero-actions .elementor-button{min-height:48px;padding:14px 19px;font-size:13px}
  .lw-site .hero-note{margin-top:4px;font-size:10px;line-height:1.6}
  .hero-content>div{animation:none}
  .lw-site .hero-preview{margin-top:38px;max-height:260px}
  .hero-preview .quote-preview{min-height:260px;padding:28px 22px}
  .hero-preview .quote-preview blockquote{font-size:clamp(17px,5vw,20px)!important;line-height:1.25!important;white-space:normal!important;overflow-wrap:anywhere}
  .hero-preview .quote-preview>span,.hero-preview .quote-preview small{font-size:8px;line-height:1.5}
  .lw-site .hero-footnote{padding-top:20px;font-size:9px;line-height:1.5}
  .lw-site .section{padding:64px 22px}
  .lw-site .section-title .elementor-heading-title{font-size:clamp(34px,10vw,40px)}
  .lw-site .section-head{margin-bottom:30px}
  .lw-site .section-description{font-size:15px;line-height:1.7}
  .lw-site .final-cta{padding:76px 22px}
  #mobile-nav:not([hidden]){padding-inline:24px}
}
@media(max-width:360px){
  .lw-site .hero{padding-inline:18px}
  .lw-site .hero-title .elementor-heading-title{font-size:53px}
  .lw-site .hero-description{font-size:16px}
  .lw-site .hero-actions .elementor-button{padding-inline:15px;font-size:12px}
  .lw-site .header-account{right:72px;max-width:40px}
  .lw-site .header-account .cabinet-icon{width:38px;min-height:38px;padding:0;justify-content:center}
  .lw-site .header-account .cabinet-icon span{display:none}
  #mobile-nav:not([hidden]){padding-inline:20px}
}
@media(max-width:767px){
  /* Project cards must stack on phones so the preview and its details stay together. */
  .lw-site .project-grid{display:flex!important;flex-direction:column!important;align-items:stretch!important;gap:28px!important;width:100%!important}
  .lw-site .project-card{flex:0 1 auto!important;min-width:0!important;min-height:0!important;gap:12px!important}
  .lw-site .project-meta{flex-direction:column!important;align-items:flex-start!important;justify-content:flex-start!important;gap:5px!important;margin-top:0!important}
  .lw-site .case-preview{width:100%!important;height:210px!important;min-height:0!important}
}
@keyframes lw-menu-in{from{opacity:0}to{opacity:1}}
@media(prefers-reduced-motion:reduce) and (max-width:1023px){#mobile-nav:not([hidden]){animation:none}}
