/* ==========================================================================
   /home-preview/ — new homepage CONCEPT (29 Oct, SHAHEEN-HOME-PREVIEW-SPRINT.md)
   Loaded on that page ONLY, enqueued LAST (after oct29.css). Every selector is
   prefixed .hp- so nothing here can reach another page, and the live Home's
   home.css is not loaded here at all.
   Direction: modern industrial, confident, calm. Bigger type, more air, one
   12-column grid, dark/light rhythm. Motion is transform/opacity only and slow.
   ========================================================================== */

.hp-hero,.hp-sec,.hp-proof,.hp-close{
  /* the SITE grid (header, footer): same container and gutter, so every edge lines up */
  --hp-max:var(--container);
  --hp-gut:var(--gutter);
  --hp-col-gap:clamp(16px,2.2vw,32px);
  --hp-sec:clamp(64px,7.5vw,112px);
  --hp-r:12px;
}
.hp-wrap{width:100%;max-width:var(--hp-max);margin-inline:auto;padding-inline:var(--hp-gut)}

/* ---------- type ---------- */
.hp-h1{font-family:var(--f-dsp);font-weight:700;letter-spacing:-.035em;line-height:.98;
  font-size:clamp(2.5rem,4.35vw,4rem);text-wrap:balance;max-width:none}
@media (min-width:900px){.hp-h1 .hp-nw{white-space:nowrap}}
.hp-h1 em{font-style:normal;color:var(--brand-lift);white-space:nowrap}
.hp-h2{font-family:var(--f-dsp);font-weight:600;letter-spacing:-.03em;line-height:1.04;
  font-size:clamp(2rem,4vw,3.75rem);text-wrap:balance}
main .hp-hero .hp-lead{font-size:clamp(1.0625rem,1.35vw,1.3125rem);line-height:1.55;color:rgba(255,255,255,.84);
  max-width:40ch;letter-spacing:-.005em}

