/* TEMPRIO storefront — cinematic layer (loaded after website.css) */

:root {
  --tp-night: #050b12;
  --tp-night-2: #0a1824;
  --tp-ease-expo: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ——— Lenis ——— */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }
.lenis.lenis-smooth iframe { pointer-events: none; }

/* ——— Motion ownership: GSAP replaces the CSS entrance animations ——— */
.tp-motion .apx-card { opacity: 1; animation: none; transition: box-shadow 0.35s var(--apx-ease), border-color 0.25s ease; }
.tp-motion .apx-card:hover,
.tp-motion .apx-card:active { transform: none; }
.tp-motion .apx-reveal { opacity: 1; transform: none; transition: none; }
.tp-motion .apx-btn,
.tp-motion .apx-cart,
.tp-motion .apx-icon-link,
.tp-motion .apx-feature,
.tp-motion .apx-story-tile { transition: box-shadow 0.3s ease, background 0.2s ease, filter 0.2s ease; }
.tp-motion .apx-btn:hover,
.tp-motion .apx-cart:hover,
.tp-motion .apx-icon-link:hover,
.tp-motion .apx-feature:hover,
.tp-motion .apx-story-tile:hover { transform: none; }
.tp-hero h1,
.tp-hero p,
.tp-hero .apx-hero-cta,
.tp-hero .apx-hero-eyebrow { animation: none !important; }

body.tp-home .apx-hero.tp-hero h1,
body.tp-home .apx-hero.tp-hero p,
body.tp-home .apx-hero.tp-hero .apx-hero-cta,
body.tp-home .apx-hero.tp-hero .apx-hero-eyebrow { animation: none !important; }

/* Hide hero copy until the intro timeline plays (bail-out classes restore it) */
.tp-js:not(.tp-no-motion) .tp-hero h1,
.tp-js:not(.tp-no-motion) .tp-hero .tp-intro-eyebrow,
.tp-js:not(.tp-no-motion) .tp-hero .tp-intro-sub,
.tp-js:not(.tp-no-motion) .tp-hero .tp-intro-meta,
.tp-js:not(.tp-no-motion) .tp-hero .tp-intro-cta .apx-btn { opacity: 0; }

/* ——— Split text ——— */
.tp-w { display: inline-block; overflow: hidden; vertical-align: top; padding: 0.04em 0.02em 0.2em; margin: -0.04em -0.02em -0.2em; }
.tp-wi { display: inline-block; will-change: transform; }

/* ——— Progress bar ——— */
.tp-progress {
  position: fixed;
  inset: 0 0 auto 0;
  height: 3px;
  z-index: 60;
  pointer-events: none;
}
.tp-progress span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--apx-accent), #fff3d6, var(--apx-secondary));
  transform: scaleX(0);
  transform-origin: 0 50%;
}

/* ——— Header ——— */
.apx-header { transition: transform 0.6s var(--tp-ease-expo), background 0.35s ease, box-shadow 0.35s ease, border-color 0.3s ease; }
.apx-header.is-hidden { transform: translateY(-110%); }

