/* DEVSYNC 2.9 — dedicated touch layouts. Desktop design remains unchanged. */
.mobile-sticky-cta{display:none}
@media(max-width:850px){
  :root{--mobile-gutter:22px}
  html{scroll-padding-top:88px}
  body{overflow-x:clip;-webkit-text-size-adjust:100%}
  .container{width:calc(100% - var(--mobile-gutter)*2);max-width:650px}
  .header{height:70px;z-index:110;border-bottom:1px solid #dfe4f0;background:rgba(248,249,255,.96);backdrop-filter:blur(18px);-webkit-backdrop-filter:blur(18px)}
  .header-inner{gap:14px;justify-content:space-between}
  .logo{font-size:27px;letter-spacing:-.075em;line-height:1}
  .nav{display:none!important}
  .nav-end{margin-left:auto;gap:10px}
  .nav-end>.btn,.header .lang-switch{display:none!important}
  .mobile-trigger{display:flex;position:relative;align-items:center;justify-content:center;width:46px;height:46px;border:1px solid #dbe2f0;border-radius:14px;background:#fff;cursor:pointer;touch-action:manipulation;z-index:112;padding:0}
  .menu-bars{width:20px;height:18px;position:relative;display:block}
  .menu-bars i{position:absolute;left:0;width:20px;height:2px;border-radius:2px;background:#18233b;transform-origin:center;transition:top .23s ease,transform .23s ease,opacity .18s ease}
  .menu-bars i:first-child{top:6px}.menu-bars i:last-child{top:12px}
  .mobile-trigger[aria-expanded="true"] .menu-bars i:first-child{top:9px;transform:rotate(45deg)}
  .mobile-trigger[aria-expanded="true"] .menu-bars i:last-child{top:9px;transform:rotate(-45deg)}
  body.menu-open{overflow:hidden;overscroll-behavior:none}
  .mobile-panel{position:fixed;inset:70px 0 0;z-index:108;height:calc(100dvh - 70px);display:block;visibility:hidden;opacity:0;pointer-events:none;transform:translateY(-10px);transition:opacity .2s ease,transform .2s ease,visibility .2s;background:#f8faff;overflow-y:auto;overscroll-behavior:contain;padding:26px max(22px,calc((100vw - 650px)/2)) calc(90px + env(safe-area-inset-bottom));box-shadow:0 14px 32px #0e1b3620}
  .mobile-panel.open{visibility:visible;opacity:1;pointer-events:auto;transform:translateY(0)}
  .mobile-panel .mobile-menu-intro{display:flex;justify-content:space-between;gap:12px;margin-bottom:17px;font:500 10px/1.5 var(--mono);color:#73829b;letter-spacing:.03em}
  .mobile-panel .mobile-menu-intro span:last-child{white-space:nowrap}
  .mobile-panel .mobile-nav-main{display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:58px;border-bottom:1px solid #e0e7f2;padding:8px 0;font:660 24px/1.15 var(--display);letter-spacing:-.055em;color:#151d30;text-decoration:none}
  .mobile-panel .mobile-nav-main span{font:500 20px var(--display);color:#5871e7}
  .mobile-nav-group-label{font:600 10px var(--mono);color:#596fbe;letter-spacing:.095em;text-transform:uppercase;margin:24px 0 11px}
  .mobile-service-group{border:1px solid #dfe5f4;border-radius:13px;background:#fff;margin-bottom:8px;overflow:hidden}
  .mobile-panel .mobile-service-group>summary{display:flex;justify-content:space-between;align-items:center;min-height:50px;list-style:none;cursor:pointer;font:650 15px/1.25 var(--body);letter-spacing:-.015em;color:#263553;padding:0 15px;border:0;touch-action:manipulation}
  .mobile-service-group>summary::-webkit-details-marker{display:none}
  .mobile-accordion-icon{font:400 25px var(--display);color:#5b70c8;transition:transform .18s ease}
  .mobile-service-group[open] .mobile-accordion-icon{transform:rotate(45deg)}
  .mobile-service-list{padding:1px 10px 10px;border-top:1px solid #eef0f8}
  .mobile-service-list a{display:flex;align-items:center;gap:11px;min-height:49px;padding:8px 4px;color:#30415d;font:600 12px/1.35 var(--body);border-bottom:1px solid #f0f2f9}
  .mobile-service-list a:last-child{border-bottom:0}
  .mobile-service-mark{display:grid;place-items:center;width:32px;height:32px;flex:none;color:#4165e7;background:#edf2ff;border-radius:9px}
  .mobile-service-icon{width:19px;height:19px;fill:none;stroke:currentColor}
  .mobile-service-arrow{margin-left:auto;color:#7284a2;font:600 15px var(--display)}
  .mobile-menu-bottom{margin-top:23px;display:grid;gap:16px}
  .mobile-menu-bottom>span{font:500 9px var(--mono);color:#8a9ab0;letter-spacing:.04em}
  .mobile-menu-languages{display:grid;grid-template-columns:repeat(3,1fr);gap:6px}
  .mobile-menu-languages a{text-align:center;border:1px solid #dfe5f1;background:#fff;border-radius:12px;display:grid;place-items:center;min-height:44px;font:700 12px var(--body);color:#56637d}
  .mobile-menu-languages a.active{color:#fff;border-color:#1c2b56;background:#192641}
  .mobile-panel a.mobile-menu-cta{width:100%;display:flex;justify-content:center;align-items:center;margin:0;min-height:51px;border-radius:13px;font-size:13px}
  .mobile-menu-email{display:block;text-align:center;color:#53648a;font:600 12px var(--body);padding:3px 0}
  a:focus-visible,button:focus-visible,summary:focus-visible{outline:3px solid #7ea5ff;outline-offset:3px}
  /* Shorter, conversion-first first screen. The illustration follows the message. */
  .hero-v3{padding:0 0 40px;min-height:auto}
  .hero-v3-top{padding:17px 0 9px;font-size:8px;line-height:1.4}
  .hero-v3-top>a{font-size:8px}
  .hero-v3-title{font-size:clamp(54px,9.9vw,84px);line-height:.99;letter-spacing:-.079em;margin:36px 0 25px}
  .hero-v3-row:nth-child(2){padding-left:2vw}
  .hero-v3-rule{padding:12px 0;margin:20px 0 19px}
  .hero-v3-bottom{display:flex;flex-direction:column;gap:23px}
  .hero-v3-copy{order:0;padding:0;display:block}
  .hero-v3-copy>.eyebrow{font-size:9px}
  .hero-v3-intro{font:500 clamp(19px,2.9vw,25px)/1.38 var(--display);letter-spacing:-.035em;margin:12px 0 20px;max-width:600px;min-height:0}
  .hero-v3-actions{gap:10px;width:100%;display:grid;grid-template-columns:1.1fr .9fr}
  .hero-v3-actions .btn{width:100%;min-width:0;min-height:49px;justify-content:center;font:700 11px var(--body);padding:11px 12px}
  .hero-v3-foot{display:none}
  .hero-v3-art{order:1;height:230px;min-height:0;border-radius:18px;margin-top:2px}
  .hero-v3-orb{width:285px;height:320px;left:18%;top:-46px}
  .hero-v3-art-text{font-size:25px;max-width:260px;bottom:23px;left:28px;right:20px}
  .hero-v3-art-cap{top:23px;left:28px;font-size:9px}
  .hero-v3-art-symbol{right:23px;font-size:32px}
  .hero-v3-plus{font-size:29px;right:8px}
  /* No giant blank section on small screens */
  .craft-intro{padding:64px 0 70px}
  .craft-intro-heading{margin:24px 0 23px;font-size:clamp(43px,7.4vw,63px);line-height:1.07}
  .craft-intro-bottom p{font-size:15px;line-height:1.6}
  .craft-intro-steps{margin-top:15px;gap:7px}.craft-intro-cross{font-size:38px}
  .ticker{padding:12px 0}
  .section{padding:66px 0}
  .section-top{margin-bottom:22px}
  .section-title{font-size:clamp(39px,7vw,59px);line-height:1.07;letter-spacing:-.07em}
  .section-descr{font-size:14px;line-height:1.6;margin-top:12px}
  .eyebrow{font-size:10px}
  /* Service cards adapt to the tap gesture and are denser than six desktop tiles. */
  .service-grid{display:grid;grid-template-columns:1fr;gap:12px}
  .service-card{display:grid;grid-template-columns:94px 1fr;min-height:154px;border-radius:17px;overflow:hidden}
  .service-card-visual{height:100%;min-height:154px;border-radius:0}
  .service-card-visual .abstract-icon{width:49px!important;height:49px!important;left:22px!important;bottom:auto!important;top:27px!important}
  .service-card-visual:after{font-size:91px;right:-10px;top:55px;opacity:.65}
  .service-card-body{padding:17px 17px 14px;min-width:0;display:flex;flex-direction:column}
  .service-card h3{font-size:19px;line-height:1.15;letter-spacing:-.045em;margin:0 0 8px}
  .service-card p{font-size:11px;line-height:1.5;margin:0 0 5px;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
  .service-card .link-line{margin-top:auto;min-height:32px;font-size:11px}
  .service-arrow-mark{width:31px;height:31px;flex:0 0 31px}
  /* Portfolio: complete live screenshots, clear CTAs, no cropped mobile labels. */
  .portfolio-grid{display:grid;grid-template-columns:1fr;gap:15px}
  .project-card,.project-card:first-child{grid-column:auto;min-height:365px;border-radius:19px;overflow:hidden}
  .project-card:before{background:linear-gradient(0deg,rgba(5,12,27,.98) 0%,rgba(5,12,27,.79) 29%,rgba(5,12,27,.04) 80%)}
  .project-meta{padding:23px 22px 22px}
  .project-meta h3{font-size:34px;line-height:1.12}
  .project-meta .mono{font-size:9px}
  .project-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px}
  .project-actions a{min-height:38px;padding:8px 11px;font-size:11px}
  /* AI and process: keep diagrams inside the screen */
  .ai-grid,.page-hero-grid,.detail-split,.case-inner,.contact-grid{grid-template-columns:1fr}
  .ai-concept{height:290px;max-width:100%;overflow:hidden}
  .ai-demo-row{display:grid;grid-template-columns:1fr;gap:11px}
  [data-ai-prompt]{min-height:44px}
  .process-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
  .process-card{min-height:161px;padding:17px}
  .process-card h3{font-size:16px;line-height:1.25;margin-top:24px}
  /* Proper mobile forms: large inputs; no iOS focus zoom. */
  .home-project-cta{padding:65px 0 70px}
  .home-project-grid{grid-template-columns:1fr;gap:27px}
  .home-project-aside h2{font-size:clamp(42px,7.8vw,65px);letter-spacing:-.072em;margin:15px 0 16px}
  .home-project-aside>p{font-size:14px;line-height:1.65}
  .home-project-email{font-size:21px;overflow-wrap:anywhere}
  .home-project-technical{margin-top:25px;font-size:9px}
  .home-project-cta .contact-form,.contact-form{padding:24px 21px 23px;border-radius:19px;max-width:100%;width:100%}
  .home-project-cta .contact-form h2,.contact-form h2{font-size:27px;line-height:1.12;margin-bottom:19px}
  .form-grid{grid-template-columns:1fr;gap:0}
  .form-group input,.form-group textarea,.form-group select{font-size:16px!important;min-height:48px;width:100%;border-radius:10px}
  .form-group textarea{min-height:126px}
  .contact-form button[type="submit"]{min-height:52px;width:100%;justify-content:center}
  .checkbox-line{font-size:12px;line-height:1.55;align-items:flex-start;gap:11px}
  .checkbox-line input{width:19px;height:19px;flex:none;margin:3px 0 0}
  .form-feedback{overflow-wrap:anywhere}
  /* Footer and inner pages */
  .footer{padding:56px 0 34px}
  .footer-top{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:28px 18px}
  .footer-tag{grid-column:1/-1}.footer-tag h2{font-size:clamp(37px,7vw,53px);line-height:1.1}.footer-tag p{font-size:13px}
  .footer-tag .btn{min-height:48px}
  .footer-col{min-width:0}.footer-col a{display:block;font-size:12px;line-height:1.4;padding:6px 0;overflow-wrap:anywhere}
  .footer-col:last-child{grid-column:1/-1}
  .footer-big{font-size:clamp(54px,16vw,110px);letter-spacing:-.096em;white-space:nowrap;margin-top:33px}
  .footer-bottom{border-top:1px solid #ffffff22;padding-top:17px;display:grid;gap:8px;font-size:10px}
  .page-hero{padding:50px 0 38px}
  .page-hero .headline{font-size:clamp(42px,7.8vw,64px);overflow-wrap:break-word}
  .page-hero .lead{font-size:15px;line-height:1.6}
  .page-art{height:205px}
  .case-splash{height:auto;aspect-ratio:1.55/1}
  .case-splash .project-card{min-height:300px}
  .detail-split h2{font-size:clamp(34px,6.5vw,47px)}
  .feature-row{gap:12px}
  .contact-heading h1{font-size:clamp(43px,8vw,65px)}
  .contact-email{font-size:clamp(23px,5vw,35px);overflow-wrap:anywhere}
  /* Small fixed shortcut appears only after the user has left the hero. */
  .mobile-sticky-cta{display:flex;align-items:center;justify-content:space-between;gap:16px;position:fixed;left:max(16px,env(safe-area-inset-left));right:max(16px,env(safe-area-inset-right));bottom:calc(14px + env(safe-area-inset-bottom));z-index:95;padding:0 21px;height:54px;border:1px solid #6176b1;border-radius:15px;color:#fff;background:#192956;box-shadow:0 10px 32px #17245440;font:700 13px var(--body);opacity:0;visibility:hidden;transform:translateY(16px);pointer-events:none;transition:opacity .2s ease,transform .2s ease,visibility .2s ease}
  .mobile-sticky-cta.is-visible{opacity:1;visibility:visible;transform:none;pointer-events:auto}
  .mobile-sticky-cta svg{flex:none}
  .menu-open .mobile-sticky-cta{visibility:hidden!important;opacity:0!important;pointer-events:none!important}
}
@media(max-width:600px){
  :root{--mobile-gutter:18px}
  .hero-v3-top{font-size:8px}
  .hero-v3-top>a{font-size:7px}
  .hero-v3-title{font-size:clamp(48px,11.1vw,68px);margin:31px 0 22px}
  .hero-v3-art{height:221px}
  .hero-v3-art-text{font-size:23px}
  .hero-v3-intro{font-size:20px}
  .hero-v3-rule{font-size:8px}
  .craft-intro{padding:62px 0 68px}
  .craft-intro-heading{font-size:clamp(41px,10vw,55px)}
  .process-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .section{padding:58px 0}
  .project-card,.project-card:first-child{min-height:345px}
  .home-project-cta{padding:57px 0 70px}
  .home-project-cta .contact-form{padding:21px 18px}
  .mobile-panel{padding-left:19px;padding-right:19px}
}
@media(max-width:359px){
  :root{--mobile-gutter:15px}
  .logo{font-size:24px}
  .mobile-trigger{width:42px;height:42px}
  .hero-v3-title{font-size:clamp(42px,10.8vw,48px)}
  .hero-v3-top>a{display:none}
  .hero-v3-actions{grid-template-columns:1fr 1fr;gap:7px}
  .hero-v3-actions .btn{padding:10px 6px;font-size:10px}
  .service-card{grid-template-columns:83px 1fr}
  .service-card-visual .abstract-icon{width:43px!important;height:43px!important;left:17px!important}
  .service-card-body{padding:15px 13px 12px}
  .service-card h3{font-size:17px}
  .project-actions a{font-size:10px;padding:7px 8px}
}
@media(prefers-reduced-motion:reduce){
  .mobile-panel,.menu-bars i,.mobile-sticky-cta,.mobile-accordion-icon{transition:none!important}
  .hero-v3-orb{transition:none!important}
  .hero-v3-art:hover .hero-v3-orb{transform:rotate(-36deg)!important}
}
