/* PHONE-ONLY LAYER. This file is linked with media="(max-width: 760px)", so laptops and PCs never load it.
   Goals: a much shorter page, a small spinning globe, and no heavy blur/shadow effects that make phones lag. */
:root{--shadow:0 10px 22px -16px rgba(10,30,22,.5)}

/* ---- speed: the blur effects are the biggest scroll cost on phones; use solid-ish glass instead ---- */
*,*::before,*::after{-webkit-backdrop-filter:none!important;backdrop-filter:none!important}
.card,.flag-card,.jcard,.lang,.panel,.dashboard,.value,.stat,.svc-chip,.section-head,.glass,.pill,.eyebrow,.cta-card,.verify-box,.empty,.ai-mock{background:rgba(255,255,255,.88)}
.btn-outline{background:rgba(255,255,255,.9)}
[data-reveal]{transition-duration:.35s}

/* ---- spacing: everything tighter ---- */
.section{padding:30px 14px}
.section-head{padding:16px 16px;border-radius:20px;margin-bottom:16px}
.section-head h2,.section h2{font-size:clamp(23px,6.6vw,29px);line-height:1.16}
.section-head p,.lede{font-size:14.5px;line-height:1.55}
.eyebrow{font-size:11px;padding:6px 12px}
.btn{padding:12px 18px;font-size:14px}
.card{padding:16px}
.card h3{font-size:17px}
.card p{font-size:13.5px;line-height:1.5}
.fine{font-size:12px;margin-top:10px}
.more-btns{margin-top:14px;gap:10px;flex-direction:column;align-items:stretch}
.more-btns .btn{justify-content:center}
.footer-wrap,.sf-in{padding-left:16px;padding-right:16px}

