/* ================================================================
   Toad in the Hole: the phone layer.
   Loaded after site.css with media="(max-width:860px)", so every rule
   here is phone/tablet-portrait only. Phones get their own compositions,
   not the desktop ones squeezed: everything sits in normal flow, nothing
   is layered over text, one idea per screen.
   ================================================================ */
:root{
  --nav:60px;
  --gutter:20px;
  --m-sec:76px;          /* section rhythm */
  --m-gap:28px;          /* heading to content */
  --m-h2:clamp(1.85rem,8.4vw,2.5rem);
  --m-h3:clamp(1.25rem,5.6vw,1.6rem);
}
body{font-size:16px}

/* ---------- header: a slim solid bar, and a full-screen menu sheet ---------- */
.nav{height:var(--nav);gap:16px;background:rgba(15,12,11,.92);-webkit-backdrop-filter:blur(14px) saturate(1.2);backdrop-filter:blur(14px) saturate(1.2);border-bottom-color:var(--rule)}
.brand{font-size:15.5px;gap:10px}
.brand .mark{width:30px}
.menu-btn{height:44px;min-width:44px;justify-content:flex-end;font-size:14.5px}
.nav.is-open .nav-links{top:var(--nav);bottom:0;height:calc(100dvh - var(--nav));overflow-y:auto;padding:12px var(--gutter) calc(28px + env(safe-area-inset-bottom));border:0;display:flex;flex-direction:column}
.nav.is-open .nav-links a{font-size:clamp(30px,9vw,40px);padding:14px 0}
.nav.is-open .nav-links a.m-cta{margin-top:auto;display:flex;align-items:center;justify-content:center;height:56px;border-radius:999px;background:var(--go);color:var(--ink);font-stretch:112%;font-weight:600;font-size:17px;letter-spacing:0;padding:0}
html:has(.nav.is-open){overflow:hidden}

/* ---------- rhythm: one spacing scale for every section ---------- */
.section{padding:var(--m-sec) 0}
.statement{padding:var(--m-sec) 0}
.sec-head{gap:14px;margin-bottom:var(--m-gap)}
.sec-head p{font-size:16px}
.display.h2,.sec-head .h2,.faq-wrap .sec-head .h2{font-size:var(--m-h2);line-height:1.04}
.statement .big{font-size:clamp(2rem,9.4vw,2.9rem);line-height:1.08}
.statement-foot{gap:18px;margin-top:28px}
.statement-foot p{font-size:16.5px}
.manifesto .big{font-size:clamp(2rem,9.4vw,2.9rem)}
.man-foot{margin-top:28px}
.hero.ph + .section,.hero.ph + section{padding-top:var(--m-sec)}
.btn{height:52px}

/* ---------- heroes: copy first, then one visual, in flow ---------- */
.hero-stage,.hero.ph .hero-stage,.hero.ph.has-vis .hero-stage{height:auto;min-height:0;display:flex;flex-direction:column;overflow:hidden;padding:calc(var(--nav) + 22px) var(--gutter) 44px}
.hero .hero-copy,.hero.ph .hero-stage .hero-copy{position:relative;z-index:3;inset:auto;transform:none;translate:none;width:auto;max-width:none;order:0}
.hero.ph nav[aria-label="Breadcrumb"]{order:-1;margin-bottom:22px}
.crumbs{font-size:12.5px;gap:8px}
.hero h1{font-size:clamp(2.35rem,11.4vw,3.4rem);line-height:1.02}
.hero.ph .page-h1,.hero.ph.case-hero .page-h1{font-size:clamp(2.1rem,calc((100vw - 2 * var(--gutter)) / 9.6),3.2rem);line-height:1.03}
.hero .lede,.hero.ph .lede{margin-top:18px;font-size:16.5px;line-height:1.55;max-width:none}
.hero-actions,.hero.ph .hero-actions{margin-top:26px;gap:14px 22px}
.hero-actions .btn{flex:1 1 100%;justify-content:center}
.hero-actions .link{min-height:44px}
.hero-facts,.hero.ph .hero-facts{display:none}
/* the backdrop calms down so the copy reads cleanly over it */
.hero-bg::after{background:linear-gradient(180deg,rgba(15,12,11,.86) 0%,rgba(15,12,11,.74) 45%,rgba(15,12,11,.9) 82%,var(--cast) 100%)}

