/* The opening screen ends with the original scrolling services strip. */
.hero-opening{--contact-height:0px;--opening-header:78px;box-sizing:border-box;block-size:100svh;min-block-size:620px;display:flex;flex-direction:column;position:relative}
.hero-opening>.hero{display:flex;flex:1 1 0;min-height:0;padding-top:calc(var(--opening-header) + 25px);padding-bottom:14px}
.hero-opening>.hero>.wrap{display:grid;grid-template-rows:minmax(0,1fr) auto;gap:16px;flex:1;width:100%;min-height:0}
.hero-opening .hero__grid{min-height:0;height:100%;align-items:center}
.hero-opening .hero__grid>div:first-child{min-width:0}
.hero-opening .hero__media--adam{display:grid;grid-template-rows:minmax(0,1fr);justify-items:center;align-items:center;min-height:0;min-width:0;height:100%;max-height:100%;width:100%;max-width:100%;align-self:stretch;gap:0}
.hero-opening .hero-portrait-frame{position:relative;block-size:100%;inline-size:auto;max-inline-size:100%;max-block-size:100%;aspect-ratio:1;min-block-size:0;min-inline-size:0;justify-self:center;align-self:center}
.hero-opening .hero-portrait-frame .shot{height:100%;width:100%;aspect-ratio:auto}
.hero-opening .hero-portrait-frame img.adam-photo{width:100%;height:100%;max-height:100%;object-fit:contain}
.hero-opening .stamp{width:clamp(72px,10svh,106px);top:12px;right:10px;bottom:auto;left:auto}
.home-polished .hero-opening .stats{margin:0;padding:0;gap:12px;grid-template-columns:repeat(4,minmax(0,1fr));align-items:start}
.home-polished .hero-opening .stats .stat{padding:8px 0!important;min-width:0}
.hero-opening .stats .stat b{font-size:clamp(30px,4.6svh,46px);line-height:1}
.hero-opening .stats .stat span{font-size:14px;line-height:1.5;margin-top:7px;letter-spacing:.04em}
.hero-opening>.mq{flex:0 0 auto;margin:0;position:relative;inset:auto;padding-block:15px}
.hero-opening>.mq .mq__t{min-width:200%;animation:mq 34s linear infinite}
.hero-opening>.mq:hover .mq__t{animation-play-state:running}
body.polished .hero-opening .hero .dsp{font-size:clamp(48px,min(7.4vw,12svh),108px);line-height:1.02}
.hero-opening .hero h1{margin-bottom:24px}
.hero-opening .hero__lede{font-size:clamp(16px,1.45vw,20px);line-height:1.65}
.hero-opening .hero__cta{margin-top:25px}
@media(min-width:701px) and (max-width:999px){
.hero-opening .hero__grid{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,.85fr);gap:28px}
body.polished .hero-opening .hero .dsp{font-size:clamp(46px,7.4vw,72px)}
.hero-opening .hero__cta{gap:9px}.hero-opening .hero__cta .btn{font-size:14px;padding:14px 17px}
}
@media(max-width:700px){
.hero-opening{--contact-height:calc(64px + env(safe-area-inset-bottom));--opening-header:70px;block-size:calc(100svh - var(--contact-height));min-block-size:500px}
.hero-opening>.hero{padding-top:calc(var(--opening-header) + 13px);padding-bottom:9px}
.hero-opening>.hero>.wrap{gap:9px;grid-template-rows:minmax(0,1fr) auto}
.hero-opening .hero__grid{display:flex;flex-direction:column;align-items:stretch;gap:12px;height:100%;min-height:0}
.hero-opening .hero__grid>div:first-child{flex:0 0 auto}
.hero-opening .hero__media--adam{flex:1 1 0;min-height:0;gap:0}
.hero-opening .hero .kicker{margin-bottom:12px;font-size:14px;gap:5px;letter-spacing:.1em}
body.polished .hero-opening .hero .dsp{font-size:clamp(38px,min(13vw,6.6svh),56px);line-height:1.02}
.hero-opening .hero h1{margin-bottom:15px}
.hero-opening .hero__lede{font-size:16px;line-height:1.6}
.hero-opening .hero__lede strong{font-size:16px;margin-bottom:4px;line-height:1.5}
.hero-opening .hero__cta{margin-top:17px;gap:9px}
.hero-opening .hero__cta .btn{min-height:46px;padding-block:11px}
.hero-opening .stamp{width:clamp(48px,7.2svh,70px);top:7px;right:7px}
.hero-opening .stamp__core{font-size:clamp(17px,2.6svh,23px)}
.hero-opening .stamp__core small{font-size:14px}
.home-polished .hero-opening .stats{gap:9px;grid-template-columns:repeat(4,minmax(0,1fr))}
.home-polished .hero-opening .stats .stat{padding:4px 0!important}
.hero-opening .stats .stat b{font-size:28px;line-height:1}
.hero-opening .stats .stat span{font-size:14px;line-height:1.45;margin-top:5px;letter-spacing:0}
.hero-opening>.mq{padding-block:12px}
.hero-opening>.mq .mq__t>span{font-size:14px;line-height:1.45;gap:16px;padding-right:16px}
}
@media(max-width:700px) and (max-height:720px){
.hero-opening .hero__media--adam{grid-template-rows:minmax(0,1fr);gap:0}
.hero-opening .hero__grid{gap:9px}
.hero-opening .hero .kicker{margin-bottom:9px}
.hero-opening .hero h1{margin-bottom:11px}
.hero-opening .hero__lede{font-size:16px;line-height:1.5}
.hero-opening .hero__cta{margin-top:12px}
.hero-opening .hero__cta .btn{min-height:43px;padding-block:9px}
.hero-opening .stats .stat b{font-size:25px}
.hero-opening .stats .stat span{font-size:14px}
}
@media(prefers-reduced-motion:reduce){.hero-opening>.mq .mq__t{animation:none}}
.hero-opening>.mq .mq__t>span{font-size:clamp(17px,1.7vw,23px);line-height:1.25}
@media(max-width:700px){.hero-opening{--contact-height:calc(65px + env(safe-area-inset-bottom))}.hero-opening>.mq .mq__t>span{font-size:16px;line-height:1.4}}

