/* Shared dedicated-page compositions and the registered before/after hero. */
.comparison-hero { position: relative; background: var(--color-dark); }
.comparison-stage { --reveal: 50%; position: relative; height: 100svh; min-height: 720px; overflow: hidden; }
.comparison-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.comparison-after { clip-path: inset(0 calc(100% - var(--reveal)) 0 0); }
.comparison-stage::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg,rgba(16,44,37,.48),transparent 24%,transparent 45%,rgba(16,44,37,.78)); pointer-events: none; z-index: 2; }
.comparison-line { position: absolute; z-index: 4; top: 0; bottom: 0; left: clamp(2px,var(--reveal),calc(100% - 2px)); width: 2px; background: white; transform: translateX(-1px); box-shadow: 0 0 12px #102c2550; pointer-events: none; }
.comparison-handle { position: absolute; left: 50%; top: 42%; width: 52px; height: 52px; border: 1px solid white; border-radius: 50%; background: #173f35bd; transform: translate(-50%,-50%); display: grid; place-items: center; color: white; font-size: 22px; backdrop-filter: blur(6px); }
.comparison-stage input[type=range] { position: absolute; inset: 0; z-index: 5; width: 100%; height: 100%; margin: 0; padding: 0; opacity: 0; cursor: col-resize; touch-action: pan-y; }
.comparison-stage:has(input:focus-visible) .comparison-handle { outline: 3px solid var(--color-accent); outline-offset: 6px; }
.comparison-badge { position: absolute; top: calc(var(--header-height) + 24px); z-index: 3; background: #102c25a6; padding: 7px 14px; color: white; font-size: 12px; border: 1px solid #ffffff66; border-radius: 3px; pointer-events: none; }
.comparison-badge--before { right: var(--gutter); }
.comparison-badge--after { left: var(--gutter); }
.only-before .comparison-badge--after, .only-after .comparison-badge--before { opacity: 0; }
.comparison-copy { position: absolute; z-index: 6; bottom: 80px; left: max(var(--gutter),calc((100% - var(--content-width))/2)); width: min(660px,58%); pointer-events: none; color: white; }
.comparison-copy h1 { color: white; font-size: clamp(45px,5.2vw,76px); max-width: 15ch; }
.comparison-copy p { max-width: 49ch; font-size: 17px; line-height: 1.65; margin-top: 23px; color: #eef3e9; }
.comparison-copy .button-row { pointer-events: auto; }
.comparison-copy .text-link { color: white; }
.comparison-controls { position: absolute; z-index: 7; right: calc(var(--gutter) + 64px); bottom: 26px; display: flex; gap: 8px; align-items: center; color: white; }
.comparison-controls button { border: 1px solid #ffffff99; border-radius: 4px; padding: 8px 13px; background: #102c2588; color: white; font-size: 12px; min-height: 40px; }
.comparison-controls button:hover { background: var(--color-primary); }
.comparison-hint { position: absolute; left: var(--gutter); bottom: 29px; z-index: 3; color: #fff; font-size: 11px; pointer-events: none; }
.page-hero { background: var(--color-primary); color: white; padding: calc(var(--header-height) + 55px) 0 65px; }
.page-hero h1 { color: white; max-width: 16ch; font-size: clamp(44px,5.2vw,76px); }
.page-hero .lead { color: #d6e1d2; max-width: 55ch; margin-top: 24px; }
.page-hero .hero-editorial { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 65px; }
.page-hero .media { aspect-ratio: 4/3; }
.page-intro { max-width: 900px; }
.page-intro h2 { margin-bottom: 26px; }
.page-intro p { color: var(--color-muted); }
.section-page-link { margin-top: 34px; display: flex; justify-content: flex-end; }
.text-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; }
.text-columns h2 { font-size: 36px; margin-bottom: 24px; }
.text-columns p { color: var(--color-muted); font-size: 16px; }
.feature-list { list-style: none; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 40px; }
.feature-list li { padding: 18px 0; border-bottom: 1px solid var(--color-border); display: flex; align-items: flex-start; gap: 14px; font-size: 15px; }
.feature-list .icon { width: 18px; color: var(--color-secondary); margin-top: 3px; }
.filter-bar { display: flex; flex-wrap: wrap; gap: 9px; margin-bottom: 40px; }
.filter-bar button { border: 1px solid var(--color-border); background: transparent; color: var(--color-primary); padding: 10px 19px; border-radius: 30px; font-size: 13px; }
.filter-bar button[aria-pressed=true] { color: white; background: var(--color-primary); border-color: var(--color-primary); }
.project-facts { width: 100%; border-collapse: collapse; }
.project-facts th, .project-facts td { text-align: left; padding: 18px 0; border-bottom: 1px solid var(--color-border); font-size: 15px; vertical-align: top; }
.project-facts th { width: 38%; font-weight: 600; padding-right: 24px; }
.project-facts td { color: var(--color-muted); }
.article-reading { display: grid; grid-template-columns: 230px minmax(0,760px); gap: 80px; max-width: 1120px; margin-inline: auto; }
.article-reading aside { align-self: start; position: sticky; top: 130px; font-size: 13px; }
.article-reading aside a { display: block; margin-bottom: 17px; color: var(--color-muted); }
.article-reading article section+section { margin-top: 50px; }
.article-reading article h2 { font-size: 38px; margin-bottom: 24px; }
.article-reading article p { color: var(--color-muted); }
.method-row { display: grid; grid-template-columns: 70px 1fr 1fr; gap: 45px; align-items: center; padding: 52px 0; border-top: 1px solid var(--color-border); }
.method-row .media { aspect-ratio: 16/9; }
.method-row h2 { font-size: 38px; margin-bottom: 20px; }
.method-row p { font-size: 16px; color: var(--color-muted); }
.method-row .step-num { border: 0; }
.space-links { display: flex; flex-wrap: wrap; gap: 20px; margin-top: 24px; }
.dedicated-gallery { grid-template-columns: repeat(3,1fr); }
.dedicated-gallery a { aspect-ratio: 4/3; }
.gallery-item { min-width: 0; }
.gallery-item figcaption { margin-top: 10px; color: var(--color-muted); font-size: 12px; }
.service-card h3 a, .fleet-card h3 a, .article-card h3 a { text-decoration: none; }
.service-card h3 a:hover, .fleet-card h3 a:hover, .article-card h3 a:hover { text-decoration: underline; text-decoration-thickness: 1px; }
.mobile-menu nav { grid-template-columns: 1fr 1fr; gap: 4px 30px; }
.mobile-menu nav a { font-size: clamp(24px,3vw,34px); }
@media (max-width: 1100px) {
 .comparison-copy { width: 65%; }
 .page-hero .hero-editorial { gap: 35px; }
 .article-reading { grid-template-columns: 180px 1fr; gap: 40px; }
}
@media (max-width: 800px) {
 .page-hero .hero-editorial, .text-columns { grid-template-columns: 1fr; }
 .article-reading { grid-template-columns: 1fr; }
 .article-reading aside { position: static; border-bottom: 1px solid var(--color-border); padding-bottom: 20px; }
 .method-row { grid-template-columns: 45px 1fr; gap: 22px; }
 .method-row .media { grid-column: 2; }
 .dedicated-gallery { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
 .comparison-stage { height: 58svh; min-height: 390px; }
 .comparison-image { object-position: 38% center; }
 .comparison-stage::after { background: linear-gradient(180deg,#102c2580,transparent 30%,transparent 72%,#102c2580); }
 .comparison-copy { position: relative; left: auto; bottom: auto; width: auto; padding: 38px 24px 44px; background: var(--color-paper); color: var(--color-primary); }
 .comparison-copy h1 { color: var(--color-primary); font-size: 46px; }
 .comparison-copy p { color: var(--color-muted); }
 .comparison-copy .text-link { color: var(--color-primary); }
 .comparison-copy .button-row { flex-direction: column; align-items: stretch; text-align: center; }
 .comparison-copy .text-link { justify-content: center; }
 .comparison-controls { right: 16px; left: 16px; bottom: 18px; justify-content: center; }
 .comparison-controls button { font-size: 11px; padding: 8px 10px; }
 .comparison-hint { display: none; }
 .comparison-handle { width: 44px; height: 44px; top: 50%; }
 .comparison-badge { top: 93px; }
 .page-hero { padding-top: 110px; padding-bottom: 38px; }
 .page-hero .breadcrumb { margin-bottom: 32px; }
 .feature-list { grid-template-columns: 1fr; }
 .article-reading article h2 { font-size: 32px; }
 .dedicated-gallery { grid-template-columns: 1fr; }
 .mobile-menu nav { grid-template-columns: 1fr 1fr; margin-top: 42px; gap: 12px 18px; }
 .mobile-menu nav a { font-size: 25px; }
}