/* the reel: no 3D, no overlap. Slides share one grid cell and size to their content */
.reel,.hero.ph .reel{position:relative;z-index:2;inset:auto;translate:none;width:100%;max-width:560px;min-width:0;margin:34px 0 0;align-self:stretch;perspective:none}
.reel-3d,.hero.ph .reel-3d{display:grid;aspect-ratio:auto!important;transform:none!important;transform-style:flat;will-change:auto}
.slide{position:relative;inset:auto;grid-area:1 / 1;display:flex;flex-direction:column;gap:10px;transform-style:flat}
.lay{position:relative;inset:auto;transform:none!important;width:100%}
.slide .side{display:none}
.browser{left:auto;top:auto;width:100%;aspect-ratio:16 / 10.4;border-radius:10px}
.bar{font-size:10.5px}
.note{right:auto;bottom:auto;width:100%;padding:16px 18px;border-radius:10px}
.note q{font-size:16px;line-height:1.32}
.note-by{margin-top:10px;font-size:12.5px}
.reel-nav,.hero.ph .reel-nav{position:relative;inset:auto;order:3;margin-top:18px;gap:14px}
.rn-t em{display:none}
.rn-t b{font-size:15px}
.rn{min-height:44px}

/* web: wireframe to website, with its tag under the frame */
.wb-reel .browser{aspect-ratio:16 / 10.4;height:auto}
.wb-reel .wb-stage{height:calc(100% - 7%)}
.wb-tag{left:auto;bottom:auto;flex-direction:row;align-items:baseline;gap:10px;padding:13px 16px;border-radius:10px;box-shadow:none}
.wb-tag b{font-size:22px}
.hero.ph .wb-reel{margin-bottom:0}

/* branding: the identity kit as a tidy grid of tiles */
.kit .slide{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));grid-template-rows:auto 30px auto;gap:8px}
.kit-photo{grid-column:1 / 3;grid-row:1 / 4;height:auto;top:auto;left:auto;min-height:220px}
.kit-word{grid-column:3 / 5;grid-row:1;height:auto;aspect-ratio:16 / 10;left:auto;top:auto}
.kit-word b{font-size:clamp(13px,4vw,17px);letter-spacing:.18em}
.kit-word small{font-size:8px}
.kit-pal{grid-column:3 / 5;grid-row:2;height:auto;left:auto;top:auto}
.kit-type,.kit-mono{grid-row:3;height:auto;aspect-ratio:1;left:auto;top:auto}
.kit-type{grid-column:3;padding:10px}
.kit-type b{font-size:30px}
.kit-type small{font-size:8.5px}
.kit-mono{grid-column:4;font-size:44px}

/* shopify: the phone and the product card, side by side */
.pc-reel .slide{display:grid;grid-template-columns:minmax(0,.66fr) minmax(0,1fr);gap:12px;align-items:end}
.pc-reel .slide .side.phone{display:block;grid-column:1;grid-row:1;left:auto;bottom:auto;width:100%;border-width:4px;border-radius:18px}
.pcard{grid-column:2;grid-row:1;right:auto;top:auto;width:100%;border-radius:12px}
.pc-body{padding:12px 13px 14px;gap:6px}
.pc-body b{font-size:16px}
.pc-body em{font-size:11.5px}
.pc-btn{font-size:11.5px;padding:8px 13px}
.hero.ph .pc-reel .reel-3d{aspect-ratio:auto!important}

