/* Phone layer. Linked with media="(max-width:760px)" on every page, so desktop never loads these rules.
   Pairs with mobile.js (bottom tab bar, startups sheet, swipe counters). */
@media (max-width:760px){
:root{--edge:16px;--navh:52px}
html{-webkit-tap-highlight-color:transparent;scroll-padding-top:var(--navh)}
a,button,summary{touch-action:manipulation}
body{padding-bottom:calc(84px + env(safe-area-inset-bottom))}

/* top bar: name + CV. Everything else moves to the tab bar under your thumb */
.nav{height:var(--navh);font-size:15px}
.nav-logo{font-size:19px;padding:0 16px}
.nav-menu{display:none}
.nav-r .sq{display:none}
.nav-r a{padding:0 18px;min-width:56px;justify-content:center}

/* bottom tab bar */
.mtab{position:fixed;left:10px;right:10px;bottom:calc(10px + env(safe-area-inset-bottom));z-index:60;display:grid;grid-template-columns:repeat(4,1fr);gap:4px;height:62px;padding:5px;
  border-radius:22px;background:rgba(28,38,42,.9);backdrop-filter:blur(16px) saturate(1.4);-webkit-backdrop-filter:blur(16px) saturate(1.4);
  box-shadow:0 14px 34px -14px rgba(0,0,0,.55),inset 0 0 0 1px rgba(255,255,255,.08);transition:transform .38s var(--ease),opacity .25s ease}
.mtab.hide{transform:translateY(calc(100% + 28px));opacity:0}
.mtab a,.mtab button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;border:0;background:none;color:#B9C7CC;cursor:pointer;
  font:500 11px/1 var(--sans);letter-spacing:.01em;text-decoration:none;border-radius:17px;transition:background-color .15s ease,color .15s ease,transform .12s ease}
