/* Product Categories — scroll-driven full-screen scenes.
   Base rules = static fallback (no JS, reduced motion, Elementor editor): stacked full-height panels.
   .is-live (added by product-categories.js) = pinned stage with growing circle reveals. */

.tu-cats{position:relative;margin-bottom:130px}
/* Static: background + intro share the first grid cell, so the slate sits behind the heading only. */
.tu-cats-stage{display:grid;grid-template-columns:100%;background:var(--tu-midnight-pine-deep)}
.tu-cats-bg,.tu-cats-intro{grid-area:1/1}
.tu-cats-bg{position:relative;overflow:hidden}
.tu-cats .tu-cats-bg img{position:absolute;inset:0;width:100%;height:100%;max-width:none;object-fit:cover;display:block}
.tu-cats-intro{position:relative;z-index:1;display:flex;align-items:baseline;justify-content:space-between;gap:20px;flex-wrap:wrap;padding:110px 60px 64px}
.tu-cats-title{font-size:clamp(34px,3.6vw,54px);font-weight:500;letter-spacing:-.01em;margin:0;color:var(--tu-warm-parchment)}
.tu-cats-title em{font-style:normal;color:var(--tu-signal-lime)}
.tu-cats-eyebrow{font-size:12px;font-weight:700;letter-spacing:.26em;text-transform:uppercase;color:var(--tu-signal-lime)}
.tu-cats-eyebrow .tu-num{color:rgba(245,240,228,.5)}

.tu-cats-scene{position:relative;height:88vh;min-height:460px;overflow:hidden;background:var(--tu-midnight-pine)}
.tu-cats-media,.tu-cats-shade,.tu-cats-dim{position:absolute;inset:0}
.tu-cats .tu-cats-media img{position:absolute;inset:0;width:100%;height:100%;max-width:none;object-fit:cover;transform-origin:50% 50%;display:block}
.tu-cats-shade{background:linear-gradient(0deg,rgba(8,20,15,.82) 0%,rgba(8,20,15,.35) 30%,rgba(8,20,15,0) 55%)}
.tu-cats-dim{background:var(--tu-midnight-pine);opacity:0;display:none}

.tu-cats-caption{position:absolute;inset-inline-start:60px;inset-inline-end:60px;bottom:56px;z-index:2;color:var(--tu-warm-parchment)}
.tu-cats-num{display:block;font-size:14px;font-weight:700;letter-spacing:.26em;color:var(--tu-signal-lime);margin-bottom:10px}
.tu-cats-label{font-size:clamp(46px,7.4vw,128px);font-weight:500;line-height:.95;letter-spacing:-.02em;margin:0;color:#fff;overflow-wrap:break-word}
.tu-cats-tagline{margin:18px 0 0;max-width:34ch;font-size:clamp(16px,1.3vw,20px);line-height:1.5;color:rgba(245,240,228,.8)}

.tu-cats-ring,.tu-cats-ticks{display:none}

/* ---------- Live (pinned) mode ---------- */
.tu-cats.is-live{height:calc((var(--tu-cats-n) * var(--tu-cats-len) + 45) * 1vh + 100vh)}
.tu-cats.is-live .tu-cats-stage{display:block;position:sticky;top:0;height:100vh;overflow:hidden}
.tu-cats.is-live .tu-cats-bg{position:absolute;inset:0;z-index:0}
.tu-cats.is-live .tu-cats-intro{position:absolute;top:clamp(104px,15vh,170px);inset-inline:0;z-index:1;padding-top:0;padding-bottom:0;will-change:opacity,transform}
.tu-cats.is-live .tu-cats-scene{position:absolute;inset:0;height:auto;min-height:0;z-index:calc(2 + var(--tu-cats-i));clip-path:circle(0 at 50% 50%);visibility:hidden}
.tu-cats.is-live .tu-cats-dim{display:block}
.tu-cats.is-live .tu-cats-shade,.tu-cats.is-live .tu-cats-caption{opacity:0}
.tu-cats.is-live .tu-cats-caption{will-change:opacity,transform}

.tu-cats.is-live .tu-cats-ring{display:block;position:absolute;left:0;top:0;z-index:20;border:1px solid rgba(147,212,12,.6);border-radius:50%;pointer-events:none;opacity:0}

.tu-cats.is-live .tu-cats-ticks{display:flex;flex-direction:column;gap:14px;position:absolute;top:50%;inset-inline-end:34px;transform:translateY(-50%);z-index:20;margin:0;padding:0;opacity:0}
.tu-cats-ticks li{display:flex;align-items:center;gap:10px;font-size:11px;font-weight:700;letter-spacing:.2em;color:rgba(245,240,228,.5);transition:color .35s}
.tu-cats-ticks li::after{content:"";display:block;width:18px;height:2px;border-radius:2px;background:currentColor;transition:width .35s}
.tu-cats-ticks li.is-active{color:var(--tu-signal-lime)}
.tu-cats-ticks li.is-active::after{width:34px}

/* Touch stepping: while the stage is pinned, swipes step between scenes instead of scrolling the page.
   Also stops a flick's momentum from carrying the page past the stage. */
html.tu-cats-lock{overflow:hidden}

/* On mobile the large viewport can sit under the browser toolbar; keep captions in the visible part. */
@supports (height:100svh){
  .tu-cats.is-live .tu-cats-caption{bottom:calc(56px + (100vh - 100svh))}
}

@media (max-width:860px){
  .tu-cats{margin-bottom:80px}
  .tu-cats-intro{padding:84px 20px 44px;flex-direction:column;align-items:flex-start;gap:12px}
  .tu-cats.is-live .tu-cats-intro{top:96px;padding:0 20px}
  .tu-cats-caption{inset-inline-start:20px;inset-inline-end:56px;bottom:32px}
  .tu-cats-num{font-size:12px;margin-bottom:8px}
  .tu-cats-label{font-size:clamp(40px,12vw,72px)}
  .tu-cats.is-live .tu-cats-ticks{inset-inline-end:18px;gap:12px}
  .tu-cats-ticks li span{display:none}
  .tu-cats-ticks li::after{width:12px}
  .tu-cats-ticks li.is-active::after{width:24px}
  @supports (height:100svh){
    .tu-cats.is-live .tu-cats-caption{bottom:calc(32px + (100vh - 100svh))}
  }
}
