/* Chemco Group: product page, design 3 (the tour). Loaded after assets/site.css and assets/p3d/p3d.css.
   1 the tour: the 3D container stays pinned on the right while five stops scroll past on the left,
     and the camera moves to each one (overview, capacity, neck, from above, finish)
   2 specifications: the drawing beside the full sheet
   3 the rest of the range
   Header, inquiry block and footer keep the site's own styles. */

:root{
  --tr-haze:#E6ECF1;   /* light box: the colour behind clear PET */
  --tr-frost:#F5F8FA;
  --tr-ink:#13233A;
  --tr-blue:#004A94;
  --tr-rule:#C6D2DD;
  --tr-muted:#4A5B70;
  --tr-green:#006C32;
  --tr-sans:var(--sans);   /* the site's own type: Poppins for text, Bebas Neue (var(--display)) for headings */
  --hh:77px;            /* header height, set by tour.js */
}

.tr,.tr-specs,.tr-range{font-family:var(--tr-sans);color:var(--tr-ink)}

/* ---------- 1 the tour ---------- */
.tr{background:var(--tr-haze);position:relative}
.tr-wrap{max-width:1320px;margin:0 auto;padding:0 clamp(20px,3vw,40px);display:grid;grid-template-columns:minmax(0,5fr) minmax(0,6fr);column-gap:clamp(24px,3vw,56px)}

.tr-stop{min-height:calc(100vh - var(--hh));min-height:calc(100svh - var(--hh));display:flex;flex-direction:column;justify-content:center;padding:72px 0;scroll-margin-top:var(--hh);max-width:520px}
.tr-first{justify-content:flex-start;padding-top:clamp(32px,4vw,56px);max-width:none}

.tr .crumbs{color:var(--tr-muted);font-size:13px}
.tr .crumbs a{color:var(--tr-ink);text-decoration:none}
.tr .crumbs a:hover{text-decoration:underline}

.tr-name{margin:clamp(36px,6vh,72px) 0 0;font-family:var(--display);font-size:clamp(48px,7vw,72px);font-weight:400;line-height:1;letter-spacing:.5px}
.tr-name span{display:block}
.tr-lede{margin:20px 0 0;max-width:46ch;font-size:17px;line-height:1.65;color:var(--tr-muted)}

.tr-facts{display:flex;margin:36px 0 0;border-top:1px solid var(--tr-rule)}
.tr-facts div{flex:1 1 0;padding:14px 16px 0 0}
.tr-facts div+div{padding-left:16px;border-left:1px solid var(--tr-rule)}
.tr-facts dt{font-size:13px;color:var(--tr-muted)}
.tr-facts dd{margin:4px 0 0;font-size:18px;font-weight:600}

