/* mobile-fixes-v25 · live · Bryan 11:38 PM (America/New_York) · v=20261104c
   1) Hide journey bar on Creation Density (mobile) — CSS backup; JS sets inline !important
   2) Density CTA bottom room + short-phone compress
   3) Signals: real layout lift via #signals .ov padding-bottom (NOT child transform — that
      overrides html.gl .ov > * { transform: translate3d(0,var(--ty),0) } and fights flight)
   4) About story: tighten vertical rhythm around "I've built things" (mobile)
*/

@media (max-width:1023px), (max-aspect-ratio:21/20){
  html.in-density .statebar,
  html.in-density .statebar.spine,
  html:has(#density .ov.is-on) .statebar,
  html:has(#density .ov.is-on) .statebar.spine,
  html:has(#density .ov.is-on).in-states .statebar{
    opacity:0 !important;
    visibility:hidden !important;
    pointer-events:none !important;
    display:none !important;
  }

  #density .block--density.dens22,
  #density .block--density{
    padding-bottom:calc(24px + env(safe-area-inset-bottom,0px));
  }
  #density .density__ctas{
    margin-top:clamp(14px,2.6vh,24px);
    margin-bottom:clamp(6px,1.2vh,14px);
    gap:12px;
  }
}

@media (max-width:430px) and (max-height:780px){
  #density .dens22__head{margin-bottom:0}
  #density .dens23-art{max-height:48px;width:auto;margin-block:2px}
  #density .density__sub{margin-top:4px;margin-bottom:0}
  #density .dens22__cols{gap:6px;margin-top:6px}
  #density .dens22__col{margin:0}
  #density .density__p{margin:0 0 0.28em;line-height:1.35}
  #density .density__qs{margin:4px 0 0;gap:2px;line-height:1.3}
  #density .density__qs li{margin:0}
  #density .density__end{margin:2px 0 0;line-height:1.35}
  #density .density__ctas{margin-top:8px;margin-bottom:0;gap:6px}
  #density .density__ctas .btn{min-height:44px}
  #density .density__ctas .nudge,
  #density .density__ctas .hero__alt{padding-top:4px;padding-bottom:4px;margin-bottom:0}
  #density .block--density.dens22,
  #density .block--density{padding-bottom:calc(14px + env(safe-area-inset-bottom,0px))}
}

/* Signals From The Path — lift WHOLE overlay content via padding (flex-end ov on phones).
   Default mobile ov padding-bottom is 22px; tiles sat in Safari chrome. Target ~90px clear. */
@media (max-width:760px){
  html.gl #signals .ov{
    align-items:flex-end;
    justify-content:center;
    /* ~90px above layout bottom; safe-area for home indicator; extra for Safari toolbar */
    padding-bottom:calc(96px + env(safe-area-inset-bottom,0px)) !important;
    padding-top:calc(var(--nav-h,64px) + 12px);
  }
  /* Keep flight --ty transform intact (do NOT set transform on .block--signals) */
  html.gl #signals .block--signals{
    transform:translate3d(0,var(--ty,0px),0);
  }
}
@media (max-width:760px) and (max-height:700px){
  html.gl #signals .ov{
    padding-bottom:calc(72px + env(safe-area-inset-bottom,0px)) !important;
  }
}

/* About · "I've built things…" — tighter vertical rhythm on phones (text size unchanged).
   Belongs to #about / .story--v3 (About section). */
@media (max-width:760px){
  #about .story--v3 p{
    margin-top:6px;           /* was 12px in site.css */
  }
  #about .story--v3 p:first-child{
    margin-top:0;
  }
  /* The "I've built things" paragraph is the 3rd <p> — sit closer to neighbors */
  #about .story--v3 p:nth-child(3){
    margin-top:4px;
  }
  #about .story--v3 p:nth-child(2),
  #about .story--v3 p:nth-child(4){
    margin-top:5px;
  }
  #about .block--about h2{
    margin-bottom:2px;
  }
  #about .block--about .label{
    margin-bottom:6px;
  }
  /* Open reading sheet: same tighter rhythm */
  html.gl #about .block--about.is-open .story--v3 p{
    margin-top:6px;
  }
  html.gl #about .block--about.is-open .story--v3 p:nth-child(3){
    margin-top:4px;
  }
}

/* About gap v25b (2026-11-04): "I've built things. I've lost momentum…" (3rd <p>)
   sits tight under "I'm an entrepreneur…" (2nd <p>) — all widths, flight + open sheet.
   Only the p2→p3 margin is zeroed; line-height/font untouched. */
#about .story--v3 > p:nth-child(2),
html.gl #about .block--about .story--v3 > p:nth-child(2),
html.gl #about .block--about.is-open .story--v3 > p:nth-child(2){
  margin-bottom:0 !important;
  padding-bottom:0 !important;
}
#about .story--v3 > p:nth-child(3),
html.gl #about .block--about .story--v3 > p:nth-child(3),
html.gl #about .block--about.is-open .story--v3 > p:nth-child(3){
  margin-top:0 !important;
  padding-top:0 !important;
}

/* About mobile read v25b (2026-11-04 ~11:58 PM ET): lift the whole About block clear of the
   five-state bar / bottom UI and tighten the label → headline → story rhythm. Phone only; copy unchanged. */
@media (max-width:760px){
  html.gl #about .ov{
    align-items:flex-end !important;
    padding-bottom:calc(132px + env(safe-area-inset-bottom,0px)) !important;
  }
  html.gl #about .block--about .label{margin-bottom:4px !important}
  html.gl #about .block--about h2{margin:0 0 4px !important;line-height:1.06 !important}
  html.gl #about .block--about .story--v3 > p{
    margin-top:5px !important;
    font-size:clamp(15px,3.85vw,16.5px) !important;
    line-height:1.4 !important;
  }
  html.gl #about .block--about .story--v3 > p:first-child{margin-top:0 !important;font-size:clamp(17px,4.4vw,21px) !important;line-height:1.28 !important}
  html.gl #about .block--about .story--v3 > p:nth-child(3){margin-top:0 !important}
  html.gl #about .block--about .story--v3 > .story__q{margin-top:9px !important;font-size:clamp(18px,4.7vw,22px) !important;line-height:1.26 !important}
}
@media (max-width:760px) and (max-height:700px){
  html.gl #about .ov{padding-bottom:calc(112px + env(safe-area-inset-bottom,0px)) !important}
}
