/* ============================================================
   Lonmar trade sites — shared 'wow' homepage design layer.
   Loaded AFTER brand.css and only on the homepage, so the shared kit
   (used by lonmar/nanuq/ceta) stays untouched.

   House rules still apply: white ground, almost no copy. The page carries
   itself on type, photography and motion instead of words.

   Every hidden-before-reveal state here is gated on .has-js and paired with
   an .in resting state, because Motion animates through WAAPI and leaves NO
   inline style behind — an element with a CSS resting state of opacity:0
   goes invisible again the moment its animation ends or is cancelled.
   ============================================================ */

:root{
  --ice:#F2F8FC;         /* faintest cold wash, still essentially white */
  --ice-2:#E4EFF7;
  --frost:#CFE2EF;
}

/* ---- scroll progress rail ---------------------------------------------- */
.progress{position:fixed;top:0;left:0;height:2px;width:100%;z-index:400;
  background:transparent;pointer-events:none}
.progress i{display:block;height:100%;width:100%;background:var(--accent);
  transform:scaleX(0);transform-origin:0 50%}

/* ---- hero --------------------------------------------------------------- */
.ah{position:relative;overflow:clip;background:#fff;padding:78px 0 0}
.ah .wrap{position:relative;z-index:2}
.ah .eyebrow{display:block;margin-bottom:18px}

/* per-word mask reveal: each word sits in a clipping box and slides up */
.ah h1{font-size:clamp(2.6rem,7.4vw,6.4rem);line-height:.94;letter-spacing:-.035em;
  font-weight:800;margin:0 0 26px;max-width:15ch}
.word{display:inline-block;overflow:hidden;vertical-align:top;padding-bottom:.06em}
.word > span{display:inline-block;will-change:transform}
.has-js .word > span{transform:translateY(105%)}
.has-js .word.in > span{transform:none}

.ah .lede{font-size:17px;color:var(--ink-2);max-width:34ch;margin:0 0 30px}
.ah .row{display:flex;gap:12px;flex-wrap:wrap;margin-bottom:56px}

/* the film sits in a rounded panel that wipes open */
.ah-film{position:relative;border-radius:16px;overflow:hidden;background:var(--ice-2);
  aspect-ratio:16/7;margin-bottom:-90px;box-shadow:0 40px 90px -60px rgba(10,60,100,.55)}
.ah-film video,.ah-film img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.has-js .ah-film{clip-path:inset(0 0 100% 0)}
.has-js .ah-film.in{clip-path:inset(0 0 0 0)}
@media(prefers-reduced-motion:reduce){ .ah-film video{display:none} }

/* product chips that drift with the pointer — pure decoration, never content */
.drift{position:absolute;border-radius:14px;overflow:hidden;width:126px;aspect-ratio:1;
  box-shadow:0 22px 50px -26px rgba(10,60,100,.5);pointer-events:none;z-index:3;
  border:5px solid #fff}
.drift img{width:100%;height:100%;object-fit:cover;display:block}
/* kept above ~60% of the hero so they never collide with the film panel,
   and right of ~58% so they never sit over the headline */
.drift-a{top:3%;right:7%}
.drift-b{top:18%;right:25%;width:96px}
.drift-c{top:32%;right:4%;width:110px}
@media(max-width:1100px){ .drift{display:none} }

/* ---- marquee ribbon ----------------------------------------------------- */
.ribbon{background:var(--accent);color:#fff;padding:16px 0;overflow:hidden;
  margin-top:120px;user-select:none}
.ribbon .track{display:flex;gap:0;white-space:nowrap;will-change:transform}
.ribbon .track span{font-size:clamp(1.1rem,2.1vw,1.6rem);font-weight:700;
  letter-spacing:-.01em;padding:0 26px;display:inline-flex;align-items:center;gap:26px}
.ribbon .track span::after{content:"";width:7px;height:7px;border-radius:50%;
  background:rgba(255,255,255,.55);flex:none}

/* ---- cold-chain figure -------------------------------------------------- */
.cold{padding:110px 0;background:linear-gradient(180deg,#fff 0%,var(--ice) 100%)}
.cold .grid{display:grid;grid-template-columns:1.1fr .9fr;gap:60px;align-items:center}
.cold .figure{font-size:clamp(4rem,13vw,9.5rem);font-weight:800;letter-spacing:-.05em;
  line-height:.9;color:var(--accent);font-variant-numeric:tabular-nums;margin:0}
.cold .figure sup{font-size:.34em;vertical-align:super;letter-spacing:0}
.cold .figure-words{font-size:clamp(1.7rem,3.4vw,2.6rem);line-height:1.12;
  letter-spacing:-.03em;font-weight:800;color:var(--ink);max-width:16ch}
.cold .cap{font-size:13px;text-transform:uppercase;letter-spacing:1.8px;
  color:var(--muted);font-weight:700;margin-top:10px}
.chain{display:grid;gap:0;border-top:1px solid var(--line)}
.chain div{display:flex;align-items:baseline;gap:18px;padding:20px 2px;
  border-bottom:1px solid var(--line)}
.chain b{font-size:12px;color:var(--accent);font-weight:800;letter-spacing:1.4px;min-width:26px}
.chain span{font-size:17px;color:var(--ink);font-weight:600;letter-spacing:-.01em}
@media(max-width:880px){ .cold .grid{grid-template-columns:1fr;gap:34px} .cold{padding:70px 0} }

/* ---- range grid --------------------------------------------------------- */
.range{padding:110px 0 20px}
.range .head{display:flex;justify-content:space-between;align-items:flex-end;
  gap:24px;margin-bottom:40px;flex-wrap:wrap}
.range h2{font-size:clamp(1.8rem,4vw,3rem);letter-spacing:-.03em;margin:0;font-weight:800}
.tiles{display:grid;grid-template-columns:repeat(4,1fr);gap:16px}
@media(max-width:1000px){ .tiles{grid-template-columns:repeat(2,1fr)} }
.tile{position:relative;display:block;border-radius:14px;overflow:hidden;background:var(--ice-2);
  aspect-ratio:4/5;transform-style:preserve-3d;will-change:transform}
.tile img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;
  transition:transform .8s cubic-bezier(.22,.7,.3,1)}
.tile:hover img,.tile:focus-visible img{transform:scale(1.07)}
.tile .lbl{position:absolute;left:0;right:0;bottom:0;padding:18px 18px 16px;
  display:flex;align-items:center;justify-content:space-between;gap:10px;
  background:linear-gradient(180deg,rgba(255,255,255,0) 0%,rgba(255,255,255,.94) 58%);
  font-weight:700;color:var(--ink);font-size:15px;letter-spacing:-.01em}
.tile .lbl svg{width:15px;height:15px;flex:none;color:var(--accent);
  transition:transform .45s cubic-bezier(.22,.7,.3,1)}
.tile:hover .lbl svg{transform:translateX(5px)}
.tile:focus-visible{outline:3px solid var(--accent);outline-offset:3px}

/* ---- horizontal scroll strip ------------------------------------------- */
.strip-h{padding:110px 0;overflow:clip}
.strip-h .lane{display:flex;gap:16px;will-change:transform;padding-left:30px}
.strip-h .card{padding:0;border:0;flex:0 0 300px;border-radius:14px;overflow:hidden;background:var(--ice-2);
  aspect-ratio:3/4;position:relative}
.strip-h .card img{width:100%;height:100%;object-fit:cover}
.strip-h .card b{position:absolute;left:0;right:0;bottom:0;padding:26px 16px 14px;
  color:#fff;font-size:15px;letter-spacing:-.01em;
  background:linear-gradient(180deg,rgba(15,32,48,0) 0%,rgba(15,32,48,.72) 62%)}

/* ---- magnetic buttons --------------------------------------------------- */
.mag{display:inline-block;will-change:transform}

/* ---- closing ------------------------------------------------------------ */
.close-cta{padding:120px 0;text-align:center;background:var(--ice)}
.close-cta h2{font-size:clamp(2rem,5.4vw,4rem);letter-spacing:-.035em;margin:0 0 28px;font-weight:800}
.close-cta .row{display:flex;gap:12px;justify-content:center;flex-wrap:wrap}

@media(max-width:880px){
  .ah{padding-top:44px}
  .ah-film{aspect-ratio:4/3;margin-bottom:-50px}
  .ribbon{margin-top:76px}
  .range,.strip-h{padding:64px 0}
  .close-cta{padding:72px 0}
}
