/* Extend the existing Thirmal visual language without changing other sections. */
.hero{height:auto;min-height:760px;display:flex;flex-direction:column;justify-content:center;padding-bottom:0}
.hero-content{padding-top:150px;padding-bottom:60px;margin-block:auto;width:min(calc(100% - var(--gutter)*2),var(--max))}
.hero h1{max-width:850px;font-size:clamp(46px,5.6vw,80px);line-height:1.04;text-wrap:balance}
.hero h1 .accent{display:inline}
.hero-actions{margin-top:36px}
.hero-benefits{position:relative;z-index:2;list-style:none;padding:25px 0 30px;display:grid;grid-template-columns:1.5fr repeat(4,1fr);gap:24px;border-top:1px solid #ffffff55;align-items:center}
.hero-benefits li{display:flex;gap:13px;align-items:center;font-size:16px;line-height:1.35;color:white}
.hero-benefits .icon{color:var(--accent);width:30px;height:30px}
.repair-preview{padding-block:65px}
.repair-preview .comparison-grid{margin:0;padding:0;border:0}
.project-showcase{background:var(--dark);color:white;padding-block:70px}
.project-showcase .eyebrow{color:var(--accent)}
.project-heading{display:flex;justify-content:space-between;gap:30px;align-items:end;margin-bottom:24px}
.project-heading p:not(.eyebrow){color:#d2d7d8;font-size:16px}
.project-controls{display:flex;align-items:center;gap:20px;margin-top:20px}
.project-controls button{background:transparent;border:1px solid #657075;color:white;padding:9px 15px;min-height:44px;font-size:14px}
.project-controls button:disabled{opacity:.4;cursor:default}
.project-controls span{font-size:14px;font-variant-numeric:tabular-nums}
.project-draft-note{font-size:14px;color:#d7c6ba;border-left:2px solid var(--accent);padding-left:12px;margin-bottom:24px}
.project-track{display:flex;gap:20px;overflow-x:auto;scroll-snap-type:x mandatory;scrollbar-color:var(--accent) #30373a;padding:4px 4px 22px;margin-inline:-4px}
.project-card{flex:0 0 calc((100% - 60px)/4);min-width:0;aspect-ratio: .67;background:transparent;padding:0;text-align:left;perspective:1200px;scroll-snap-align:start;color:white}
.project-card-inner{display:block;position:relative;width:100%;height:100%;transform-style:preserve-3d;transition:transform .65s cubic-bezier(.2,.7,.2,1)}
.project-card[aria-pressed=true] .project-card-inner{transform:rotateY(180deg)}
.project-face{position:absolute;inset:0;display:flex;flex-direction:column;backface-visibility:hidden;-webkit-backface-visibility:hidden;overflow:hidden;border:1px solid #535d62;background:linear-gradient(145deg,#343e43,#171b1e)}
.project-before{transform:rotateY(180deg);background:linear-gradient(145deg,#493b32,#171b1e)}
.project-phase{position:absolute;top:20px;left:20px;color:var(--accent);font-size:12px;letter-spacing:.15em;font-weight:bold}
.project-photo-placeholder{display:flex;flex:1;flex-direction:column;align-items:center;justify-content:center;text-align:center;color:#b3bdc1;font-size:18px;line-height:1.4;padding:65px 15px 25px}
.project-photo-placeholder small{font-size:13px;color:#99a4aa;margin-top:8px}
.project-caption{display:block;padding:20px;background:#111719cf}
.project-caption>strong{display:block;font-size:22px;font-weight:500;line-height:1.15;letter-spacing:-.03em;min-height:52px}
.project-metrics{display:grid;grid-template-columns:1fr;gap:12px;margin-top:18px;font-size:13px;color:#b8c2c6}
.project-metrics b{display:block;font-size:14px;font-weight:400;color:white}
.project-flip-hint{display:block;border-top:1px solid #677075;margin-top:20px;padding-top:14px;font-size:14px;color:var(--accent)}
@media(max-width:1100px){.project-card{flex-basis:calc((100% - 40px)/3)}.hero-benefits{gap:15px}.hero-benefits li{font-size:14px}}
@media(max-width:760px){.hero{min-height:750px}.hero-content{padding-top:130px;padding-bottom:40px}.hero h1{font-size:clamp(43px,8.5vw,64px);max-width:650px}.hero-benefits{grid-template-columns:repeat(2,minmax(0,1fr));gap:21px;padding-block:25px}.hero-benefits li:first-child{grid-column:1/-1}.hero-benefits .icon{width:25px;height:25px}.project-heading{display:block}.project-heading>div+div{margin-top:25px}.project-card{flex-basis:76%;max-width:340px;aspect-ratio:.72}.project-showcase{padding-block:45px}.repair-preview{padding-block:40px}}
@media(prefers-reduced-motion:reduce){.project-card-inner{transition:none}.project-track{scroll-behavior:auto}}
.hero{max-height:none}
.hero .hero-image{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;z-index:-2}
.hero .hero-shade{position:absolute;inset:0;z-index:-1;background:linear-gradient(90deg,rgba(13,20,24,.83),rgba(13,20,24,.15)),linear-gradient(0deg,rgba(13,20,24,.9),transparent 65%)}
@media(max-width:760px){.hero .hero-image{object-position:65% center}.hero .hero-shade{background:linear-gradient(90deg,rgba(13,20,24,.88),rgba(13,20,24,.35)),linear-gradient(0deg,rgba(13,20,24,.92),transparent)}}

/* Independent project photos, framed consistently on both sides. */
.repair-preview .comparison-image{aspect-ratio:1/1}
.repair-preview .comparison-side{background-size:cover;background-position:center}
.repair-preview .comparison-before{background-image:url('/assets/repair-before.webp')}
.repair-preview .comparison-after{background-image:url('/assets/repair-after.webp')}
.comparison-slider{touch-action:none}

.project-face .project-site-photo{width:100%;height:100%;object-fit:cover;position:absolute;inset:0}.project-face:has(.project-site-photo) .project-caption{position:relative;margin-top:auto;background:#111719ed}.project-face:has(.project-site-photo) .project-phase{z-index:1;background:#111719d9;padding:5px 9px}
/* Give case-study photos their own area, clear of the information panel. */
.project-card{aspect-ratio:.53}
.project-face .project-site-photo{position:relative;inset:auto;flex:1 1 0;min-height:0;height:0;width:100%;object-fit:cover;object-position:50% 75%}
.project-face:has(.project-site-photo) .project-caption{flex:0 0 auto;margin-top:0;background:#111719}
@media(min-width:1101px){.project-card{flex-basis:calc((100% - 40px)/3)}}
@media(max-width:760px){.project-card{aspect-ratio:.53;max-width:380px}}

/* Landscape project photographs shown in full, with a separate details panel. */
.project-card{flex-basis:calc((100% - 20px)/2);aspect-ratio:auto;align-self:flex-start;max-width:none}
.project-card-inner{height:auto}
.project-after{position:relative}
.project-before{position:absolute}
.project-face .project-site-photo{flex:none;width:100%;height:auto;aspect-ratio:1265/752;object-fit:contain;object-position:center;background:#171b1e}
.project-photo-placeholder{flex:none;aspect-ratio:1265/752;padding:60px 20px 30px}
.project-caption>strong{min-height:0}
.project-metrics{grid-template-columns:1fr 1fr}
.project-face .project-caption{flex:0 0 auto}
@media(max-width:760px){.project-card{flex-basis:90%;max-width:none;aspect-ratio:auto}.project-caption{padding:18px}.project-caption>strong{font-size:22px}}

.project-caption .project-client-logo{width:115px;height:38px;object-fit:contain;object-position:left center;margin:0 0 12px}

/* Hide the inactive face explicitly so labels cannot bleed through mirrored. */
.project-face{backface-visibility:hidden;-webkit-backface-visibility:hidden}
.project-after[aria-hidden="true"],.project-before[aria-hidden="true"]{visibility:hidden;pointer-events:none}
.project-face[aria-hidden="false"]{visibility:visible}