/* ---------- buttons + links (arrow slides, underline slides) ---------- */
.hp-actions{display:flex;flex-wrap:wrap;gap:14px 16px}
.hp-btn{display:inline-flex;align-items:center;gap:10px;min-height:52px;padding:0 20px;border-radius:var(--r-sm);
  font-family:var(--f-body);font-weight:600;font-size:.9375rem;letter-spacing:.01em;
  background:var(--brand-ink);color:#fff;transition:background .3s var(--ease)}
.hp-btn:hover{background:var(--brand-deep)}
.hp-btn .ar,.hp-link .ar{width:17px;height:17px;flex:none;transition:transform .45s var(--ease)}
.hp-btn:hover .ar,.hp-btn:focus-visible .ar,.hp-link:hover .ar,.hp-link:focus-visible .ar{transform:translateX(5px)}
.hp-btn-line{background:transparent;color:#fff;box-shadow:inset 0 0 0 1px rgba(255,255,255,.34)}
.hp-btn-line:hover{background:rgba(255,255,255,.08)}

.hp-link{display:inline-flex;align-items:center;gap:10px;min-height:44px;font-weight:600;font-size:.9375rem;color:var(--brand-text)}
.hp-link span{background:linear-gradient(currentColor,currentColor) left bottom/0 1px no-repeat;padding-bottom:3px;
  transition:background-size .5s var(--ease)}
.hp-link:hover span,.hp-link:focus-visible span{background-size:100% 1px}

/* ---------- reveal (polish): sections fade + rise ONCE, 500 ms, transform/opacity only;
   images inside settle from a slight scale. Hidden state is gated on html.hp-ready, which
   home-preview.js sets only after its observer is armed — so no JS, a failing script, or
   reduced motion all leave every element fully visible. The hero copy keeps .hp-rise
   (transform only), so the LCP text is never at opacity 0. ---------- */
.motion .hp-rise{transform:translateY(22px);transition:transform .6s var(--ease) calc(var(--d,0) * .09s)}
.motion .hp-rise.in{transform:none}
@media (prefers-reduced-motion:no-preference){
  .hp-ready .hp-rv{transition:opacity .5s var(--ease) calc(var(--d,0) * 70ms),transform .5s var(--ease) calc(var(--d,0) * 70ms)}
  .hp-ready .hp-rv:not(.in){opacity:0;transform:translateY(24px)}
  .hp-ready .hp-rv img{transition:transform .6s var(--ease) calc(var(--d,0) * 70ms)}
  .hp-ready .hp-rv:not(.in) img{transform:scale(1.06)}
}
@media (prefers-reduced-motion:reduce){.motion .hp-rise{transform:none;transition:none}}

/* ============================== 1 · HERO (full-bleed) ============================== */
.hp-hero{position:relative;min-height:100svh;display:flex;flex-direction:column;justify-content:center;overflow:hidden;
  background:#08090A;isolation:isolate;
  padding-top:calc(var(--hdr-h) + clamp(32px,4vw,64px));padding-bottom:clamp(120px,12vw,168px)}
.hp-hero-media{position:absolute;inset:0;z-index:0;overflow:hidden}
.hp-slide{position:absolute;inset:0;margin:0;opacity:0;visibility:hidden}
.hp-slide.is-on{opacity:1;visibility:visible;z-index:1}
.hp-slide img{width:100%;height:100%;max-width:none;object-fit:cover;object-position:62% 50%;transform-origin:62% 50%}
/* live: slow crossfade + slow zoom. .is-out keeps the zoom running on the outgoing frame
   while it fades, so it never snaps back to scale 1 mid-fade. */
.hp-live .hp-slide{visibility:visible;transition:opacity 1.8s cubic-bezier(.45,0,.2,1)}
.hp-live .hp-slide.is-out{opacity:0;z-index:0}
.hp-live .hp-slide.is-on img,.hp-live .hp-slide.is-out img{animation:hpKB calc(var(--hp-dur,6.5s) + 2s) linear forwards}
.hp-live.is-paused .hp-slide.is-on img{animation-play-state:paused}
@keyframes hpKB{from{transform:scale(1)}to{transform:scale(1.07)}}

/* the gradient sits on the TEXT side; a top fade keeps the header nav legible over the
   white product grounds, a foot fade carries the tab bar, and a light .2 tint calms the whites */
.hp-hero-scrim{position:absolute;inset:0;z-index:1;pointer-events:none;
  background:
    linear-gradient(180deg,rgba(8,9,10,.72) 0%,rgba(8,9,10,0) 24%),
    linear-gradient(90deg,rgba(8,9,10,.95) 0%,rgba(8,9,10,.92) 36%,rgba(8,9,10,.62) 52%,rgba(8,9,10,0) 72%),
    linear-gradient(0deg,rgba(8,9,10,.9) 0%,rgba(8,9,10,.72) 12%,rgba(8,9,10,0) 30%),
    rgba(8,9,10,.2)}
.hp-hero-in{position:relative;z-index:2}
.hp-hero-copy{max-width:min(620px,52%)}
.hp-hero-copy .hp-lead{margin-top:clamp(20px,2.2vw,32px)}
.hp-hero-copy .hp-actions{margin-top:clamp(28px,3vw,44px)}

/* tab bar: a slim progress line per division along the bottom edge. The right padding
   keeps the pause button clear of the sticky WhatsApp button (bottom-right, ~78 px) at
   every width where the container reaches that far. */
.hp-show-bar{position:absolute;z-index:3;left:0;right:0;padding-right:max(var(--hp-gut),92px);bottom:clamp(20px,2.6vw,36px);display:flex;align-items:flex-end;gap:clamp(14px,1.8vw,28px)}
.hp-show-tabs{flex:1;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:clamp(10px,1.4vw,20px);margin:0;padding:0;list-style:none}
.hp-show-tabs li{margin:0;padding:0}
.hp-show-tabs li::before{content:none}
.hp-tab{display:flex;flex-direction:column;gap:12px;min-height:44px;justify-content:flex-end;padding-top:8px;
  color:rgba(255,255,255,.8);font-size:.8125rem;font-weight:600;letter-spacing:.02em;line-height:1.3;transition:color .4s var(--ease)}
.hp-tab:hover,.hp-tab[aria-current="true"]{color:#fff}
.hp-tab i{position:relative;display:block;height:2px;background:rgba(255,255,255,.24);overflow:hidden}
.hp-tab i::after{content:"";position:absolute;inset:0;background:var(--brand-lift);transform:scaleX(0);transform-origin:left center}
.hp-tab[aria-current="true"] i::after{transform:scaleX(1)}
.hp-live .hp-tab[aria-current="true"] i::after{transform:scaleX(0);animation:hpProg var(--hp-dur,6.5s) linear forwards}
.hp-live.is-paused .hp-tab[aria-current="true"] i::after{animation-play-state:paused}
@keyframes hpProg{from{transform:scaleX(0)}to{transform:scaleX(1)}}
.hp-pause{flex:none;place-items:center;width:44px;height:44px;border-radius:50%;background:rgba(8,9,10,.3);cursor:pointer;
  border:1px solid rgba(255,255,255,.34);color:#fff;transition:background .3s var(--ease)}
/* shown only in live mode, decided before first paint (no layout shift when JS runs) */
.hp-pause{display:none}
.js .hp-live .hp-pause{display:grid}
.hp-pause:hover{background:rgba(255,255,255,.12)}
.hp-pause svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.hp-pause .i-play{display:none;fill:currentColor;stroke:none}
.hp-pause[aria-pressed="true"] .i-pause{display:none}
.hp-pause[aria-pressed="true"] .i-play{display:block}

@media (max-width:899px){
  /* phones: copy over the top of the image, gradient runs top-down instead */
  .hp-hero{justify-content:flex-start;min-height:min(100svh,920px);padding-top:calc(var(--hdr-h) + 36px);padding-bottom:132px}
  .hp-hero-copy{max-width:none}
  .hp-slide img{object-position:58% 60%}
  .hp-hero-scrim{background:
    linear-gradient(180deg,rgba(8,9,10,.93) 0%,rgba(8,9,10,.9) 50%,rgba(8,9,10,.5) 66%,rgba(8,9,10,.3) 74%,rgba(8,9,10,.88) 86%,rgba(8,9,10,.92) 100%)}
  /* only the active division's name is shown above the four lines */
  .hp-show-tabs{position:relative;padding-top:26px}
  .hp-tab{padding-top:0}
  .hp-tab-t{position:absolute;left:0;top:0;white-space:nowrap;opacity:0;pointer-events:none;transition:opacity .4s var(--ease)}
  .hp-tab[aria-current="true"] .hp-tab-t{opacity:1}
}
@media (max-width:420px){
  .hp-actions{flex-direction:column;align-items:stretch}
  .hp-btn{justify-content:space-between}
}

/* ============================== common section ============================== */
/* ONE section rhythm for every block (polish item 4) */
.hp-sec{padding-block:var(--hp-sec)}
.hp-sec-head{display:flex;align-items:flex-end;justify-content:space-between;gap:24px;margin-bottom:clamp(28px,3.4vw,52px)}

/* ============================== 2 · DIVISIONS ============================== */
/* desktop: four columns on the site grid, all four visible. Below 1000 px: a native
   swipe row, the band starting on the text axis with the next card peeking. */
.hp-band{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:clamp(16px,1.8vw,28px);
  width:100%;max-width:var(--hp-max);margin-inline:auto;padding-inline:var(--hp-gut)}
.hp-band:focus-visible{outline:2px solid var(--brand);outline-offset:4px}
.hp-panel{display:flex;flex-direction:column;min-width:0}
.hp-panel-media{display:block;aspect-ratio:4/5;border-radius:var(--hp-r);overflow:hidden;background:var(--tint)}
.hp-panel-media img{width:100%;height:100%;object-fit:cover}
.hp-panel-media img,.hp-ind img{transition:transform 1.2s var(--ease)}
.hp-panel:hover .hp-panel-media img{transform:scale(1.04)}
.hp-panel-text{padding-top:clamp(18px,1.8vw,24px);display:flex;flex-direction:column;flex:1}
.hp-panel-n{font-size:.8125rem;font-weight:600;letter-spacing:.08em;color:var(--brand-ink)}
.hp-divs .hp-panel h3{margin-top:8px;font-size:clamp(1.25rem,1.6vw,1.5rem);line-height:1.15;letter-spacing:-.02em}
.hp-divs .hp-panel p{margin-top:12px;font-size:.9375rem;line-height:1.6;color:var(--tx-l-dim)}
.hp-panel .hp-link{margin-top:auto;padding-top:14px;align-self:flex-start}
@media (max-width:999px){
  .hp-band{--hp-lead:var(--hp-gut);display:flex;max-width:none;overflow-x:auto;overscroll-behavior-x:contain;
    scroll-snap-type:x mandatory;scroll-padding-inline:var(--hp-lead);padding-inline:var(--hp-lead);padding-bottom:10px;
    scrollbar-width:none}
  .hp-band::-webkit-scrollbar{display:none}
  .hp-panel{flex:0 0 min(44vw,380px);scroll-snap-align:start}
}
@media (max-width:640px){.hp-panel{flex-basis:78vw}}

/* ============================== 3 · PROOF STRIP (a confident band) ============================== */
.hp-proof{background:var(--tint);border-block:1px solid rgba(12,13,15,.08)}
.hp-proof-list{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));margin-block:0;list-style:none}
.hp-proof-list li{display:flex;align-items:center;gap:16px;margin:0;padding:clamp(30px,3.4vw,48px) clamp(16px,2vw,32px)}
.hp-proof-list li::before{content:none}
.hp-proof-list li:first-child{padding-left:0}
.hp-proof-list li + li{border-left:1px solid rgba(12,13,15,.12)}
.hp-proof-ic{flex:none;display:grid;place-items:center;width:48px;height:48px;border-radius:50%;
  background:rgba(4,105,56,.08);color:var(--brand)}
.hp-proof-ic svg{width:28px;height:28px}
.hp-proof-t{font-family:var(--f-dsp);font-weight:600;font-size:clamp(1.0625rem,1.45vw,1.375rem);line-height:1.22;letter-spacing:-.02em;color:var(--tx-l)}
@media (max-width:999px){
  .hp-proof-list{grid-template-columns:repeat(2,minmax(0,1fr))}
  .hp-proof-list li{padding-inline:0 20px}
  .hp-proof-list li:nth-child(even){padding-left:24px}
  .hp-proof-list li:nth-child(3){border-left:0}
  .hp-proof-list li:nth-child(n+3){border-top:1px solid rgba(12,13,15,.12)}
}
@media (max-width:520px){
  .hp-proof-list{grid-template-columns:1fr}
  .hp-proof-list li,.hp-proof-list li:nth-child(even){padding:20px 0;border-left:0}
  .hp-proof-list li + li{border-top:1px solid rgba(12,13,15,.12)}
}

/* ============================== 4 · INDUSTRIES (12 = 4 x 3) ============================== */
.hp-inds .hp-sec-head .hp-h2{color:#fff}
.hp-link-dk{color:var(--brand-lift)}
.hp-inds-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:clamp(10px,1.2vw,18px);margin-block:0;list-style:none}
.hp-inds-grid li{margin:0;padding:0}
.hp-inds-grid li::before{content:none}
.hp-ind{position:relative;display:block;aspect-ratio:4/3;border-radius:var(--hp-r);overflow:hidden;background:var(--ink-2);isolation:isolate}
.hp-ind img{width:100%;height:100%;object-fit:cover}
.hp-ind::after{content:"";position:absolute;inset:0;z-index:1;
  background:linear-gradient(180deg,rgba(12,13,15,0) 34%,rgba(12,13,15,.55) 62%,rgba(12,13,15,.9) 100%)}
.hp-ind:hover img,.hp-ind:focus-visible img{transform:scale(1.07)}
.hp-inds .hp-ind h3{position:absolute;z-index:2;left:clamp(14px,1.4vw,20px);right:clamp(14px,1.4vw,20px);bottom:clamp(12px,1.3vw,18px);
  color:#fff;font-size:clamp(.9375rem,1.2vw,1.1875rem);line-height:1.2;letter-spacing:-.015em;hyphens:manual;overflow-wrap:normal}
@media (max-width:999px){.hp-inds-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media (max-width:699px){.hp-inds-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:899px){.hp-inds .hp-sec-head{flex-wrap:wrap}}

/* ============================== 5 · CUSTOMERS ============================== */
.hp-ink-defs{position:absolute;width:0;height:0;overflow:hidden}
.hp-marquee{position:relative;overflow:hidden;
  -webkit-mask:linear-gradient(90deg,transparent,#000 8%,#000 92%,transparent);
          mask:linear-gradient(90deg,transparent,#000 8%,#000 92%,transparent)}
.hp-marquee-track{display:flex;width:max-content}
.hp-logos{display:flex;align-items:center;flex:none}
.hp-logo{flex:none;display:grid;place-items:center;height:96px;padding-inline:clamp(26px,3vw,48px);outline-offset:-4px}
.hp-logo-box{position:relative;display:block;height:clamp(30px,2.6vw,40px);aspect-ratio:var(--ar)}
.hp-logo-box img{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;transition:opacity .45s var(--ease)}
.hp-logo-box img:first-child{filter:grayscale(1);opacity:.55}
.hp-logo-ink{opacity:0;filter:url(#hp-brand-ink)}
.hp-logo:hover .hp-logo-box img:first-child,.hp-logo:focus-visible .hp-logo-box img:first-child{opacity:0}
.hp-logo:hover .hp-logo-ink,.hp-logo:focus-visible .hp-logo-ink{opacity:1}
/* motion: one slow loop; the second copy is what makes it seamless */
.motion .hp-marquee-track{animation:hpMarquee 70s linear infinite}
.hp-marquee:hover .hp-marquee-track,.hp-marquee:focus-within .hp-marquee-track{animation-play-state:paused}
@keyframes hpMarquee{from{transform:translateX(0)}to{transform:translateX(-50%)}}
/* static: no JS / failsafe / reduced motion — ONE set, wrapped and centred */
html:not(.motion) .hp-marquee,
.hp-marquee.is-static{-webkit-mask:none;mask:none}
html:not(.motion) .hp-marquee-track,
.hp-marquee.is-static .hp-marquee-track{width:auto;justify-content:center;max-width:var(--hp-max);margin-inline:auto;padding-inline:var(--hp-gut)}
html:not(.motion) .hp-logos,
.hp-marquee.is-static .hp-logos{flex-wrap:wrap;justify-content:center;flex:1}
html:not(.motion) .hp-logos[aria-hidden],
.hp-marquee.is-static .hp-logos[aria-hidden]{display:none}
@media (prefers-reduced-motion:reduce){
  .hp-marquee{-webkit-mask:none;mask:none}
  .motion .hp-marquee-track{animation:none;width:auto;justify-content:center;max-width:var(--hp-max);margin-inline:auto;padding-inline:var(--hp-gut)}
  .hp-logos{flex-wrap:wrap;justify-content:center;flex:1}
  .hp-logos[aria-hidden]{display:none}
}
@media (max-width:640px){.hp-logo{height:76px;padding-inline:22px}.hp-logo-box{height:28px}}

/* customers sits directly above Who We Are: the marquee row carries its own 96px of air,
   so the section pays only half a step below it — the two together read as one gap. */
.hp-cust{padding-bottom:calc(var(--hp-sec) * .5)}

/* ============================== 6 · WHO WE ARE ============================== */
.hp-who{background:var(--tint)}
.hp-who-in{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));column-gap:var(--hp-col-gap);row-gap:40px;align-items:center}
.hp-who-copy{grid-column:1 / span 5}
.hp-who-fig{grid-column:6 / span 7}
main .hp-who .hp-who-p{margin-top:clamp(20px,2.2vw,32px);font-family:var(--f-dsp);font-weight:500;
  font-size:clamp(1.25rem,1.9vw,1.75rem);line-height:1.38;letter-spacing:-.02em;color:var(--tx-l);max-width:30ch}
.hp-who .hp-link{margin-top:clamp(20px,2.4vw,32px)}
.hp-who-frame{display:block;aspect-ratio:16/9;border-radius:var(--hp-r);overflow:hidden;background:var(--tint-2)}
.hp-who-frame img{width:100%;height:100%;object-fit:cover;transition:transform 1.4s var(--ease)}
.hp-who-fig:hover img{transform:scale(1.03)}
main .hp-who-fig figcaption{margin-top:12px;font-size:.8125rem;color:var(--tx-l-dim)}
@media (max-width:899px){.hp-who-copy,.hp-who-fig{grid-column:1 / -1}}

/* ============================== 7 · CLOSING ============================== */
.hp-close{position:relative;overflow:hidden;padding-block:clamp(96px,12vw,200px)}
.hp-sheet{position:absolute;inset:0;pointer-events:none;overflow:hidden}
.hp-sheet-close{z-index:0;opacity:1;color:var(--brand-lift);-webkit-mask:none;mask:none}
.hp-sheet-close .la-field{opacity:.14}
.hp-sheet-close .la-field circle,.hp-sheet-close .la-field path{fill:none;stroke:currentColor;stroke-width:1;vector-effect:non-scaling-stroke}
.hp-close .hp-wrap{position:relative;z-index:1}
.hp-close-link{display:block;color:#fff;max-width:11.5ch;font-family:var(--f-dsp);font-weight:700;letter-spacing:-.04em;
  line-height:1.02;font-size:clamp(2.75rem,6.6vw,6.5rem)}
.hp-close-t{display:block}
/* the underline slides in under the words (cloned on every line), the arrow follows the last word */
.hp-close-w{background:linear-gradient(var(--brand-lift),var(--brand-lift)) left 96%/0 3px no-repeat;
  -webkit-box-decoration-break:clone;box-decoration-break:clone;transition:background-size .7s var(--ease)}
.hp-close-ar{display:inline-grid;place-items:center;vertical-align:-.06em;margin-left:.22em;
  width:.86em;height:.86em;border-radius:50%;background:var(--brand-ink);color:#fff;transition:background .4s var(--ease)}
.hp-close-ar .ar{width:42%;height:42%;transition:transform .5s var(--ease)}
.hp-close-link:hover .hp-close-w,.hp-close-link:focus-visible .hp-close-w{background-size:100% 3px}
.hp-close-link:hover .hp-close-ar{background:var(--brand-deep)}
.hp-close-link:hover .hp-close-ar .ar,.hp-close-link:focus-visible .hp-close-ar .ar{transform:translateX(8px)}

@media (prefers-reduced-motion:reduce){
  .hp-hero *,.hp-sec *,.hp-close *{transition-duration:.01ms!important}
  .hp-panel:hover .hp-panel-media img,.hp-ind:hover img,.hp-who-fig:hover img{transform:none}
  .hp-slide img{animation:none!important}
}
@media print{.hp-show-bar{display:none!important}}
