/* Homepage final editorial / responsive polish pass.
   Scope: homepage only. Preserve approved hero and CE/MRE visual art direction.
   Priorities: P0 responsive integrity -> P1 hierarchy/composition -> P2 type/rhythm. */

/* ---------- Shared homepage rhythm ---------- */
.home-block-friction .fbdm-block,
.home-block-proof .fbdm-block,
.home-block-final .fbdm-block{
  padding-block:clamp(5.25rem,7.5vw,8.5rem);
}
.home-systems-continuation{
  padding-bottom:clamp(5.25rem,7.5vw,8.5rem);
}
.home-block-tools .fbdm-block,
.home-block-selected-work .fbdm-block{
  padding-block:clamp(4.75rem,7vw,8rem);
}

/* Informational mono text has a practical floor. */
.home-tech-notation,
.home-block-friction .signals span,
.home-block-proof .proof-note span,
.home-block-selected-work .block-item-label{
  font-size:max(.6875rem,11px);
  line-height:1.45;
}

/* ---------- Friction: problem -> explanation -> friction -> consequences ---------- */
@media (min-width:1001px){
  /* The SectionIntro stacked layout owns the reading order; no old split overrides. */
  .home-block-friction .friction-workflow{
    margin-top:clamp(3.75rem,5vw,5.5rem);
  }
  .home-block-friction .friction-workflow > .fbdm-diagram{
    width:100%;
  }
  .home-block-friction .signals{
    margin-top:2.5rem;
  }
}

/* ---------- Designed-state section: make the diagrams the centre ---------- */
.home-systems-continuation .state-comparison{
  margin-top:clamp(3.75rem,5.25vw,5rem);
}
.home-systems-continuation .principles{
  margin-top:clamp(3.25rem,4.5vw,4.25rem);
}
.home-systems-continuation .principles article{
  min-height:175px;
}
.home-systems-continuation .principles h3{
  margin-top:clamp(2.25rem,3vw,3rem);
}
.home-systems-continuation .home-tech-notation{
  margin-top:1.5rem;
}

@media (min-width:1001px){
  .home-systems-continuation .state-panel{
    padding:clamp(1.5rem,2.2vw,2rem);
  }
}

/* ---------- Existing tools: framework, not sidebar ---------- */
/* Existing Tools uses the reusable editorial-stack and a Diagram Engine specimen.
   No page-owned diagram geometry or forced two-column overrides. */

/* ---------- Homepage Blueprint: keep simple, improve hierarchy ---------- */
.home-block-tools + .blueprint.section-pad{
  padding-block:clamp(5.25rem,7.5vw,8.5rem);
}
.home-block-tools + .blueprint .blueprint-grid{
  gap:clamp(3.5rem,6vw,7rem);
  margin-top:clamp(3rem,4vw,4rem);
}
/* Homepage Blueprint lead: line rhythm within the sentence, separation after it.
   Override the general .blueprint p body line-height without changing shared prose. */
.home-block-tools + .blueprint .blueprint-grid > div:first-child > .lead{
  line-height:1.38;
  margin-bottom:1.375rem;
}
.home-block-tools + .blueprint .blueprint-flow{
  margin-bottom:clamp(2.5rem,3.5vw,3.5rem);
}
.home-block-tools + .blueprint .output-list li{
  font-size:.96rem;
  line-height:1.45;
}
.home-block-tools + .blueprint .output-list span{
  font-size:max(.6875rem,11px);
  line-height:1.45;
}
.home-block-tools + .blueprint .trust-statement{
  margin-top:clamp(3.75rem,5vw,5rem);
}

@media (min-width:1001px){
  .home-block-tools + .blueprint .blueprint-grid{
    grid-template-columns:minmax(0,1fr) minmax(0,1fr);
  }
  .home-block-tools + .blueprint .blueprint-evidence{
    padding-left:clamp(2.5rem,3.5vw,4rem);
  }
}

