/* Mobile reading, touch interaction and safe-area adaptation. */
html{-webkit-text-size-adjust:100%;text-size-adjust:100%;scrollbar-gutter:stable}
.floating-whatsapp.is-over-contact{opacity:0;visibility:hidden;pointer-events:none;transform:translateY(12px)}
html.dialog-open{overflow:hidden}

@media(max-width:900px){
  :root{--gutter:max(20px,min(5.5vw,28px),env(safe-area-inset-left,0px),env(safe-area-inset-right,0px))}
  body{font-size:16px;line-height:1.65}
  .section-top>*,.solutions-layout>*,.contact-layout>*,.form-row>*,.process-steps article>div{min-width:0}
  .desktop-nav{display:none}
  .site-header{gap:16px;padding-inline:var(--gutter)}
  .site-header .brand{width:144px}
  .site-header .brand,.footer-top>.brand{display:flex;align-items:center;min-height:44px}
  .header-cta{margin-left:auto;min-height:44px;font-size:12px;gap:14px}
  .menu-toggle{display:flex;align-items:center;justify-content:center;flex-direction:column;flex-shrink:0;width:44px;height:44px;padding:10px;gap:6px}
  .menu-toggle span{width:24px;height:1px;background:var(--paper)}
  .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)}
  #mobile-menu{position:absolute;top:var(--hero-header);inset-inline:0;display:flex;flex-direction:column;max-height:calc(100dvh - var(--hero-header) - 12px);overflow-y:auto;overscroll-behavior:contain;padding:16px var(--gutter) 24px;background:var(--ink);box-shadow:0 20px 35px #0006}
  #mobile-menu a{display:flex;align-items:center;min-height:56px;padding:12px 0;border-bottom:1px solid var(--line);font:500 30px/1.15 var(--display)}
  #mobile-menu svg{width:20px;height:20px;margin-left:auto;color:var(--red)}
  .button{min-height:52px;font-size:14px;line-height:1.4;padding:16px 20px;gap:20px}
  .hero-description{font-size:16px;line-height:1.5}
  .hero .button{font-size:13px;min-height:52px}
  .hero-meta{font-size:11px;line-height:1.5;gap:8px}
  .hero-bottom{justify-content:flex-start}
  .hero-bottom>span{display:none}
  .hero-bottom a{font-size:12px;min-height:44px;align-items:center;gap:16px}
  .hero-bottom a span{font-size:22px}
  .section-top>p{max-width:46ch;font-size:16px;line-height:1.7}
  .service-toggle{min-height:72px;font-size:28px;gap:16px;padding-block:22px}
  .service-icon{width:24px;height:24px}
  .service-panel{min-height:245px;padding:0 0 24px 40px}
  .service-panel p{font-size:16px;line-height:1.65;max-width:44ch}
  .service-panel a{min-height:44px;margin-top:12px;font-size:13px;line-height:1.4;gap:16px}
  .service-panel a svg{width:18px;height:18px}
  .solutions-photo figcaption{font-size:10px;line-height:1.5;letter-spacing:.02em}
  .solutions-foot{font-size:13px;line-height:1.6}
  .solutions-foot>span:last-child{font-size:10px;line-height:1.6;letter-spacing:.03em}
  .projects-intro{display:flex;align-items:flex-end;gap:16px}
  .projects-intro p{font-size:14px;line-height:1.65;min-width:0;flex:1}
  .project-controls{flex-shrink:0;margin:0;gap:8px}
  .circle-button{width:44px;height:44px}
  .circle-button svg{width:20px;height:20px}
  .project-track.native-scroll{scroll-padding-inline:var(--gutter);overscroll-behavior-x:contain;-webkit-overflow-scrolling:touch}
  .project-info h3{font-size:30px;line-height:1.15}
  .project-info>span{font-size:10px;line-height:1.5;margin-top:10px}
  .project-open{width:64px;height:64px;gap:6px}
  .project-open span{font-size:10px}
  .projects-bottom{flex-wrap:wrap;gap:12px;font-size:12px;align-items:center}
  .projects-bottom>span{font-size:10px;line-height:1.5;max-width:none;letter-spacing:.03em}
  .projects-bottom a{min-height:44px;font-size:12px;line-height:1.5;gap:12px}
  .projects-bottom a svg{width:16px;height:16px}
  .story-bottom>span{font-size:14px;line-height:1.7;min-width:0}
  .process-steps p{font-size:16px;line-height:1.7;max-width:48ch}
  .process-steps h3{font-size:30px}
  .round-link{width:48px;height:48px}
  .contact-head>p{font-size:16px;line-height:1.7}
  .contact-layout{gap:36px}
  .contact-phone{font-size:34px;line-height:1.3;min-height:48px;gap:16px}
  .contact-email{font-size:15px;line-height:1.5;min-height:44px;display:inline-flex;align-items:center;margin-top:6px;overflow-wrap:anywhere}
  .contact-location{gap:14px;margin-top:28px}
  .contact-location p{font-size:14px;line-height:1.8;min-width:0}
  .contact-location span{font-size:12px;line-height:1.8}
  .instagram-link{font-size:14px;line-height:1.5;min-height:44px;margin-top:18px;gap:14px}
  form label{font-size:14px;line-height:1.5;margin-bottom:24px}
  input,select,textarea{font-size:16px;line-height:1.5;min-height:50px;padding:13px 0;max-width:100%;margin-top:8px}
  form input:focus-visible,form select:focus-visible,form textarea:focus-visible{outline-offset:4px}
  textarea{min-height:120px}
  .form-note{font-size:12px;line-height:1.65;margin-top:14px}
  #form-feedback{font-size:14px;line-height:1.6;overflow-wrap:anywhere}
  #form-feedback a{display:inline-block;min-height:44px;padding-block:10px}
  .site-footer{padding-bottom:calc(72px + env(safe-area-inset-bottom,0px))}
  .footer-top{flex-wrap:wrap;gap:20px;padding-bottom:24px}
  .footer-top>.brand{width:144px}
  .footer-top>span{order:3;width:100%;font-size:10px;line-height:1.6;letter-spacing:.03em}
  .back-top{min-height:44px;font-size:12px;gap:12px;margin-left:auto}
  .footer-bottom{align-items:flex-start;flex-wrap:wrap;gap:14px;font-size:11px;line-height:1.65}
  .footer-bottom>span:first-child{max-width:100%;flex:1 1 190px}
  .footer-bottom>span:last-child{display:none}
  #motion-toggle{font-size:12px;min-height:44px;padding:8px 0;white-space:normal;gap:8px}
  .floating-whatsapp{width:50px;height:50px;right:max(16px,env(safe-area-inset-right,0px));bottom:calc(16px + env(safe-area-inset-bottom,0px))}
  .floating-whatsapp span{display:none}
  dialog{width:calc(100% - 32px);max-height:calc(100dvh - 32px);overscroll-behavior:contain}
  .dialog-close{width:44px;height:44px;top:12px;right:12px}
  .dialog-brand{font-size:11px;line-height:1.5}
  .dialog-layout p{font-size:16px;line-height:1.7;margin-top:20px}
  .dialog-layout .button{font-size:14px;min-height:52px;gap:14px;margin-top:26px}
}

