/* TOP-only first-view tuning. Other pages and mobile naturally retain their content height. */
@media (min-width:1024px) and (min-height:700px){
 body.home #main > .hero{min-height:0;height:calc(100svh - var(--header));display:flex;flex-direction:column}
 body.home #main > .hero .hero-main{min-height:0;flex:1 1 auto;align-items:stretch;padding-top:clamp(35px,6.2vh,85px);padding-bottom:0}
 body.home #main > .hero h1{font-size:clamp(68px,min(8.542vw,12vh),150px)}
 body.home #main > .hero .hero-description{margin-top:clamp(18px,2.3vh,36px)}
 body.home #main > .hero .hero-description p:first-child{margin-bottom:clamp(10px,1.2vh,22px)}
 body.home #main > .hero .hero-left>small{margin-top:clamp(10px,1.6vh,28px)}
 body.home #main > .hero .hero-right{min-height:0;padding-bottom:0}
 body.home #main > .hero .hero-consult{margin-top:clamp(6px,1vh,16px);padding:clamp(12px,1.4vh,20px) 20px}
 body.home #main > .hero .expertise-strip{margin-top:clamp(6px,1vh,14px);margin-bottom:clamp(86px,9vh,110px);flex-shrink:0}
 body.home #main > .hero .expertise-strip a{min-height:clamp(72px,10vh,106px);padding:clamp(9px,1vh,16px) 12px}
}
@media (min-width:1024px) and (min-height:700px) and (max-height:800px){
 body.home #main > .hero .hero-main{padding-top:25px}
 body.home #main > .hero .hero-right ul{font-size:13px;line-height:1.85}
 body.home #main > .hero .hero-consult{padding:10px 14px}
 body.home #main > .hero .hero-consult>p{font-size:13px;margin:2px 0 8px}
 body.home #main > .hero .hero-consult .pill{min-height:37px}
 body.home #main > .hero .hero-description p+p{font-size:13px;line-height:1.65}
}
/* Natural height beats clipping on small desktop heights. */
@media (min-width:1024px) and (max-height:699px){body.home #main > .hero{min-height:0;height:auto}}

/* The 390px composition uses fluid panels with 20px side gutters. */
@media screen and (max-width: 767px) {
  #main:has(> .hero) { --page-gutter: 20px; --space: 64px; }
  .hero.panel { margin-inline: 0; border-radius: 8px; padding: 56px 20px 32px; gap: 28px; }
  .hero-main, .hero-left, .hero-right { display: contents; }
  .hero h1, .hero-description, .hero-left > small, .hero-consult { position: relative; z-index: 1; }
  .hero h1 { font-size: clamp(52px, 15.9vw, 62px); line-height: 1.1; }
  .hero-description { margin: 0; }
  .hero-description p:first-child { font-size: 20px; line-height: 1.8; margin-bottom: 20px; }
  .hero-description p + p { font-size: 15px; line-height: 1.8; }
  .hero-left > small { margin: 0; order: 1; }
  .hero-consult { margin: 0; padding: 20px; border-radius: 8px; text-align: left; }
  .hero-consult > p { font-size: 14px; line-height: 1.8; margin-block: 12px; }
  .hero-consult .pill { width: 100%; justify-content: center; gap: 12px; min-height: 54px; font-size: 15px; }
  .expertise-strip { margin: 0; }
  .expertise-group { gap: 8px; padding-right: 8px; }
  .expertise-strip .expertise-group a { min-height: 82px; padding: 14px; align-items: flex-start; text-align: left; gap: 4px; border-radius: 4px; }
  .expertise-strip span { margin: 0; }
  .expertise-strip strong { font-size: 16px; }

  .services, .why, .stories, .faq, .insights, .company-intro { padding-block: 64px; }
  .services .display, .faq .display { font-size: 48px; line-height: 1.1; }
  .services-heading, .why .offset-heading, .stories .offset-heading, .work .offset-heading { margin-bottom: 24px; }
  .services-heading > div { margin-top: 24px; }
  .services-heading p, .why-intro p, .work .offset-heading > div > p,
  .company-message > div:last-child p, .faq > div:first-child > p, .insights-heading p { font-size: 15px; line-height: 1.8; }
  .services-grid { gap: 24px; }
  .service-card { gap: 0; border-radius: 6px; overflow: hidden; background: white; }
  .service-card-head { padding: 12px; min-height: 48px; }
  .service-card-head h3 { font-size: 13px; }
  .service-card-head .arrow { width: 24px; height: 24px; font-size: 18px; }
  .service-card-image { aspect-ratio: 350 / 280; border: 0; border-radius: 16px; }
  .service-card-copy { padding: 22px; }
  .service-card-copy h4 { font-size: 22px; }
  .service-card-copy p { font-size: 13px; margin-top: 12px; }
  .why-grid { gap: 24px; }
  .why-image { aspect-ratio: 350 / 230; border-radius: 6px; }
  .why-intro h3 { font-size: 20px; margin-bottom: 24px; }
  .reason-grid { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .reason { padding: 24px; border-radius: 6px; min-height: 0; }
  .reason small { position: static; display: block; font-size: 11px; }
  .reason h3 { font-size: 28px; line-height: 1.1; margin: 10px 0; }
  .reason h4 { font-size: 18px; line-height: 1.5; margin-bottom: 10px; }
  .reason p { font-size: 15px; line-height: 1.8; }
  .work.panel { margin-inline: 0; padding-block: 64px; border-radius: 8px; }
  .process-grid { gap: 16px; }
  .process-grid li { padding: 20px; gap: 16px; min-height: 0; border-radius: 6px; }
  .process-grid li > div { flex: 1; }
  .process-grid li img { width: 40px; height: 40px; }
  .process-grid li small { position: static; align-self: flex-start; }
  .process-grid span:not(.asset-pending) { font-size: 15px; }
  .numbers-grid { gap: 28px 16px; padding-bottom: 28px; }
  .numbers-grid h3, .numbers-grid p { margin-top: 8px; }
  .numbers-grid p { font-size: 15px; }
  .numbers-grid > :nth-child(3) strong { font-size: 33px; }
  .company-message { padding-top: 28px; }
  .company-message > div + div { margin-top: 28px; }
  .company-message h2 { font-size: 27px; }
  .stories .display { font-size: 42px; max-width: 6.4em; }
  .stories-grid, .faq-list { gap: 24px; }
  .story-intro, .story { padding: 24px; background: white; border-radius: 6px; min-height: 0; }
  .story { gap: 20px; }
  .story-intro strong { font-size: 40px; }
  .story-intro h3 { font-size: 22px; }
  .story-intro p, .story blockquote { font-size: 15px; line-height: 1.8; }
  .story-person, .story-quote { min-height: 0; padding: 0; }
  .story-person h3 { font-size: 17px; }
  .story .stars { font-size: 16px; }
  .faq-item { border-radius: 4px; }
  .faq-item button { font-size: 16px; padding: 20px; gap: 12px; }
  .faq-answer p { font-size: 14px; line-height: 1.8; }
  .insights-heading { gap: 24px; margin-bottom: 24px; }
  .insights-heading .pill { margin: 0; font-size: 15px; min-width: 150px; justify-content: center; }
  .insights .articles-grid { gap: 24px; }
  .insights :is(.article-card, .article-feature) { display: flex; flex-direction: column; align-items: stretch; justify-content: flex-start; min-height: 0; padding: 0; background: white; color: var(--ink); border-radius: 6px; overflow: hidden; }
  .insights .article-feature { order: -1; }
  .insights .article-feature .media-layers, .insights .article-top { position: relative; padding: 0; width: 100%; aspect-ratio: 350 / 200; }
  .insights .article-top .article-thumb { width: 100%; height: 100%; }
  .insights .article-top .arrow { position: absolute; right: 12px; top: 12px; }
  .insights .article-info { padding: 20px; }
  .insights .article-info h3 { font-size: 21px; }
  .insights .article-feature .article-info :is(small, p) { color: var(--muted); }
}