/* Keep the portrait square when either available dimension is smaller. */
.hero-opening .hero__media--adam{container-type:size}
.hero-opening .hero-portrait-frame{inline-size:min(100cqw,100cqh);block-size:min(100cqw,100cqh)}

/* Equal repeated halves keep the loop continuous, even on wide screens. */
.hero-opening>.mq .mq__t>span{flex:1 0 auto;justify-content:center}


/* Mobile: show the entire square photo at its natural aspect ratio.  Avoid
   forcing the portrait into the leftover height of a one-screen hero. */
@media (max-width:700px){
  .hero-opening{block-size:auto;min-block-size:calc(100svh - var(--contact-height))}
  .hero-opening>.hero{flex:0 0 auto}
  .hero-opening>.hero>.wrap{display:flex;flex-direction:column;gap:20px}
  .hero-opening .hero__grid{height:auto;min-height:0;gap:22px}
  .hero-opening .hero__media--adam{
    display:block;flex:none;align-self:stretch;container-type:normal;
    width:100%;height:auto;min-height:0;max-height:none
  }
  .hero-opening .hero-portrait-frame{
    inline-size:100%;block-size:auto;aspect-ratio:1;
    max-inline-size:100%;max-block-size:none
  }
  .hero-opening .hero-portrait-frame .shot{
    display:block;width:100%;height:auto;aspect-ratio:1
  }
  .hero-opening .hero-portrait-frame img.adam-photo{
    display:block;width:100%;height:auto;max-height:none;
    aspect-ratio:1;object-fit:contain;object-position:center
  }
}