@media(max-width:760px){
  .contact-layout{display:flex;flex-direction:column;gap:36px}
  .form-row{grid-template-columns:1fr;gap:0}
  .contact-phone{font-size:clamp(30px,8.6vw,38px)}
}

@media(max-width:700px){
  .solutions-layout{display:flex;flex-direction:column;gap:32px}
  .solutions-photo{width:100%;height:clamp(270px,76vw,400px)}
  .services{width:100%}
  .service-panel{min-height:230px}
  .service-panel p{max-width:none}
  .project-card{flex:0 0 calc(100vw - var(--gutter) - var(--gutter) - 16px);width:calc(100vw - var(--gutter) - var(--gutter) - 16px);max-width:none}
  .project-image{height:clamp(280px,98vw,420px)}
  .project-info{display:block;padding:18px 0}
  .projects-heading{display:block}
  .projects-intro{margin-top:24px}
  .process-banner{display:block;margin-top:36px}
  .process-banner>img{height:260px}
  .process-banner>div{padding:28px 24px;gap:18px}
  .process-banner span{font-size:clamp(25px,6vw,34px);min-width:0;flex:1}
  .dialog-layout{display:block}
  .dialog-layout>img{height:40svh;min-height:200px;max-height:340px}
  .dialog-layout>div{padding:28px 24px}
  .dialog-layout h3{font-size:38px;line-height:1.05;margin-top:16px}
  .dialog-layout .button{width:100%}
}