/* ---------- CE/MRE proof: final visual now owns the section ---------- */
.home-block-proof .block-media-heading{
  margin:clamp(2.25rem,3vw,3rem) 0 clamp(3rem,4.5vw,4rem);
}
.home-block-proof .block-media-evidence-detail{
  margin-top:clamp(3rem,4.5vw,4rem);
  gap:clamp(3rem,6vw,7rem);
}
.home-block-proof .block-media-evidence-detail > div > p{
  max-width:700px;
}

@media (min-width:1001px){
  .home-block-proof .block-media-heading{
    grid-template-columns:minmax(0,1.15fr) minmax(360px,.85fr);
    gap:clamp(3rem,5vw,6rem);
  }
  .home-block-proof .block-media-heading .block-lead{
    max-width:680px;
    justify-self:end;
  }
  .home-block-proof .block-media-grid > div:first-child{
    min-width:0;
  }
}

/* ---------- Selected work: stronger editorial grid, not SaaS cards ---------- */
.home-block-selected-work .block-evidence-heading{
  margin-bottom:clamp(3rem,4vw,4rem);
}
.home-block-selected-work .block-evidence-grid article{
  min-height:0;
}
.home-block-selected-work .block-evidence-grid h3{
  max-width:22ch;
}
.home-block-selected-work .block-item-body{
  max-width:38ch;
}
.home-block-selected-work .home-selected-work-cta{
  padding-bottom:clamp(2.5rem,4vw,4rem);
}

/* ---------- Final CTA: deliberate arrival, not another huge section ---------- */
.home-block-final .block-final-cta-grid{
  gap:clamp(3rem,6vw,7rem);
  margin-top:clamp(2.25rem,3vw,3rem);
}
.home-block-final .block-final-cta-grid > div:last-child{
  max-width:680px;
}
.home-block-final .block-microcopy{
  max-width:50ch;
}
.home-block-final .block-boundary-note{
  max-width:620px;
}

/* ---------- Narrow desktop: intentional two-column balance ---------- */
@media (min-width:1001px) and (max-width:1300px){

  /* Give the spatial proof room to read as the central specimen. */
  .home-block-proof .block-media-heading{
    margin-bottom:5rem;
  }
  .home-block-proof .block-media-evidence-detail{
    margin-top:5rem;
  }

  /* Pull the CTA columns together so the conclusion reads as one composition. */
  .home-block-final .block-final-cta-grid{
    grid-template-columns:minmax(0,1fr) minmax(0,1fr);
    gap:clamp(2rem,3.5vw,3rem);
  }
}

/* ---------- Tablet: recompose, do not squeeze ---------- */
@media (min-width:641px) and (max-width:1000px){
  .home-block-friction .fbdm-block,
  .home-block-proof .fbdm-block,
  .home-block-final .fbdm-block{
    padding-block:5.75rem;
  }
  .home-systems-continuation{
    padding-bottom:5.75rem;
  }
  .home-block-tools .fbdm-block,
  .home-block-selected-work .fbdm-block{
    padding-block:5.25rem;
  }

  .home-block-friction .block-section-intro-grid,
  .home-block-systems-intro .block-section-intro-grid{
    gap:2rem;
  }
  .home-block-friction .block-intro-support,
  .home-block-systems-intro .block-intro-support{
    max-width:760px;
  }
  .home-block-friction .friction-workflow{
    margin-top:4rem;
  }

  .home-systems-continuation .state-comparison{
    margin-top:3.75rem;
  }
  .home-systems-continuation .principles{
    margin-top:3.25rem;
  }
  .home-systems-continuation .principles.principles-four article{
    min-height:155px;
  }
  /* Reset inherited article+article padding on the first item of each tablet row. */
  .home-systems-continuation .principles.principles-four article:nth-child(odd){
    padding-left:0;
  }
  .home-systems-continuation .principles.principles-four article:nth-child(even){
    padding-left:1.5rem;
  }


  .home-block-tools + .blueprint.section-pad{
    padding-block:5.75rem;
  }
  .home-block-tools + .blueprint .blueprint-grid{
    gap:3.5rem;
  }
  .home-block-tools + .blueprint .blueprint-evidence{
    padding-top:3rem;
  }

  .home-block-proof .block-media-heading,
  .home-block-proof .block-media-evidence-detail{
    gap:2.25rem;
  }
  .home-block-proof .block-media-heading{
    margin-bottom:3rem;
  }
  .home-block-proof .block-media-evidence-detail{
    margin-top:3rem;
  }

  /* Three narrow context cards were too light at tablet widths; use a readable editorial stack. */
  .home-block-selected-work .block-evidence-grid{
    grid-template-columns:1fr;
  }
  .home-block-selected-work .block-evidence-grid article,
  .home-block-selected-work .block-evidence-grid article + article{
    padding:20px 0;
    border-right:0;
  }
  .home-block-selected-work .block-item-label{
    margin-bottom:1rem;
  }
  .home-block-selected-work .block-item-body{
    max-width:62ch;
  }

  .home-block-final .block-final-cta-grid{
    gap:2.25rem;
  }
}

