/* Adjacent grey sections share a continuous background. */
:is(.roofy-stats, .services, .roofy-process, .materials-section, .testimonials-section, .roofy-estimate, .roofy-notes, .inner-grey) {
  --section-fade: clamp(56px, 8vw, 120px);
  --section-grey: #f7f8f5;
  --section-top: var(--paper);
  --section-bottom: var(--paper);
  background: linear-gradient(
    to bottom,
    var(--section-top),
    var(--section-grey) var(--section-fade),
    var(--section-grey) calc(100% - var(--section-fade)),
    var(--section-bottom)
  );

  & + & {
    --section-top: var(--section-grey);
  }

  &:has(+ &) {
    --section-bottom: var(--section-grey);
  }
}

/* Keep the established bento, with a consistent spacing rhythm. */
.stats-bento{grid-template-rows:136px 244px 88px;gap:12px;padding:12px}
.stat-roofs,.stat-warranty{padding:32px}
.stat-roofs .stat-value{font-size:clamp(72px,5.8vw,88px);margin-bottom:16px}
.stat-roofs h3,.stat-quote h3,.stat-warranty h3{font-size:22px;line-height:1.18}
.stat-roofs .stat-support{margin-top:12px;max-width:260px}
.stat-roofs>img{height:52%}
.stat-crew{padding:28px;gap:24px;align-items:center}
.stat-crew h3{font-size:19px;line-height:1.2}
.stat-crew-value{font-size:46px;line-height:1}
.stat-crew-value>span{margin-top:8px;font-size:14px}
.stat-quote{padding:28px}
.stat-quote .stat-value{font-size:68px;line-height:1}
.stat-quote-copy .stat-support{margin-top:14px}
.stat-warranty .stat-value{font-size:88px;line-height:1}
.stat-warranty .stat-support{margin-top:14px;max-width:260px}
.stat-record{padding:20px 28px}
.stat-process-link{padding:8px 8px 8px 12px;min-height:42px}