body.tp-home .apx-header {
  position: fixed;
  left: 0;
  right: 0;
}
body.tp-home .apx-header:not(.is-scrolled) {
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: none;
}
body.tp-home .apx-header:not(.is-scrolled) .apx-brand,
body.tp-home .apx-header:not(.is-scrolled) .apx-brand:hover { color: #fff; }
body.tp-home .apx-header:not(.is-scrolled) .apx-nav a { color: rgba(255, 255, 255, 0.78); }
body.tp-home .apx-header:not(.is-scrolled) .apx-nav a:hover { color: #fff; background: rgba(255, 255, 255, 0.1); }
body.tp-home .apx-header:not(.is-scrolled) .apx-search {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.18);
}
body.tp-home .apx-header:not(.is-scrolled) .apx-search input,
body.tp-home .apx-header:not(.is-scrolled) .apx-search i { color: #fff; }
body.tp-home .apx-header:not(.is-scrolled) .apx-search input::placeholder { color: rgba(255, 255, 255, 0.6); }
body.tp-home .apx-header:not(.is-scrolled) .apx-icon-link,
body.tp-home .apx-header:not(.is-scrolled) .apx-cart,
body.tp-home .apx-header:not(.is-scrolled) .apx-nav-toggle,
body.tp-home .apx-header:not(.is-scrolled) .apx-account-name {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

/* ——— Cinematic hero ——— */
.tp-hero.apx-hero {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: calc(var(--apx-header-h) + 3rem) 1.25rem 6.5rem;
  background: linear-gradient(160deg, var(--tp-night) 0%, var(--tp-night-2) 55%, var(--tp-night) 100%);
  background:
    radial-gradient(1100px 620px at 78% 38%, color-mix(in srgb, var(--apx-secondary) 42%, transparent), transparent 62%),
    radial-gradient(700px 480px at 12% 90%, color-mix(in srgb, var(--apx-accent) 18%, transparent), transparent 60%),
    linear-gradient(160deg, var(--tp-night) 0%, var(--tp-night-2) 55%, var(--tp-night) 100%);
}
.tp-hero.apx-hero::before {
  z-index: 2;
  background: linear-gradient(90deg, rgba(5, 11, 18, 0.82) 0%, rgba(5, 11, 18, 0.35) 48%, rgba(5, 11, 18, 0) 75%),
              linear-gradient(0deg, rgba(5, 11, 18, 0.9) 0%, transparent 30%);
}
.tp-hero.apx-hero::after { display: none; }
.tp-hero .apx-hero-slides { opacity: 0.32; mix-blend-mode: luminosity; }
.tp-hero .apx-hero-slide { transform-origin: 60% 40%; }

.tp-scene {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}
@media (min-width: 992px) {
  .tp-hero .tp-scene {
    left: 46%;
    right: 0;
    width: auto;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 16%);
    mask-image: linear-gradient(90deg, transparent, #000 16%);
  }
}
.tp-scene-canvas {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  opacity: 0;
  transition: opacity 1.4s ease;
}
.tp-scene.is-ready .tp-scene-canvas { opacity: 1; }

.tp-grain {
  position: absolute;
  inset: -50%;
  z-index: 3;
  pointer-events: none;
  opacity: 0.09;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: tpGrain 1.2s steps(6) infinite;
}

.tp-hero .apx-hero-inner { z-index: 4; width: 100%; }
.tp-hero h1 {
  font-family: var(--apx-font-display);
  font-weight: var(--apx-hero-weight);
  font-size: clamp(2.5rem, 6.8vw, 5.25rem);
  line-height: var(--apx-hero-line);
  letter-spacing: var(--apx-hero-tracking);
  max-width: 14ch;
  text-wrap: balance;
}
.tp-type-tech .tp-hero h1 {
  max-width: 15ch;
  font-size: clamp(2.35rem, 6.2vw, 4.85rem);
}
.tp-type-tech .tp-hero .apx-hero-eyebrow {
  font-family: var(--apx-font-body);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.tp-type-tech .tp-hero p.tp-intro-sub {
  font-family: var(--apx-font-body);
  font-weight: 500;
  letter-spacing: 0.01em;
}
.tp-hero p.tp-intro-sub {
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  max-width: 44ch;
  color: rgba(255, 255, 255, 0.78);
}
.tp-hero .apx-hero-eyebrow {
  padding: 0.45rem 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(10px);
  width: max-content;
  max-width: 100%;
}
.tp-hero .apx-hero-eyebrow i { color: var(--apx-accent); }
.tp-hero .apx-btn { padding: 0.95rem 1.6rem; font-size: 1rem; }
.tp-hero .apx-btn-outline { border-color: rgba(255, 255, 255, 0.35); color: #fff; }

.tp-hero-meta {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 1.6rem;
  z-index: 4;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.tp-hero-meta .apx-hero-dots { margin: 0; }
.tp-scroll-cue {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: inherit;
  text-decoration: none;
}
.tp-scroll-cue:hover { color: #fff; }
.tp-scroll-cue i {
  position: relative;
  width: 22px;
  height: 36px;
  border: 1.5px solid rgba(255, 255, 255, 0.5);
  border-radius: 999px;
}
.tp-scroll-cue i::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 7px;
  width: 3px;
  height: 7px;
  margin-left: -1.5px;
  border-radius: 3px;
  background: var(--apx-accent);
  animation: tpCue 1.8s var(--tp-ease-expo) infinite;
}

/* ——— Marquee (brand chips) ——— */
.tp-marquee {
  position: relative;
  overflow: hidden;
  padding: 2.75rem 0 2rem;
  background:
    radial-gradient(ellipse 80% 120% at 50% -20%, rgba(26, 107, 154, 0.22), transparent 55%),
    radial-gradient(ellipse 60% 80% at 100% 50%, rgba(232, 168, 56, 0.08), transparent 50%),
    var(--tp-night);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.tp-marquee-kicker {
  position: absolute;
  top: 0.65rem;
  left: 50%;
  transform: translateX(-50%);
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  z-index: 2;
  pointer-events: none;
}
.tp-marquee-kicker-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--apx-accent);
  box-shadow: 0 0 12px rgba(232, 168, 56, 0.65);
}
.tp-marquee-fade {
  position: absolute;
  top: 0;
  bottom: 0;
  width: min(12vw, 120px);
  z-index: 1;
  pointer-events: none;
}
.tp-marquee-fade--left {
  left: 0;
  background: linear-gradient(90deg, var(--tp-night) 15%, transparent);
}
.tp-marquee-fade--right {
  right: 0;
  background: linear-gradient(270deg, var(--tp-night) 15%, transparent);
}
.tp-marquee-track {
  display: flex;
  width: max-content;
  animation: tpMarquee 48s linear infinite;
  padding-top: 0.35rem;
}
.tp-marquee:hover .tp-marquee-track { animation-play-state: paused; }
.tp-marquee-group {
  display: flex;
  align-items: stretch;
  flex-shrink: 0;
  gap: 1rem;
  padding-right: 1rem;
}
.tp-marquee-chip {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  min-width: 7.5rem;
  max-width: 9.5rem;
  padding: 0.65rem 0.85rem 0.7rem;
  text-decoration: none;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.25);
  transition: transform 0.35s var(--tp-ease-expo), border-color 0.35s ease, background 0.35s ease, box-shadow 0.35s ease;
}
.tp-marquee-chip:hover {
  transform: translateY(-4px) scale(1.03);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(232, 168, 56, 0.45);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(232, 168, 56, 0.12);
}
.tp-marquee-chip-media {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 3.25rem;
  padding: 0.35rem 0.5rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}
.tp-marquee-chip-logo {
  display: block;
  max-height: 2.35rem;
  max-width: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}
.tp-marquee-chip-initial {
  font-family: var(--apx-font-display);
  font-size: 1.65rem;
  font-weight: 700;
  line-height: 1;
  color: var(--apx-primary);
}
.tp-marquee-chip-name {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
  text-align: center;
  line-height: 1.25;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: color 0.3s ease;
}
.tp-marquee-chip:hover .tp-marquee-chip-name { color: #fff; }

/* ——— Horizontal product rail ——— */
.tp-rail-section { position: relative; padding: 2rem 0 1rem; overflow: hidden; }
.tp-rail-head { max-width: 1180px; margin: 0 auto; padding: 0 1.25rem; }
.tp-rail-head .apx-section-title { margin-top: 1rem; }
.tp-rail-track {
  display: flex;
  gap: 1.15rem;
  padding: 0.5rem 1.25rem 1.75rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.tp-rail-track::-webkit-scrollbar { display: none; }
.tp-rail-track .apx-card {
  flex: 0 0 clamp(210px, 24vw, 290px);
  scroll-snap-align: start;
}
.tp-rail-section.is-pinned { height: 100vh; display: flex; flex-direction: column; justify-content: center; }
.tp-rail-section.is-pinned .tp-rail-track {
  overflow: visible;
  scroll-snap-type: none;
  padding-left: max(1.25rem, calc((100vw - 1180px) / 2 + 1.25rem));
  will-change: transform;
}
.tp-rail-progress {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 1.25rem;
  display: none;
}
.tp-rail-section.is-pinned .tp-rail-progress { display: block; }
.tp-rail-progress div { height: 2px; background: var(--apx-line); border-radius: 2px; overflow: hidden; }
.tp-rail-progress span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--apx-secondary), var(--apx-accent));
  transform: scaleX(0);
  transform-origin: 0 50%;
}

/* ——— 3D tilt + glare ——— */
.tp-tilt { transform-style: preserve-3d; will-change: transform; position: relative; }
.tp-tilt::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: radial-gradient(420px circle at var(--tp-gx, 50%) var(--tp-gy, 50%), rgba(255, 255, 255, 0.38), transparent 45%);
  opacity: 0;
  transition: opacity 0.35s ease;
  mix-blend-mode: soft-light;
  z-index: 2;
}
.tp-tilt:hover::after { opacity: 1; }

/* ——— Cinematic sections ——— */
.tp-motion .apx-story { overflow: hidden; }
.apx-cta-band.tp-cta {
  background: linear-gradient(110deg, var(--tp-night) 0%, var(--apx-primary) 35%, var(--apx-secondary) 60%, var(--tp-night) 100%);
  background-size: 260% 100%;
  padding: clamp(4rem, 10vw, 7rem) 0;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.tp-cta-title {
  font-family: var(--apx-font-display);
  font-size: clamp(2rem, 5.2vw, 4rem) !important;
  line-height: 1;
  letter-spacing: -0.04em;
}

/* ——— Cinematic footer base + wordmark ——— */
.tp-footer-cine-base {
  position: relative;
  margin-top: 2.5rem;
  overflow: visible;
}
.tp-footer-cine-base--on {
  min-height: 0;
  padding-bottom: clamp(1.25rem, 3vw, 2rem);
}
.tp-footer-cine-glow {
  position: absolute;
  inset: auto 0 0;
  z-index: 0;
  height: 85%;
  pointer-events: none;
  background:
    radial-gradient(ellipse 90% 70% at 50% 100%, color-mix(in srgb, var(--apx-accent) 28%, transparent), transparent 62%),
    radial-gradient(ellipse 55% 45% at 18% 85%, color-mix(in srgb, var(--apx-secondary) 22%, transparent), transparent 55%),
    radial-gradient(ellipse 50% 40% at 82% 78%, color-mix(in srgb, var(--apx-primary) 35%, transparent), transparent 50%);
  opacity: 0.85;
}
.tp-footer-cine-grain {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.18;
  mix-blend-mode: soft-light;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
  background-size: 180px 180px;
}
.tp-footer-cine-line {
  position: absolute;
  top: 0;
  left: 50%;
  width: min(92%, 1180px);
  height: 1px;
  transform: translateX(-50%);
  background: linear-gradient(
    90deg,
    transparent,
    color-mix(in srgb, var(--apx-accent) 55%, transparent) 22%,
    rgba(255, 255, 255, 0.35) 50%,
    color-mix(in srgb, var(--apx-accent) 55%, transparent) 78%,
    transparent
  );
  opacity: 0.9;
}
.tp-footer-cine-copy {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem 1.5rem;
  flex-wrap: wrap;
  border-top: none !important;
  padding-top: clamp(1rem, 2.5vw, 1.45rem) !important;
  font-size: clamp(0.72rem, 1.6vw, 0.82rem) !important;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.92 !important;
}
.tp-footer-cine-copy .tp-footer-meta {
  color: rgba(255, 255, 255, 0.72);
  font-weight: 500;
}
.tp-footer-cine-copy .tp-footer-powered {
  color: rgba(255, 255, 255, 0.55);
  font-weight: 500;
}
.tp-footer-cine-copy .tp-footer-powered strong {
  font-weight: 700;
  color: color-mix(in srgb, var(--apx-accent) 88%, #fff);
  letter-spacing: 0.18em;
}
.tp-footer-mark-wrap {
  position: relative;
  z-index: 2;
  pointer-events: none;
  padding: clamp(1.25rem, 4vw, 2.75rem) 0 clamp(0.25rem, 1vw, 0.5rem);
  margin-top: clamp(0.35rem, 1.5vw, 0.75rem);
}
.tp-footer-mark {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 1.25rem;
  font-family: var(--apx-font-display);
  font-weight: 800;
  font-size: clamp(1.85rem, 7.5vw, 6.5rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
  text-align: center;
  white-space: normal;
  overflow: visible;
  user-select: none;
  color: rgba(255, 255, 255, 0.1);
  -webkit-text-fill-color: rgba(255, 255, 255, 0.1);
  -webkit-text-stroke: 1.25px rgba(255, 255, 255, 0.48);
  text-shadow:
    0 0 48px color-mix(in srgb, var(--apx-accent) 28%, transparent),
    0 4px 20px rgba(0, 0, 0, 0.4);
  opacity: 1;
  transform: none;
}
html:not(.tp-no-motion) .tp-footer-mark {
  animation: tpFooterMarkBreath 10s ease-in-out infinite;
}
@keyframes tpFooterMarkBreath {
  0%, 100% { -webkit-text-stroke-color: rgba(255, 255, 255, 0.44); }
  50% { -webkit-text-stroke-color: rgba(255, 255, 255, 0.55); }
}
html:not(.tp-no-motion) .tp-footer-cine-glow {
  animation: tpFooterGlow 10s ease-in-out infinite;
}
@keyframes tpFooterGlow {
  0%, 100% { opacity: 0.75; transform: scale(1); }
  50% { opacity: 0.95; transform: scale(1.03); }
}

/* ——— Preloader ——— */
.tp-loader {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  background: var(--tp-night);
  color: #fff;
  clip-path: inset(0 0 0 0);
  animation: tpBail 0.01s linear 4.5s forwards;
}
.tp-skip-intro .tp-loader,
.tp-no-motion .tp-loader { display: none; }
.tp-loader-inner { display: grid; gap: 1.1rem; justify-items: center; }
.tp-loader-brand {
  font-family: var(--apx-font-display);
  font-size: clamp(2.4rem, 8vw, 5.5rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
  margin: 0;
}
.tp-loader-line {
  width: min(280px, 60vw);
  height: 1px;
  background: rgba(255, 255, 255, 0.2);
  transform-origin: 50% 50%;
}
/* 3D logo preloader (tp-logo.js) — default TEMPRIO logo only */
.tp-loader-logo {
  animation-delay: 9s;
  background:
    radial-gradient(60% 60% at 50% 45%, rgba(26, 107, 154, 0.35), transparent 70%),
    radial-gradient(120% 90% at 50% 50%, #0a1c2e 0%, #050b14 70%);
}
.tp-loader-mark { width: min(540px, 92vw, 88vh); }
.tp-logo-3d { position: relative; aspect-ratio: 1 / 1; }
.tp-logo-3d .tp-logo-canvas {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  opacity: 0;
  transition: opacity 0.35s ease;
}
.tp-logo-3d.is-ready .tp-logo-canvas { opacity: 1; }
.tp-logo-fallback {
  position: absolute;
  left: 21.1%;
  top: 27.8%;
  width: 57.8%;
  height: auto;
  transition: opacity 0.35s ease;
}
/* Hidden at first so a slow WebGL start doesn't show the full mark and then break it apart */
.tp-logo-3d .tp-logo-fallback { opacity: 0; animation: tpLogoFallback 0.4s ease 2.5s forwards; }
.tp-logo-3d.is-ready .tp-logo-fallback { animation: none; opacity: 0; }
.tp-logo-3d.is-fallback .tp-logo-fallback { animation: none; opacity: 1; }
@keyframes tpLogoFallback { to { opacity: 1; } }
.apx-brand img { backface-visibility: visible; will-change: transform; }
.tp-loader-count {
  font-variant-numeric: tabular-nums;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.3em;
  color: var(--apx-accent);
}

/* ——— Page curtain ——— */
.tp-curtain {
  position: fixed;
  inset: 0;
  z-index: 99;
  pointer-events: none;
  background: var(--tp-night);
  background:
    radial-gradient(800px 500px at 70% 40%, color-mix(in srgb, var(--apx-secondary) 45%, transparent), transparent 60%),
    var(--tp-night);
  transform: translateY(100%);
}
.tp-curtain-in .tp-curtain { transform: translateY(0); animation: tpCurtainBail 0.01s linear 2.5s forwards; }
.tp-no-motion .tp-curtain { display: none; }

/* ——— Cursor ——— */
.tp-cursor { position: fixed; inset: 0; pointer-events: none; z-index: 110; opacity: 0; transition: opacity 0.3s ease; }
.tp-cursor.is-on { opacity: 1; }
.tp-cursor-dot,
.tp-cursor-ring {
  position: absolute;
  left: 0;
  top: 0;
  border-radius: 50%;
  translate: -50% -50%;
}
.tp-cursor-dot { width: 6px; height: 6px; background: var(--apx-accent); }
.tp-cursor-ring {
  width: 38px;
  height: 38px;
  border: 1px solid color-mix(in srgb, var(--apx-secondary) 60%, transparent);
  display: grid;
  place-items: center;
  transition: width 0.35s var(--tp-ease-expo), height 0.35s var(--tp-ease-expo), background 0.35s ease, border-color 0.35s ease;
}
.tp-cursor-ring em {
  font-style: normal;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff;
  opacity: 0;
  transition: opacity 0.25s ease;
}
.tp-cursor.is-link .tp-cursor-ring { width: 54px; height: 54px; background: color-mix(in srgb, var(--apx-accent) 18%, transparent); border-color: transparent; }
.tp-cursor.is-card .tp-cursor-ring { width: 84px; height: 84px; background: color-mix(in srgb, var(--apx-primary) 82%, transparent); border-color: transparent; backdrop-filter: blur(4px); }
.tp-cursor.is-card .tp-cursor-ring em { opacity: 1; }
.tp-cursor.is-card .tp-cursor-dot { opacity: 0; }

/* ——— Fly to cart ——— */
.tp-fly-orb {
  position: fixed;
  left: 0;
  top: 0;
  width: 26px;
  height: 26px;
  margin: -13px 0 0 -13px;
  border-radius: 50%;
  z-index: 120;
  pointer-events: none;
  background: radial-gradient(circle at 35% 30%, #fff6dc, var(--apx-accent) 55%, #b97c12);
  box-shadow: 0 0 0 6px color-mix(in srgb, var(--apx-accent) 25%, transparent), 0 10px 30px rgba(232, 168, 56, 0.55);
}

/* ——— Keyframes ——— */
@keyframes tpGrain {
  0% { transform: translate(0, 0); }
  20% { transform: translate(-4%, 3%); }
  40% { transform: translate(3%, -2%); }
  60% { transform: translate(-2%, -4%); }
  80% { transform: translate(4%, 2%); }
  100% { transform: translate(0, 0); }
}
@keyframes tpMarquee { to { transform: translateX(-50%); } }
@keyframes tpCue {
  0% { transform: translateY(0); opacity: 0; }
  30% { opacity: 1; }
  100% { transform: translateY(12px); opacity: 0; }
}
@keyframes tpBail { to { visibility: hidden; opacity: 0; } }
@keyframes tpCurtainBail { to { transform: translateY(-100%); } }

/* ——— Premium home sections (curated / about / brands) ——— */
.tp-premium-featured,
.tp-premium-about,
.tp-premium-brands,
.tp-premium-services {
  position: relative;
  isolation: isolate;
}
.tp-section-ambient {
  position: absolute;
  inset: -8% 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  opacity: 0.85;
}
.tp-ambient-canvas {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
}
.tp-premium-featured > .apx-section-title,
.tp-premium-featured > .tp-rail-head,
.tp-premium-featured > .apx-grid,
.tp-premium-featured .ws-showcase-rail,
.tp-premium-featured > .tp-rail-track,
.tp-premium-featured > .tp-rail-progress {
  position: relative;
  z-index: 1;
}
.tp-premium-featured.apx-wrap {
  padding-top: 0.5rem;
}
.tp-premium-featured::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(520px 280px at 12% 20%, color-mix(in srgb, var(--apx-secondary) 14%, transparent), transparent 70%),
    radial-gradient(480px 260px at 88% 75%, color-mix(in srgb, var(--apx-accent) 16%, transparent), transparent 68%);
}
.tp-premium-about {
  overflow: hidden;
}
.tp-premium-about .tp-section-scene {
  position: absolute;
  right: -4%;
  top: 8%;
  width: min(52vw, 520px);
  height: min(52vw, 520px);
  z-index: 0;
  opacity: 0.55;
  pointer-events: none;
}
.tp-premium-about .apx-story-inner {
  position: relative;
  z-index: 2;
}
.tp-premium-about .tp-section-ambient {
  inset: 0;
  opacity: 0.65;
}
.tp-story-tiles-3d {
  transform-style: preserve-3d;
}
.tp-float-tile {
  transform-style: preserve-3d;
  backface-visibility: hidden;
}
.tp-depth-card {
  position: relative;
  transform-style: preserve-3d;
  will-change: transform;
}
.tp-card-shine {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.35s ease;
  background: radial-gradient(
    420px circle at var(--tp-gx, 50%) var(--tp-gy, 30%),
    rgba(255, 255, 255, 0.45),
    transparent 42%
  );
  mix-blend-mode: soft-light;
}
.tp-depth-card:hover .tp-card-shine {
  opacity: 1;
}
.tp-card-media-3d {
  transform: translateZ(12px);
  transform-style: preserve-3d;
}
.tp-card-media-3d img {
  transform: translateZ(0);
}
.tp-premium-brands .apx-wrap {
  position: relative;
  z-index: 2;
}
.tp-brand-orbit {
  position: relative;
  z-index: 1;
  height: clamp(140px, 22vw, 220px);
  margin: -0.5rem auto 0.5rem;
  max-width: min(720px, 92vw);
  pointer-events: none;
}
.tp-brand-orbit-canvas {
  width: 100% !important;
  height: 100% !important;
  display: block;
}
.tp-brand-grid-3d {
  transform-style: preserve-3d;
  perspective: 1400px;
}
.tp-brand-card {
  transform-style: preserve-3d;
}
.tp-premium-brands {
  padding-top: 0.25rem;
}
.tp-premium-brands::after {
  content: '';
  position: absolute;
  inset: auto 0 0;
  height: 40%;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(0deg, color-mix(in srgb, var(--apx-secondary) 6%, transparent), transparent);
}
.tp-motion .tp-depth-card:hover,
.tp-motion .tp-depth-card:active {
  transform: none;
}
.tp-no-motion .tp-section-ambient,
.tp-no-motion .tp-brand-orbit,
.tp-no-motion .tp-section-scene.tp-section-scene--hide {
  display: none;
}

/* ——— Responsive ——— */
@media (max-width: 991.98px) {
  .tp-premium-about .tp-section-scene {
    width: 70vw;
    height: 50vw;
    right: -18%;
    top: auto;
    bottom: -6%;
    opacity: 0.35;
  }
  .tp-brand-orbit {
    display: none;
  }
}
@media (max-width: 991.98px) {
  .tp-hero.apx-hero,
  .ws-hero.ws-hero-has-scene {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    min-height: 100svh;
    padding-top: calc(var(--apx-header-h, 70px) + 0.6rem);
    padding-bottom: calc(6.25rem + env(safe-area-inset-bottom, 0px));
  }
  .tp-hero.apx-hero::before {
    background: linear-gradient(180deg, rgba(5, 11, 18, 0.2) 0%, rgba(5, 11, 18, 0.55) 42%, rgba(5, 11, 18, 0.88) 100%);
    z-index: 1;
  }
  .tp-hero .tp-scene,
  .ws-hero .tp-scene,
  .ws-hero-has-scene .tp-scene {
    position: relative !important;
    inset: auto !important;
    left: auto !important;
    right: auto !important;
    display: block !important;
    order: -1;
    width: 100%;
    height: min(46vh, 360px);
    flex: 0 0 auto;
    z-index: 2;
    -webkit-mask-image: none;
    mask-image: none;
  }
  .tp-hero .apx-hero-inner,
  .ws-hero .ws-hero-inner,
  .ws-hero-has-scene .ws-hero-copy {
    position: relative;
    z-index: 4;
    width: 100%;
    max-width: none;
    text-align: left;
    background: none;
  }
  .tp-hero .apx-hero-cta,
  .ws-hero .apx-hero-cta {
    flex-direction: column;
    align-items: stretch;
  }
  .tp-hero .apx-hero-cta .apx-btn,
  .ws-hero .apx-hero-cta .apx-btn {
    width: 100%;
    justify-content: center;
  }
  .tp-hero-meta,
  .ws-hero-meta,
  .ws-hero-l-center .tp-hero-meta {
    position: relative;
    left: auto;
    right: auto;
    top: auto;
    bottom: auto;
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 0.65rem;
    width: 100%;
    max-width: none;
    margin: 1.35rem 0 0;
    padding: 0 1.25rem 0.25rem;
    z-index: 4;
  }
  .tp-hero-meta .tp-hero-label,
  .tp-hero-meta .tp-scroll-cue {
    white-space: normal;
    max-width: 100%;
  }
}
@media (max-width: 640px) {
  .tp-rail-track .apx-card { flex-basis: 72vw; }
  .tp-hero .tp-scene,
  .ws-hero .tp-scene {
    height: min(40vh, 280px);
  }
}

/* ——— Reduced motion / no motion ——— */
@media (prefers-reduced-motion: reduce) {
  .tp-grain,
  .tp-marquee-track,
  .tp-scroll-cue i::after { animation: none; }
  .tp-loader,
  .tp-curtain { display: none; }
}
