:root{--mobile-safe-bottom:env(safe-area-inset-bottom,0px);--mobile-safe-top:env(safe-area-inset-top,0px)}

html,body{max-width:100%}
body{overflow-x:clip}
#siteShell,main,main>*,section,.wrap{min-width:0}
img,video,canvas,svg{max-width:100%}
img,video{height:auto}
button,a,input,select,textarea,summary{touch-action:manipulation}
input,select,textarea{max-width:100%;min-width:0}
.console-table-wrap,.library-filters,.page-trail{-webkit-overflow-scrolling:touch;overscroll-behavior-inline:contain}

@media (max-width:1024px){
  .wrap{width:min(1240px,calc(100% - 40px))}
  section{padding-top:88px;padding-bottom:88px}
  .hero-experiment-pending .hero-copy [data-split-hero]{visibility:visible!important}
  .nav-links{display:none!important}
  .nav-cta{display:none!important}
  .nav-toggle{display:flex!important;width:44px!important;height:44px!important;min-width:44px;min-height:44px;padding:10px!important;align-items:center;justify-content:center}
  .mobile-nav-header{padding-top:var(--mobile-safe-top);height:calc(84px + var(--mobile-safe-top))}
  .mobile-nav-footer{padding-bottom:calc(24px + var(--mobile-safe-bottom))}
  .grid-3,.capability-grid,.thinking-grid,.path-grid,.signal-grid,.category-grid,.boundary-grid,.before-book-grid,.intel-quarterly-grid,.privacy-rules,.pillar-grid,.result-numbers,.review-process{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  .console-table-wrap{overflow-x:auto}
  .console-table-wrap table{min-width:720px}
  .library-filters{overflow-x:auto;scrollbar-width:none;padding-bottom:4px}
  .library-filters::-webkit-scrollbar{display:none}
  .library-filters button{flex:0 0 auto;min-height:44px;padding-block:10px}
}

@media (max-width:900px){
  .page-hero,.review-hero-grid,.founder-statement,.scoreboard,.editorial-hero-grid,.start-here-head,.booking-grid,.before-book-head,.faq-grid,.intel-hero-grid,.intel-loop-head,.intel-field-note,.newsletter-hero-top,.newsletter-signup-grid,.newsletter-belief,.newsletter-inline,.score-lab-grid,.case-two-col,.feature-case-bottom,.verdict-grid,.founder-preview-grid,.case-hero-bottom,.case-feature,.case-proof-grid{grid-template-columns:1fr!important}
  .case-sticky,.anti-fit-heading{position:static!important;top:auto!important}
  .hero-index{grid-template-columns:1fr!important;align-items:start!important}
  .hero-copy{max-width:780px}
  .hero-art{width:100%;height:440px;min-height:0}
  .founder-hero-grid{grid-template-columns:1fr!important}
  .founder-hero-photo{min-height:520px}
  .newsletter-signup{border-left:0!important;border-top:1px solid currentColor}
  .score-lab-intro{border-right:0!important;border-bottom:1px solid rgba(17,17,15,.22)}
  .intel-system-grid,.intel-loop-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
}

@media (max-width:760px){
  html{scroll-padding-top:76px}
  body{padding-bottom:calc(72px + var(--mobile-safe-bottom))}
  .wrap{width:min(1240px,calc(100% - 32px))}
  section{padding-top:60px;padding-bottom:60px}
  .hero-copy{gap:22px}
  .hero-copy h1{font-size:clamp(52px,16vw,62px)!important;line-height:.91!important}
  .intel-hero h1{font-size:clamp(58px,18vw,68px)!important;line-height:.9!important}
  .case-hero h1{font-size:clamp(58px,18vw,68px)!important;line-height:.91!important}
  .newsletter-hero h1{font-size:clamp(60px,18vw,72px)!important;line-height:.9!important}
  .founder-hero-copy h1{font-size:clamp(54px,17vw,64px)!important;line-height:.91!important}
  .teardown-hero h1{font-size:clamp(48px,14vw,56px)!important;line-height:.94!important}
  .diagnostic-intro h1{font-size:clamp(46px,14vw,56px)!important;line-height:.94!important}
  .page-hero h1{font-size:clamp(46px,14vw,54px)!important;line-height:.94!important}
  h2{overflow-wrap:break-word}
  .hero-art{height:360px}
  .grid-3,.capability-grid,.thinking-grid,.path-grid,.signal-grid,.category-grid,.boundary-grid,.before-book-grid,.intel-quarterly-grid,.privacy-rules,.pillar-grid,.result-numbers,.review-process,.intel-system-grid,.intel-loop-grid{grid-template-columns:1fr!important}
  button,.button,[role="button"],input[type="submit"],input[type="button"]{min-width:44px;min-height:44px}
  input:not([type="checkbox"]):not([type="radio"]):not([type="range"]),select,textarea{min-height:48px;font-size:16px!important}
  .button{white-space:normal;text-align:center;justify-content:center;line-height:1.25}
  .mobile-nav{width:min(100vw,460px)}
  .mobile-nav-links{justify-content:flex-start;overflow-y:auto;padding-top:18px;padding-bottom:18px}
  .mobile-nav-links a{font-size:clamp(30px,8.4vw,40px);padding:10px 0;min-height:50px}
  .mobile-nav-footer{padding-top:14px}
  .mobile-nav-close{width:48px;height:48px;min-width:48px;min-height:48px}
  .mobile-review-cta{left:12px!important;right:12px!important;bottom:calc(10px + var(--mobile-safe-bottom))!important;min-height:52px!important;opacity:0;pointer-events:none;transform:translateY(calc(100% + 24px));transition:opacity .22s ease,transform .28s cubic-bezier(.2,.8,.2,1)}
  .mobile-review-cta.is-visible{opacity:1;pointer-events:auto;transform:none}
  .whatsapp-float{right:16px!important;bottom:calc(16px + var(--mobile-safe-bottom))!important;width:48px!important;height:48px!important;transition:opacity .2s ease,transform .2s ease,background .2s ease}
  body.mobile-sticky-active .whatsapp-float,body.menu-open .whatsapp-float{opacity:0;pointer-events:none;transform:translateY(18px) scale(.9)}
  body.menu-open .mobile-review-cta{opacity:0;pointer-events:none;transform:translateY(calc(100% + 24px))}
  .hero-art.hero-proof-lens{height:260px!important}
  .page-trail{display:flex;white-space:nowrap;overflow-x:auto;gap:8px;scrollbar-width:none}
  .page-trail::-webkit-scrollbar{display:none}
  .case-metric-strip .wrap{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  .founder-hero-photo{min-height:0;height:min(122vw,470px)}
  .founder-profile-wrap{min-height:420px!important}
  .intel-module{min-height:360px!important}
  .issue-tile{min-height:460px!important}
  .proof-card{min-height:390px!important}
  .metrics-period,.experiment-admin>div{grid-template-columns:1fr!important}
  .experiment-admin>div>div{grid-template-columns:1fr!important}
  .metrics-kpis{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  .console-table-wrap{margin-inline:-16px;padding-inline:16px}
}

@media (max-width:480px){
  .wrap{width:min(1240px,calc(100% - 28px))}
  .truth-stack,.home-services .home-service-grid,.start-here .path-grid,.editorial-cover-rail{margin-right:-14px}
  section{padding-top:52px;padding-bottom:52px}
  .site-footer .wrap,.footer-grid{grid-template-columns:1fr!important}
  .case-metric-strip .wrap,.metrics-kpis{grid-template-columns:1fr!important}
  .hero-art{height:320px}
  .founder-hero-photo{height:min(126vw,450px)}
}

@media (pointer:coarse){
  .founder-profile-card{transform:none!important}
  .founder-profile-shine{opacity:.24!important}
  .truth-card,.issue-card,.proof-card{cursor:default}
}

@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto!important}
  .hero-copy .split-char{animation:none!important;transform:none!important;opacity:1!important}
}