.tr-ctas{display:flex;flex-wrap:wrap;gap:10px;margin-top:36px}
.tr-btn{display:inline-flex;align-items:center;min-height:48px;padding:0 24px;border-radius:999px;font-size:15px;font-weight:600;text-decoration:none;color:var(--tr-ink);border:1.5px solid var(--tr-ink);transition:background .2s,color .2s}
.tr-btn:hover{background:var(--tr-ink);color:#fff}
.tr-btn.pri{background:var(--tr-blue);border-color:var(--tr-blue);color:#fff}
.tr-btn.pri:hover{background:#00315F;border-color:#00315F;color:#fff}

.tr-scroll{margin:auto 0 0;padding-top:40px;font-size:13px;color:var(--tr-muted);display:flex;align-items:center;gap:12px}
.tr-scroll::before{content:"";width:1px;height:44px;background:linear-gradient(var(--tr-rule),var(--tr-ink))}

.tr-stop h2{margin:0;font-size:18px;font-weight:600}
.tr-fig{margin:6px 0 18px;font-family:var(--display);font-size:clamp(80px,8vw,120px);font-weight:400;line-height:.9;letter-spacing:1px;white-space:nowrap}
.tr-fig small{font-family:var(--tr-sans);font-size:18px;font-weight:500;letter-spacing:0;margin-left:10px;color:var(--tr-muted)}
.tr-stop h2+p{margin-top:14px!important}
.tr-stop>p:not([class]){margin:0;font-size:16px;line-height:1.7;color:var(--tr-muted);max-width:46ch}

/* capacity gauge: fill against the brim */
.tr-gauge{display:block;margin-top:28px;max-width:420px}
.tr-gauge-bar{display:block;position:relative;height:10px;border-radius:2px;background:#fff;box-shadow:inset 0 0 0 1px var(--tr-rule)}
.tr-gauge-bar i{position:absolute;left:0;top:0;bottom:0;width:var(--fill);border-radius:2px 0 0 2px;background:var(--tr-blue)}
.tr-gauge-bar::after{content:"";position:absolute;right:0;top:-6px;bottom:-6px;width:2px;background:var(--tr-ink)}
.tr-gauge-k{display:flex;justify-content:space-between;margin-top:10px;font-size:13px;color:var(--tr-muted);font-variant-numeric:tabular-nums}

/* closures */
.tr-caps{list-style:none;margin:28px 0 0;padding:0;display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));border-top:1px solid var(--tr-rule)}
.tr-caps li{display:flex;align-items:center;gap:12px;padding:14px 12px 14px 0;border-bottom:1px solid var(--tr-rule);font-size:14px;font-weight:500;line-height:1.35}
.tr-caps svg{flex:none;width:30px;height:30px;color:var(--tr-blue)}

/* finish chips in the last stop */
.tr-chips{display:flex;flex-wrap:wrap;gap:10px;margin-top:28px;visibility:hidden}
.p3d-on .tr-chips{visibility:visible}
.tr-chips button{font:inherit;font-size:14px;font-weight:600;display:inline-flex;align-items:center;gap:12px;padding:8px 20px 8px 8px;border-radius:999px;border:1.5px solid var(--tr-rule);background:#fff;color:var(--tr-ink);cursor:pointer;transition:border-color .15s}
.tr-chips button:hover{border-color:var(--tr-muted)}
.tr-chips button[aria-pressed="true"]{border-color:var(--tr-ink)}
.tr-chips i{width:32px;height:32px;border-radius:50%;box-shadow:inset 0 0 0 1px rgba(19,35,58,.18)}

/* the pinned stage */
.tr-stagecol{position:relative}
.tr-stage{position:sticky;top:var(--hh);height:calc(100vh - var(--hh));height:calc(100svh - var(--hh));display:flex;align-items:center;justify-content:center}
.tr .p3d{--p3d-h:min(calc(100vh - var(--hh) - 140px),760px);height:var(--p3d-h);width:calc(var(--p3d-h)/1.16);max-width:100%;margin:0 0 56px}
.tr .p3d::before,.tr .p3d::after{display:none}
.tr .p3d-poster{mix-blend-mode:multiply}

/* where the tour is */
.tr-index{position:absolute;top:32px;right:0;z-index:3}
.tr-index ol{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;align-items:flex-end;gap:2px;border-right:1px solid var(--tr-rule)}
.tr-index a{display:block;padding:6px 14px;margin-right:-1px;border-right:2px solid transparent;font-size:13.5px;font-weight:500;color:var(--tr-muted);text-decoration:none;transition:color .2s,border-color .2s}
.tr-index a:hover{color:var(--tr-ink)}
.tr-index a[aria-current="step"]{color:var(--tr-ink);font-weight:700;border-right-color:var(--tr-blue)}

/* under the container: hint, finish, view tools */
.tr-bar{position:absolute;left:0;right:0;bottom:24px;z-index:3;display:flex;align-items:center;justify-content:space-between;gap:16px}
.tr-hint{margin:0;display:flex;align-items:center;gap:8px;font-size:13px;color:var(--tr-muted);visibility:hidden;opacity:0;transition:opacity .4s}
.tr-hint svg{width:18px;height:18px;color:var(--tr-ink)}
.p3d-on .tr-hint{visibility:visible;opacity:1}
.p3d-on.p3d-touched .tr-hint{opacity:0}
.tr-sw{display:flex;align-items:center;gap:4px;visibility:hidden}
.p3d-on .tr-sw{visibility:visible}
.tr-sw output{font-size:13px;font-weight:600;min-width:52px;text-align:right;margin-right:6px}
.tr-sw button{position:relative;width:36px;height:36px;padding:0;border:0;border-radius:50%;background:transparent;cursor:pointer}
.tr-sw button i{position:absolute;inset:6px;border-radius:50%;box-shadow:inset 0 0 0 1px rgba(19,35,58,.2)}
.tr-sw button[aria-pressed="true"]{box-shadow:inset 0 0 0 1.5px var(--tr-ink)}
.tr-tools{display:flex;gap:4px;visibility:hidden}
.p3d-on .tr-tools{visibility:visible}
.tr-tools button{width:40px;height:40px;display:inline-flex;align-items:center;justify-content:center;border-radius:50%;border:1px solid var(--tr-rule);background:#fff;color:var(--tr-ink);cursor:pointer;transition:border-color .15s}
.tr-tools button:hover{border-color:var(--tr-ink)}
.tr-tools svg{width:18px;height:18px}
.vh{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}

/* ---------- section heads ---------- */
.tr-sechead{display:flex;justify-content:space-between;align-items:flex-end;gap:24px;flex-wrap:wrap;margin-bottom:clamp(28px,4vw,48px)}
.tr-sechead h2{margin:0;font-family:var(--display);font-size:clamp(38px,5vw,48px);font-weight:400;line-height:1;letter-spacing:.5px}
.tr-sechead p{margin:0;max-width:44ch;font-size:15px;line-height:1.6;color:var(--tr-muted)}

/* ---------- 2 specifications ---------- */
.tr-specs{background:#fff;padding:clamp(72px,9vw,128px) 0}
.tr-specgrid{display:grid;grid-template-columns:minmax(0,5fr) minmax(0,6fr);gap:clamp(28px,4vw,64px);align-items:start}
.tr-draw{margin:0;background:var(--tr-frost);border-radius:4px;padding:clamp(16px,2vw,28px);position:sticky;top:calc(var(--hh) + 24px)}
.tr-draw svg{display:block;width:100%;height:auto;max-height:calc(100vh - var(--hh) - 120px)}
.tr-draw .dl{stroke:var(--tr-blue);stroke-width:2.2;fill:none}
.tr-draw .dx{stroke:var(--tr-blue);stroke-width:2.2;stroke-dasharray:6 7;opacity:.45;fill:none}
.tr-draw .dt{font-family:var(--tr-sans);font-weight:600;font-size:30px;fill:var(--tr-ink)}
.tr-draw .pill{fill:#fff;stroke:var(--tr-rule);stroke-width:2}
.tr-draw image{mix-blend-mode:multiply}
.tr-draw figcaption{margin-top:8px;font-size:13px;color:var(--tr-muted)}

.tr-sheet{margin:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));column-gap:32px}
.tr-sheet div{padding:14px 0 16px;border-top:1px solid var(--tr-rule)}
.tr-sheet dt{font-size:13.5px;color:var(--tr-muted)}
.tr-sheet dd{margin:4px 0 0;font-size:18px;font-weight:600;line-height:1.35}
.tr-sheet dd small{display:block;margin-top:4px;font-size:13px;font-weight:400;line-height:1.5;color:var(--tr-muted)}
.tr-uses{margin-top:40px;padding-top:18px;border-top:1px solid var(--tr-ink)}
.tr-uses h3{margin:0 0 14px;font-size:13.5px;font-weight:500;color:var(--tr-muted)}
.tr-uses ul{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;gap:8px}
.tr-uses li{padding:8px 15px;border-radius:999px;background:var(--tr-haze);font-size:14px;font-weight:500}

/* ---------- 3 the range ---------- */
.tr-range{background:var(--tr-haze);padding:clamp(72px,9vw,120px) 0}
.tr-all{font-size:14px;font-weight:600;color:var(--tr-ink);text-underline-offset:4px}
.tr-all:hover{color:var(--tr-blue)}
.tr-tiles{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:clamp(16px,2vw,28px)}
.tr-tile{display:flex;flex-direction:column;text-decoration:none;color:var(--tr-ink)}
.tr-tile-img{display:block;background:#fff;border-radius:4px;overflow:hidden}
.tr-tile-img img{display:block;width:100%;height:auto;aspect-ratio:8/5;object-fit:contain;transition:transform .5s cubic-bezier(.2,.7,.2,1)}
.tr-tile:hover .tr-tile-img img{transform:scale(1.04)}
.tr-tile-name{margin-top:16px;font-size:18px;font-weight:600;line-height:1.3}
.tr-tile:hover .tr-tile-name{color:var(--tr-blue)}
.tr-tile-meta{margin-top:4px;font-size:14.5px;color:var(--tr-muted)}

/* ---------- smaller screens ---------- */
@media (max-width:1100px){
  .tr-index{display:none}
  .tr-hint span{display:none}
  .tr-bar{padding-right:64px}
}
@media (max-width:900px){
  .tr-wrap{grid-template-columns:1fr;padding:0}
  .tr-stagecol{order:-1;position:sticky;top:var(--hh);z-index:4;height:clamp(320px,54svh,520px);background:var(--tr-haze);border-bottom:1px solid var(--tr-rule)}
  .tr-stage{position:relative;top:0;height:100%}
  .tr .p3d{--p3d-h:calc(100% - 64px);height:var(--p3d-h);width:auto;aspect-ratio:1/1.16;margin:0 0 52px}
  .tr-bar{bottom:10px;left:16px;right:16px;padding-right:0}
  .tr-hint{display:none}
  .tr-stops{padding:0 20px}
  .tr-stop{min-height:0;padding:56px 0;max-width:none;scroll-margin-top:calc(var(--hh) + clamp(320px,54svh,520px))}
  .tr-stop+.tr-stop{border-top:1px solid var(--tr-rule)}
  .tr-first{padding-top:28px}
  .tr-name{margin-top:28px}
  .tr-scroll{display:none}
  .tr-specgrid{grid-template-columns:1fr}
  .tr-draw{position:static;max-width:520px}
  .tr-draw svg{max-height:none}
}
@media (max-width:560px){
  .tr-facts dd{font-size:16px}
  .tr-facts div{padding-right:8px}
  .tr-facts div+div{padding-left:10px}
  .tr-sheet{grid-template-columns:1fr}
  .tr-tiles{grid-template-columns:1fr}
  .tr-ctas .tr-btn{flex:1 1 auto;justify-content:center}
  .tr-sw output{display:none}
}
@media (prefers-reduced-motion:reduce){
  .tr-tile-img img,.tr-hint,.tr-index a{transition:none}
}

/* ---------- Chemco site, 26 Nov 2026: the same tour layout for every bottle, with the bottle's photos in place of the 3D view ---------- */
.tr-photo{position:relative;width:min(100%,calc(100vh - var(--hh) - 170px),640px);aspect-ratio:1/1;margin:0 0 64px;display:flex;align-items:center;justify-content:center}
.tr-photo img{width:100%;height:100%;object-fit:contain;mix-blend-mode:multiply;display:block}
.tr-bar .pkp-ths{display:flex;gap:8px;flex-wrap:wrap}
.tr-bar .pkp-tb{width:58px;height:58px;padding:0;border:1.5px solid var(--tr-rule);border-radius:10px;background:#fff;overflow:hidden;cursor:pointer}
.tr-bar .pkp-tb img{width:100%;height:100%;object-fit:contain;display:block}
.tr-bar .pkp-tb.on{border-color:var(--tr-ink)}
.tr-bar .tr-note{margin:0;font-size:13px;color:var(--tr-muted)}
.tr-draw.tr-pic{padding:clamp(16px,2vw,28px)}
.tr-draw.tr-pic img{display:block;width:100%;height:auto;mix-blend-mode:multiply}
.tr-sechead .tr-about{max-width:62ch}
.tr-sechead .tr-about p{margin:0 0 10px;font-size:15px;line-height:1.7;color:var(--tr-muted);max-width:none}
.tr-uses a{display:inline-block;padding:8px 15px;border-radius:999px;background:var(--tr-haze);font-size:14px;font-weight:500;color:var(--tr-ink);text-decoration:none}
.tr-uses a:hover{color:var(--tr-blue)}
.tr-tiles.tr-tiles3{grid-template-columns:repeat(3,minmax(0,1fr))}
@media (max-width:900px){.tr-photo{width:auto;height:calc(100% - 84px);margin:0 0 64px}.tr-tiles.tr-tiles3{grid-template-columns:repeat(2,minmax(0,1fr))}.tr-bar .pkp-tb{width:44px;height:44px}}
@media (max-width:560px){.tr-tiles.tr-tiles3{grid-template-columns:1fr}}

/* 26 Nov: no white panel behind the product pictures (user) */
.tr-draw.tr-pic{background:none;padding:0}
.tr-tile-img{background:none}
/* 26 Nov: specs text left, bottle right; centred range cards */
.pkn-specs{padding:clamp(56px,7vw,96px) 0}
.pkn-sgrid{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,.85fr);gap:clamp(32px,5vw,80px);align-items:center}
.pkn-sh{margin:0 0 18px;font-family:var(--display);font-size:clamp(38px,5vw,48px);font-weight:400;line-height:1;letter-spacing:.5px}
.pkn-sover{margin:0 0 28px;max-width:62ch;font-size:15.5px;line-height:1.7;color:var(--tr-muted)}
.pkn-spic{margin:0;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center}
.pkn-spic img{display:block;width:100%;max-width:440px;height:auto;max-height:68vh;object-fit:contain}
.pkn-spic figcaption{margin-top:14px;font-size:14px;color:var(--tr-muted)}
.pkn-tiles .tr-tile{align-items:center;text-align:center;background:#fff;border-radius:16px;padding:28px 20px 26px;box-shadow:0 1px 2px rgba(15,30,60,.06);transition:box-shadow .3s,transform .3s}
.pkn-tiles .tr-tile:hover{box-shadow:0 12px 32px rgba(15,30,60,.12);transform:translateY(-3px)}
.pkn-tiles .tr-tile-img{width:100%;display:flex;justify-content:center}
.pkn-tiles .tr-tile-img img{width:auto;max-width:100%;height:220px;aspect-ratio:auto;object-fit:contain}
.pkn-tiles .tr-tile-name{margin-top:18px}
.tr-range .tr-sechead{align-items:center}
@media (max-width:900px){.pkn-sgrid{grid-template-columns:1fr}.pkn-spic{order:-1}.pkn-spic img{max-width:300px;max-height:none}}
@media (max-width:560px){.pkn-tiles .tr-tile-img img{height:180px}}
@media (prefers-reduced-motion:reduce){.pkn-tiles .tr-tile{transition:none}.pkn-tiles .tr-tile:hover{transform:none}}
