:root {
  --experience-ink:#202322;
  --experience-paper:#f4f0e8;
  --experience-muted:#565650;
  --experience-red:#aa2730;
  --experience-rule:#d6d0c5;
}
body .hero-panel.editorial-hero {
  background:#101111 !important;
  color:#fff;
  border-bottom:0;
  isolation:isolate;
}
.editorial-hero .site-header { background:#151616; border-bottom-color:#383433; }
.editorial-hero .site-header-inner { min-height:84px; }
.editorial-hero .brand { flex-basis:188px; width:188px; overflow:visible; position:relative; }
.editorial-hero .brand::after {
  content:""; position:absolute; inset:0; pointer-events:none;
  mask: url('/assets/brand-lockup.webp') center/contain no-repeat;
  background:linear-gradient(108deg,transparent 32%,#fdf2d980 48%,transparent 62%) no-repeat;
  background-size:230% 100%; background-position:100% 0; opacity:0;
}
.editorial-scene { position:relative; overflow:hidden; min-height: min(630px, 52vw); display:grid; align-items:center; }
.editorial-photo,.editorial-photo img { position:absolute; inset:0; width:100%; height:100%; }
.editorial-photo img { object-fit:cover; object-position:center 84%; }
.editorial-scene::after { content:""; position:absolute; inset:0; background:linear-gradient(90deg,#0c0c0df5 0%,#0c0c0dc8 29%,#0c0c0d34 61%,transparent 84%),linear-gradient(0deg,#0c0c0db3,transparent 24%); pointer-events:none; z-index:0; }
.editorial-copy { position:relative; z-index:1; width:var(--frame); margin:0 auto; padding:clamp(54px,7.5vw,115px) 0; }
.editorial-copy .editorial-kicker { color:#f2b7ae; text-transform:uppercase; font-size:.75rem; font-weight:700; letter-spacing:.18em; display:flex; align-items:center; gap:12px; margin:0 0 18px; }
.editorial-kicker::before { content:""; width:30px; height:2px; background:#d66564; }
.editorial-copy h1 { font:700 clamp(3.5rem,7.7vw,7rem)/.88 var(--display-face); letter-spacing:-.025em; margin:0; max-width:14ch; color:#fff; }
.editorial-copy h1 em { display:block; color:#f0ad9f; font-style:normal; }
.editorial-copy > p:not(.editorial-kicker) { max-width:40ch; line-height:1.55; margin:24px 0; font-weight:450; color:#f3eeeb; }
.editorial-actions { display:flex; flex-wrap:wrap; gap:12px; align-items:center; }
.editorial-actions a { display:inline-flex; align-items:center; min-height:47px; font-weight:700; text-decoration:none; gap:13px; }
.editorial-actions .editorial-secondary { color:white; padding:8px 12px; text-underline-offset:5px; text-decoration:underline; }
.editorial-bottom { background:#1b1b1a; color:#e6dfd4; border-top:1px solid #3b3733; }
.editorial-bottom div { width:var(--frame); margin:auto; display:grid; grid-template-columns:repeat(3,1fr); }
.editorial-bottom span { padding:14px 0; text-align:center; font-size:.82rem; }
.editorial-bottom span + span { border-inline-start:1px solid #3b3733; }
.editorial-bottom b { color:white; }
.material-story { background:#1b1d1d; color:#f5f0e8; padding:clamp(48px,7vw,105px) 0; }
.material-wrap { width:var(--frame); margin:auto; }
.material-story h2 { color:#fff; font:700 clamp(3.2rem,6vw,5.4rem)/.91 var(--display-face); max-width:13ch; margin:11px 0 26px; }
.material-story .editorial-kicker { color:#f1ad9d; text-transform:uppercase; letter-spacing:.12em; font-size:.8rem; font-weight:700; }
body .page-hero .section-kicker { letter-spacing:.13em; }
html[data-theme=light] body .page-hero { background:#f4f0e8 !important; border-bottom:1px solid var(--experience-rule) !important; }
body .page-hero h1 { max-width:21ch; }
body .page-hero .breadcrumbs { margin-bottom:clamp(13px,2vw,26px); }
body .product-card { overflow:hidden; }
body .product-card-image,body .product-detail-image { border-radius:0; }
body .product-card .product-card-body { padding:16px 16px 20px; }
body .product-card h2 { line-height:1.2; }
body .product-card:hover .product-card-image img,body .product-card:focus-within .product-card-image img { transform:scale(1.035); }
body .product-card-image img { transition:transform .22s ease-out; }
body .product-detail .product-meta h2 { margin-top:8px; }
body .product-detail .spec-table { background:#ffffff0c; }
body .product-detail .spec-table th { width:34%; }
body .product-detail .spec-table td,body .product-detail .spec-table th { padding-block:13px; }
.product-image-zoom {
  position:absolute; inset:auto 11px 11px auto; color:#fff; background:#292725;
  border:1px solid #5e5954; padding:7px 12px; border-radius:4px; font:600 .8rem var(--body-face); cursor:pointer;
}
.product-detail-image:has(.product-image-zoom) { padding-bottom:48px; }
@media(max-width:1050px) { .product-detail-image:has(.product-image-zoom) { position:relative; } }
.product-image-dialog { width:min(92vw,1000px); background:#202322; color:#fff; border:1px solid #77716a; border-radius:8px; padding:12px; }
.product-image-dialog::backdrop { background:#151515e8; }
.product-image-dialog img { display:block; width:100%; object-fit:contain; max-height:75vh; }
.image-close { display:block; margin:0 0 10px auto; border:1px solid #88827c; background:#343334; color:white; padding:8px 12px; border-radius:4px; cursor:pointer; }
body .product-copy h2 { max-width:14ch; }
body .product-finder-zone { background:#eeeae1 !important; border-bottom:1px solid #d6d1c7; }
html[data-theme=dark] body .product-finder-zone { background:#202322 !important; color:white; }
@media(prefers-reduced-motion:no-preference) {
  .editorial-hero .brand::after { animation:brand-sweep 1.45s .4s ease-out both; }
  .editorial-hero .brand:hover::after { opacity:1; background-position:0 0; transition:background-position .45s; }
  @keyframes brand-sweep { 0%{opacity:0;background-position:100% 0} 23%,70%{opacity:1} 100%{opacity:0;background-position:0 0} }
}
@media(max-width:900px) {
  .editorial-copy h1 { font-size:clamp(3.5rem,9.2vw,6.1rem); }
  .editorial-hero .site-header-inner { min-height:70px; }
  .editorial-hero .brand { width:150px; flex-basis:150px; }
}
@media(max-width:660px) {
  .editorial-scene { min-height:550px; align-items:start; }
  .editorial-photo img { object-position:right 52%; }
  .editorial-scene::after { background:linear-gradient(180deg,#0d0d0ee8 0%,#0d0d0eb8 34%,#0d0d0e35 61%,#0d0d0e01 84%); }
  .editorial-copy { padding:38px 0 164px; }
  .editorial-copy h1 { font-size:clamp(3rem,11.5vw,4.8rem); max-width:100%; }
  .editorial-copy > p:not(.editorial-kicker) { font-size:.91rem; margin:17px 0; }
  .editorial-bottom div { width:100%; }
  .editorial-bottom span { padding:10px 5px; font-size:.72rem; }
}
@media(prefers-reduced-motion:reduce) {
  body .product-card:hover .product-card-image img { transform:none; }
}

body .category-card > a > img,body .category-card > a > figure > img {
  width:100%; height:auto; aspect-ratio:16/9; object-fit:cover;
}

.catalogue-jumps { display:flex; flex-wrap:wrap; gap:14px; margin-top:20px; }
.catalogue-jumps a { font-weight:650; padding:7px 14px; border:1px solid currentColor; border-radius:4px; text-decoration:none; }
.catalogue-jumps a:hover { background:#ad2831; color:white; border-color:#ad2831; }
.catalogue-jumps span { margin-inline-start:.55em; }
#catalogue-ranges,#catalogue-results { scroll-margin-top:22px; }
.editorial-hero .home-mobile-quote { display:none; }
@media(max-width:1050px) {
  .editorial-hero .home-nav { background:#151616; box-shadow:0 15px 30px #0008; }
  .editorial-hero .home-nav .home-mobile-quote { display:block; background:#a32831; color:white; border-radius:4px; padding:11px 12px; margin-top:8px; }
}

body:has(.material-story), .home-shell:has(.material-story) { overflow-x:clip; overflow-y:visible; }

/* The lockup has transparent safe space in the master itself. */
body .site-footer .footer-logo {
  display:block;
  width:min(245px,100%);
  max-width:100%;
  height:auto;
  object-fit:contain;
  object-position:left center;
  margin-inline-start:0;
}


main[data-product-family] > .page-hero { padding-block:clamp(30px,4.6vw,70px); }
main[data-product-family] > .section:has(.product-detail) { padding-block:clamp(22px,4vw,58px); }
.product-detail { --studio:#e7e1d5; --mount:#f7f4ed; }
[data-product-family="hosing"] .product-detail,.product-card[data-category="hosing"] { --studio:#dcdedc; --mount:#f0f1ed; }
[data-product-family="matting"] .product-detail,.product-card[data-category="matting"] { --studio:#e5ded0; --mount:#f3ede3; }
[data-product-family="extrusions"] .product-detail,.product-card[data-category="extrusions"] { --studio:#ddd9d2; --mount:#f3f0eb; }
[data-product-family="mouldings"] .product-detail,.product-card[data-category="mouldings"] { --studio:#dddeda; --mount:#f0f2ee; }
[data-product-family="sheeting"] .product-detail,.product-card[data-category="sheeting"] { --studio:#e9dfd2; --mount:#f7f1e8; }
[data-product-family="other-products"] .product-detail,.product-card[data-category="other-products"] { --studio:#e1e0dc; --mount:#f2f0ed; }
body .product-card .product-card-image,body .product-detail .product-detail-image {
  background:linear-gradient(144deg,var(--mount,#f4f2ee) 15%,var(--studio,#e3ddd3));
  border-color:#cfcac0;
}
body .product-card .product-card-image { aspect-ratio:4/3; padding:0; }
body .product-card .product-card-image img { max-width:95%; max-height:91%; border-radius:0; }
body .product-detail .product-detail-image { max-height:600px; }
body .product-detail .product-detail-image img { border-radius:0; }
html[data-theme=light] body .product-card { border-color:#d6d0c5; box-shadow:0 5px 16px #1b281b0c; }
body .product-card:hover,body .product-card:focus-within { box-shadow:0 8px 22px #25252225; }
body .product-card-body h2 { letter-spacing:-.02em; }
body .product-meta .spec-table { border-top:1px solid currentColor; }

@media(max-width:1050px) {
  body .site-footer .footer-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:30px 24px; }
  body .site-footer .footer-grid > * { grid-column:auto; min-width:0; }
}
@media(max-width:540px) {
  body .site-footer .footer-grid { gap:22px 17px; }
  body .site-footer .footer-grid > :first-child,
  body .site-footer .footer-grid > :last-child { grid-column:1/-1; }
  body .site-footer .footer-grid > :first-child { padding-bottom:12px; border-bottom:1px solid #393737; }
  body .site-footer .footer-grid > :last-child { padding-top:12px; border-top:1px solid #393737; }
}

.reference-inspector { min-width:0; }
.reference-inspector fieldset { min-width:0; margin:0; padding:0; border:0; }
.reference-inspector legend { margin-bottom:10px; font-weight:750; color:var(--text, inherit); }
.reference-options { display:flex; flex-wrap:wrap; gap:8px; margin-bottom:8px; }
.reference-control { display:inline-flex; align-items:center; gap:5px; padding:5px 8px; border:1px solid currentColor; border-radius:3px; cursor:pointer; font-size:.88rem; }
.reference-control input { width:auto; accent-color:#b52222; }
body .product-detail .reference-inspector .product-detail-image { position:relative; top:auto; display:block; padding:0 0 48px; min-height:0; max-height:none; aspect-ratio:auto; }
.reference-inspector .product-detail-image img { width:100%; height:auto; max-height:none; aspect-ratio:auto; display:block; }
.reference-highlight { position:absolute; left:var(--spot-x); top:calc((100% - 48px) * var(--spot-y)); width:var(--spot-width); height:calc((100% - 48px) * var(--spot-height)); border:2px solid #fa514a; box-shadow:0 0 0 1px #231b1b; border-radius:8px; pointer-events:none; }
.reference-notes { min-height:4rem; padding-top:8px; }
.reference-note { display:none; margin:0; }
.reference-inspector:has(input[value="1"]:checked) .reference-note-1,
.reference-inspector:has(input[value="2"]:checked) .reference-note-2,
.reference-inspector:has(input[value="3"]:checked) .reference-note-3 { display:block; }
.e-die:has(input[value="1"]:checked) { --spot-x:29%; --spot-y:.16; --spot-width:32%; --spot-height:.24; }
.e-die:has(input[value="2"]:checked) { --spot-x:28%; --spot-y:.33; --spot-width:23%; --spot-height:.27; }
.e-die:has(input[value="3"]:checked) { --spot-x:24%; --spot-y:.54; --spot-width:43%; --spot-height:.17; }
.cow-mat:has(input[value="1"]:checked) { --spot-x:42%; --spot-y:.35; --spot-width:40%; --spot-height:.37; }
.cow-mat:has(input[value="2"]:checked) { --spot-x:3%; --spot-y:.05; --spot-width:19%; --spot-height:.28; }

.e-die:not(:has(img[src="/assets/product-images/silicone-ribbed-e-die-726.webp"])) :is(legend,.reference-options,.reference-highlight,.reference-notes),
.cow-mat:not(:has(img[src="/assets/product-images/animal-cow-mats-studio.webp"])) :is(legend,.reference-options,.reference-highlight,.reference-notes) { display:none; }

.product-gallery ul { display:grid; grid-template-columns:repeat(auto-fill,minmax(min(100%,220px),1fr)); gap:16px; margin:16px 0 0; padding:0; list-style:none; }
.product-gallery a { display:grid; gap:8px; padding:8px; color:inherit; border:1px solid var(--line); }
.product-gallery img { width:100%; max-height:340px; aspect-ratio:4/3; height:auto; object-fit:contain; background:#f3f0ea; }




body .product-detail .product-detail-image:has(>img:is([src$="-studio.webp"],[src^="/api/reviewed-image.php?"])) {
  display:block; aspect-ratio:auto; min-height:0; max-height:none; padding:0 0 48px; background:#242529; border-color:#34353b;
}
body .product-detail .product-detail-image:has(>img:is([src$="-studio.webp"],[src^="/api/reviewed-image.php?"])) > img { width:100%; height:auto; display:block; }
body .product-card .product-card-image:has(img:is([src$="-studio.webp"],[src^="/api/reviewed-image.php?"])) { padding:0; background:#29292b; }
body .product-card .product-card-image img:is([src$="-studio.webp"],[src^="/api/reviewed-image.php?"]) { max-width:100%; max-height:100%; width:100%; height:100%; object-fit:contain; }


/* The sticky scene is its own scroll track. Static motion preferences use the two stage buttons. */
.material-story { background:#141315; }
.material-story h2 { max-width:none; }
.material-track { --pin-top:clamp(8px,3vh,26px); }
.material-story[data-ready] .material-track::after { content:""; display:block; height:clamp(820px,152svh,1500px); }
.material-frame { position:sticky; top:var(--pin-top); margin:0; }
.hose-photo {
  position:relative; isolation:isolate; overflow:hidden; container-type:inline-size;
  width:100%; aspect-ratio:3/2; max-height:78svh; background:#100e10;
}
.hose-photo img { display:block; width:100%; height:100%; object-fit:cover; object-position:center 76%; }
.hose-reveal {
  position:absolute; inset:0; pointer-events:none;
  mask-image:linear-gradient(transparent,transparent);
}
.hose-callouts { position:absolute; inset:0; pointer-events:none; }
.hose-callout {
  --anchor-x:54%; --anchor-y:52%; position:absolute; inset:0;
  color:#fff5eb; text-shadow:0 1px 8px #000,0 0 18px #000;
}
.hose-callout[data-layer=cover] { --anchor-x:46%; --anchor-y:37%; }
.hose-callout[data-layer=reinforcement] { --anchor-x:57%; --anchor-y:52%; }
.hose-callout[data-layer=tube] { --anchor-x:66%; --anchor-y:64%; }
.hose-callout h3,.hose-callout p {
  position:absolute; left:6%; width:32%; margin:0;
}
.hose-callout h3 {
  bottom:calc(100% - var(--anchor-y) + 10px); font-size:clamp(.74rem,1.6vw,1.2rem);
  letter-spacing:.12em; line-height:1.25; text-transform:uppercase;
}
.hose-callout p { top:calc(var(--anchor-y) + 10px); max-width:26ch; font-size:clamp(.72rem,1.28vw,1rem); line-height:1.38; }
.hose-callout::after,.hose-callout::before { content:""; position:absolute; top:var(--anchor-y); }
.hose-callout::after { left:6%; width:calc(var(--anchor-x) - 6%); height:1px; background:linear-gradient(90deg,#ead1bb44,#ffdbc3); }
.hose-callout::before {
  left:var(--anchor-x); width:6px; height:6px; transform:translate(-50%,-43%);
  border-radius:50%; background:#ffdbc3; box-shadow:0 0 0 3px #181017aa;
}
.hose-keyboard {
  position:absolute; z-index:2; display:flex; gap:6px; bottom:8px; left:6%;
  opacity:0; pointer-events:none;
}
.hose-keyboard[hidden] { display:none; }
.hose-keyboard:focus-within { opacity:1; pointer-events:auto; }
.hose-keyboard button {
  width:44px; height:44px; border:1px solid #d4aca1; border-radius:4px;
  color:#fff5eb; background:#231d20; font:inherit; cursor:pointer;
}
.hose-keyboard button:focus-visible { outline:2px solid #fff5eb; outline-offset:2px; }
.hose-announcement { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); }
@media (prefers-reduced-motion:no-preference) {
  .hose-callout:not([hidden]) { animation:hose-callout-in .22s ease-out both; }
  @keyframes hose-callout-in { from { opacity:0; } to { opacity:1; } }
}
@media (prefers-reduced-motion:reduce) {
  .material-story[data-ready] .material-track::after { display:none; }
  .material-frame { position:static; }
  .hose-keyboard { opacity:1; pointer-events:auto; }
}
@media(max-width:540px) {
  .hose-callout h3 { letter-spacing:.07em; width:37%; }
  .hose-callout p { width:34%; }
  .hose-callout[data-layer=cover] { --anchor-y:30%; }
}

.range-visual {
  margin:0; min-width:0; display:grid; grid-template-columns:minmax(0,1fr);
  height:auto; aspect-ratio:16/9; background:#262529; overflow:hidden;
}
body .range-visual > img,body .category-card > a > .range-visual > img {
  display:block; width:100%; height:100%; min-width:0; min-height:0;
  aspect-ratio:auto; object-fit:cover; border:0; border-radius:0;
}
body .split > .range-visual { align-self:center; }
body .category-card > a > .range-visual { width:100%; height:auto; aspect-ratio:16/9; }
body .split > .range-visual[data-visual="campaign"]:not([data-range="extrusions"],[data-range="mouldings"],[data-range="other-products"]) { aspect-ratio:16/10; }

/* Preserve the drawing surface and give linework space within the catalogue frame. */
body :is(.product-detail-image,.product-card-image):has(img[src*="silicone-p-die-"],img[src*="silicone-ribbed-e-die-726"]) {
  background:#27272a;
  padding:clamp(10px,2vw,25px);
}
body :is(.product-detail-image,.product-card-image) img:is([src*="silicone-p-die-"],[src*="silicone-ribbed-e-die-726"]) {
  object-fit:contain;
  max-height:100%;
  max-width:100%;
}

/* The outpainted range masters match the campaign frame without letterboxing. */
body .range-visual:is([data-range="extrusions"],[data-range="mouldings"],[data-range="other-products"]) {
  aspect-ratio:16/9;
}
body .category-card > a > .range-visual[data-range="hosing"] > img {
  object-position:center 75%;
}

/* Fit the media box to the approved composition where the standard card would add visible bars. */
body .product-card .product-card-image:has(>img[data-card-composition="intrinsic"]) {
  display:block;
  aspect-ratio:auto;
  padding:0;
}
body .product-card .product-card-image > img[data-card-composition="intrinsic"] {
  display:block;
  width:100%;
  height:auto;
  max-width:none;
  max-height:none;
  transform:none;
}

body .product-card .product-card-image:has(>img[data-card-composition="full"]) {
  padding:0;
  background:#242426;
}
body .product-card .product-card-image > img[data-card-composition="full"] {
  display:block;
  width:100%;
  height:100%;
  max-width:none;
  max-height:none;
  object-fit:contain;
  transform:none;
}
