/* Responsive hero media mask and wide-screen composition. */
.hero{
  overflow:hidden;
  background:#f8f9f8;
}
.hero:before{content:none!important}
.hero-media{
  position:absolute;
  inset:0;
  z-index:-2;
  overflow:hidden;
  background:#dbe6ee url('/assets/hq/hero.png') center/cover no-repeat;
  -webkit-mask-image:linear-gradient(109deg,transparent 0%,transparent 34%,rgba(0,0,0,.08) 38%,rgba(0,0,0,.34) 44%,rgba(0,0,0,.72) 51%,#000 60%,#000 100%);
  mask-image:linear-gradient(109deg,transparent 0%,transparent 34%,rgba(0,0,0,.08) 38%,rgba(0,0,0,.34) 44%,rgba(0,0,0,.72) 51%,#000 60%,#000 100%);
}
.hero-media:after{
  content:'';
  position:absolute;
  inset:0;
  pointer-events:none;
  background:
    radial-gradient(ellipse 16% 42% at 42% 18%,rgba(255,255,255,.32),transparent 72%),
    radial-gradient(ellipse 20% 48% at 43% 72%,rgba(255,255,255,.25),transparent 75%);
}
.hero-video{
  display:block;
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:center 52%;
}
.hero-copy{z-index:2}
.hero-copy{max-width:600px}
.hero h1,.hero-description{width:min(100%,440px);max-width:none}
.site-header{width:100%;max-width:1400px;margin-left:auto;margin-right:auto}
.home-site-header{max-width:1400px}
.hero-actions{display:flex;align-items:center;gap:24px;margin-top:14px}
.hero-actions .hero-quote{margin-top:0;flex:0 0 auto}
.hero-actions .hero-signature{
  position:static;
  width:110px;
  height:80px;
  object-fit:contain;
  pointer-events:none;
}

/* The same soft white-to-image transition is used on inner-page hero photos. */
.inner-hero{
  background-image:linear-gradient(109deg,#fff 0%,#fff 30%,rgba(255,255,255,.96) 36%,rgba(255,255,255,.78) 44%,rgba(255,255,255,.36) 53%,rgba(255,255,255,.06) 63%,transparent 72%),var(--hero-image);
}
.inner-hero-copy{position:relative;z-index:2}
.inner-hero h1{width:min(100%,620px);max-width:none}
.inner-hero-copy>p:not(.kicker){width:min(100%,500px);max-width:none}
footer>a:first-child,.site-footer>a:first-child{flex:0 0 92px}
footer img,.site-footer img{width:92px!important;height:92px!important;object-fit:contain!important;object-position:center!important}

@media (min-width:601px) and (max-width:1099px){
  .hero-copy{width:52%;max-width:470px;margin-left:5%;padding-top:7px}
  .hero h1,.hero-description{width:100%}
  .hero-media{
    -webkit-mask-image:linear-gradient(108deg,transparent 0%,transparent 31%,rgba(0,0,0,.1) 37%,rgba(0,0,0,.48) 46%,rgba(0,0,0,.82) 54%,#000 63%,#000 100%);
    mask-image:linear-gradient(108deg,transparent 0%,transparent 31%,rgba(0,0,0,.1) 37%,rgba(0,0,0,.48) 46%,rgba(0,0,0,.82) 54%,#000 63%,#000 100%);
  }
  .hero-video{object-position:58% center}
  .hero-actions .hero-signature{width:82px;height:60px}
}

@media (min-width:601px) and (max-width:767px){
  .hero-copy{width:62%;max-width:none}
  .hero h1{font-size:42px}
  .hero-media{
    -webkit-mask-image:linear-gradient(108deg,transparent 0%,transparent 35%,rgba(0,0,0,.08) 42%,rgba(0,0,0,.38) 52%,rgba(0,0,0,.76) 62%,#000 72%,#000 100%);
    mask-image:linear-gradient(108deg,transparent 0%,transparent 35%,rgba(0,0,0,.08) 42%,rgba(0,0,0,.38) 52%,rgba(0,0,0,.76) 62%,#000 72%,#000 100%);
  }
}

@media (min-width:1100px){
  .hero h1,.hero-description{width:min(100%,520px)}
}

/* Keep all four masked service images on one shared geometry through the
   constrained desktop range. Wide full-bleed layouts use the same sizing. */
@media (min-width:1100px) and (max-width:1440px){
  .service-card img,.service-card:nth-child(n) img{
    width:100%;
    max-width:100%;
    height:auto;
    aspect-ratio:1.84;
    object-fit:cover;
  }
}

/* At 599px and below, the moving image becomes a separate visual plane below the copy. */
@media (max-width:600px){
  .hero{height:900px;background:#f8f9f8}
  .hero-copy{width:100%;max-width:480px;margin:0;padding:9px 24px 0}
  .hero h1,.hero-description{width:min(100%,430px)}
  .hero-media{
    inset:auto 0 0;
    height:455px;
    -webkit-mask-image:linear-gradient(to bottom,transparent 0%,rgba(0,0,0,.04) 7%,rgba(0,0,0,.3) 18%,rgba(0,0,0,.74) 31%,#000 43%,#000 100%);
    mask-image:linear-gradient(to bottom,transparent 0%,rgba(0,0,0,.04) 7%,rgba(0,0,0,.3) 18%,rgba(0,0,0,.74) 31%,#000 43%,#000 100%);
  }
  .hero-media:after{
    background:radial-gradient(ellipse 70% 19% at 18% 17%,rgba(255,255,255,.34),transparent 75%);
  }
  .hero-video{object-position:62% center}
  .hero-actions{order:5;gap:16px}
  .hero-actions .hero-signature{width:94px;height:70px}
  .inner-hero{
    background-image:linear-gradient(to bottom,#f8f9f8 0%,#f8f9f8 47%,rgba(248,249,248,.96) 53%,rgba(248,249,248,.72) 63%,rgba(248,249,248,.22) 76%,transparent 86%),var(--hero-image);
  }
  .inner-hero h1,.inner-hero-copy>p:not(.kicker){width:100%}
}

@media (max-width:360px){
  .hero{height:930px}
  .hero-media{height:450px}
}

/* Full-bleed backgrounds on large displays, with content aligned to a 1440px reading grid. */
@media (min-width:1441px){
  .page,.inner-site{width:100%;max-width:none}
  .hero{height:clamp(600px,36vw,720px)}
  .hero-copy{
    margin-left:max(5%,calc((100vw - 1440px)/2 + 72px));
    padding-top:clamp(38px,3vw,70px);
  }
  .hero-media{inset:0;right:0}
  .hero-video{object-position:62% center}
  .gallery,.about,.faq,
  .inner-site>.content-wrap:not(.inner-area),.photo-story,.feedback-note,.site-footer{
    max-width:1440px;
    margin-left:auto;
    margin-right:auto;
  }
  .services,.project-slider{width:100%;max-width:none}
  .services-intro,.service-grid,.project-slider>.slider-heading,.project-slider>.slider-viewport,.project-slider>.slider-controls{
    width:100%;
    max-width:1440px;
    margin-left:auto;
    margin-right:auto;
  }
  .service-grid{padding-left:4%;padding-right:4%}
  .service-card img,.service-card:nth-child(n) img{width:100%;max-width:100%;object-fit:cover}
  .service-area,.contact,.inner-area,.inner-cta,.inner-hero{width:100%;max-width:none}
  .service-area,.contact,.inner-area,.inner-cta,.inner-hero{
    padding-left:max(5%,calc((100vw - 1440px)/2 + 72px));
    padding-right:max(5%,calc((100vw - 1440px)/2 + 72px));
  }
  .service-area{
    padding-left:max(5%,calc((100vw - 1900px)/2 + 72px));
    padding-right:max(5%,calc((100vw - 1900px)/2 + 72px));
  }
  .service-area .area-copy{
    width:390px;
    margin-left:auto;
    padding:14px 18px 15px;
    font-size:15px;
    line-height:1.5;
    background:linear-gradient(105deg,rgba(255,255,255,.94),rgba(255,255,255,.82));
    border-left:3px solid rgba(7,130,250,.72);
    box-shadow:0 12px 34px rgba(16,28,45,.1);
    -webkit-backdrop-filter:blur(5px);
    backdrop-filter:blur(5px);
    transform:none;
  }
  .inner-hero-copy{max-width:640px}
}

@media (min-width:2001px){
  .hero{height:760px}
  .hero-copy{padding-top:76px}
  .hero h1,.hero-description{width:min(100%,560px)}
}

footer,.site-footer{
  width:100%;
  max-width:1400px;
  margin-left:auto;
  margin-right:auto;
}

/* Keep clipped section edges overlapped by one physical pixel so browser
   antialiasing cannot expose the page background along the diagonal. */
.home-page .services{
  transform:translateY(-1px);
  margin-bottom:-1px;
}

@media (max-width:360px){
  .site-brand{width:108px}
}

/* Landscape-tablet copy stays wholly inside the white side of the hero mask. */
@media (min-width:1021px) and (max-width:1099px){
  .hero-copy{width:45%;max-width:450px}
  .hero h1,.hero-description{width:100%;max-width:430px}
  .inner-hero-copy{width:470px;max-width:470px}
  .inner-hero h1{width:100%;max-width:470px}
  .inner-hero-copy>p:not(.kicker){width:100%;max-width:430px}
}