/* ---------- Mobile: spacious, not endless ---------- */
@media (max-width:640px){
  .home-block-friction .fbdm-block,
  .home-block-proof .fbdm-block,
  .home-block-final .fbdm-block{
    padding-block:4.25rem;
  }
  .home-systems-continuation{
    padding-bottom:4.25rem;
  }
  .home-block-tools .fbdm-block,
  .home-block-selected-work .fbdm-block{
    padding-block:4.25rem;
  }

  .home-block-friction .block-section-intro-grid,
  .home-block-systems-intro .block-section-intro-grid{
    gap:1.5rem;
  }
  .home-block-friction .block-body,
  .home-block-systems-intro .block-body,
  .home-block-proof .block-lead,
  .home-block-proof .block-media-evidence-detail > div > p,
  .home-block-final .block-lead{
    max-width:none;
  }
  .home-block-friction .friction-workflow{
    margin-top:3rem;
  }
  .home-block-friction .signals{
    margin-top:1.5rem;
  }

  .home-systems-continuation .state-comparison{
    margin-top:3rem;
  }
  .home-systems-continuation .principles{
    margin-top:2.75rem;
  }
  .home-systems-continuation .principles h3{
    margin-top:1.75rem;
  }


  .home-block-tools + .blueprint.section-pad{
    padding-block:4.5rem;
  }
  .home-block-tools + .blueprint .blueprint-grid{
    gap:2.75rem;
    margin-top:2.5rem;
  }
  .home-block-tools + .blueprint .lead{
    margin-top:2rem;
  }
  .home-block-tools + .blueprint .blueprint-evidence{
    padding-top:2.5rem;
  }
  .home-block-tools + .blueprint .blueprint-flow{
    margin-bottom:2.25rem;
  }
  .home-block-tools + .blueprint .output-list li{
    gap:14px;
    padding:13px 0;
  }
  .home-block-tools + .blueprint .trust-statement{
    margin-top:3.25rem;
    padding-top:1.5rem;
  }

  .home-block-proof .block-media-heading{
    margin:1.75rem 0 2.5rem;
  }
  .home-block-proof .block-media-evidence-detail{
    margin-top:2.5rem;
    gap:1.5rem;
  }
  .home-block-proof .block-media-evidence-detail > div > p{
    font-size:1.08rem;
    line-height:1.58;
  }

  .home-block-selected-work .block-evidence-heading{
    margin:2rem 0 2.5rem;
  }
  .home-block-selected-work .block-evidence-grid article,
  .home-block-selected-work .block-evidence-grid article + article{
    padding-block:18px;
  }
  .home-block-selected-work .block-item-label{
    margin-bottom:.9rem;
  }

  .home-block-final .block-final-cta-grid{
    margin-top:2rem;
    gap:2rem;
  }
  .home-block-final .block-actions{
    margin-top:1.5rem;
  }
  .home-block-final .block-microcopy,
  .home-block-final .block-boundary-note{
    margin-top:1.25rem;
  }
}

@media (max-width:390px){
  .home-block-friction .fbdm-block,
  .home-block-proof .fbdm-block,
  .home-block-final .fbdm-block,
  .home-block-tools .fbdm-block,
  .home-block-selected-work .fbdm-block{
    padding-block:4rem;
  }
  .home-block-tools + .blueprint.section-pad{
    padding-block:4.15rem;
  }
}
