/* Transparent vector contours from the company's equipment drawings. */
:root{
  --drawing-microscope:url("assets/drafting-microscope-v4.svg");
  --drawing-vacuum:url("assets/drafting-vacuum-v4.svg");
  --drawing-easel:url("assets/drafting-easel-v4.svg");
  --drawing-mixer:url("assets/drafting-mixer-v4.svg");
  --drawing-encapsulator:url("assets/drafting-encapsulator-v4.svg");
  --drawing-ndr:url("assets/drafting-ndr-v4.svg");
}
.company:before,.portfolio-preview:before,.contact:before,
.about-foundations:before,.archive-projects:before,.archive-contact:before{
  content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;background-repeat:no-repeat;
}
.company,.portfolio-preview,.contact,.about-foundations,.archive-projects,.archive-contact{
  position:relative;isolation:isolate;overflow:hidden;
}
/* Grids cover each drawing and fade only beyond its original bounds. */
.company,.portfolio-preview,.process,.contact,.about-intro,.about-foundations,
.archive-intro,.archive-projects,.archive-contact{background-image:none}
.hero-grid,.dark-grid,.about-example-grid{
  background-image:none;opacity:1;mask-image:none;-webkit-mask-image:none;pointer-events:none;
}
.hero-grid{display:none}
.hero:after{content:none;background-image:none}
.hero-drawing.hero-product{isolation:isolate}
.hero-drawing.hero-product img{width:115%;max-width:none;height:auto;margin-left:-7.5%;max-height:672px;filter:none;box-shadow:none}
.hero-drawing.hero-product:before{
  content:"";position:absolute;inset:-40px auto -36px;left:50%;width:min(calc(115% + 128px),660.9px);transform:translateX(-50%);z-index:-1;pointer-events:none;
  background-image:
    linear-gradient(to right,rgba(69,103,121,.085) 1px,transparent 1px),
    linear-gradient(to bottom,rgba(69,103,121,.085) 1px,transparent 1px),
    linear-gradient(to right,rgba(69,103,121,.025) 1px,transparent 1px),
    linear-gradient(to bottom,rgba(69,103,121,.025) 1px,transparent 1px);
  background-size:32px 32px,32px 32px,160px 160px,160px 160px;
  mask-image:linear-gradient(to right,transparent,#000 64px,#000 calc(100% - 64px),transparent),linear-gradient(to bottom,transparent,#000 56px,#000 calc(100% - 56px),transparent);
  mask-composite:intersect;
  -webkit-mask-image:linear-gradient(to right,transparent,#000 64px,#000 calc(100% - 64px),transparent),linear-gradient(to bottom,transparent,#000 56px,#000 calc(100% - 56px),transparent);
  -webkit-mask-composite:source-in;
}

/* Restrained line contrast keeps headings, copy and photographs in front. */
.company:before{background-image:var(--drawing-microscope);background-size:1064px auto;background-position:right -176px center;opacity:0.09}
.portfolio-preview:before{background-image:var(--drawing-mixer);background-size:462px auto;background-position:right -46px top -46px;opacity:0.09}
.dark-grid:after{background-image:var(--drawing-ndr);background-size:812px auto;background-position:right -146px center;background-repeat:no-repeat;filter:brightness(0) invert(1);opacity:0.075;pointer-events:none}
.process:before{inset:0;background-image:var(--drawing-vacuum);background-size:910px auto;background-position:right -158px center;background-repeat:no-repeat;opacity:0.09}
.contact:before{background-image:var(--drawing-easel);background-size:1092px auto;background-position:left -186px bottom -144px;opacity:0.075}
.about-intro:after{inset:0;background-image:var(--drawing-microscope);background-size:1064px auto;background-position:right -176px center;background-repeat:no-repeat;opacity:0.09}
.about-foundations:before{background-image:var(--drawing-vacuum);background-size:910px auto;background-position:right -158px bottom -130px;opacity:0.09}
.about-example-grid:after{content:"";position:absolute;inset:0;background:var(--drawing-easel) right -188px center/1148px auto no-repeat;filter:brightness(0) invert(1);opacity:0.07;pointer-events:none}
.archive-intro:after{inset:0;background-image:var(--drawing-ndr);background-size:700px auto;background-position:right -136px center;background-repeat:no-repeat;opacity:0.09}
.archive-projects:before{background-image:var(--drawing-mixer);background-size:462px auto;background-position:right -46px top -42px;opacity:0.09}
.archive-contact:before{background-image:var(--drawing-encapsulator);background-size:672px auto;background-position:left -126px center;opacity:0.08}
@media(max-width:760px){
  .hero-drawing.hero-product img{width:100%;margin-left:0;max-height:550px}
  .hero-drawing.hero-product:before{width:min(calc(115% + 128px),564.1px)}
  .company:before{background-size:784px auto;background-position:right -148px center;opacity:0.08}
  .portfolio-preview:before{background-size:364px auto;background-position:right -68px top -28px;opacity:0.08}
  .dark-grid:after{background-size:602px auto;background-position:right -136px top -14px;opacity:0.065}
  .process:before{background-size:672px auto;background-position:right -124px center;opacity:0.08}
  .contact:before{background-size:840px auto;background-position:left -184px bottom -104px;opacity:0.065}
  .about-intro:after{background-size:784px auto;background-position:right -148px center;opacity:0.08}
  .about-foundations:before{background-size:672px auto;background-position:right -124px bottom -80px;opacity:0.08}
  .about-example-grid:after{background-size:840px auto;background-position:right -156px center;opacity:0.06}
  .archive-intro:after{background-size:532px auto;background-position:right -132px center;opacity:0.08}
  .archive-projects:before{background-size:364px auto;background-position:right -68px top -24px;opacity:0.08}
  .archive-contact:before{background-size:532px auto;background-position:left -130px center;opacity:0.07}
}

/* User-selected transformer photographs retain their complete, natural framing. */
.featured-transformer .featured-image{aspect-ratio:auto;max-height:none;background:transparent}
.featured-transformer .featured-image img{height:auto;object-fit:contain}

/* Keep the enlarged contour inside tablet and compact laptop edges. */
@media(min-width:761px) and (max-width:1050px){.hero-drawing.hero-product img{width:107%}}
