.qlinks{display:none}
/* Phone layer: smaller type and tighter spacing. Loaded last on every page. */
@media(max-width:600px){
  body{font-size:15.5px;line-height:1.55}
  .wrap{width:min(1120px,100% - 32px)}
  h2{font-size:clamp(22px,6.4vw,26px)}
  .btn{font-size:15px;padding:13px 20px}
  .bar{min-height:60px}
  nav{inset:60px 0 auto 0}
  nav a{font-size:17px;padding:10px 0}
  .menu-btn{font-size:14px;padding:8px 12px}
  .sec{padding:38px 0}
  .sec-head{margin-bottom:18px}
  .hero{min-height:clamp(440px,70vh,560px)}
  .hero h1{font-size:clamp(30px,9vw,36px)}
  .intro{padding:36px 0}
  .intro h2{font-size:clamp(26px,7.5vw,30px)}
  .intro .lead{font-size:16px;margin-top:12px}
  .home-cta h2{font-size:clamp(24px,7vw,28px);margin-bottom:16px}
  /* project page hero: full 16:9 video on top, text underneath */
  .pj-hero{display:block;min-height:0;padding-top:0}
  .pj-hero video{position:relative;inset:auto;display:block;width:100%;height:auto;aspect-ratio:16/9;object-fit:contain;background:#000}
  .pj-hero .poster,.pj-hero .shade{display:none}
  .pj-hero .wrap{padding:20px 0 28px}
  .pj-hero.clean .wrap{opacity:1;pointer-events:auto}
  .pj-vctl{top:8px!important;left:8px!important;right:8px!important;justify-content:flex-end!important;gap:8px}
  #heroDetails{display:none}
  .pj-vbtn{font-size:12px;padding:6px 10px}
  .pj-vbtn.sq{width:32px;height:32px;padding:6px}
  .pj-hero h1{font-size:clamp(26px,7.6vw,30px)}
  .pj-hero .by{font-size:15px;margin:6px 0 12px}
  .pj-hero .crumb{font-size:13px;margin-bottom:8px}
  .pj-hero .pj-logo{width:120px;margin-bottom:12px}
  .pj-chips{gap:6px;margin-bottom:16px}
  .pj-chips span{font-size:12.5px;padding:5px 10px}
  .pj-hero .btn{width:100%;text-align:center}
  /* inner pages */
  .ct-copy h1,.pr-head h1,.cm-head h1,.pg-head h1,.pj-pagehead h1{font-size:clamp(28px,8.4vw,32px)}
  .cd-hero h1,.dv-hero h1,.b-hero h1{font-size:clamp(28px,8vw,32px);line-height:1.1}
  .dv-sec h2,.dv-proj .dv-h2,.pj-h2{font-size:clamp(22px,6.4vw,26px);margin-bottom:16px}
  .dv-body h2,.b-grid h2,.cm-tx h2,.dw-i-tx h2{font-size:clamp(20px,5.8vw,24px)}
  .pr-close h2{font-size:clamp(24px,7vw,28px)}
  .b-two p,.dv-sec .dv-acc-in,.dv-sec .dv-acc-in p,.dv-sec .dv-facts dd,.dv-sec .dv-box p,.cm-empty,.pa-sub,.cm-tx p{font-size:15.5px}
  .res .proj h3,.proj h3{font-size:20px}
  .dv-hero{padding:84px 0 28px}
  .dv-hero p,.dv-hero .lead,.dv-lead{font-size:16px;line-height:1.55}
  .dv-hero .btn{width:100%;text-align:center}
}

/* ===== Phone home page: compact overview, swipe rows ===== */
@media(max-width:600px){
  /* hero */
  #hero{min-height:0;display:block}
  #hero .hero-grid{padding:96px 0 26px}
  #hero .lab{font-size:13px}
  #hero h1{font-size:30px;margin:4px 0 14px}
  #hero .btns{display:flex;gap:8px;flex-wrap:nowrap}
  #hero .btn{flex:1;padding:12px 8px;font-size:13.5px;text-align:center;white-space:nowrap}
  /* intro: small portrait beside text */
  #intro{padding:22px 0}
  #intro .intro-in{display:grid;grid-template-columns:92px 1fr;gap:14px;align-items:center}
  #intro .intro-photo{width:92px;max-width:none;aspect-ratio:1/1;object-fit:cover;object-position:50% 22%;border-radius:50%}
  #intro h2{font-size:21px;line-height:1.15}
  #intro .lead{font-size:13.5px;line-height:1.5;margin-top:6px}
  #intro .links{margin-top:8px;font-size:13.5px}
  /* quick section links */
  .qlinks{display:flex;gap:8px;overflow-x:auto;padding:10px 16px;background:var(--cocoa);border-top:1px solid rgba(246,241,230,.15);scrollbar-width:none}
  .qlinks::-webkit-scrollbar{display:none}
  .qlinks a{flex:none;color:var(--cream);text-decoration:none;font:600 13px var(--f-body);padding:7px 14px;border:1px solid rgba(246,241,230,.4);border-radius:99px}
  /* search */
  .search{padding:12px 0}
  .searchbar input{padding:11px 12px;font-size:15px}
  .searchbar .btn{padding:11px 16px}
  /* section heads */
  .sec{padding:26px 0}
  .sec-head{margin-bottom:12px;flex-wrap:nowrap;align-items:center}
  .sec-head h2{font-size:21px}
  .sec-head .textlink{font-size:13.5px;white-space:nowrap}
  #projects .sec-head{flex-wrap:wrap}
  #pcCtrl,#browseAll{display:none}
  /* swipe rows */
  .areas,.articles{display:flex;gap:10px;overflow-x:auto;scroll-snap-type:x mandatory;margin:0 -16px;padding:0 16px 6px;scrollbar-width:none;-webkit-overflow-scrolling:touch}
  .areas::-webkit-scrollbar,.articles::-webkit-scrollbar,.pc-viewport::-webkit-scrollbar{display:none}
  .areas .area{flex:0 0 62%;min-height:132px;padding:14px;scroll-snap-align:start}
  .area b{font-size:18px}
  .area span{font-size:13px}
  .articles .art{flex:0 0 74%;scroll-snap-align:start;padding:14px;gap:6px}
  .art-img{width:calc(100% + 28px);margin:-14px -14px 4px;aspect-ratio:16/9}
  .art h3{font-size:16px;line-height:1.25}
  .art p{display:none}
  .art .tag{font-size:12px}
  .art em{font-size:13.5px}
  /* featured projects: native swipe */
  #pcView{overflow-x:auto;scroll-snap-type:x mandatory;margin:0 -16px;padding:0 16px 6px;scrollbar-width:none;-webkit-overflow-scrolling:touch}
  #projectGrid{transform:none!important;transition:none!important;gap:10px;width:max-content}
  #projectGrid .proj{flex:0 0 72vw!important;max-width:290px;scroll-snap-align:start}
  #projectGrid .ph{aspect-ratio:16/10}
  #projectGrid .tx{padding:12px 12px 14px}
  #projectGrid .tx b{font-size:16px}
  #projectGrid .chips{display:none}
  #projectGrid .facts{padding-top:8px}
  #projectGrid .facts strong{font-size:14px}
  #projectGrid .facts em{font-size:10.5px}
  /* developers */
  .devs{padding:26px 0}
  .devs h2{margin-bottom:0}
  .devs .sec-head{margin-bottom:12px}
  .tile{height:56px;min-width:104px;padding:0 12px}
  .tile img{height:28px;max-width:80px}
  /* how I work: short */
  #about .about{gap:12px}
  #about .about p:nth-of-type(2){display:none}
  #about .about-photo{display:none}
  #about .pillars{display:flex;flex-direction:row;gap:8px;padding:0 16px 6px;margin:8px -16px 0;overflow-x:auto;scroll-snap-type:x mandatory;scrollbar-width:none}
  #about .pillars::-webkit-scrollbar{display:none}
  #about .pillars li{flex:0 0 70%;scroll-snap-align:start;padding:10px 12px}
  #about .pillars b{font-size:14.5px}
  #about .pillars span{font-size:13px}
  /* calculator band */
  #calculator{padding:28px 0}
  #calculator .cb-card{display:none}
  #calculator h2{font-size:21px}
  #calculator p{font-size:14px;margin:6px 0 14px}
  /* closing cta */
  .home-cta{padding:40px 0;min-height:0}
  .home-cta h2{font-size:22px;margin-bottom:12px}
  .areas,.articles,#pcView,#about .pillars{scroll-padding-left:16px}
  #calculator .cb-copy p{margin:6px 0 12px!important}
  #calculator .cb-in{gap:0}

  /* calm palette on phones: one warm light background, cocoa ink, orange only for the main action */
  body{background:#F7F4EC}
  .top{background:rgba(247,244,236,.97);border-bottom-color:#E6DFCF}
  .sec.tint{background:transparent}
  .search{background:transparent;padding:4px 0 14px}
  .searchbar input{background:#fff;border:1px solid #E1D9C7}
  .intro{background:transparent;color:var(--ink)}
  .intro .lead,.intro .textlink{color:var(--ink)}
  .intro h2{display:none}
  .intro .lead{display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;font-size:14.5px}
  #intro .intro-in{grid-template-columns:84px 1fr}
  #intro .intro-photo{width:84px}
  .qlinks{background:transparent;border-top:0;padding:4px 16px 12px}
  .qlinks a{color:var(--cocoa);border-color:#D9D0BC;background:#fff}
  #hero .btn.ghost{display:none}
  #hero .btn.primary{flex:none;padding:12px 18px}
  .area{background:#fff;border:1px solid #E6DFCF}
  .devs{background:transparent}
  .devs h2,.devs .sec-head h2{color:var(--cocoa)}
  .devs .textlink{color:var(--cocoa)}
  .tile{background:#fff;border:1px solid #E6DFCF}
  #about .pillars li{background:#fff;border:1px solid #E6DFCF}
}