.mtab svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.mtab [aria-current=page],.mtab [aria-expanded=true]{background:rgba(255,255,255,.13);color:#fff}
.mtab a:active,.mtab button:active{transform:scale(.92)}

/* startups bottom sheet */
.msheet{position:fixed;inset:0;z-index:70;visibility:hidden;transition:visibility 0s .4s}
.msheet.on{visibility:visible;transition:none}
.msheet .bd{position:absolute;inset:0;background:rgba(11,15,17,.5);opacity:0;transition:opacity .3s ease}
.msheet.on .bd{opacity:1}
.msheet .pn{position:absolute;left:0;right:0;bottom:0;background:var(--page);border-radius:26px 26px 0 0;padding:8px 18px calc(22px + env(safe-area-inset-bottom));
  transform:translateY(100%);transition:transform .42s var(--ease);touch-action:none;box-shadow:0 -10px 40px -20px rgba(0,0,0,.4)}
.msheet.on .pn{transform:translateY(var(--dy,0px))}
.msheet.drag .pn{transition:none}
.msheet .grab{width:42px;height:5px;border-radius:9px;background:var(--soft);margin:4px auto 18px}
.msheet .ttl{font:500 11px var(--mono);letter-spacing:.08em;text-transform:uppercase;color:var(--faded);margin:0 2px 6px}
.msheet a{display:flex;justify-content:space-between;align-items:center;gap:12px;min-height:62px;padding:0 2px;border-top:1px solid var(--rule);text-decoration:none;
  font:500 20px/1.15 var(--sans);letter-spacing:-.03em;color:var(--ink)}
.msheet a small{font:500 11px var(--mono);letter-spacing:.05em;text-transform:uppercase;color:var(--faded);text-align:right}
.msheet a:active{background:var(--card)}
.msheet .row2{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:14px}
.msheet .row2 a{justify-content:center;min-height:52px;border:1.5px solid var(--ink);border-radius:99px;font-size:15px}
.msheet .row2 a.fill{background:var(--ink);color:#fff}

/* swipe galleries (mobile.js adds .m-swipe and the counter under it) */
.m-swipe{display:flex!important;overflow-x:auto;scroll-snap-type:x mandatory;gap:10px;margin-inline:calc(-1 * var(--edge));padding-inline:var(--edge);
  scroll-padding-inline:var(--edge);scrollbar-width:none;overscroll-behavior-x:contain}
.m-swipe::-webkit-scrollbar{display:none}
.m-swipe>*{flex:0 0 84%;scroll-snap-align:start;grid-column:auto!important;min-width:0}
.m-swipe .shot img{aspect-ratio:4/5!important;height:auto}
.m-meta{display:flex;align-items:center;gap:12px;margin-top:12px;font:500 11px var(--mono);letter-spacing:.06em;text-transform:uppercase;color:var(--mut,var(--faded))}
.m-meta .mb{flex:1;height:2px;border-radius:2px;background:currentColor;opacity:.35;overflow:hidden;position:relative}
.m-meta .mb i{position:absolute;inset:0 auto 0 0;width:100%;background:currentColor;transform-origin:left;transform:scaleX(var(--f,.1))}
.m-meta .mh{opacity:.8}
.hud4 .m-meta{color:#cfdadd;margin-top:2px}
.quests .m-meta{padding:0 var(--edge)}

/* hero: the statement up top, the name at the bottom, and photos under your finger in between */
.hero2{height:calc(100svh - var(--navh) - 24px);min-height:540px;padding:18px var(--edge) 0}
.hero2 .statement{text-align:left;font-size:clamp(24px,6.6vw,30px);line-height:1.04;letter-spacing:-.045em;padding-top:6px}
.statement .indent{width:22%}
.hero2-meta{font-size:14px;gap:10px 0;padding-bottom:14px}
.hero2-meta .scroll-cue{min-height:40px;margin-top:2px}
.trail img{width:92px}
.trail-pill.touch{left:50%;top:50%;transform:translate(-50%,-50%);opacity:1;transition:opacity .4s ease}
.trail-pill.touch.gone{opacity:0}
.names{padding:20px 0}
.names span{font-size:14px}

/* quote: one compact author row, then the quote */
.quote{grid-template-columns:1fr;min-height:0}
.quote .who{grid-template-columns:auto 1fr;align-items:center;gap:0 14px;padding:14px var(--edge)}
.quote .who::before{display:none}
.quote .who img{width:48px;height:48px;margin:0;border-radius:50%}
.quote .who p{margin:0}
.quote blockquote{font-size:clamp(25px,7vw,30px);line-height:1.12;padding:26px var(--edge) 6px}
.quote .qdots{gap:4px;padding:6px calc(var(--edge) - 12px) 14px}
.quote .qdots button{width:34px;height:34px;border:0;background:none;position:relative}
.quote .qdots button::after{content:"";position:absolute;inset:12px;border-radius:50%;border:1.5px solid var(--ink)}
.quote .qdots button.on::after{background:var(--ink)}
.quote .qdots button.on,.quote .qdots button:hover{background:none;transform:none}

/* venture chapters: one card per screen, each pins and the next slides over it (mobile.js shrinks the one underneath).
   Cards are trimmed to fit a phone screen; mobile.js lowers the pin point of any card that still runs taller. */
.chap2{position:sticky;top:var(--navh);min-height:calc(100svh - var(--navh));border-radius:22px 22px 0 0;padding:18px var(--edge) 22px;
  gap:14px;align-content:start;transform-origin:50% 0;box-shadow:0 -14px 30px -18px rgba(0,0,0,.45);will-change:transform}
.chap2{display:flex;flex-direction:column}
.chap2 h3{font-size:clamp(26px,7.4vw,32px)}
.chap2 .ch-text{gap:10px}
.chap2 .ch-num{display:flex;align-items:baseline;gap:12px;font-size:38px}   /* number and its label on one line */
.chap2 .ch-num span{margin:0}
.chap2 .ch-p{font-size:15px}
.chap2 .ch-stats{flex-wrap:nowrap;gap:5px;overflow-x:auto;scrollbar-width:none;margin:0 calc(-1 * var(--edge));padding:0 var(--edge)}
.chap2 .ch-stats::-webkit-scrollbar{display:none}
.chap2 .ch-stats li{flex:none;padding:5px 8px;font-size:11.5px;letter-spacing:-.01em;white-space:nowrap}
.chap2 .ch-cta{display:none}                       /* the picture is the link, with its own "View case study" badge */
.ch-media{flex:1;min-height:220px;display:grid;grid-template:1fr/1fr}  /* the picture takes the rest of the card */
.ch-media .m2,.ch-media .m3{display:none}
.ch-media .m1{width:100%;height:100%;min-height:0;aspect-ratio:auto;grid-area:1/1}
.chap2 .ch-badge{white-space:nowrap;padding:12px 16px;font-size:15px;gap:10px}
.chap2 .ch-badge b{width:26px;height:26px}
.ch-cta:active,.qc:active,.next2 a:active{transform:scale(.98)}

/* 3D world: title, then the world. No chips (tap an island instead) and no overlapping hint text */
.world{height:auto;min-height:0;display:flex;flex-direction:column;padding:28px 0 0;overflow:visible}
.world-in{position:static;order:-1;max-width:none;padding:0 var(--edge);pointer-events:auto}
.world-in .crumb,.world .hint,.wq-tip{display:none!important}
.world-in h1,.world-in h2{font-size:clamp(28px,8vw,34px);margin-top:0}
.world-in .skip2{display:inline-flex;align-items:center;min-height:40px;margin-top:10px;padding:0 16px;border:1.5px solid var(--ink);border-radius:99px;font-size:13px;text-decoration:none}
.world canvas{position:relative;inset:auto;width:100%;height:min(70vw,330px);margin-top:6px}
.wq-chips,.world.live .wq-chips:not(:focus-within){display:none}
.wq-chips{position:static;order:2;display:flex;flex-wrap:nowrap;justify-content:flex-start;overflow-x:auto;padding:0 var(--edge);scroll-snap-type:x proximity;scrollbar-width:none;
  mask-image:linear-gradient(90deg,transparent,#000 16px,#000 calc(100% - 24px),transparent)}
.wq-chips::-webkit-scrollbar{display:none}
.wq-chips button{flex:none;min-height:40px;scroll-snap-align:start}
.wq-card{left:10px;right:10px;width:auto;top:auto;bottom:70px;border-radius:20px}
.wq-card .x{width:44px;height:44px;right:4px;top:2px}
.world.live .wq-chips:not(:focus-within){position:static;width:auto;height:auto;overflow-x:auto;clip-path:none;white-space:normal}
.quests-head{display:none}

/* home quest carousel: swipe, no hover-to-grow */
.quests{padding:6px 0 28px}
.quests-head .arrows{display:none}
.track{padding:22px var(--edge) 6px;gap:12px;scroll-padding-inline:var(--edge)}
.qc,.qc:hover{flex-basis:78vw}
.qc b{font-size:18px;margin-top:16px}
.qc span{font-size:14px}

/* side quests: photo cards show their story without hover, cards with no photo collapse to a short note */
.qc2 .pic.has-img .over{opacity:1}
.qc2 .over p{font-size:14px}
.qc2 .over .loot{font-size:11px}
.qc2:has(.pic:not(.has-img)){display:flex;flex-direction:column;border:1px solid var(--rule);border-radius:16px;padding:14px;
  background:color-mix(in srgb,var(--a) 6%,var(--page))}
.qc2:has(.pic:not(.has-img)) .row{margin-top:0;order:1}
.qc2 .pic:not(.has-img){order:2;aspect-ratio:auto;background:none;display:block;border-radius:0;overflow:visible}
.qc2 .pic:not(.has-img)>svg{display:none}
.qc2 .pic:not(.has-img) .over{position:static;opacity:1;background:none;padding:8px 0 0 46px;color:var(--faded)}
.qc2 .pic:not(.has-img) .over p,.qc2 .pic:not(.has-img) .over .loot{color:var(--faded);opacity:1}
.qc2 .row h2{font-size:18px}
.qc2 .tags span{font-size:11.5px}

/* player profile: face first, then the panels as a swipe deck */
.hud4{margin:8px 8px 0;border-radius:24px;padding:16px;font-size:15px;gap:14px;height:auto;min-height:0;overflow:hidden}
.hud4::before{background:linear-gradient(180deg,rgba(11,15,17,.35) 0%,rgba(11,15,17,0) 24%,rgba(11,15,17,.2) 42%,rgba(11,15,17,.88) 60%,#0b0f11 78%)}
.hud4 .hud-bg{height:min(118vw,560px);object-position:50% 8%}
.hud4 .h4-top{flex-direction:column;gap:14px;padding-top:min(62vw,300px)}
.hud4 h2{font-size:32px}
.hud4 .hud-who{font-size:15px}
.hud4 .hud-kpi{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;width:100%}
.hud4 .hud-kpi div{min-width:0;padding:8px 8px}
.hud4 .hud-kpi b{font-size:24px}
.hud4 .hud-kpi span{font-size:10.5px}
.hud4 .h4-grid{flex:none;display:flex;flex-direction:row;overflow-x:auto;scroll-snap-type:x mandatory;gap:10px;margin:0 -16px;padding:2px 16px 4px;scroll-padding-inline:16px;scrollbar-width:none;min-height:0;align-items:flex-start}
.hud4 .h4-grid::-webkit-scrollbar{display:none}
.hud4 .h4-col,.hud4 .h4-mid{display:contents}
.hud4 .panel3,.hud4 .h4-col>.panel3{flex:0 0 86%;scroll-snap-align:start;overflow:visible;min-height:0;padding:14px 16px;border-radius:18px;background:rgba(255,255,255,.07)}
.hud4 .p-learn{grid-template-columns:1fr;gap:12px;font-size:15px}
.hud4 .radar{max-height:230px;height:auto;width:100%}
.hud4 .prof div{font-size:14px;grid-template-columns:7em 1fr}
.hud4 .hc b{font-size:24px}.hud4 .hc span{font-size:11px}
.hud4 .daykey,.hud4 .tr2,.hud4 .hb b,.hud4 .vals li div span{font-size:12px}
.hud4 .vals small{font-size:11px}
.hud4 .hh span{font-size:10.5px}

/* case studies: comfortable type and captions you can read */
.shot figcaption{font-size:11px;padding-top:8px}
.quotes{grid-template-columns:1fr}
.press-links a{grid-template-columns:1fr auto;gap:6px 14px;padding:14px 0}

/* footer: bigger targets */
.foot-cta{padding:0 var(--edge) 56px}
.foot-cols{flex-wrap:wrap;gap:28px}
.foot-cols div{gap:0}
.foot-cols .mono{font-size:11px;margin-bottom:4px}
.foot-cols a{padding:9px 0;font-size:15px}
.foot-stats>*{min-height:120px}
.foot-stats span{font-size:13px}

/* story: keep the timeline clear of the tab bar */
#life .ltl{bottom:18px}
.mtab a.wa svg{fill:currentColor;stroke:none;width:21px;height:21px}
.mtab a.wa{color:#5be38d}
.socials{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.socials a{min-height:48px;justify-content:center;padding:0 8px;gap:7px;font-size:13.5px}
.wa-fab{display:none}

/* case studies: a shorter hero, a sticky chapter bar, swipe rows instead of tall stacks */
.cs2-hero{height:auto;min-height:calc(88svh - var(--navh));padding-bottom:84px}
.cs2-hero h1{font-size:clamp(38px,11vw,48px);line-height:.96}
.cs2-hero .lede2{font-size:15.5px}
.hero-row{gap:14px;margin-top:20px}
.meta{display:grid;grid-template-columns:1fr 1fr;gap:12px 18px;width:100%}
.cs2-hero .visit{width:100%;justify-content:space-between}
.m-toc{position:sticky;top:var(--navh);z-index:40;display:flex;gap:6px;overflow-x:auto;scrollbar-width:none;padding:10px var(--edge);
  background:var(--bg,var(--page));border-bottom:1px solid var(--line,var(--rule));scroll-padding-inline:var(--edge)}
.m-toc::-webkit-scrollbar{display:none}
.m-toc a{flex:none;display:inline-flex;align-items:center;gap:6px;min-height:36px;padding:0 14px;border-radius:99px;border:1px solid var(--line,var(--rule));
  color:var(--fg,var(--ink));text-decoration:none;font:500 13px var(--sans);white-space:nowrap;transition:background-color .2s ease,color .2s ease,border-color .2s ease}
.m-toc a small{font:500 10px var(--mono);opacity:.6}
.m-toc a.on{background:var(--fg,var(--ink));color:var(--bg,var(--page));border-color:transparent}
.blk{padding-top:52px;scroll-margin-top:calc(var(--navh) + 60px)}
.blk-head{grid-template-columns:1fr;margin-bottom:24px}
.blk-head h2{font-size:clamp(26px,7.4vw,32px)}
.blk-head p{font-size:15px}
.rings{grid-template-columns:1fr 1fr;gap:18px 12px}
.ring2 svg{width:min(100%,140px)}
.ring2 b{top:calc(70px - 26px);font-size:30px}
.ring2 span{font-size:13.5px}
.routes{grid-template-columns:1fr}
.tot{grid-template-columns:1fr 1fr}
.tot div:nth-child(3){border-left:0}
.tot div:nth-child(n+3){border-top:1px solid var(--line)}
.tot b{font-size:24px}
.kmbars{height:220px;padding-bottom:60px;gap:8px}
.kmb small{bottom:-56px;font-size:9.5px;line-height:1.2}
.kmb span{font-size:11px}
.kmb i b{font-size:12px}
.tl{grid-template-columns:1fr 1fr;row-gap:22px}
.split2,.ways2{grid-template-columns:1fr}
.films.m-swipe>*{flex-basis:80%}
.film2 img{aspect-ratio:4/5!important;height:auto}
.film2 b{font-size:24px}
.quotes.m-swipe>*{flex-basis:86%;grid-column:auto}
.quotes blockquote,.quotes blockquote.big{font-size:18px}
.kit-grid{grid-template-columns:1fr}
.kit-head p{text-align:left}
.next2{height:300px}
.next2 b{font-size:40px}
.site-band{margin-inline:var(--edge)}
}

/* ===== Leggo case study, phone pass: one column rhythm, 2-up stats, no orphans, readable charts ===== */
@media (max-width:760px){
  /* hero: film on top at full width, text below on dark, so neither covers the other */
  .leggo .cs2-hero.has-vid{display:block;height:auto;min-height:0;padding-bottom:28px;background:#111}
  .leggo .cs2-hero.has-vid::after{display:none}
  .leggo .cs2-hero.has-vid>.hero-vid{position:relative;inset:auto;height:auto;aspect-ratio:16/9;object-fit:cover;background:#fff}
  .leggo .cs2-hero.has-vid .cs2-hero-in{padding-top:22px}
  .leggo .cs2-hero h1{font-size:clamp(36px,10.4vw,44px);letter-spacing:-.05em}
  .leggo .cs2-hero .lede2{font-size:15px;line-height:1.45;margin-top:14px}
  .leggo .hero-row{margin-top:18px;padding-top:16px}
  .leggo .meta{gap:10px 16px}
  .leggo .meta b{font-size:14px;line-height:1.3}
  .leggo .cs2-hero .visit{min-height:46px;padding:0 6px 0 18px;font-size:14px}
  .leggo .vid-sound{top:12px;right:12px;padding:7px 12px;font-size:12px}
  /* KPI strip: five numbers, the last one spans so nothing hangs alone */
  .leggo .kpis .kpi:last-child:nth-child(odd){grid-column:1/-1;border-right:0}
  .leggo .kpi b{font-size:32px}
  /* problem rings: smaller, tighter */
  .leggo .rings{gap:22px 10px}
  .leggo .ring2 svg{width:112px}
  .leggo .ring2 b{top:36px;font-size:26px}
  .leggo .ring2 span{margin-top:10px;font-size:13px;line-height:1.3}
  .leggo .press-links .tag{font-size:10.5px;line-height:1.5}
  .leggo .press-links a{grid-template-columns:1fr auto;gap:4px 14px;padding:14px 0}
  .leggo .press-links a small{grid-column:1/-1}
  .leggo .press-links a b{font-size:16px;line-height:1.3}
  /* solution: three scope tiles as a compact list, four facts as a 2×2 */
  .leggo .cols4.three{grid-template-columns:1fr;gap:0;margin-bottom:28px!important}
  .leggo .cols4.three>div{padding:14px 0;border-top-width:1px}
  .leggo .cols4.three b{font-size:17px}
  .leggo .cols4.three p{margin-top:4px;font-size:14px}
  .leggo .facts{grid-template-columns:1fr 1fr;gap:18px 14px}
  .leggo .facts b{font-size:30px}
  .leggo .facts span{font-size:12.5px;line-height:1.35}
  /* route diagrams: labels big enough to read at 390px */
  .leggo .routes{gap:14px}
  .leggo .route2 .lbl text{font-size:19px}
  /* model: the flip sentence shouldn't take a full screen */
  .leggo .flip{font-size:24px;line-height:1.25}
  .leggo .cols4:not(.three){gap:20px 14px;margin-top:28px}
  .leggo .cols4 b{font-size:16px}
  .leggo .cols4 p{font-size:13.5px}
  /* swipe gallery: landscape frames suit these photos better than 4:5 */
  .leggo .m-swipe .shot img{aspect-ratio:4/3!important;object-fit:cover}
  .leggo .m-swipe>*{flex-basis:88%}
  /* in the news: quote first, the two links side by side, the post at a readable width */
  .leggo .news3{display:flex;flex-direction:column;gap:22px}
  .leggo .news-col{order:-1}
  .leggo .news-col blockquote{font-size:24px;line-height:1.25}
  .leggo .voice-links{display:grid;grid-template-columns:1fr 1fr;gap:8px}
  .leggo .voice-links .voice-link{margin-top:16px;padding:12px 10px;text-align:center;font-size:13.5px}
  .leggo .news3>figure{max-width:320px;align-self:center;width:100%}
  .leggo .news-media{gap:18px}
  .leggo .news-links b{font-size:15.5px;line-height:1.35}
  .leggo .hours .lbl text{font-size:17px}
}
@media (max-width:760px){.leggo .m-swipe.m-auto{scroll-snap-type:none}.leggo .m-auto>*{flex-basis:78%}}
/* Second Thought hero on phones: the wide banner sits on top at its own shape, text below, nothing overlaps */
@media (max-width:760px){
  .st .cs2-hero{display:block;height:auto;min-height:0;padding-bottom:28px}
  .st .cs2-hero::after{display:none}
  .st .cs2-hero>img{position:relative;inset:auto;width:100%;height:auto;aspect-ratio:auto;object-fit:contain;animation:none}
  .st .cs2-hero .cs2-hero-in{padding-top:22px}
  .st .cs2-hero .visit{min-height:46px;padding:0 6px 0 18px;font-size:14px}
}
@media (max-width:760px){
  .site-band{padding:22px;gap:16px}
  .site-band b{font-size:clamp(20px,6.2vw,26px);overflow-wrap:anywhere}
  .site-band i{width:52px;font-size:22px}
  .team-strip img:nth-child(7){display:none}   /* six photos: a clean 3×2, no orphan */
  .next2 b{font-size:clamp(30px,9vw,38px);right:var(--edge);line-height:1}
  .next2::after{background:linear-gradient(180deg,rgba(0,0,0,.2),rgba(0,0,0,.8))}
}
/* Second Thought AI hero on phones: still on top, text below */
@media (max-width:760px){
  .stai .cs2-hero{display:block;height:auto;min-height:0;padding-bottom:28px;background:#111}
  .stai .cs2-hero::after{display:none}
  .stai .cs2-hero>img{position:relative;inset:auto;width:100%;height:auto;aspect-ratio:4/3;object-fit:cover;animation:none}
  .stai .cs2-hero .cs2-hero-in{padding-top:22px}
  .stai .cs2-hero .visit{min-height:46px;padding:0 6px 0 18px;font-size:14px}
}
