/* Keep the prototype's large-desktop geometry. Compact overrides are needed
   only when the browser's content area is too short for the reference layout. */
@media (min-width:800px) {
  body.vg-home.vg-overlay :is(.products-section,.showcase,.home-services-gallery,.home-project-section) {
    scroll-margin-top:0;
  }
}
@media (min-width:800px) and (max-height:1239px) {
  /* Keep breathing room between chapters independent of their compact height. */
  body.vg-home.vg-overlay {
    --home-section-gap:clamp(80px,9svh,104px);
  }
  body.vg-home.vg-overlay .film-section.film-cinema {
    margin-bottom:var(--home-section-gap);
  }
  body.vg-home.vg-overlay :is(.products-section,.showcase,.home-services-gallery,.home-project-section) {
    --home-screen-height:calc(100svh - var(--vg-header-height) - 48px);
    --home-screen-padding:clamp(24px,3.2svh,44px);
    --vg-section-title:clamp(28px,min(2.8vw,5svh),52px);
    --vg-section-description:clamp(20px,min(1.65vw,3svh),30px);
    --vg-section-description-gap:12px;
    box-sizing:border-box;
    scroll-margin-top:0;
  }
  body.vg-home.vg-overlay .site-main>:is(.products-section,.home-services-gallery,.home-project-section) {
    display:flex;
    flex-direction:column;
    justify-content:center;
    padding-block:var(--home-screen-padding);
  }
  body.vg-home.vg-overlay :is(.products-section,.home-services-gallery,.home-project-section) .section-top {
    display:grid;
    grid-template-columns:minmax(0,1.25fr) minmax(0,1fr);
    align-items:center;
    gap:clamp(28px,5vw,80px);
    margin-bottom:clamp(22px,3svh,32px);
  }
  body.vg-home.vg-overlay :is(.products-section,.home-services-gallery,.home-project-section) .section-side {
    max-width:480px;
    justify-self:end;
    align-items:flex-start;
    gap:clamp(12px,1.6svh,18px);
  }
  body.vg-home.vg-overlay :is(.products-section,.home-services-gallery,.home-project-section,.showcase) :is(.home-section-intro,.hs-intro) {
    font-size:clamp(14px,.9vw,17px);
    line-height:1.7;
  }
  body.vg-home.vg-overlay .products-section .product-visual {
    height:min(var(--vg-home-card-media-height),clamp(160px,calc(var(--home-screen-height) - 425px),440px));
    aspect-ratio:auto;
  }
  .vg-home .products-section .product-info {padding-top:14px}
  .vg-home .products-section .product-info h3 {margin-top:6px;font-size:clamp(18px,1.2vw,23px);line-height:1.4}
  .vg-home .products-section .product-info p {margin-top:8px;font-size:clamp(13px,.8vw,15px);line-height:1.65;max-width:32em}

  body.vg-home.vg-overlay .showcase {
    min-height:min(var(--vg-home-panel-height),var(--home-screen-height));
    margin-block:var(--home-section-gap);
  }
  body.vg-home.vg-overlay .showcase-content {
    width:46%;
    max-width:640px;
    padding:clamp(80px,12svh,160px) var(--vg-card-padding) var(--home-screen-padding);
  }
  .vg-home .showcase .showcase-word {top:5%;font-size:clamp(80px,min(14vw,20svh),240px)}
  .vg-home .showcase .showcase-content>.home-section-intro {margin:20px 0 24px;max-width:30em}
  .vg-home .showcase>img {width:65%;height:100%;object-fit:contain}

  body.vg-home.vg-overlay .home-services-gallery {
    --hs-inset:clamp(20px,2vw,36px);
    margin-block:var(--home-section-gap);
  }
  .vg-home .home-services-gallery .hs-heading-main {max-width:none}
  .vg-home .home-services-gallery .hs-panels {height:auto;min-height:clamp(240px,calc(var(--home-screen-height) - 300px),660px)}
  .vg-home .home-services-gallery .hs-panel {height:auto;display:grid;align-items:end}
  .vg-home .home-services-gallery .hs-panel.is-active .hs-panel-content {
    position:relative;inset:auto;
    margin:calc(var(--hs-inset) + 32px) var(--hs-inset) var(--hs-inset);
  }
  .vg-home .home-services-gallery .hs-panel-content h3 {font-size:clamp(23px,min(2.1vw,4svh),38px);margin-bottom:14px}
  .vg-home .home-services-gallery .hs-panel-description {font-size:clamp(14px,.95vw,18px);line-height:1.7}
  .vg-home .home-services-gallery .hs-footer {padding-top:16px}

  .vg-home .home-project-section .home-project-category {margin-bottom:16px}
  body.vg-home.vg-overlay .home-project-section .project-image {
    height:auto;max-height:clamp(140px,calc(var(--home-screen-height) - 460px),420px);
    aspect-ratio:4/3;margin-bottom:12px;
  }
  .vg-home .home-project-section .project-card {display:flex;flex-direction:column}
  .vg-home .home-project-section .project-card h3 {font-size:clamp(17px,1.15vw,22px);line-height:1.4;margin-top:6px}
  .vg-home .home-project-section .home-project-data {margin-top:10px;font-size:clamp(12px,.8vw,14px);line-height:1.65}
  .vg-home .home-project-section .home-project-data strong {font-size:clamp(14px,.95vw,17px);line-height:1.5;margin-bottom:4px}
  .vg-home .home-project-section .home-project-link {margin-top:auto;padding-top:12px}
}
