/* =====================================================================
   refine.css  —  v2 "Breathing room" pass
   Loads AFTER case-study.css (+ order-study.css). Same warm-dark language,
   but: calmer type scale, more negative space, long images cropped to fit
   one screen (honouring the Figma framing). Pure override layer — the
   originals are untouched.
   ===================================================================== */

/* ---------------------------------------------------------------------
   1 · TYPE — pull the monumental scale back to an editorial register.
   Big type is now reserved for 1–2 real moments, not every section head.
   --------------------------------------------------------------------- */
.h-sec{
  font-size:clamp(30px,3.6vw,54px);
  line-height:1.0;letter-spacing:-.018em;
}
.lead{
  font-size:clamp(15px,1.05vw,18px);
  max-width:42ch;line-height:1.6;color:var(--grey);
}
.eyebrow{font-size:.76rem;letter-spacing:.2em;}
.kicker{font-size:.76rem;letter-spacing:.18em;}

/* hero titles — still the loudest thing on the page, just not absurd */
body.myz .hero h1{font-size:clamp(58px,11vw,168px);line-height:.9;}
body.ord .hero h1{font-size:clamp(40px,6.4vw,92px);line-height:.98;}
.hero .sub p{font-size:clamp(16px,1.25vw,20px);line-height:1.55;max-width:38ch;}

/* section / closing display type */
.endcta h2{font-size:clamp(36px,5.4vw,80px);line-height:.96;}
.footer .fname h2{font-size:clamp(40px,7.5vw,108px);}
.bigscore .s .n{font-size:clamp(40px,5vw,74px);}
.acc .head .ttl{font-size:clamp(18px,1.9vw,28px);}
.beat-copy h3{font-size:clamp(21px,2.3vw,32px);line-height:1.08;}
.icard h3{font-size:clamp(18px,1.55vw,22px);line-height:1.12;}
.score .num{font-size:clamp(34px,4vw,54px);}
.goal h3{font-size:clamp(19px,1.7vw,26px);}
.jstage .st{font-size:clamp(16px,1.35vw,19px);}

/* secondary heads that the originals inflate inline */
.wrap-head h3.h-sec{font-size:clamp(22px,2.6vw,38px)!important;}

/* impact / metric numbers in the order study */
.impact .it .n{font-size:clamp(30px,3.6vw,52px);}

/* ---------------------------------------------------------------------
   2 · SPACE — open up the rhythm. More room between sections and around
   the content blocks so nothing reads as crowded.
   --------------------------------------------------------------------- */
.section{padding:clamp(84px,12vh,160px) var(--pad);}
.wrap-head{gap:16px;max-width:54ch;}
.mt-s{margin-top:22px;}
.mt-m{margin-top:46px;}
.mt-l{margin-top:clamp(56px,8vh,96px);}

/* give grids of cards a touch more air between them */
.cards3{gap:20px;}
.icard{padding:30px 28px 30px;min-height:auto;gap:16px;}
.scores{gap:18px;}
.score{padding:24px 22px;}
.cols2{gap:clamp(28px,4vw,64px);}
.benchgrid{gap:20px;}
.benchcard{padding:28px 26px;gap:18px;}
.explor{gap:20px;}
.opt{padding:26px;gap:16px;}
.personas{gap:22px;}
.storyboard{gap:20px;}
.scope{gap:22px;}

/* the row-between header pattern: let the lead breathe to the side */
.row-between{gap:clamp(32px,5vw,90px);align-items:flex-start;}
.row-between .lead{padding-top:clamp(6px,2.4vw,42px);}

/* calmer body copy density */
.pitem{font-size:clamp(14px,1vw,16px);padding:12px 0;}
.icard p{font-size:clamp(14px,1vw,15.5px);}
.beat-copy p{font-size:clamp(14px,1.05vw,16.5px);line-height:1.6;max-width:42ch;}

/* ---------------------------------------------------------------------
   3 · LONG IMAGES — cap every screenshot frame so it fits in roughly one
   screen, cropping from the top. Honours how these were framed in Figma
   (top-of-page windows) instead of dumping the full 2700px export inline.
   Phones + the before/after compare keep their own sizing.
   --------------------------------------------------------------------- */
.frame:not(.phone) .shot{
  max-height:min(66vh,640px);
  min-height:200px;
}
.frame:not(.phone) .shot img{
  width:100%;height:100%;
  object-fit:cover;object-position:top center;
}
/* loaded-state fade still applies; just make sure cover wins */
.frame:not(.phone) .shot img.loaded{opacity:1;}

/* a subtle "framed window" cue so a top-crop reads as intentional */
.frame:not(.phone) .shot::after{
  content:"";position:absolute;left:0;right:0;bottom:0;height:64px;z-index:3;
  pointer-events:none;
  background:linear-gradient(to top,rgba(12,10,8,.34),transparent);
}

/* exploration carousel slides are tall too — same treatment, a bit shorter */
.cslide.frame .shot{max-height:min(58vh,520px);}

/* placeholder media blocks were oversized; let them be quieter */
.opt .ph-media{min-height:104px;}

/* ---------------------------------------------------------------------
   4 · small polish so the calmer scale still feels intentional
   --------------------------------------------------------------------- */
.hero .sub{gap:22px 48px;}
.chips{gap:9px;}
.chip{font-size:.78rem;padding:7px 14px;}
.beat{gap:clamp(32px,4.5vw,80px);}
.outcome{gap:clamp(32px,4.5vw,72px);}

@media (max-width:760px){
  .frame:not(.phone) .shot{max-height:52vh;}
}
