/* Phones (Android and iPhone). Loaded last. The menu and tab bar behaviour comes from phone-nav.css / phone-nav.js. */
:root{--pn-accent:#1268c8;--pn-accent-dark:#6fb3ff;--pn-ink:#0b2554}

@media (max-width:760px){
  /* top bar: menu button, logo, light/dark switch */
  .site-header{top:max(8px,env(safe-area-inset-top));margin:max(8px,env(safe-area-inset-top)) 10px 0;min-height:62px;padding:8px 10px;gap:8px;border-radius:20px}
  .site-header>.brand{flex:1;min-width:0}
  .brand-logo{height:38px;max-width:100%;object-fit:contain;object-position:left center}
  .theme-toggle{width:44px;height:44px}

  /* the slide-in menu: deep navy glass */
  .site-drawer{background:linear-gradient(170deg,rgba(6,20,46,.97),rgba(11,40,86,.96))!important;color:#fff;
    -webkit-backdrop-filter:blur(24px);backdrop-filter:blur(24px);border-right:1px solid rgba(255,255,255,.12)}
  .site-drawer .drawer-brand{display:block;padding:4px 52px 14px 4px;border-bottom:1px solid rgba(255,255,255,.12);margin-bottom:8px}
  .site-drawer .drawer-brand img{height:40px;width:auto;display:block}
  .site-drawer .main-nav{flex-direction:column;align-items:stretch;gap:4px;color:#dfe8f5}
  .site-drawer .main-nav a{color:#e6eefa}
  .site-drawer .main-nav a:hover{background:rgba(255,255,255,.08);color:#fff}
  .site-drawer .main-nav a[aria-current=page]{background:rgba(255,255,255,.14);color:#fff;box-shadow:inset 3px 0 0 var(--orange)}
  .site-drawer .main-nav .nav-cta{margin:10px 0 0;justify-content:center;color:#fff}
  .site-drawer .drawer-foot{display:block;margin-top:auto;padding:16px 6px 0;font-size:12.5px;color:#9fb3cf;border-top:1px solid rgba(255,255,255,.1)}
  .site-drawer .drawer-foot a{color:#cfe2ff}

  /* tab bar: liquid glass that follows the theme */
  .pn-tabbar{background:var(--glass-hi),var(--glass-strong)!important;-webkit-backdrop-filter:blur(26px) saturate(1.8);backdrop-filter:blur(26px) saturate(1.8);
    border:1px solid var(--glass-edge)!important;box-shadow:var(--shadow-lift)!important}
  .pn-tabbar a[aria-current=page]{background:linear-gradient(135deg,var(--accent-soft),color-mix(in srgb,var(--au-2) 14%,transparent))!important}
  html[data-theme=dark] .pn-tabbar a[aria-current=page]{color:var(--pn-accent-dark)!important}

  .site-footer{margin:20px 10px calc(10px + env(safe-area-inset-bottom));padding:28px 22px 18px}
}

@media (max-width:600px){
  .wrap{width:calc(100% - 20px - env(safe-area-inset-left) - env(safe-area-inset-right))}
  .section{padding-block:56px}
  /* hero */
  .hero{padding-block:40px 28px;gap:28px}
  .hero h1,h1{font-size:clamp(38px,11vw,48px)}
  .hero-lead{font-size:16px}
  .hero-actions{flex-direction:column;align-items:flex-start;gap:16px}
  .hero-note{margin-top:30px}
  .hero-art{height:280px;border-radius:24px}
  .core-k{font-size:190px}
  .orbit-one{width:280px;height:122px;margin:-61px 0 0 -140px}
  .orbit-two{width:340px;height:170px;margin:-85px 0 0 -170px}
  .showcase{height:340px}
  .shot-browser{left:16px;top:30px;width:78%}
  .shot-phone{right:14px;bottom:30px;width:30%;border-radius:20px;padding:5px}
  .shot-phone .shot-screen{border-radius:15px}
  .shot-caption{left:16px;bottom:16px;max-width:60%;font-size:9.5px;letter-spacing:.06em}
  .shot-dots{left:18px;bottom:56px}
  .chip-a{top:28px;right:22px}
  .chip-b{bottom:58px;left:18px}
  .chip-c{bottom:16px;right:16px}
  /* strip and cards */
  .strip-inner{flex-wrap:wrap;justify-content:flex-start;gap:10px 16px;padding:16px 18px}
  .strip-inner span{width:100%}
  .strip-inner i{height:14px}
  .section-heading{margin-bottom:28px}
  .section-heading h2,.feature-layout h2,.cta-inner h2{font-size:32px}
  .service-grid,.process-grid,.portfolio-grid,.industry-grid,.product-grid{grid-template-columns:1fr;gap:12px}
  .product-card,.legal-body{padding:24px 20px}
  .product-head h2{font-size:22px}
  .product-card .btn{align-self:stretch}
  .client-list li{padding:12px 16px;font-size:14px}
  .industry-card{padding:22px 20px}
  .service-card{min-height:0;padding:22px 20px 44px}
  .feature-layout{padding:36px 22px;border-radius:24px}
  .feature-lines{right:-300px}
  .cta-inner{padding:36px 22px;border-radius:24px}
  .contact-cta{padding-block:12px 40px}
  /* inner pages */
  .page-hero{margin-top:20px;padding:36px 22px 32px;border-radius:24px}
  .page-hero h1{font-size:clamp(34px,10vw,44px)}
  .page-hero>p{font-size:15px}
  .about-statement,.about-detail,.contact-aside,.portfolio-empty{padding:26px 22px}
  .about-statement h2{font-size:28px}
  .values-band>.wrap{padding:32px 20px;border-radius:24px}
  .values-grid{grid-template-columns:1fr;gap:10px}
  .service-detail-list{padding-block:20px 48px;gap:12px}
  .service-detail{grid-template-columns:1fr;gap:6px;padding:26px 22px}
  .detail-number{font-size:28px}
  .service-detail h2{font-size:26px}
  .service-detail ul{grid-template-columns:1fr}
  .contact-aside h2{font-size:30px}
  .small-note{margin-top:22px}
  .contact-form{padding:24px 20px}
  .contact-form .btn{justify-self:stretch}
  .portfolio-section{padding-block:20px 48px}
  .portfolio-card{min-height:0}
  /* footer */
  .footer-top{flex-direction:column;align-items:flex-start;gap:14px}
  .footer-logo{height:52px}
  .footer-bottom{flex-direction:column;gap:6px}
}

/* very small phones (320px) */
@media (max-width:360px){
  .brand-logo{height:32px}
  .hero h1,h1{font-size:36px}
  .core-k{font-size:160px}
}

/* tab bar labels fit on narrow phones */
@media (max-width:760px){.pn-tabbar a,.pn-tabbar button{font-size:11px;letter-spacing:0;padding:4px 0}}
@media (max-width:380px){.pn-tabbar{left:6px;right:6px;padding:5px}.pn-tabbar a,.pn-tabbar button{font-size:10px}.pn-tabbar svg{width:21px;height:21px}}
