/* Canopy World — premium layer. Loaded after site.css; remove the <link> to switch it off.
   The canopy's roof frame appears as faint light lines on the plain dark panels only (never over
   project photos), plus gradients and picture-in-picture before/after insets. */

:root{
  --deep:#0a1825;
  --dusk:linear-gradient(104deg,rgba(8,20,32,.94) 0%,rgba(10,24,38,.80) 34%,rgba(11,26,40,.30) 62%,rgba(11,26,40,0) 82%);
  --glow:radial-gradient(70% 60% at 0% 100%,rgba(244,182,63,.20),rgba(244,182,63,0) 70%);
}

/* Type: lighter, larger display weight reads more considered than heavy bold */
h1,h2{font-weight:650;letter-spacing:-.028em}
.hero h1{font-size:clamp(2.3rem,5.4vw,4.25rem);line-height:1.06;max-width:14.5em}
.hero-lede{color:rgba(255,255,255,.86)}

/* Section labels: sentence case with a short rule, instead of tracked capitals */
.eyebrow{text-transform:none;letter-spacing:.01em;font-size:.92rem;font-weight:650}
.eyebrow::before{content:"";display:inline-block;width:26px;height:2px;margin-right:.7em;vertical-align:.3em;background:currentColor;opacity:.7}

/* ---------- Hero: gradient only (photo stays clean) ---------- */
.hero::after{background:var(--glow),var(--dusk),linear-gradient(0deg,rgba(8,20,32,.55),rgba(8,20,32,0) 40%)}
.hero{overflow:hidden}
.hero-inner{position:relative;z-index:1}

/* Picture-in-picture: the same project from another view (before, or underneath) */
.hero-pip{position:absolute;z-index:2;right:max(20px,calc((100vw - 1200px)/2));bottom:92px;margin:0;
  width:clamp(190px,19vw,270px);background:#fff;padding:5px 5px 0;border-radius:6px;
  box-shadow:0 30px 60px -18px rgba(0,0,0,.55),0 0 0 1px rgba(255,255,255,.2);
  transition:opacity .45s ease,transform .45s ease}
.hero-pip img{width:100%;aspect-ratio:4/3;object-fit:cover;border-radius:3px}
.hero-pip figcaption{font-size:.78rem;font-weight:650;color:var(--navy);padding:7px 4px 8px;display:flex;justify-content:space-between;gap:8px}
.hero-pip figcaption span{color:var(--muted);font-weight:500}
.hero-pip.is-off{opacity:0;transform:translateY(10px)}

/* ---------- Gradients on the dark bands ---------- */
.proof{background:linear-gradient(90deg,var(--deep),var(--navy) 55%,#16344f)}
.section-navy{position:relative;isolation:isolate;
  background:radial-gradient(70% 55% at 100% 0%,rgba(47,99,173,.38),rgba(47,99,173,0) 65%),
             radial-gradient(55% 45% at 0% 100%,rgba(244,182,63,.09),rgba(244,182,63,0) 70%),
             linear-gradient(180deg,var(--navy),var(--deep))}
.section-navy::before{content:"";position:absolute;left:0;right:0;top:0;height:62%;z-index:-1;pointer-events:none;
  background:url(../assets/hero/rafters-exposure.webp) center top/cover no-repeat;
  transform:scaleX(-1);mix-blend-mode:screen;opacity:.11;
  -webkit-mask-image:linear-gradient(180deg,#000 20%,transparent 100%);mask-image:linear-gradient(180deg,#000 20%,transparent 100%)}
.sector{background:linear-gradient(160deg,rgba(255,255,255,.09),rgba(255,255,255,.03));border-color:rgba(255,255,255,.12)}

/* ---------- Featured project: after photo, before inset ---------- */
.ba{display:block;position:relative;background:none}
.ba figure:last-child img{aspect-ratio:16/9}
.ba figure:first-child{position:absolute;z-index:2;left:22px;bottom:22px;width:min(34%,340px);
  background:#fff;padding:5px;border-radius:6px;box-shadow:0 24px 50px -16px rgba(0,0,0,.5)}
.ba figure:first-child img{aspect-ratio:4/3;border-radius:3px}
.ba figure:first-child figcaption{left:12px;top:12px}
.ba figure:last-child figcaption{left:auto;right:16px;top:16px}

/* Steps: the short accent bar picks up the same dusk gradient */
.steps li::before{width:56px;background:linear-gradient(90deg,var(--blue),var(--accent))}

@media (max-width:720px){
  .hero::after{background:radial-gradient(90% 40% at 0% 100%,rgba(244,182,63,.16),rgba(244,182,63,0) 70%),
    linear-gradient(0deg,rgba(8,20,32,.97) 0%,rgba(10,24,38,.92) 50%,rgba(11,26,40,.5) 66%,rgba(11,26,40,0) 86%)}
  .hero-pip{display:none}
  .ba figure:first-child{width:44%;left:12px;bottom:12px;padding:3px}
  .ba figure:last-child img{aspect-ratio:4/3}
}

/* Inner pages: same dusk gradient and roof-frame exposure on the dark page header */
.page-hero{position:relative;isolation:isolate;overflow:hidden;
  background:radial-gradient(60% 70% at 0% 100%,rgba(244,182,63,.12),rgba(244,182,63,0) 70%),
             radial-gradient(60% 60% at 100% 0%,rgba(47,99,173,.35),rgba(47,99,173,0) 65%),
             linear-gradient(180deg,var(--navy),var(--deep))}
.page-hero::before{content:"";position:absolute;left:0;top:0;width:118%;aspect-ratio:1600/350;z-index:-1;pointer-events:none;
  background:url(../assets/hero/rafters-exposure.webp) left top/100% 100% no-repeat;mix-blend-mode:screen;opacity:.16;
  -webkit-mask-image:linear-gradient(90deg,#000 15%,transparent 48%),linear-gradient(180deg,#000 40%,transparent 100%);-webkit-mask-composite:source-in;
  mask-image:linear-gradient(90deg,#000 15%,transparent 48%),linear-gradient(180deg,#000 40%,transparent 100%);mask-composite:intersect}
