.homepage-compact .section{padding-top:54px;padding-bottom:54px}
.homepage-compact .hero{min-height:500px}
.homepage-compact .hero-copy{padding-top:44px;padding-bottom:32px}
.homepage-compact .hero h1{font-size:clamp(46px,4.8vw,70px)}
.homepage-compact .hero-foot{margin-top:28px}
.homepage-compact .hero .intro{margin:22px 0 26px}
.homepage-compact .section-top{margin-bottom:28px}
.homepage-compact .compact-services{border-top:0}
.homepage-compact .directory-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
.homepage-compact .directory-card{padding:22px}
.homepage-compact .directory-card:last-child{grid-column:auto}
.homepage-compact .directory-card h3{font-size:23px;margin:16px 0 12px}
.homepage-compact .directory-card p{font-size:14px;margin-bottom:18px}
.homepage-compact .customer-reviews{padding-top:44px;padding-bottom:44px}
.homepage-compact .reviews-heading{margin-bottom:24px}
.homepage-compact .customer-review{padding:24px}
.homepage-compact .review-footnote{margin-bottom:0}
.home-projects .section-top{align-items:end}
.home-projects .inline-link{white-space:nowrap;font-size:14px}
.carousel-track{position:relative;display:flex;gap:20px;overflow-x:auto;scroll-snap-type:x mandatory;scrollbar-width:thin;scrollbar-color:#9ca9c1 #eef1f6;padding:0 0 12px;overscroll-behavior-x:contain}
.carousel-track:focus-visible{outline:3px solid var(--blue);outline-offset:5px}
.carousel-card{flex:0 0 calc((100% - 20px)/2);min-width:0;margin:0;scroll-snap-align:start}
.carousel-card .gallery-photo{background:#eef1f6}
.carousel-card .gallery-photo img{width:100%;height:330px;object-fit:contain;transform:none!important}
.carousel-card figcaption{font-size:14px;padding-top:12px}
.carousel-controls{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-top:12px}
.carousel-controls>p{font-size:13px;color:var(--muted);margin:0}
.carousel-controls>div{display:flex;align-items:center;gap:14px}
.carousel-controls button{width:44px;height:44px;border:1px solid var(--line);background:white;color:var(--ink);font-size:22px;cursor:pointer}
.carousel-controls button:hover:not(:disabled){background:var(--ink);color:white}
.carousel-controls button:disabled{opacity:.35;cursor:default}
.carousel-controls button:focus-visible{outline:3px solid var(--blue);outline-offset:3px}
.carousel-status{min-width:104px;text-align:center;font-size:12px;font-weight:700}
.homepage-compact .home-videos{padding-top:12px}
.home-video-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px}
.home-video-card{margin:0;background:#f0f3f8;min-width:0}
.home-video-card video{display:block;width:100%;height:auto;aspect-ratio:16/9;object-fit:contain;background:#0c1425}
.home-video-card figcaption{padding:18px 20px}
.home-video-card strong{font-size:19px;line-height:1.3;display:block;margin-bottom:8px}
.home-video-card span,.home-video-card small{font-size:13px;line-height:1.5;color:var(--muted);display:block}
.home-video-card small{margin-top:10px}
.homepage-compact .process{border-top:1px solid var(--line)}
.homepage-compact .process-five .phase summary{min-height:150px;padding:18px 14px;gap:14px 8px}
.homepage-compact .contact{padding-top:50px;padding-bottom:54px;border-top:1px solid var(--line)}
.homepage-compact .contact h2{max-width:800px}
.homepage-compact .compact-coverage{font-size:14px;color:var(--muted);margin:24px 0 0}
.compact-coverage a{font-weight:700;text-decoration:underline;text-underline-offset:4px}
@media(max-width:1050px){.homepage-compact .directory-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.home-video-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.carousel-card .gallery-photo img{height:280px}}
@media(max-width:760px){.homepage-compact .section{padding-top:36px;padding-bottom:36px}.homepage-compact .hero{min-height:0}.homepage-compact .hero-copy{padding-top:36px;padding-bottom:28px}.homepage-compact .hero-photo{min-height:300px}.homepage-compact .customer-reviews{padding:32px 0}.home-projects .section-top{align-items:start;gap:18px;flex-direction:column}.carousel-card{flex-basis:88%}.carousel-card .gallery-photo img{height:270px}.carousel-controls{align-items:start;flex-direction:column}.carousel-controls>div{align-self:flex-end}.home-video-grid{gap:16px}.home-video-card figcaption{padding:15px}.home-video-card strong{font-size:18px}.homepage-compact .process-five .phase summary{min-height:90px;padding:18px;gap:12px}.homepage-compact .contact{padding-top:36px;padding-bottom:36px}.homepage-compact .home-videos{padding-top:6px}}
@media(max-width:520px){.homepage-compact .directory-grid,.home-video-grid{grid-template-columns:1fr}.homepage-compact .directory-card{padding:20px}.homepage-compact .directory-card h3{margin-top:10px}.carousel-card .gallery-photo img{height:230px}}
@media(prefers-reduced-motion:reduce){.carousel-track{scroll-behavior:auto}}

/* Keep the homepage service cards consistent on white. */
.homepage-compact .directory-card[href="/residential-electrician/"] h3{background:transparent;padding:0;border-radius:0;color:#ffdf45}
.homepage-compact .directory-card[href="/services/"]{background:#fff;color:var(--ink)}
.homepage-compact .directory-card[href="/services/"] h3{color:var(--blue)}
.homepage-compact .directory-card[href="/services/"] p{color:var(--muted)}
.homepage-compact .directory-card[href="/services/"] .number{color:var(--muted)}
.homepage-compact .directory-card[href="/services/"] .service-bottom{border-color:var(--line)}
.homepage-compact .directory-card[href="/services/"] b{color:var(--blue)}

/* A compact team introduction; individual profiles can be added later. */
.homepage-compact .home-team{background:#f3f5f8;border-top:1px solid var(--line)}
.team-intro{display:grid;grid-template-columns:1fr 1.25fr;gap:64px;align-items:start}
.team-intro h2{margin:0}
.team-tagline{font-size:21px;font-weight:600;color:var(--ink);margin:18px 0 0;padding-left:16px;border-left:4px solid var(--yellow)}
.team-story p{font-size:16px;line-height:1.7;color:var(--muted);margin:0 0 16px}
.team-story .inline-link{display:inline-block;margin-top:6px}
@media(max-width:760px){.team-intro{grid-template-columns:1fr;gap:24px}.team-tagline{font-size:19px}.team-story p{font-size:15px}}

/* Owner-supplied team portraits; originals retained without image edits. */
.team-photo-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px;list-style:none;padding:0;margin:32px 0 0}
.team-photo-grid li{min-width:0;margin:0;background:#e6e6e6;border-bottom:3px solid var(--yellow);overflow:hidden}
.team-photo-grid img{display:block;width:100%;height:auto;aspect-ratio:4/5;object-fit:cover;object-position:center top}
.team-member-card{display:flex;flex-direction:column}
.team-card-copy{padding:22px 22px 24px;background:#fff;flex:1}
.team-card-copy h3{margin:0 0 8px;font-size:24px;line-height:1.1;color:var(--ink)}
.team-role{margin:0 0 16px;font-size:13px;line-height:1.45;font-weight:800;letter-spacing:.035em;text-transform:uppercase;color:#5d4a00}
.team-bio{margin:0;font-size:15px;line-height:1.65;color:var(--muted)}

@media(max-width:760px){.team-photo-grid{grid-template-columns:1fr;gap:18px;margin-top:26px}.team-card-copy{padding:20px}.team-card-copy h3{font-size:22px}}