@media(max-width:600px){
  .header-cta{display:none}
  .site-header .brand{width:140px}
  .menu-toggle{margin-left:auto}
  .section-top h2{font-size:clamp(44px,11.8vw,66px);line-height:1}
  .section-top>p{margin-top:24px}
  .solutions,.process{padding-top:56px}
  .solutions-foot{align-items:flex-start;gap:16px;margin-top:32px;padding-top:20px}
  .solutions-foot>span:first-child{max-width:60%}
  .solutions-foot>span:last-child{display:flex;flex-wrap:wrap;gap:8px;max-width:40%}
  .projects-heading h2{font-size:clamp(44px,12vw,66px);line-height:1}
  .connection-story{padding-top:64px;padding-bottom:48px}
  .connection-story>p{font-size:clamp(32px,9.4vw,56px);line-height:1.12}
  .story-bottom{align-items:flex-start;gap:20px;margin-top:32px}
  .story-bottom img{width:44px;height:44px;flex-shrink:0}
  .story-bottom>span{flex:1;margin:0}
  .process .section-top h2{font-size:clamp(36px,10.8vw,60px)}
  .process-steps{margin-top:36px;gap:28px}
  .process-steps article{gap:20px}
  .step-number{font-size:28px}
  .contact{padding-top:56px;padding-bottom:48px}
  .contact-head h2{font-size:clamp(52px,14vw,84px);line-height:.98}
  .contact-head>p{margin-top:24px}
  .contact-layout{margin-top:32px}
  .hero-description{font-size:16px;line-height:1.45}
  .hero-meta{gap:7px}
  .hero-bottom{padding-right:64px}
  .hero-bottom a{font-size:11px}
}

@media(max-width:360px){
  .service-panel{padding-left:0;min-height:245px}
  .service-toggle{font-size:26px;gap:12px}
  .service-icon{width:22px;height:22px}
  .project-info h3{font-size:28px}
  .process-banner>div{padding:24px 20px;gap:12px}
  .contact-location{align-items:flex-start}
  .footer-top>.brand{width:132px}
  .back-top{font-size:11px;gap:8px}
}

@media(max-width:600px) and (max-height:620px){
  .hero{padding-top:calc(var(--hero-header) + 20px)}
  .hero-description{font-size:14px;line-height:1.45;margin-top:14px}
  .hero .button{min-height:48px;padding-block:13px;margin-top:16px;font-size:12px}
  .hero-meta{font-size:10px;margin-top:12px}
}

@media(max-width:900px) and (max-height:500px) and (orientation:landscape){
  :root{--hero-header:56px;--hero-footer:36px}
  .hero{padding-top:72px;padding-bottom:48px;align-items:center}
  .hero-copy{width:60%}
  .hero-title{font-size:min(6.5vw,9.2svh,48px)}
  .hero-description{font-size:14px;line-height:1.35;margin-top:8px}
  .hero .button{min-height:44px;font-size:12px;padding:10px 14px;margin-top:10px}
  .hero-meta{font-size:10px;line-height:1.4;margin-top:8px}
  .hero-visual{top:76px;bottom:48px;height:auto;width:48%}
  .hero-bottom a{min-height:36px;font-size:11px}
  .scroll-seal{width:64px;height:64px;right:12%;bottom:48px}
}