/* Editorial process: introduction and compact tabs beside a tall visual. */
.process-editorial{padding-top:100px;padding-bottom:120px}
.process-editorial .process-grid{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:clamp(48px,6vw,100px);align-items:stretch}
.process-intro{display:flex;flex-direction:column;align-items:flex-start;padding-block:6px 0}
.process-intro h2{font-size:48px;line-height:1.04;letter-spacing:-1.45px;max-width:520px}
.process-intro .landing-eyebrow{margin-bottom:24px}
.process-intro-description{max-width:350px;font-size:15px;line-height:1.6;color:#72786a;margin-top:24px;margin-bottom:80px}
.process-editorial .process-step-list{width:100%;align-self:auto;margin-top:auto}
.process-editorial .process-step{display:grid;grid-template-columns:minmax(0,1fr) 16px;align-items:center;gap:20px;padding:22px 0;flex:none}
.process-editorial .process-step-title{font-size:18px;line-height:1.25;letter-spacing:-.4px}
.process-editorial .process-step-description{display:none;font-size:14px;margin-top:10px;max-width:350px}
.process-editorial .process-step.is-current .process-step-description{display:block}
.process-step-symbol{position:relative;width:12px;height:12px;opacity:.6}
.process-step-symbol::before,.process-step-symbol::after{content:'';position:absolute;width:10px;height:1px;left:1px;top:5px;background:currentColor}
.process-step-symbol::after{transform:rotate(90deg);transition:transform 180ms var(--ease-out)}
.process-step.is-current .process-step-symbol::after{transform:rotate(0)}
.process-editorial .process-visual{min-height:650px;border-radius:10px}
.process-editorial .process-panel::after{background:linear-gradient(180deg,#00000008,#00000026)}
.process-editorial .process-evidence{top:50%;left:50%;right:auto;bottom:auto;transform:translate(-50%,-50%);width:calc(100% - 72px);max-width:370px;padding:28px;background:#fff;border:1px solid #ffffffb3;border-radius:8px;box-shadow:0 16px 50px #0002;backdrop-filter:none;color:#20291a}
.process-editorial .process-evidence-label{font-size:12px;margin-bottom:12px;color:#7c8573}
.process-editorial .process-evidence h3{font-size:22px;line-height:1.15;letter-spacing:-.55px;margin-bottom:26px;color:#1c2516}
.process-metrics{display:grid;grid-template-columns:1fr 1fr;gap:24px;padding-bottom:24px;border-bottom:1px solid #e8ebe3}
.process-metrics strong{display:block;font-family:'Neue Montreal',sans-serif;font-size:38px;font-weight:500;line-height:1;letter-spacing:-1px;color:#25371c}
.process-metrics strong>span{font-family:Inter,sans-serif;font-size:16px;font-weight:400;letter-spacing:-.3px;margin-left:2px;color:#7d8a6c}
.process-metrics p{font-size:12px;line-height:1.5;margin-top:12px;color:#78816e}
.process-checks{margin:20px 0 0;display:grid;gap:13px}
.process-checks>div{display:flex;justify-content:space-between;align-items:baseline;gap:20px;font-size:12px;line-height:1.5}
.process-checks dt{color:#838b7a}
.process-checks dd{margin:0;color:#46533b;text-align:right}

/* Fixed material samples; only the full open row uses the large image. */
.material-trigger-inner{grid-template-columns:minmax(110px,.75fr) 64px minmax(0,1.5fr) 16px;gap:24px}
.material-preview-anchor{width:64px;height:52px;border-radius:6px;overflow:hidden;opacity:1;transition:opacity 180ms ease}
.material-preview-anchor>img{display:block;width:100%;height:100%;object-fit:cover}
.material-row:not(.is-open),.material-row.is-morphing{overflow:clip}
.material-visual,.material-row:not(.is-open) .material-visual{inset:0;width:100%;height:100%;transform:none;z-index:0;border-radius:0;opacity:0;transition:opacity 400ms var(--ease-out)}
.material-row.is-open .material-visual{opacity:1}
.material-row.is-open .material-preview-anchor{opacity:0}
.material-row.is-open .material-copy,.material-row.is-open .material-facts{transition-delay:120ms}
.material-row:not(.is-open) .material-copy,.material-row:not(.is-open) .material-facts{transition-delay:0s}

/* Short, directional digit rolls for estimate changes. */
.rolling-price{white-space:nowrap;font-variant-numeric:normal}
.price-visual{display:inline-flex;align-items:baseline;letter-spacing:-.035em}
.price-digit{position:relative;display:inline-block;overflow-x:visible;overflow-y:clip;height:1.3em;line-height:1.3;width:auto;flex-shrink:0;vertical-align:bottom}
.price-digit-old,.price-digit-new{position:absolute;inset:0;display:block;line-height:1.3}
.price-digit-measure{display:block;visibility:hidden;line-height:1.3}
.price-sr{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}

.roofy-faq-item summary{font-size:20px}
.roofy-footer-landscape{background:#fff}
.footer-landscape-art{inset:0;mask-image:linear-gradient(180deg,transparent 0%,transparent 14%,#000 61%,#000 100%);-webkit-mask-image:linear-gradient(180deg,transparent 0%,transparent 14%,#000 61%,#000 100%)}
.footer-landscape-haze{background:linear-gradient(180deg,#fff 0%,#ffffffe6 12%,#ffffff70 30%,transparent 56%),linear-gradient(0deg,#10200899 0%,transparent 32%)}

@media(max-width:1050px){.stat-roofs,.stat-warranty{padding:28px}.stat-crew{padding:24px;gap:16px}.stat-crew h3{font-size:18px}.stat-quote{padding:26px}.stat-warranty .stat-value{font-size:80px}.process-editorial .process-grid{gap:40px}.process-intro h2{font-size:42px}.process-editorial .process-evidence{width:calc(100% - 40px);padding:24px}.process-metrics{gap:18px}.process-metrics strong{font-size:34px}.process-checks>div{gap:12px}}
@media(max-width:850px){.process-editorial .process-grid{gap:32px}.process-intro h2{font-size:38px}.process-intro-description{font-size:14px;max-width:300px;margin-bottom:60px}.process-editorial .process-evidence{width:calc(100% - 32px);padding:20px}.process-editorial .process-evidence h3{font-size:21px}.process-metrics{gap:14px}.process-metrics strong{font-size:31px}.process-metrics p,.process-checks>div{font-size:12px}.material-trigger-inner{grid-template-columns:minmax(95px,.65fr) 56px minmax(0,1.4fr) 14px;gap:18px}.material-preview-anchor{width:56px;height:48px}.roofy-faq-item summary{font-size:18px}}
@media(max-width:750px){.stats-bento{grid-template-rows:136px 244px 300px 88px}.stat-roofs .stat-value{font-size:66px}.stat-warranty .stat-value{font-size:80px}.stat-crew h3{font-size:18px}}
@media(max-width:650px){.process-editorial{padding-top:72px;padding-bottom:80px}.process-editorial .process-grid{grid-template-columns:1fr;gap:32px}.process-intro h2{font-size:38px}.process-intro-description{margin-bottom:36px;max-width:350px}.process-intro .landing-eyebrow{margin-bottom:20px}.process-editorial .process-step{padding:18px 0}.process-editorial .process-visual{min-height:570px}.process-editorial .process-evidence{width:calc(100% - 48px);max-width:370px;padding:26px}.process-editorial .process-evidence h3{font-size:22px}.process-metrics strong{font-size:36px}.roofy-faq-item summary{font-size:19px}.footer-landscape-art{inset:auto 0 0;height:72%;mask-image:linear-gradient(180deg,transparent 0%,#000 54%,#000);-webkit-mask-image:linear-gradient(180deg,transparent 0%,#000 54%,#000)}}
@media(max-width:600px){.stats-bento{grid-template-rows:auto;gap:10px;padding:10px}.stat-roofs{min-height:440px;padding:30px 24px}.stat-roofs .stat-value{font-size:72px}.stat-crew{padding:26px;min-height:136px}.stat-quote{padding:28px 26px;min-height:240px}.stat-warranty{padding:28px 26px;min-height:320px}.stat-record{padding:24px 26px;min-height:132px}.material-trigger-inner{grid-template-columns:48px minmax(0,1fr) 14px;grid-template-rows:1fr 1fr;gap:4px 14px;padding-block:20px}.material-preview-anchor{grid-column:1;grid-row:1/3;width:48px;height:48px}.material-name{grid-column:2;grid-row:1}.material-price{grid-column:2;grid-row:2}.material-chevron{grid-column:3;grid-row:1/3}.process-editorial .process-step-description{font-size:14px}}
@media(max-width:360px){.process-editorial .process-evidence{width:calc(100% - 32px);padding:20px}.process-metrics strong{font-size:32px}.stat-crew h3{font-size:17px}.material-trigger-inner{gap:4px 10px}.material-name{font-size:17px}}
@media(prefers-reduced-motion:reduce){.material-visual,.material-preview-anchor,.process-step-symbol::after{transition:none!important}.price-digit-old,.price-digit-new{animation:none!important}}

/* CTA team image */
.roofy-contact-photo{object-position:center 28%}
