.mobile-nav-bar{display:none}
dialog.mobile-navigation{box-sizing:border-box;position:fixed;inset:0 0 0 auto;margin:0;border:0;border-radius:24px 0 0 24px;width:min(420px,100%);max-width:100%;height:100dvh;max-height:100dvh;padding:24px;background:#fff;color:#191d20;overflow-y:auto;overscroll-behavior:contain;box-shadow:-12px 0 50px #17384e18;transform:translateX(100%);opacity:0;transition:transform .35s cubic-bezier(.22,1,.36,1),opacity .25s ease}
dialog.mobile-navigation.is-visible{transform:translateX(0);opacity:1}
dialog.mobile-navigation::backdrop{background:#142b3f55;backdrop-filter:blur(4px)}
.mobile-menu-top{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:20px}
.mobile-menu-top h2{font-size:24px;margin:0;font-weight:800;letter-spacing:-.5px}
.mobile-menu-close{border:1px solid #e5edf3;border-radius:50%;background:#f7fafc;color:#079cfa;width:46px;height:46px;padding:0;font:32px/1 Arial;display:grid;place-items:center}
.mobile-navigation nav{display:grid;gap:0}
.mobile-navigation nav a,.mobile-navigation nav button{font:600 20px/1.4 Arial,sans-serif;text-align:left;color:#20262b;background:none;border:0;border-bottom:1px solid #edf1f4;padding:14px 2px;min-height:54px;text-decoration:none}
.mobile-navigation nav a:hover,.mobile-navigation nav button:hover{color:#079cfa}
.mobile-menu-contact{margin-top:28px;padding-top:24px;border-top:1px solid #edf1f4}
.mobile-menu-person{display:flex;align-items:center;gap:12px;margin-bottom:20px}
.mobile-menu-person img{border-radius:50%;object-fit:cover;object-position:50% 18%;flex:none}
.mobile-menu-person strong{display:block;font-size:17px;line-height:1.4}
.mobile-menu-person span{display:block;font-size:15px;line-height:1.5;color:#66737e}
.mobile-menu-brief,.mobile-menu-email{display:block;text-align:center;border-radius:32px;padding:17px 20px;font-size:17px;line-height:1.4;font-weight:700;text-decoration:none}
.mobile-menu-brief{background:linear-gradient(125deg,#12b0f8,#087eff);color:#fff}
.mobile-menu-email{border:1px solid #079cfa;color:#079cfa;margin-top:12px}
.mobile-menu-email small{display:block;font-size:14px;font-weight:400;margin-top:5px;overflow-wrap:anywhere}
@media(max-width:1100px){
  :root{--text-body:17px;--text-caption:14px}
  html{scroll-padding-top:88px}
  body>.wrap>header{display:none}
  .draft{font-size:11px;line-height:1.5;padding:7px 16px}
  .sticky-site-menu.wrap{padding:0 16px;background:#fff;border-bottom:1px solid #edf1f4}
  .sticky-site-menu .reference-menu{display:none}
  .mobile-nav-bar{display:flex;align-items:center;gap:10px;height:72px;padding-top:env(safe-area-inset-top,0px);box-sizing:content-box}
  .mobile-brand{display:flex;gap:9px;align-items:center;margin-right:auto;min-width:0}
  .mobile-brand img{width:40px;height:40px;flex:none}
  .mobile-brand strong{display:block;font-size:19px;line-height:1.2;letter-spacing:-.5px;font-weight:800}
  .mobile-brand small{display:block;font-size:12px;line-height:1.5;color:#66737e}
  .mobile-email,.mobile-menu-toggle{display:flex;align-items:center;justify-content:center;flex:none;width:46px;height:46px;border:1px solid #e4f2fc;border-radius:15px;background:#f3faff;color:#079cfa;padding:10px}
  .mobile-email svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.7}
  .mobile-menu-toggle{flex-direction:column;gap:5px;background:white;border:0}
  .mobile-menu-toggle span{display:block;width:26px;height:2.5px;border-radius:4px;background:currentColor}
  .mobile-navigation{padding-top:max(20px,env(safe-area-inset-top))!important;padding-bottom:max(24px,env(safe-area-inset-bottom))!important}
}
@media(max-width:800px){
  body .wrap{padding-left:20px;padding-right:20px}
  .hero{display:flex;flex-direction:column;gap:24px;height:auto;min-height:0;max-height:none;padding:0 0 32px}
  .hero .hero-copy{display:contents}
  .hero h1{order:0;font-size:clamp(26px,6.9vw,42px);line-height:1.2;letter-spacing:-.025em;margin:28px 0 0;width:100%}
  .hero h1 em{height:auto;min-height:1.2em;white-space:normal;line-height:inherit}
  .hero .lead{order:1;font-size:17px;line-height:1.5;padding-left:0;margin:0;width:100%;max-width:none}
  .hero .lead-play{display:none}
  .hero .visual.montage{order:2;width:100%;height:clamp(240px,65vw,400px);min-height:0;border-radius:18px}
  .hero .showcase-column{height:clamp(240px,65vw,400px)}
  .hero .actions{order:3;margin:0;width:100%;display:grid;gap:12px}
  .hero .btn{min-height:60px;font-size:18px;padding:18px 22px;width:100%}
  .trust-strip{gap:14px;padding:22px 0;grid-template-columns:1fr 1fr;font-size:14px;line-height:1.5}
  #work{padding-top:42px;padding-bottom:42px}
  #work .portfolio-heading h2{font-size:clamp(26px,6.7vw,34px);line-height:1.2}
  .portfolio-layout{grid-template-columns:1fr;gap:28px}
  .portfolio-follow-track{min-height:0;padding-bottom:0}
  .portfolio-follow{position:static;margin-top:0}
  .portfolio-aside{padding:20px;border-radius:24px}
  .portfolio-person{max-width:240px;margin-inline:auto}
  .portfolio-grid{grid-template-columns:1fr;row-gap:30px}
  .portfolio-image{height:auto;aspect-ratio:1.15}
  .portfolio-card .chips{flex-wrap:wrap}
  body #cases,body #reviews.us-reviews,body #commitments,body #brief,body #next-step{padding-top:40px!important;padding-bottom:40px!important}
  body #services.service-reference{padding-top:30px!important;padding-bottom:30px!important}
  #services.service-reference .sr-title,#reviews.us-reviews .ur-heading,#commitments .ar-heading h2,body #brief.brief-reference h2,#next-step .hs-heading h2{font-size:clamp(26px,6.7vw,34px);line-height:1.2}
  #services.service-reference .sr-card{padding:22px;gap:20px}
  #services.service-reference .sr-card h3{font-size:23px}
  #services.service-reference .sr-art figcaption{font-size:16px}
  #services.service-reference .sr-intro,.ur-eyebrow,.ar-eyebrow,.br-eyebrow,.hs-eyebrow{font-size:16px;line-height:1.5}
  #services.service-reference .sr-action,#services.service-reference .sr-toggle{min-height:58px}
  #services .sr-footer:before,#services .sr-footer:after{display:none}
  #services .sr-toggle{width:100%}
  #commitments .ar-points{grid-template-columns:1fr;gap:14px}
  #commitments .ar-point{padding:22px}
  #commitments .ar-document{max-width:300px;margin-inline:auto}
  #next-step.handshake-section .hs-portrait img{transform:none;width:100%;margin:0;max-height:440px}
  #next-step .hs-heading i,.ur-heading:after{display:none}
  .seb-footer nav a,.seb-footer nav button,.seb-footer .sf-legal button{min-height:44px;display:flex;align-items:center}
  .seb-footer nav{gap:4px}
  dialog:not(.mobile-navigation){max-width:calc(100vw - 24px);max-height:calc(100dvh - 24px);padding:22px;border-radius:22px}
  input,textarea,select{font-size:16px}
}
@media(max-width:480px){
  #services.service-reference .sr-card{grid-template-columns:1fr}
  #services.service-reference .sr-image{width:100%;max-width:260px;aspect-ratio:1.3}
  #services.service-reference .sr-card h3,#services.service-reference .sr-price{text-align:left}
  .mobile-navigation{border-radius:0!important}
}
@media(prefers-reduced-motion:reduce){dialog.mobile-navigation{transition:none}}
/* Mobile reference: portrait leads into the project brief card. */
@media(max-width:600px){
  body #next-step.handshake-section{padding-left:0;padding-right:0;padding-bottom:24px!important}
  #next-step.handshake-section .hs-layout{display:flex;flex-direction:column;align-items:stretch;gap:0;margin-top:22px}
  #next-step.handshake-section .hs-portrait{order:0;align-self:center;width:min(100%,320px);height:clamp(340px,100vw,420px);margin:0;position:relative;z-index:0}
  #next-step.handshake-section .hs-portrait img{width:100%;height:100%;max-height:none;margin:0;transform:none;object-fit:contain;object-position:center bottom;mask-image:linear-gradient(to bottom,#000 0%,#000 87%,transparent 100%);-webkit-mask-image:linear-gradient(to bottom,#000 0%,#000 87%,transparent 100%)}
  #next-step.handshake-section .hs-card{order:1;position:relative;z-index:1;width:100%;margin:-28px 0 0;padding:28px 24px;border-radius:26px;box-shadow:0 8px 32px #17384e06}
  #next-step.handshake-section .hs-card h3{font-size:22px;line-height:1.3;margin-bottom:18px}
  #next-step.handshake-section .hs-card h3 br{display:none}
  #next-step.handshake-section .hs-card .btn{min-height:66px;font-size:19px}
  #next-step.handshake-section .hs-options{order:2;width:100%;margin:28px 0 0}
  #next-step.handshake-section .hs-options>p{margin-bottom:20px}
}
/* Match the reference's mobile typeface and proportions. */
@font-face{font-family:'Onest Mobile';src:url('onest-latin-variable.woff2') format('woff2');font-style:normal;font-weight:100 900;font-display:swap}
@media(max-width:800px){
  body{font-family:'Onest Mobile',Arial,sans-serif}
  button,input,textarea,select{font-family:inherit}
  .mobile-navigation nav a,.mobile-navigation nav button{font-family:inherit}
  body .hero h1{font-size:clamp(24px,7.5vw,38px);font-weight:900;line-height:1.3;letter-spacing:-.025em}
  body .hero h1 em{font-weight:900}
  body .hero .lead{font-size:clamp(15px,3.75vw,17px);line-height:1.35}
  .hero{border:0;box-shadow:none;border-radius:0;gap:22px}
  .hero .visual.montage,.hero .showcase-column{height:clamp(166px,52vw,320px);border-radius:8px}
  .hero .montage-card{aspect-ratio:1.8;border-radius:6px}
  .hero .montage-card>img{height:100%;aspect-ratio:auto;object-fit:cover;object-position:center top}
  .hero .actions{justify-items:center}
  body .hero .actions .btn{width:82%;min-height:clamp(72px,23vw,96px);font-size:clamp(18px,5vw,22px);border-radius:999px}
  #work .portfolio-heading h2,#cases h2,#services.service-reference .sr-title,#reviews.us-reviews .ur-heading,body #commitments.agreement-reference .ar-heading h2,body #brief.brief-reference h2,#next-step.handshake-section .hs-heading h2{font-family:'Onest Mobile',Arial,sans-serif;font-size:clamp(22px,5.94vw,30px);font-weight:900;line-height:1.3;letter-spacing:-.025em}
  .mobile-nav-bar{height:64px}
  .mobile-brand img{width:34px;height:34px}
  .mobile-brand strong{font-size:16px}
  .mobile-brand small{font-size:11px}
}
@media(max-width:600px){
  body .wrap{padding-left:3.4375vw;padding-right:3.4375vw}
  .sticky-site-menu.wrap{padding-left:3.4375vw;padding-right:3.4375vw}
  body #services.service-reference{padding-left:calc(3.4375vw - 1px)!important;padding-right:calc(3.4375vw - 1px)!important}
  #services.service-reference .sr-card h3{font-size:clamp(20px,5.1vw,24px)}
}
.br-mobile-screen{display:none}
.ui-arrow-vector{display:none}
@media(max-width:800px){
  .ui-direction-mark{display:inline-flex;vertical-align:-.12em;align-items:center;justify-content:center;width:1em;height:1em;margin-inline-start:.18em;flex:none}
  .ui-direction-mark .ui-arrow-glyph{display:none}
  .ui-direction-mark .ui-arrow-vector{display:block;width:100%;height:100%;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
  body #brief.brief-reference{padding-left:0;padding-right:0;background:transparent}
  #brief .br-left h2{margin-bottom:30px}
  #brief .br-tablet{width:92%;max-width:520px;margin:12px auto 0;padding:10px 16px 10px 10px;border:1px solid #d3d5d7;border-radius:17px;background:linear-gradient(130deg,#fafafa,#e7e8e8 60%,#fafafa);box-shadow:0 8px 18px #2437430c,inset 0 0 0 2px #ffffffb0;transform:perspective(1000px) rotateY(13deg) rotateZ(2deg)}
  #brief .br-tablet:after{right:5px;width:4px;height:4px;background:#91959a;box-shadow:0 12px 0 #b2b5b9,0 20px 0 #b2b5b9}
  #brief .br-tablet>.br-screen{display:none}
  #brief .br-mobile-screen{display:block;aspect-ratio:1.36;background:#fff;border:1px solid #bbc0c5;overflow:hidden;padding:9px 12px;color:#1a1e21;font-family:'Onest Mobile',Arial,sans-serif;font-size:clamp(5px,1.25vw,8px)}
  .bt-header{display:flex;align-items:center;justify-content:space-between;gap:8px}
  .bt-brand{display:flex;align-items:center;gap:4px}
  .bt-brand img{width:14px;height:14px}
  .bt-brand b,.bt-brand small{display:block;line-height:1.3}
  .bt-brand b{font-size:1.15em}
  .bt-brand small{font-size:.8em;color:#66737e}
  .bt-email{border:1px solid #bde3fc;border-radius:10px;padding:3px 8px;color:#079cfa;font-weight:600}
  .bt-nav{padding:7px 0 8px;border-bottom:1px solid #f1f3f5;font-size:.9em;color:#515d66;word-spacing:3px;white-space:nowrap}
  .bt-hero{display:grid;grid-template-columns:1.08fr 1fr;gap:12px;padding-top:13px;align-items:start}
  .bt-hero strong{display:block;color:#079cfa;font-size:2.3em;line-height:1.15;font-weight:900;letter-spacing:-.035em}
  .bt-hero>div>b{display:block;font-size:1.65em;line-height:1.25;letter-spacing:-.025em;margin-top:4px}
  .bt-hero p{font-size:1em;line-height:1.4;color:#66737e;margin:8px 0 0}
  .bt-projects{display:grid;grid-template-columns:1fr 1fr;gap:4px}
  #brief .bt-projects img{display:block;width:100%;height:auto;aspect-ratio:1.65;object-fit:cover;object-position:top;border-radius:3px}
  .bt-time{text-align:center;font-weight:900;font-size:1.25em;margin:13px 0 10px}
  .bt-time span{color:#079cfa}
  .bt-fields{display:grid;grid-template-columns:1fr 1fr;gap:8px 16px;font-weight:600}
  .bt-fields span{display:block;margin-top:3px;padding-bottom:4px;border-bottom:1px solid #edf1f4;color:#9aa2a8;font-size:.85em;font-weight:400}
  #brief .br-time{font-size:12px;line-height:1.5;margin-top:22px}
}
/* Avoid adding section margins to two large inner paddings on phones. */
@media(max-width:800px){
  body #work{padding-top:28px!important;padding-bottom:28px!important;margin-bottom:12px!important}
  body #cases{padding-top:28px!important;padding-bottom:24px!important;margin-bottom:12px!important}
  body #services.service-reference{padding-top:28px!important;padding-bottom:24px!important;margin-bottom:12px!important}
  body #reviews.us-reviews{padding-top:28px!important;padding-bottom:24px!important;margin-bottom:12px!important}
  body #commitments.agreement-reference{padding-top:28px!important;padding-bottom:24px!important;margin-bottom:12px!important}
  body #brief.brief-reference{padding-top:28px!important;padding-bottom:20px!important;margin-bottom:0!important}
  body #next-step.handshake-section{padding-top:24px!important;margin-bottom:20px!important}
}