/* ---- hero: short, with the globe on top ---- */
.hero{min-height:0;padding-bottom:6px}
.hero-inner{transform:none;padding:6px 16px 0;justify-content:flex-start}
.globe-stage{display:block;position:relative;width:100%;height:min(76vw,300px);margin:0 auto 4px;touch-action:pan-y;-webkit-tap-highlight-color:transparent}
.globe-stage .planet-canvas{position:absolute;inset:0;width:100%;height:100%;z-index:1;pointer-events:none;-webkit-mask-image:radial-gradient(circle closest-side,#000 86%,transparent 100%);mask-image:radial-gradient(circle closest-side,#000 86%,transparent 100%)}
.globe-stage::before{content:"";position:absolute;left:50%;top:50%;width:62%;aspect-ratio:1;transform:translate(-50%,-50%);border-radius:50%;background:radial-gradient(circle at 35% 30%,#7fb0ff,#2b5fd0 60%,#16358a);opacity:.55;transition:opacity .6s}
html[data-planet] .globe-stage::before{opacity:0}
.hero-title{font-size:clamp(26px,7.6vw,31px);line-height:1.13}
.hero-sub{margin-top:12px;font-size:14.5px;line-height:1.55}
.hero-pills{margin-top:14px;gap:8px}
.pill{font-size:12px;padding:7px 12px}
.hero-actions{margin-top:16px;gap:10px;flex-direction:column;align-items:stretch;width:100%}
.hero-actions .btn{justify-content:center}

/* ---- long grids become swipe rows on the home page ---- */
body.home .flag-grid{display:grid;grid-auto-flow:column;grid-template-rows:repeat(2,auto);grid-auto-columns:118px;gap:10px;justify-content:start;overflow-x:auto;scroll-snap-type:x proximity;scroll-padding:0 14px;margin:0 -14px;padding:2px 14px 12px;scrollbar-width:none;-webkit-overflow-scrolling:touch}
body.home .flag-grid .flag-card{width:118px!important;max-width:none;min-width:0;box-sizing:border-box;padding:10px 10px 12px;scroll-snap-align:start}
body.home .flag-card .cap{margin-top:8px}
body.home .flag-card .cap b{font-size:12.5px}
body.home .flag-card .cap span{font-size:9.5px}
body.home .ind-grid,body.home .jobs-grid,body.home .lang-grid,body.home .svc-chips{display:flex;flex-wrap:nowrap;overflow-x:auto;scroll-snap-type:x proximity;scroll-padding:0 14px;gap:10px;margin:0 -14px;padding:2px 14px 12px;scrollbar-width:none;-webkit-overflow-scrolling:touch}
body.home .ind-grid>*,body.home .jobs-grid>*,body.home .lang-grid>*,body.home .svc-chips>*{flex:0 0 auto;scroll-snap-align:start}
body.home .ind-grid>*{width:min(72vw,270px)}
body.home .jobs-grid>*{width:min(80vw,300px)}
body.home .lang-grid>*{width:min(66vw,250px)}
body.home .svc-chips>*{width:min(58vw,215px)}
body.home .flag-grid::-webkit-scrollbar,body.home .ind-grid::-webkit-scrollbar,body.home .jobs-grid::-webkit-scrollbar,body.home .lang-grid::-webkit-scrollbar,body.home .svc-chips::-webkit-scrollbar{display:none}
body.home .flag-grid [data-reveal],body.home .ind-grid [data-reveal],body.home .jobs-grid [data-reveal],body.home .lang-grid [data-reveal],body.home .svc-chips [data-reveal],
body.home .flag-grid>[data-reveal],body.home .ind-grid>[data-reveal],body.home .jobs-grid>[data-reveal],body.home .lang-grid>[data-reveal],body.home .svc-chips>[data-reveal]{opacity:1;transform:none}
.jcard{padding:16px 16px 14px}
.jcard h3{font-size:19px;margin-top:10px}
.jcard .cat{font-size:12.5px}
.lang{padding:16px}
.lang h3{font-size:18px;margin-top:12px}

/* ---- trim the heavy blocks ---- */
body.home #paths .panel{padding:20px;min-height:0}
body.home #paths .spacer{display:none}
body.home #paths .panel h2{font-size:22px}
body.home #paths .split{gap:12px}
body.home #process .dashboard{display:none}
body.home .stages li{padding:8px 0}
body.home .stages li span{font-size:13px}
body.home #meem-ai .ai-mock{display:none}
body.home #employment-services .glass.pad{padding:14px!important}
body.home #employment-services .section-head{margin-bottom:14px!important}
body.home .svc-big{margin-top:14px;padding:16px}
body.home #about .values{gap:10px}
body.home #about .value{padding:14px}
body.home #languages .center.muted{margin:0 0 12px!important}
body.home #languages .modes{flex-direction:column}

body.home .flag-card img.flag{width:100%;height:auto;aspect-ratio:4/3;object-fit:cover}

/* ---- final trims ---- */
body.home .stages{gap:0}
body.home .stages li{padding:6px 0;gap:10px}
body.home .stages li b{font-size:14.5px}
body.home #process .btn-row,body.home #meem-ai .btn-row{margin-top:14px}
body.home #meem-ai .checks li{font-size:14px;padding:6px 0}
.sf-grid{gap:20px 16px}
.sf-in{padding-bottom:18px}
.cta-card{padding:26px 18px}
.grid-2>*,.grid-3>*,.grid-4>*,.form-grid>*{min-width:0}
input,select,textarea{max-width:100%;box-sizing:border-box}

.mainbar{background:rgba(255,255,255,.97)}
.menu{background:#fff}

/* never wider than the screen: large phone text sizes or 320-360 px screens used to push the header and some
   buttons past the right edge, which left an empty strip on the right of every page */
html,body{max-width:100%;overflow-x:hidden}
@supports (overflow:clip){html,body{overflow-x:clip}}
.hdr-cta .btn{display:none}
.mainbar-in{min-width:0;max-width:100%}
.logo{min-width:0;flex:0 1 auto}
.logo b{font-size:clamp(14px,4.8vw,22px);white-space:nowrap}
.logo img{width:clamp(40px,12vw,56px);height:auto}
.btn{white-space:normal;max-width:100%;text-align:center}
h1,h2,h3,p,.lede,.crumbs{overflow-wrap:break-word}
.ph-card>*,.grid-2>*,.gl,.gl *{min-width:0}
/* grid and flex boxes may shrink to the screen even with very large text */
main :where(div,article,aside,section,nav,ul,li,h1,h2,h3,h4,p,small,b,strong,a:not(.btn)){min-width:0}
.btn svg,.ico{flex:none}
main a:not(.btn){overflow-wrap:anywhere}
main .glass{max-width:100%;box-sizing:border-box}
/* page titles follow the screen width, and a very long word is hyphenated instead of being cut */
.ph-card h1,.page-hero h1{font-size:clamp(28px,9.4vw,42px)}
h1,h2{overflow-wrap:break-word;hyphens:auto;-webkit-hyphens:auto}
.ph-card{padding-left:clamp(18px,5vw,28px);padding-right:clamp(18px,5vw,28px)}

/* footer social icons wrap onto a second row on the narrowest phones */
.sf-brand .socials{flex-wrap:wrap}
.sf-brand .socials a{width:36px;height:36px}
.sf-brand .socials svg{width:17px;height:17px}
.sf-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
.sf-grid>*{min-width:0}
.sf-grid h4{letter-spacing:.1em;overflow-wrap:anywhere}