/* transformation: before, then after, read top to bottom */
.mo-reel .slide{display:grid;grid-template-columns:minmax(0,1fr);gap:0}
.mo-old,.mo-new{width:100%;height:auto;aspect-ratio:16 / 7;left:auto;right:auto;top:auto;padding:12px;animation:none!important;scale:1}
.mo-old{filter:grayscale(.35) brightness(.7);border-radius:12px 12px 0 0}
.mo-new{border-radius:0 0 12px 12px;opacity:1}
.mo-old::after{content:'Before';position:absolute;left:12px;top:10px;font-size:11px;font-weight:600;letter-spacing:.06em;text-transform:uppercase;color:rgba(255,255,255,.8)}
.mo-new::after{content:'After';position:absolute;left:12px;top:10px;font-size:11px;font-weight:600;letter-spacing:.06em;text-transform:uppercase;color:#C9A66E}
.mo-old b{font-size:30px}
.mo-new b{font-size:22px}
.mo-reel .slide .side{display:none}

/* AI: the question, full width */
.ask{margin:30px 0 0;padding:8px 8px 8px 18px}
.ask-q{font-size:15px}
.hero.ph.ai-hero .hero-stage .hero-copy{text-align:left;justify-self:auto}
.hero.ph.ai-hero .hero-actions{justify-content:flex-start}

/* case studies: headline, then the photograph */
.hero.ph.case-hero .hero-bg{order:2;aspect-ratio:4 / 3.2;margin-top:30px;border-radius:12px}
.hero.ph.case-hero .lede{margin-top:18px}

/* homepage hero */
.hero:not(.ph) .hero-stage{padding-top:calc(var(--nav) + 30px)}
.hero:not(.ph) .reel{margin-top:36px}

/* ---------- brands ticker ---------- */
.ticker{padding:44px 0 40px}
.ticker-h{font-size:17px}

/* ---------- homepage: disciplines as compact rows you can scan ---------- */
.svc{grid-template-columns:44px minmax(0,1fr)!important;column-gap:14px;row-gap:8px;padding:22px 0}
.svc > .svc-ico{grid-column:1;grid-row:1;width:44px;height:44px;margin:0}
.svc h3{grid-column:2!important;grid-row:1;align-self:center;font-size:clamp(1.15rem,calc(100cqi / 15),1.6rem)!important}
.svc p,.svc ul{grid-column:1 / -1!important;max-width:none}
.svc p{padding-top:4px;font-size:15.5px}
.svc ul{display:flex;flex-wrap:wrap;gap:6px;line-height:1.3;padding-top:4px}
.svc ul li{padding:6px 11px;border:1px solid var(--rule);border-radius:99px;font-size:12.5px}

/* homepage method: a vertical timeline, marks on the line */
.steps{grid-template-columns:minmax(0,1fr)!important;row-gap:0!important;padding-top:28px}
.steps > li{position:relative;display:grid;grid-template-columns:44px minmax(0,1fr);column-gap:16px;align-content:start;padding-bottom:30px}
.steps > li:not(:last-child)::after{content:'';position:absolute;left:21.5px;top:52px;bottom:8px;width:1px;background:var(--rule)}
.steps svg{grid-column:1;grid-row:1 / 3;width:44px;height:44px;margin:0}
.steps h3{grid-column:2;font-size:22px;margin:8px 0 6px}
.steps p{grid-column:2;font-size:15.5px;max-width:none}

/* ---------- work ---------- */
.case-meta{gap:2px}
.work-grid{gap:34px}

/* ---------- close: chips that wrap, a full-width action ---------- */
.close,.close.is-hero{min-height:0;padding:calc(var(--m-sec) - 6px) 0 var(--m-sec)}
.close.is-hero{padding-top:calc(var(--nav) + 40px)}
.close-h{font-size:clamp(2.2rem,10.6vw,3.2rem)}
.close-sub{margin-top:20px;font-size:16.5px}
.chips{gap:8px;margin-top:18px}
.chip{height:44px;padding:0 15px 0 12px;gap:9px;font-size:14px}
.chip svg{width:18px;height:18px}
.close-row{margin-top:30px;gap:20px}
.close-row .btn{flex:1 1 100%;justify-content:center}
.close-row .link,.close-row a:not(.btn){font-size:clamp(17px,5.4vw,22px)}

/* ---------- footer ---------- */
.foot-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:30px 20px}
.foot-grid > :first-child{grid-column:1 / -1}
.foot-grid a{display:inline-block;padding:3px 0}
.foot-base{margin-top:36px;gap:6px}

/* ---------- FAQ ---------- */
.faq-wrap{gap:26px}

/* ---------- branding: the identity builds on a slim sticky board ---------- */
.builder-stage{position:sticky;top:var(--nav);z-index:2;height:min(38vh,300px);margin-inline:calc(var(--gutter) * -1);padding:10px var(--gutter) 10px;background:linear-gradient(var(--cast) 88%,transparent);gap:8px}
.board{gap:6px;padding:8px;border-radius:12px}
.bd-logo b{font-size:clamp(12px,3.8vw,17px)}
.bd-logo span{font-size:clamp(26px,8vw,38px)}
.bd-type{padding:9px}
.bd-type b{font-size:clamp(26px,8vw,40px)}
.bd-type span{font-size:9.5px;line-height:1.35}
.bd-voice{font-size:clamp(12px,3.8vw,16px);padding:9px}
.bd-guide span{font-size:9px}
.builder-steps li{min-height:42vh;padding:22px 0;opacity:.3}
.builder-steps h3{font-size:var(--m-h2);margin-bottom:10px}
.builder-steps p{font-size:16px}

/* ---------- web: Core Web Vitals as compact rows ---------- */
.gauges{grid-template-columns:minmax(0,1fr)!important;gap:10px}
.gauge{display:grid;grid-template-columns:92px minmax(0,1fr);gap:4px 16px;align-items:center;padding:16px}
.gauge svg{grid-row:1 / 4;width:92px;margin:0}
.gauge figcaption{display:contents}
.gauge b{font-size:17px;line-height:1.2}
.gauge figcaption span{margin:4px 0 2px;justify-self:start;font-size:12.5px;padding:4px 10px}
.gauge p{font-size:14px;line-height:1.45}

/* ---------- shopify: migration lanes that fit ---------- */
.lane{grid-template-columns:minmax(0,1.25fr) minmax(24px,.5fr) minmax(0,1fr);gap:10px}
.lane .from,.lane .to{height:50px;font-size:14px;padding:0 10px;white-space:nowrap}

