/* Final art direction for original product imagery. Never crop or stretch product details. */
.product-hero{gap:clamp(40px,6vw,88px);padding-bottom:54px;align-items:center}
.product-gallery{width:100%;max-width:600px;justify-self:center}
.product-hero-image{border:1px solid #e5e8ec;border-radius:10px;background:#f7f8fa}
.product-gallery .product-hero-image .product-hero-model{box-shadow:none;left:18px;top:18px}
.product-image-link:hover>img{transform:none}
.product-hero-image.kit-view{background:#171a1d}
.product-hero-image.kit-view:has([src$="6008.webp"]){background:#f7f8fa}
.gallery-caption{min-height:55px;padding-top:9px}
.gallery-arrows button{border-color:#d6dce4;transition:background .2s,color .2s,border-color .2s}
.gallery-arrows button:active{background:var(--blue);color:white}
.product-gallery .gallery-views{gap:10px;margin-top:3px}
.product-gallery .gallery-views>a{border-radius:7px;border-color:transparent;background:#f2f4f6;box-shadow:none}
.product-gallery .gallery-views>a[aria-current=true]{background:#fff;border-color:var(--blue);box-shadow:0 0 0 1px var(--blue)}
.product-gallery .gallery-views img{border-radius:4px}
.image-zoom-label,.kit-open,.q5-photo-open{border:1px solid #d8dfe7;background:#ffffffed;box-shadow:0 2px 12px #101a2910;backdrop-filter:blur(8px);color:var(--ink)}
.image-zoom-label,.kit-open{min-height:44px;display:flex;align-items:center;gap:14px;font-size:11px;border-radius:24px;padding:10px 16px;right:16px;bottom:16px}
.q5-photo-open{right:16px;bottom:16px}
.source-photo,.q5-photo{border-radius:8px}
.source-photo:focus-visible,.q5-photo:focus-visible{outline:3px solid var(--blue);outline-offset:4px}
@media(hover:hover){.source-photo:hover .kit-open,.product-image-link:hover .image-zoom-label,.q5-photo:hover .q5-photo-open{background:var(--blue);color:white;border-color:var(--blue)}}

/* Larger complete portraits use the available column without cover-cropping. */
.q5-roadside{grid-template-columns:minmax(0,1fr) minmax(0,1fr);padding:24px max(32px,calc((100vw - 1180px)/2));gap:6%;background:#111a25}
.q5-roadside-copy{padding:30px 0}
.q5-roadside>.q5-photo{display:block;width:100%;max-width:540px;justify-self:center;background:#111a25}
.q5-roadside>.q5-photo img{width:100%;height:auto;aspect-ratio:3/4;object-fit:contain}
.q5-portable{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:8%;align-items:center}
.q5-portable .q5-photo{width:100%;max-width:540px;justify-self:center}
.q5-portable .q5-photo img{width:100%;height:auto;aspect-ratio:3/4;object-fit:contain}
.q5-control-inner{gap:8%}
.q5-control-visual{width:100%;max-width:600px;justify-self:center}
.q5-control-visual .q5-photo img{width:100%;height:auto;aspect-ratio:1}
.q5-control-section{padding-block:76px}

/* Image metadata controls fit while preserving space before lazy loading. */
.product-functions{padding-block:10px 70px}
.function-chapter{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:8%;padding-block:64px}
.function-visual{min-width:0;display:grid;grid-template-columns:minmax(0,1fr);place-items:center}
.function-visual>.source-photo{width:100%;max-width:min(100%,calc(760px * var(--image-ratio,1)));margin-inline:auto}
.function-visual .source-photo img{width:100%;height:auto;max-height:none;aspect-ratio:var(--image-ratio,auto);object-fit:contain}
.function-light .function-visual>.source-photo{max-width:430px;background:#fff}
.function-small .function-visual{padding:24px;background:transparent}
.function-small .source-photo{max-width:360px}
.function-panorama{grid-template-columns:1fr;gap:32px}
.function-panorama .function-copy,.function-panorama:nth-child(even) .function-copy{order:0;display:grid;grid-template-columns:1fr 1fr;gap:0 8%;align-items:start}
.function-panorama .function-copy>.eyebrow{grid-column:1/-1}
.function-panorama .function-copy>h2{grid-column:1;grid-row:2/4;max-width:470px}
.function-panorama .function-copy>p:not(.eyebrow){grid-column:2;margin-top:0;max-width:530px}
.function-panorama .function-points{grid-column:2;margin-top:22px}
.function-panorama .function-visual>.source-photo{max-width:100%}
.function-details{gap:40px;margin-top:54px}
.scene-detail-grid .source-photo{width:100%;max-width:min(100%,var(--image-native-width,600px));margin-inline:auto}
.scene-detail-grid .source-photo img{width:100%;height:auto;max-height:300px;object-fit:contain;aspect-ratio:var(--image-ratio,auto)}
.scene-detail-grid h3{font-size:26px}

/* Accessory artwork and the list should read together. */
.box-section:has(.kit-overview){display:grid;grid-template-columns:minmax(0,1.25fr) minmax(0,1fr);gap:0 7%;align-items:start}
.box-section:has(.kit-overview)>.section-head{grid-column:1/-1}
.kit-overview{max-width:680px;width:100%;margin:0 auto}
.kit-overview img{width:100%;height:auto;max-height:470px;object-fit:contain}
.box-section:has(.kit-overview) .box-list{grid-template-columns:1fr;gap:0}
.box-section:has(.kit-overview) .box-list li{padding-block:13px;line-height:1.7}
.kit-overview figcaption{font-size:11px;line-height:1.8;margin-top:16px}

/* Reading orientation stays visible without adding another mobile toolbar. */
.product-jump{position:sticky;top:0;z-index:12;background:#fffffff5;backdrop-filter:blur(12px);box-shadow:0 3px 12px #17202b04}
.product-jump>.wrap{gap:30px;padding-block:6px;scrollbar-width:thin}
.product-jump a{position:relative;min-height:48px;color:var(--muted);transition:color .2s}
.product-jump a:after{content:'';position:absolute;bottom:0;left:0;right:0;height:2px;background:var(--blue);transform:scaleX(0);transform-origin:left;transition:transform .2s}
.product-jump a[aria-current=location]{color:var(--blue)}
.product-jump a[aria-current=location]:after{transform:scaleX(1)}
.product-jump a:focus-visible{outline-offset:-2px}
.image-viewer{border-radius:12px;padding:24px;max-height:94dvh}
.viewer-close{border-radius:24px;transition:background .2s}
.viewer-close:hover{background:#edf3ff}
.viewer-bar{padding-bottom:12px;border-bottom:1px solid var(--line);margin-bottom:16px}
.viewer-caption{max-width:650px;margin:16px auto 0;line-height:1.7}

/* Shared collection frames across Home, Products and related items. */
.hero-stage{border:1px solid #e7eaee;border-radius:10px}
.product-card .product-visual{border:1px solid #e5e8ec;border-radius:8px;background:#f5f6f8}
.product-card .product-visual>img{padding:10px}
.product-card[data-model="6008"] .product-visual>img{padding:0}
.product-meta h3{line-height:1.4}
.product-meta .model{font-variant-numeric:tabular-nums}
.product-card .circle-arrow{width:40px;height:40px}
.spotlight{border-radius:10px;overflow:hidden}
.spotlight-visual img{max-width:480px;padding:20px}
@media(max-width:900px){
 .product-hero{gap:36px}.function-chapter{gap:32px}.function-panorama{gap:28px}
 .q5-roadside{padding:28px 32px;gap:35px}.q5-roadside h2{font-size:54px}
 .box-section:has(.kit-overview){gap:0 30px}
}
@media(max-width:700px){
 .q5-roadside{grid-template-columns:1fr;padding:36px 20px;gap:30px}
 .q5-roadside-copy{padding:0}.q5-roadside>.q5-photo{max-width:100%}
 .q5-portable .q5-photo{max-width:100%}.q5-portable{grid-template-columns:1fr;gap:30px}
 .q5-control-section{padding-block:48px}.q5-control-visual{max-width:100%}
 .box-section:has(.kit-overview){grid-template-columns:1fr;gap:24px}
 .box-section:has(.kit-overview)>.section-head{margin-bottom:0}
 .box-section:has(.kit-overview) .box-list{grid-template-columns:1fr 1fr;column-gap:24px}
 .kit-overview{max-width:560px}.kit-overview img{max-height:390px}
}
@media(max-width:600px){
 .product-hero{gap:26px;padding-bottom:38px}.product-gallery{max-width:420px}
 .product-hero-copy h1{font-size:34px}.product-hero-image{border-radius:8px}
 .image-zoom-label,.kit-open{right:12px;bottom:12px;font-size:10px;padding:9px 13px;min-height:44px}
 .product-gallery .gallery-views{gap:8px}.gallery-arrows{gap:8px}
 .product-functions{padding-block:0 42px}.function-chapter{grid-template-columns:1fr;padding-block:40px;gap:27px}
 .function-chapter:nth-child(even) .function-copy{order:0}
 .function-copy h2{font-size:33px}.function-copy>p:not(.eyebrow){line-height:1.85}
 .function-visual>.source-photo{max-width:100%}
 .function-small .function-visual{padding:0}.function-small .source-photo{max-width:min(100%,360px)}
 .function-panorama .function-copy,.function-panorama:nth-child(even) .function-copy{display:block}
 .function-panorama .function-copy>p:not(.eyebrow){margin-top:20px}
 .function-panorama .function-visual>.source-photo{max-width:100%}
 .function-details{gap:34px}.scene-detail-grid .source-photo img{max-height:300px}
 .product-jump>.wrap{gap:24px;padding-inline:20px}.product-jump a{font-size:11px}
 .box-section:has(.kit-overview) .box-list{grid-template-columns:1fr}
 .image-viewer{padding:16px}.viewer-bar{margin-bottom:12px}.viewer-caption{font-size:11px}
 .product-card .product-visual>img{padding:5px}.product-card[data-model="6008"] .product-visual>img{padding:0}
 .spotlight-visual img{max-width:390px;padding:16px}
}
@media(prefers-reduced-motion:reduce){.product-jump a,.product-jump a:after,.gallery-arrows button,.viewer-close{transition:none}}
@media print{.product-jump{display:none}.function-chapter{break-inside:avoid}.product-gallery{max-width:350px}}
/* Touch scrolling and keyboard focus retain access without a persistent scrollbar. */
.product-jump>.wrap,.product-gallery .gallery-views{scrollbar-width:none}
.product-jump>.wrap::-webkit-scrollbar,.product-gallery .gallery-views::-webkit-scrollbar{display:none}

/* Page-by-page image audit: one detail frame, one wide frame, consistent stat baselines. */
.q5-facts>div{display:grid;grid-template-rows:auto 1fr;align-content:start;align-items:start}
.q5-facts dd{grid-row:1;display:grid;grid-template-rows:1em 24px;gap:12px;line-height:1;align-content:start;font-variant-numeric:tabular-nums}
.q5-facts dd span{display:block;font-size:16px;line-height:24px;margin:0;letter-spacing:0}
.q5-facts dt{grid-row:2;margin-top:12px;line-height:1.7;min-height:3.4em}
/* Preserve the source canvas. A fixed aspect ratio plus an intrinsic grid item
   clipped portrait images and letterboxed wide technical/kit photographs. */
.function-visual>.source-photo,.function-light .function-visual>.source-photo,.function-small .source-photo,.scene-detail-grid .source-photo{width:100%;max-width:min(100%,calc(760px * var(--image-ratio,1)));aspect-ratio:var(--image-ratio,auto);display:block;background:transparent}
.function-visual .source-photo img,.scene-detail-grid .source-photo img{display:block;width:100%;height:auto;max-height:none;aspect-ratio:var(--image-ratio,auto);object-fit:contain;object-position:center}
.function-small .function-visual{display:grid;grid-template-columns:minmax(0,1fr);justify-content:stretch;padding:0;background:transparent}
.function-small .source-photo{max-width:min(100%,360px)}
.function-panorama .function-visual>.source-photo{max-width:100%;aspect-ratio:var(--image-ratio,16/9)}
.q5-roadside>.q5-photo,.q5-portable .q5-photo{width:100%;height:auto;max-width:540px;aspect-ratio:var(--image-ratio,auto);display:block;background:transparent}
.q5-control-visual .q5-photo{width:100%;height:auto;aspect-ratio:var(--image-ratio,auto);display:block;background:transparent}
.q5-roadside>.q5-photo img,.q5-portable .q5-photo img,.q5-control-visual .q5-photo img{width:100%;height:auto;aspect-ratio:var(--image-ratio,auto);object-fit:contain}
.q5-control-visual{max-width:600px}
.kit-overview>.source-photo{aspect-ratio:var(--image-ratio,auto);display:block;background:transparent}
.kit-overview img{display:block;width:100%;height:auto;max-height:none;object-fit:contain}
.feature-diagram{width:100%;min-height:320px;aspect-ratio:4/3;padding:clamp(22px,3vw,38px);border:1px solid #d5dfeb;background:#f9fbff;border-radius:8px;display:flex;flex-direction:column;justify-content:center}
.diagram-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 22px}
.diagram-grid>div{border-top:1px solid #d5dfeb;padding-block:18px;display:flex;flex-direction:column;gap:7px}
.diagram-number{font-size:10px;color:var(--blue);letter-spacing:.1em}
.diagram-grid strong{font-size:17px;font-weight:600;line-height:1.4}
.feature-diagram-speeds .diagram-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
.feature-diagram-speeds strong{font-size:clamp(16px,2vw,27px);font-variant-numeric:tabular-nums;white-space:nowrap}
.diagram-grid small{font-size:12px;color:var(--muted)}
.diagram-footnote{font-size:11px;border-top:1px solid #d5dfeb;padding-top:20px;margin-top:12px}
.context-caption{font-size:10px;margin-top:12px;justify-self:start;color:var(--muted)}
@media(max-width:700px){.q5-facts dd{grid-template-rows:1em 20px;gap:9px}.q5-facts dd span{font-size:12px;line-height:20px}.q5-facts dt{margin-top:9px}.q5-roadside>.q5-photo,.q5-portable .q5-photo,.q5-control-visual{max-width:100%}}
@media(max-width:600px){.feature-diagram{min-height:270px;min-width:0;aspect-ratio:auto;padding:22px}.diagram-grid strong{font-size:15px}.feature-diagram-speeds strong{font-size:18px}.feature-diagram-speeds .diagram-grid{gap:10px}.function-panorama .function-visual>.source-photo{aspect-ratio:var(--image-ratio,16/9)}.function-visual>.source-photo{max-width:100%}}

/* Expanded scenes match the wide frame; cover absorbs subpixel ratio rounding only. */
.function-panorama .source-photo-expanded{background:transparent}
.function-panorama .source-photo-expanded img{object-fit:cover}

/* Each gallery view owns its canvas, including portrait source photography. */
.product-gallery .product-hero-image{border:0;aspect-ratio:var(--gallery-ratio,1);width:100%;max-width:100%;margin-inline:auto;background:#f7f8fa}
.product-hero-image .product-image-link{position:absolute;inset:0}
.product-hero-image .product-image-link>img{display:block;width:100%;height:100%;object-fit:contain;object-position:center}
.function-details article{min-width:0;padding:24px;border:1px solid #dce2e9;border-radius:10px;background:#fff}
.function-details article h3{margin:0 0 22px;font-size:25px}
.function-details article>p{margin-top:22px}
.b2-presets{display:flex;flex-wrap:wrap;gap:8px;margin-top:24px;list-style:none;padding:0}
.b2-presets li{padding:8px 12px;border:1px solid #cbd5e2;border-radius:20px;font-size:11px;background:#fff}
@media(max-width:600px){.function-details article{padding:20px}.function-details article h3{font-size:24px}.product-gallery .product-hero-image{max-width:100%}}

/* The two A8 technical cards share a full-width 16:9 image row. */
.function-details{align-items:stretch}
.function-details .source-photo{max-width:none;aspect-ratio:16/9}
.function-details .source-photo img{width:100%;height:100%;aspect-ratio:16/9;object-fit:cover}

/* Keep low-resolution accessory crops deliberate, with reserved space before loading. */
.function-small .function-visual>.source-photo{max-width:min(100%,360px)}
