/* ==========================================================================
   Astris Partners - design refresh, every page (homepage first, 2026-11-17).
   Loaded after site.css by every page build.py writes (and 404.html). Every
   rule is scoped under body.v2.
   ========================================================================== */

/* calmer surfaces + the frame */
body.v2{
  --paper:#FBFBF8;
  --wash:#F3F4EF;
  --line:#D9E1F0;
  --rail:#C9D6F0;
  --gutter:clamp(12px,3vw,40px);
  --frame:min(1240px,calc(100% - 2 * var(--gutter)));
  --in:clamp(18px,3vw,40px);
  --sec:clamp(56px,6.5vw,96px);
}
body.v2 .mockbar{padding:7px 16px;font-size:10.5px}

/* one centered frame: every .wrap sits on it */
body.v2 .wrap{width:var(--frame);max-width:none;margin-inline:auto;
  padding-left:var(--in);padding-right:var(--in)}

/* rails + the section's closing hairline, drawn once per section */
body.v2 main > section{position:relative;border-bottom:0}
body.v2 main > section::before,
body.v2 header::before{content:"";position:absolute;top:0;bottom:0;left:0;right:0;
  width:var(--frame);margin-inline:auto;border-left:1px solid var(--rail);
  border-right:1px solid var(--rail);pointer-events:none}
body.v2 main > section::before{border-bottom:1px solid var(--line)}
body.v2 header{background:rgba(251,251,248,.85)}

/* --- headlines: sentence case, two-tone ------------------------------ */
body.v2 .display{text-transform:none;letter-spacing:-0.035em;line-height:1.03}
body.v2 h1.display{font-size:clamp(40px,5.4vw,76px);max-width:15ch}
body.v2 h2.display{font-size:clamp(30px,3.9vw,52px);max-width:22ch}
body.v2 .display em{font-style:normal;color:var(--blue)}
body.v2 .dark .display em{color:var(--blue-soft)}

/* the v2 hero has no strip under it, so it needs its own bottom padding */
body.v2 .hero{padding-bottom:clamp(48px,6vw,84px)}

/* --- navy blocks: one inset panel inside the frame per section -------
   painted on the section's content box, so it spans every .wrap in it */
body.v2 section.dark{background:linear-gradient(var(--navy),var(--navy)) 50% 0 /
  calc(var(--frame) - 2 * var(--in)) 100% no-repeat content-box}
body.v2 section.dark > .wrap{padding-inline:calc(var(--in) + clamp(20px,4vw,64px))}
body.v2 section.dark > .wrap:first-child{padding-top:clamp(36px,5.5vw,80px)}
body.v2 section.dark > .wrap:last-child{padding-bottom:clamp(36px,5.5vw,80px)}
body.v2 .dark .hgrid p{color:#B9CBE2}
body.v2 .dark .lede{color:#C8D6EA}

/* --- stats: five in one hairline row ---------------------------------- */
body.v2 .stats-l.c5{grid-template-columns:repeat(5,minmax(0,1fr))}
body.v2 .stats-l.c5 > div{padding:24px 20px}
body.v2 .stats-l.c5 .stat-n{font-size:clamp(26px,2.4vw,36px)}
@media(max-width:860px){
  body.v2 .stats-l.c5{grid-template-columns:repeat(2,minmax(0,1fr))}
  body.v2 .stats-l.c5 > :last-child{grid-column:span 2}
}
@media(max-width:560px){
  body.v2 .stats-l.c5{grid-template-columns:1fr}
  body.v2 .stats-l.c5 > :last-child{grid-column:auto}
}

/* --- comparison table: white cells on the off-white ground ------------ */
body.v2 .table-scroll tbody th,
body.v2 .table-scroll td{background:#fff}
body.v2 .table-scroll td.us{background:linear-gradient(var(--blue-wash),var(--blue-wash)) #fff}

/* --- case study thumbnails: one set until hovered --------------------- */
body.v2 .vthumb img{filter:grayscale(1) contrast(1.05);transition:transform .4s ease,filter .25s}
body.v2 .vthumb::after{content:"";position:absolute;inset:0;z-index:1;background:var(--navy);
  mix-blend-mode:multiply;opacity:.35;transition:opacity .25s;pointer-events:none}
body.v2 .vplay{z-index:2}
body.v2 .vthumb:hover img,
body.v2 .vthumb:focus-visible img{filter:none;opacity:1}
body.v2 .vthumb:hover::after,
body.v2 .vthumb:focus-visible::after{opacity:0}

/* --- replies: every one, bunched into three framed columns ------------ */
body.v2 .rwall{columns:3;column-gap:10px;background:transparent;border:0}
body.v2 .rwall figure{background:#fff;border:1px solid var(--line);padding:10px;margin:0 0 10px}
@media(max-width:960px){body.v2 .rwall{columns:2}}
@media(max-width:620px){body.v2 .rwall{columns:1}}