/* ---------- transformation: the twelve weeks as a vertical list ---------- */
.gt{position:relative}
.gt-weeks{display:flex;justify-content:space-between;padding:0 0 8px;border-bottom:1px solid var(--rule);margin-bottom:6px}
.gt-weeks span{padding:0;border:0;font-size:11px}
.gt-weeks span:not(:first-child):not(:nth-child(4)):not(:nth-child(7)):not(:nth-child(10)):not(:last-child){display:none}
.gt-row{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));row-gap:6px;padding:12px 0;border-bottom:1px solid var(--rule)}
.gt-name{grid-column:1 / -1;grid-row:1;font-size:16px}
.gt-bar{grid-row:2;height:14px;margin:0 2px}
.gt-bar em{display:none}
.gt-now{display:none}

/* transformation: hand-offs compared */
.tv-dots{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px}

/* ---------- AI: before/after chat and the scan ---------- */
.ba-chat{min-height:0}
.scan-page{border-radius:12px}

/* ---------- approach: a slim sticky bar says which stage you're reading ---------- */
.method{gap:0}
.method-aside{position:sticky;top:var(--nav);z-index:3;display:flex;align-items:center;gap:12px;margin-inline:calc(var(--gutter) * -1);padding:12px var(--gutter);background:rgba(15,12,11,.94);-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);border-bottom:1px solid var(--rule)}
.method-mark{width:34px;flex:none}
.method-aside strong{margin:0;font-size:22px;letter-spacing:-.02em;line-height:1}
.method-aside span{margin:0 0 0 auto;font-size:13px}
.method-steps > li{padding:26px 0;opacity:1}
.method-steps > li:first-child{border-top:0}
.method-steps h3{font-size:var(--m-h3);margin-bottom:10px}
.method-steps p{font-size:16px}
.method-steps ul{margin-top:16px;gap:6px}
.method-steps ul li{font-size:12.5px;padding:6px 11px}

/* ---------- case studies ---------- */
.rename{border-top:0}
.rn-pin{padding-block:var(--m-sec)}
.rn-old{font-size:clamp(2.6rem,14vw,4rem);line-height:1}
.rn-new{margin-top:10px;font-size:clamp(1.5rem,8.6vw,2.6rem);letter-spacing:.14em}
.rn-p{margin-top:22px;font-size:16.5px}
.stat-grid{gap:10px}
.cmp-tag{font-size:10px}

/* ---------- services index ---------- */
.idx-list a{padding-block:16px}
.picker{gap:10px}

/* touch: no hover-only states, generous targets */
@media (hover:none){
  .svc:hover .svc-ico{color:var(--c)}
}

/* small phones */
@media (max-width:380px){
  :root{--gutter:16px;--m-sec:64px}
  .rn-t b{font-size:14px}
  .kit-photo{min-height:190px}
}

/* ---------- pass 2: rhythm and leftovers ---------- */
:root{--m-sec:64px}
.manifesto{padding:var(--m-sec) 0}
.foot-grid a{display:inline}
.foot-grid li{padding:3px 0}
.foot-grid .brand{display:inline-flex}

/* shopify journey: swipe cards, sized to their words, with a hint of the next */
.hs-pin{padding-block:var(--m-sec);gap:24px}
.hs-track{gap:12px;padding-inline:var(--gutter);scroll-padding-inline:var(--gutter);-webkit-overflow-scrolling:touch;scrollbar-width:none}
.hs-track::-webkit-scrollbar{display:none}
.hs-panel{width:min(80vw,360px);min-height:0;gap:18px;padding:22px}
.hs-panel q{font-size:clamp(1.8rem,8vw,2.4rem)}
.hs-panel p{font-size:15.5px}
.hs-panel::after{width:140px;height:140px;right:-50px;top:-50px}

/* transformation surfaces: shorter pictures, side by side words */
.surf{gap:10px}
.sf-vis{aspect-ratio:16 / 8}
.sf-mono{font-size:64px}
.sf-phone img{width:30%}
.surf h3{padding:16px 18px 4px;font-size:19px}
.surf p{padding:0 18px 18px;font-size:14.5px}

/* shopify hero: the store image shows its headline, not a crop of it */
.pc-img img{object-position:4% 50%}

/* contact */
.close.is-hero{border-top:0}

/* headlines: each line whole; site.js sizes the headline to its widest line */
.page-h1 .ln > span{white-space:nowrap}
.hero .hero-copy,.hero.ph .hero-stage .hero-copy{min-width:0;align-self:stretch}
.page-h1{max-width:100%;overflow:visible}
/* only the homepage discipline rows get the icon tile */
.svc-ico{padding:0;background:none;border-radius:0}
.svc > .svc-ico{padding:10px;border-radius:12px;background:var(--iron);color:var(--c)}
