/* ============================================================
 * YITONG · Premium luminous layer (流光溢彩)
 * Additive overlays inspired by 21st.dev + integratedbio / bitkey
 * Does NOT alter particles-bg / intro video sources or timing.
 * Pseudo-safe: spot/shimmer layers are real DOM nodes from premium.js
 * so quality-card::before accent + .btn-arrow::after stay intact.
 * ============================================================ */

:root {
  --prem-spot: rgba(127, 178, 255, 0.26);
  --prem-cyan: rgba(127, 233, 255, 0.45);
  --prem-violet: rgba(170, 130, 255, 0.35);
  --prem-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --prem-ease-lux: cubic-bezier(0.16, 1, 0.3, 1);
  --spot-x: 50%;
  --spot-y: 50%;
}

/* ---------- C) Fixed WebGL luminosity layer ---------- */
#premium-shader {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0; /* particles-bg:-2 · shader:0 · light-flow:1 · sections:2 · intro:100 */
  pointer-events: none;
  opacity: 0;
  mix-blend-mode: soft-light;
  transition: opacity 2.2s var(--prem-ease-lux);
  will-change: opacity;
}
body.home-active #premium-shader,
body.hero-active #premium-shader,
body.page-sub #premium-shader {
  opacity: 0.22;
}
body.intro-lock:not(.hero-active):not(.home-active) #premium-shader {
  opacity: 0;
}
@media (prefers-reduced-motion: reduce) {
  #premium-shader { opacity: 0 !important; visibility: hidden; }
}

/* ---------- Hero aurora / mesh energy ---------- */
.hero-aurora {
  position: absolute;
  inset: -18% -8% -8%;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  opacity: 0;
  transition: opacity 1.8s var(--prem-ease-lux) 0.25s;
}
body.hero-active .hero-aurora,
body.home-active .hero-aurora {
  opacity: 0.72;
}
.hero-aurora .blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(64px);
  mix-blend-mode: screen;
  will-change: transform, opacity;
  animation: premBlobDrift 18s var(--prem-ease) infinite alternate;
}
.hero-aurora .b1 {
  width: 55vmin; height: 55vmin;
  top: 8%; left: 12%;
  background: radial-gradient(circle, rgba(59,130,246,.55) 0%, transparent 70%);
  animation-duration: 22s;
}
.hero-aurora .b2 {
  width: 48vmin; height: 48vmin;
  top: 28%; right: 8%;
  background: radial-gradient(circle, rgba(127,233,255,.42) 0%, transparent 70%);
  animation-duration: 26s;
  animation-delay: -4s;
}
.hero-aurora .b3 {
  width: 42vmin; height: 42vmin;
  bottom: 6%; left: 38%;
  background: radial-gradient(circle, rgba(170,130,255,.38) 0%, transparent 70%);
  animation-duration: 20s;
  animation-delay: -8s;
}
@keyframes premBlobDrift {
  0%   { transform: translate(0, 0) scale(1); opacity: .7; }
  50%  { transform: translate(4%, -6%) scale(1.12); opacity: .95; }
  100% { transform: translate(-5%, 5%) scale(0.94); opacity: .65; }
}

.hero { isolation: isolate; }
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 70% 50% at 50% 35%, rgba(59,130,246,.08) 0%, transparent 60%),
    radial-gradient(ellipse 50% 40% at 70% 60%, rgba(127,233,255,.05) 0%, transparent 55%),
    linear-gradient(180deg, rgba(7,9,13,.04) 0%, rgba(7,9,13,.16) 100%);
  opacity: 0;
  transition: opacity 1.6s var(--prem-ease);
}
body.hero-active .hero::after,
body.home-active .hero::after { opacity: 0.7; }

.hero-title,
.hero-sub,
.hero-actions,
.hero-brand,
.hero-aurora { position: relative; z-index: 1; }
.hero-aurora { z-index: 0; }

.hero-title {
  text-shadow:
    0 0 40px rgba(59,130,246,.25),
    0 0 80px rgba(127,233,255,.12),
    0 2px 24px rgba(0,0,0,.55);
}
.hero-title em {
  filter: drop-shadow(0 0 18px rgba(127,178,255,.45));
}

/* Page / section accent washes */
.page-hero { isolation: isolate; }
.page-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 80% 60% at 20% 40%, rgba(59,130,246,.18) 0%, transparent 55%),
    radial-gradient(ellipse 60% 50% at 85% 20%, rgba(127,233,255,.12) 0%, transparent 50%),
    radial-gradient(ellipse 50% 40% at 60% 90%, rgba(170,130,255,.10) 0%, transparent 50%);
  animation: premPageWash 14s ease-in-out infinite alternate;
}
@keyframes premPageWash {
  0%   { opacity: .75; filter: hue-rotate(0deg); }
  100% { opacity: 1; filter: hue-rotate(12deg); }
}
.page-hero > * { position: relative; z-index: 1; }

.section-head { position: relative; }
.section-head::before {
  content: '';
  position: absolute;
  left: -8%;
  top: -40%;
  width: 40%;
  height: 180%;
  background: radial-gradient(ellipse at center, rgba(59,130,246,.12) 0%, transparent 70%);
  pointer-events: none;
  filter: blur(20px);
  z-index: -1;
}

/* ---------- A) Spotlight cards (DOM layer .spot-glow) ---------- */
.product-card,
.quality-card,
.app-card,
.spotlight-card {
  --spot-x: 50%;
  --spot-y: 50%;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  transition:
    transform .55s var(--prem-ease-lux),
    border-color .45s var(--prem-ease),
    box-shadow .55s var(--prem-ease-lux) !important;
}

.spot-glow {
  position: absolute;
  inset: 0;
  z-index: 2;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  background:
    radial-gradient(
      420px circle at var(--spot-x) var(--spot-y),
      var(--prem-spot) 0%,
      transparent 55%
    ),
    radial-gradient(
      220px circle at var(--spot-x) var(--spot-y),
      rgba(127,233,255,.16) 0%,
      transparent 42%
    );
  box-shadow: inset 0 0 0 1px rgba(127,178,255,0);
  mix-blend-mode: soft-light;
  transition: opacity .4s var(--prem-ease), box-shadow .4s var(--prem-ease);
}

.product-card.is-spot .spot-glow,
.quality-card.is-spot .spot-glow,
.app-card.is-spot .spot-glow,
.spotlight-card.is-spot .spot-glow,
.product-card:hover .spot-glow,
.quality-card:hover .spot-glow,
.app-card:hover .spot-glow,
.spotlight-card:hover .spot-glow {
  opacity: 1;
  box-shadow: inset 0 0 0 1px rgba(127,178,255,.32);
}

.product-card > *:not(.spot-glow),
.quality-card > *:not(.spot-glow),
.app-card > *:not(.spot-glow),
.spotlight-card > *:not(.spot-glow) {
  position: relative;
  z-index: 4;
}

.product-card:hover,
.quality-card:hover,
.app-card:hover,
.spotlight-card:hover {
  transform: translateY(-6px) scale(1.012);
  border-color: rgba(127,178,255,.55) !important;
  box-shadow:
    0 28px 64px rgba(0,0,0,.42),
    0 0 40px rgba(59,130,246,.18),
    inset 0 1px 0 rgba(255,255,255,.28) !important;
}

/* Keep quality top accent bar above spot soft-light but under content */
.quality-card::before { z-index: 5; }

/* ---------- B) Gradient glow primary buttons ---------- */
.btn-primary {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  color: #f4f8ff !important;
  background:
    linear-gradient(135deg, #1e4fa3 0%, #3b82f6 40%, #5eb0ff 72%, #3b82f6 100%) !important;
  background-size: 220% 220% !important;
  border: 1px solid rgba(127,178,255,.5) !important;
  box-shadow:
    0 12px 36px rgba(59,130,246,.42),
    0 0 0 1px rgba(127,233,255,.12),
    inset 0 1px 0 rgba(255,255,255,.35),
    inset 0 -1px 0 rgba(0,0,0,.12) !important;
  transition:
    transform .45s var(--prem-ease-lux),
    box-shadow .45s var(--prem-ease),
    filter .45s var(--prem-ease) !important;
  animation: premBtnShift 8s ease infinite;
}
@keyframes premBtnShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* Animated gradient border ring — child from JS, not ::before */
.btn-ring {
  position: absolute;
  inset: -1px;
  z-index: 0;
  border-radius: inherit;
  padding: 1px;
  background: conic-gradient(
    from var(--btn-angle, 0deg),
    #3b82f6,
    #7fe9ff,
    #a882ff,
    #3b82f6,
    #7fb2ff,
    #3b82f6
  );
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: .9;
  animation: premConic 4s linear infinite;
  pointer-events: none;
}
@property --btn-angle {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}
@keyframes premConic {
  to { --btn-angle: 360deg; }
}

/* Shimmer sweep — child from JS, preserves .btn-arrow::after */
.btn-shimmer {
  position: absolute;
  top: 0;
  left: -130%;
  width: 55%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    105deg,
    transparent 0%,
    rgba(255,255,255,.06) 35%,
    rgba(255,255,255,.4) 50%,
    rgba(255,255,255,.06) 65%,
    transparent 100%
  );
  transform: skewX(-18deg);
}
.btn-primary:hover .btn-shimmer {
  animation: premShimmer .85s var(--prem-ease) forwards;
}
@keyframes premShimmer {
  from { left: -130%; }
  to   { left: 140%; }
}

.btn-primary:hover {
  transform: translateY(-3px) scale(1.02) !important;
  filter: brightness(1.08);
  box-shadow:
    0 18px 48px rgba(59,130,246,.55),
    0 0 32px rgba(127,233,255,.35),
    inset 0 1px 0 rgba(255,255,255,.45) !important;
}

.btn.is-magnetic,
.product-card.is-magnetic,
.quality-card.is-magnetic,
.app-card.is-magnetic {
  will-change: transform;
}

/* ---------- E) Premium glass nav — transparent until scrolled ---------- */
.site-nav {
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border-bottom: 1px solid transparent !important;
  box-shadow: none !important;
  background: transparent !important;
}
body.page-sub .site-nav {
  background:
    linear-gradient(180deg, rgba(8,12,18,.58) 0%, rgba(8,12,18,.22) 70%, rgba(8,12,18,0) 100%) !important;
  backdrop-filter: blur(18px) saturate(160%) !important;
  -webkit-backdrop-filter: blur(18px) saturate(160%) !important;
  border-bottom: 1px solid rgba(255,255,255,.08) !important;
}
body.nav-solid .site-nav,
.site-nav.is-solid {
  background: rgba(8, 12, 18, 0.55) !important;
  backdrop-filter: blur(18px) saturate(160%) !important;
  -webkit-backdrop-filter: blur(18px) saturate(160%) !important;
  border-bottom: 1px solid rgba(255,255,255,.08) !important;
  box-shadow:
    0 10px 40px rgba(0,0,0,.18),
    inset 0 -1px 0 rgba(127,178,255,.08) !important;
}
/* hide bottom neon line until solid */
body:not(.nav-solid):not(.page-sub) .site-nav::after {
  opacity: 0 !important;
}
body:not(.nav-solid):not(.page-sub) .site-nav::before {
  opacity: 0 !important;
}
.site-nav::after {
  content: '';
  position: absolute;
  left: 10%;
  right: 10%;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg,
    transparent,
    rgba(127,178,255,.45),
    rgba(127,233,255,.55),
    rgba(127,178,255,.45),
    transparent);
  opacity: .7;
  pointer-events: none;
}
.nav-list > a {
  position: relative;
  transition: color .35s var(--prem-ease), text-shadow .35s var(--prem-ease);
}
.nav-list > a::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -6px;
  width: 0;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, #3b82f6, #7fe9ff);
  box-shadow: 0 0 12px rgba(127,233,255,.6);
  transition: width .4s var(--prem-ease-lux), left .4s var(--prem-ease-lux);
}
.nav-list > a:hover::after,
.nav-list > a.active::after {
  width: 100%;
  left: 0;
}
.nav-list > a:hover,
.nav-list > a.active {
  text-shadow: 0 0 18px rgba(127,178,255,.45);
}

/* ---------- Smoother scroll reveals ---------- */
/* Softer motion: avoid heavy blur that clips heading glyphs mid-transition */
.section-head,
.section-title,
.section-lead,
.section-eyebrow {
  overflow: visible;
}
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  filter: none;
  transition:
    opacity 1.05s var(--prem-ease-lux),
    transform 1.15s var(--prem-ease-lux) !important;
}
[data-reveal].in {
  opacity: 1;
  transform: translateY(0);
}
/* Cards can keep a whisper of blur without clipping body text much */
.product-card[data-reveal],
.quality-card[data-reveal],
.app-card[data-reveal] {
  filter: blur(2px);
  transform: translateY(36px) scale(0.99);
  transition:
    opacity 1.05s var(--prem-ease-lux),
    transform 1.15s var(--prem-ease-lux),
    filter 1s var(--prem-ease-lux) !important;
}
.product-card[data-reveal].in,
.quality-card[data-reveal].in,
.app-card[data-reveal].in {
  filter: blur(0);
  transform: translateY(0) scale(1);
}

/* Amplify #light-flow */
#light-flow .ray {
  filter: blur(1.2px) drop-shadow(0 0 6px rgba(127,233,255,.35));
}
#light-flow .glow {
  filter: blur(2px);
  opacity: .55;
}
#light-flow {
  opacity: 0.72;
}

.section-head { margin-bottom: clamp(56px, 8vw, 72px); }
.hero-actions { gap: 18px; }

.fab {
  box-shadow:
    0 12px 30px rgba(0,0,0,.35),
    0 0 0 1px rgba(127,178,255,.2),
    0 0 24px rgba(59,130,246,.2),
    inset 0 1px 0 rgba(255,255,255,.25) !important;
}
.fab:hover {
  box-shadow:
    0 18px 44px rgba(59,130,246,.5),
    0 0 32px rgba(127,233,255,.35),
    inset 0 1px 0 rgba(255,255,255,.35) !important;
}

@media (prefers-reduced-motion: reduce) {
  .hero-aurora .blob,
  .btn-primary,
  .btn-ring,
  .page-hero::after {
    animation: none !important;
  }
  [data-reveal] {
    filter: none !important;
    transform: none !important;
    opacity: 1 !important;
  }
  .product-card:hover,
  .quality-card:hover,
  .app-card:hover {
    transform: none !important;
  }
}

/* ============================================================
 * Premium Motion v2 — Bitkey tilt · parallax · cursor · sheen
 * ============================================================ */

:root {
  --prem-glare: rgba(255, 255, 255, 0.55);
  --prem-cursor: rgba(127, 233, 255, 0.55);
  --nav-lx: 50%;
  --nav-ly: 50%;
}

/* ---------- 1) 3D tilt cards (replaces v1 magnetic on cards) ---------- */
.product-card.is-tilt,
.quality-card.is-tilt,
.app-card.is-tilt,
.spotlight-card.is-tilt {
  transform-style: preserve-3d;
  perspective: 900px;
  will-change: transform;
  transition:
    transform .55s var(--prem-ease-lux),
    border-color .45s var(--prem-ease),
    box-shadow .55s var(--prem-ease-lux) !important;
}
.product-card.is-tilt:hover,
.quality-card.is-tilt:hover,
.app-card.is-tilt:hover,
.spotlight-card.is-tilt:hover {
  /* JS owns transform while tilting; soft lift only when idle */
  transform: none;
}
.product-card.is-tilting,
.quality-card.is-tilting,
.app-card.is-tilting,
.spotlight-card.is-tilting {
  transition: box-shadow .25s var(--prem-ease), border-color .25s var(--prem-ease) !important;
  z-index: 3;
}

.tilt-glare {
  position: absolute;
  inset: 0;
  z-index: 3;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(
    280px circle at var(--glare-x, 50%) var(--glare-y, 50%),
    rgba(255, 255, 255, 0.42) 0%,
    rgba(127, 233, 255, 0.18) 28%,
    transparent 58%
  );
  mix-blend-mode: soft-light;
  transition: opacity .35s var(--prem-ease);
}
.is-tilting .tilt-glare,
.product-card:hover .tilt-glare,
.quality-card:hover .tilt-glare,
.app-card:hover .tilt-glare {
  opacity: 1;
}

/* Inner Z parallax — image deeper than text */
.product-card.is-tilt .img,
.product-card.is-tilt .body,
.quality-card.is-tilt > *:not(.spot-glow):not(.tilt-glare):not(.border-beam),
.app-card.is-tilt > *:not(.spot-glow):not(.tilt-glare):not(.border-beam) {
  transform: translateZ(0);
  transition: transform .45s var(--prem-ease-lux);
  will-change: transform;
}
.product-card.is-tilting .img { transform: translateZ(28px) scale(1.02); }
.product-card.is-tilting .body { transform: translateZ(12px); }
.quality-card.is-tilting > *:not(.spot-glow):not(.tilt-glare):not(.border-beam),
.app-card.is-tilting > *:not(.spot-glow):not(.tilt-glare):not(.border-beam) {
  transform: translateZ(14px);
}

/* Catalogue / product image idle + scroll spin lite */
.catalogue-grid .product-card .img,
.product-card[data-spin] .img {
  transform-style: preserve-3d;
  will-change: transform;
}
.catalogue-grid .product-card .img img,
.product-card[data-spin] .img img {
  transform: rotateY(var(--spin-y, 0deg)) scale(1.02);
  transition: transform .6s var(--prem-ease-lux);
  will-change: transform;
}
.catalogue-grid .product-card.is-tilting .img img,
.product-card[data-spin].is-tilting .img img {
  transition: none;
}

/* Keep magnetic only on buttons */
.btn.is-magnetic { will-change: transform; }
.product-card.is-magnetic,
.quality-card.is-magnetic,
.app-card.is-magnetic {
  /* legacy class noop — tilt owns motion */
}

/* ---------- 2) Scroll parallax layers ---------- */
[data-parallax] {
  will-change: transform;
  backface-visibility: hidden;
}
.prem-orbs {
  position: absolute;
  inset: -10% -5%;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.prem-orbs .orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(48px);
  mix-blend-mode: screen;
  opacity: 0.28;
  will-change: transform;
}
.prem-orbs .orb.o1 {
  width: 28vmin; height: 28vmin; top: 12%; left: 8%;
  background: radial-gradient(circle, rgba(59,130,246,.5), transparent 70%);
}
.prem-orbs .orb.o2 {
  width: 22vmin; height: 22vmin; top: 48%; right: 10%;
  background: radial-gradient(circle, rgba(127,233,255,.4), transparent 70%);
}
.prem-orbs .orb.o3 {
  width: 18vmin; height: 18vmin; bottom: 10%; left: 42%;
  background: radial-gradient(circle, rgba(170,130,255,.35), transparent 70%);
}
.prem-orbs .line {
  position: absolute;
  width: 1px;
  height: 40%;
  top: 20%;
  background: linear-gradient(180deg, transparent, rgba(127,178,255,.35), transparent);
  opacity: 0.5;
  will-change: transform;
}
.prem-orbs .line.l1 { left: 18%; }
.prem-orbs .line.l2 { right: 22%; height: 28%; top: 40%; }

.section-dark,
#products,
#quality,
#application,
.page-hero {
  position: relative;
  isolation: isolate;
}

.hero-aurora .blob {
  /* JS adds --ax/--ay parallax on top of CSS drift via translate3d */
}

.rail,
.fab {
  will-change: transform;
}

/* ---------- 3) Text stagger ---------- */
.prem-word {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.55em);
  transition:
    opacity .7s var(--prem-ease-lux),
    transform .85s var(--prem-ease-lux);
  transition-delay: calc(var(--wi, 0) * 45ms);
}
.prem-stagger-ready .prem-word,
.is-staggered .prem-word {
  opacity: 1;
  transform: translateY(0);
}
.hero-title .line.prem-line-boost span {
  /* cinematic already reveals lines; soft boost glow only */
}
.section-title.prem-split {
  overflow: visible;
}

/* Soft custom cursor */
#prem-cursor {
  position: fixed;
  top: 0; left: 0;
  width: 14px; height: 14px;
  margin: -7px 0 0 -7px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  background: radial-gradient(circle, rgba(127,233,255,.85) 0%, rgba(59,130,246,.35) 45%, transparent 70%);
  box-shadow: 0 0 18px rgba(127,233,255,.45), 0 0 40px rgba(59,130,246,.25);
  mix-blend-mode: screen;
  opacity: 0;
  transform: translate3d(-100px, -100px, 0) scale(1);
  transition: opacity .35s ease, width .3s var(--prem-ease), height .3s var(--prem-ease), margin .3s var(--prem-ease);
  will-change: transform;
}
#prem-cursor.on { opacity: 0.9; }
#prem-cursor.grow {
  width: 36px; height: 36px;
  margin: -18px 0 0 -18px;
  background: radial-gradient(circle, rgba(127,233,255,.55) 0%, rgba(59,130,246,.2) 50%, transparent 72%);
}
@media (pointer: coarse), (max-width: 900px) {
  #prem-cursor { display: none !important; }
}

/* Section enter — grids */
.product-grid.prem-enter,
.quality-grid.prem-enter,
.app-grid.prem-enter,
.catalogue-grid.prem-enter {
  opacity: 0;
  transform: perspective(1200px) translateY(28px) scale(0.985) rotateY(-2deg);
  transition:
    opacity 1.1s var(--prem-ease-lux),
    transform 1.25s var(--prem-ease-lux);
}
.product-grid.prem-enter.in,
.quality-grid.prem-enter.in,
.app-grid.prem-enter.in,
.catalogue-grid.prem-enter.in {
  opacity: 1;
  transform: perspective(1200px) translateY(0) scale(1) rotateY(0deg);
}

/* Horizontal sheen / border-beam */
.border-beam {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  z-index: 6;
  overflow: hidden;
  opacity: 0;
  transition: opacity .4s var(--prem-ease);
}
.border-beam::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(
    110deg,
    transparent 30%,
    rgba(127,233,255,.05) 42%,
    rgba(255,255,255,.55) 50%,
    rgba(127,178,255,.15) 58%,
    transparent 70%
  );
  background-size: 220% 100%;
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: premBeam 2.8s linear infinite;
}
@keyframes premBeam {
  0% { background-position: 120% 0; }
  100% { background-position: -120% 0; }
}
.product-card:hover .border-beam,
.quality-card:hover .border-beam,
.app-card:hover .border-beam,
.product-card.is-tilting .border-beam,
.product-tab.active .border-beam {
  opacity: 1;
}

.product-tab {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  transition: color .35s var(--prem-ease), text-shadow .35s var(--prem-ease), transform .4s var(--prem-ease-lux) !important;
}
.product-tab.active {
  text-shadow: 0 0 16px rgba(127,178,255,.4);
}
.product-tab .border-beam {
  border-radius: 8px;
  opacity: 0;
}
.product-tab.active .border-beam { opacity: .85; }

/* Keyword marquee */
.prem-marquee {
  position: relative;
  overflow: hidden;
  margin: 18px 0 8px;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  opacity: 0.38;
  pointer-events: none;
}
.prem-marquee .track {
  display: flex;
  width: max-content;
  gap: 0;
  animation: premMarquee 42s linear infinite;
  will-change: transform;
}
.prem-marquee .track span {
  flex: none;
  padding: 0 1.6em;
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(180, 210, 255, 0.85);
  white-space: nowrap;
  font-family: 'Barlow Condensed', 'DIN Alternate', sans-serif;
}
@keyframes premMarquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* Nav glass pointer light */
.site-nav {
  --nav-lx: 50%;
  --nav-ly: 40%;
}
.site-nav::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background: radial-gradient(
    420px circle at var(--nav-lx) var(--nav-ly),
    rgba(127, 178, 255, 0.16) 0%,
    transparent 55%
  );
  opacity: 0.85;
  transition: opacity .4s ease;
}
.site-nav > * { position: relative; z-index: 1; }

/* ---------- 4) Craft / products polish ---------- */
.craft-step.active {
  /* v3: luminous edge only — no !important transform fighting craft-video scrub */
  box-shadow:
    -3px 0 0 0 rgba(127, 178, 255, 0.75),
    0 0 28px rgba(59, 130, 246, 0.22),
    inset 0 0 24px rgba(127, 233, 255, 0.06);
  filter: none;
  /* leave transform to cinematic.css (.craft-step.active) */
  border-radius: 4px;
  background: linear-gradient(90deg, rgba(59,130,246,.08), transparent 70%);
}
.craft-pin.finale .craft-step.active {
  /* finale keeps list calm */
  box-shadow: none;
  filter: none;
  background: transparent;
}

/* Product panel crossfade / slide */
.product-panel {
  transition: opacity .45s var(--prem-ease-lux), transform .55s var(--prem-ease-lux);
}
.product-panel.active {
  animation: premPanelIn .65s var(--prem-ease-lux) both !important;
}
@keyframes premPanelIn {
  from {
    opacity: 0;
    transform: translateX(18px) scale(0.992);
  }
  to {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}

/* Mobile: no 3D tilt / cursor; light CSS only */
@media (pointer: coarse), (max-width: 900px) {
  .product-card.is-tilt,
  .quality-card.is-tilt,
  .app-card.is-tilt {
    transform: none !important;
    perspective: none;
  }
  .product-card.is-tilting .img,
  .product-card.is-tilting .body {
    transform: none !important;
  }
  .tilt-glare { display: none; }
  .product-grid.prem-enter,
  .quality-grid.prem-enter,
  .app-grid.prem-enter {
    transform: translateY(16px);
  }
  .product-grid.prem-enter.in,
  .quality-grid.prem-enter.in,
  .app-grid.prem-enter.in {
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .tilt-glare,
  #prem-cursor,
  .border-beam,
  .prem-marquee .track,
  .prem-orbs,
  .border-beam::before {
    animation: none !important;
    display: none !important;
  }
  .prem-word {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .product-grid.prem-enter,
  .quality-grid.prem-enter,
  .app-grid.prem-enter,
  .catalogue-grid.prem-enter {
    opacity: 1 !important;
    transform: none !important;
  }
  .product-panel.active { animation: none !important; }
  .craft-step.active {
    /* keep cinematic transform; luminous edge only */
    filter: none;
    box-shadow: -2px 0 0 0 rgba(127,178,255,.5);
  }
  [data-parallax],
  .hero-aurora .blob,
  .rail,
  .fab {
    transform: none !important;
  }
  .catalogue-grid .product-card .img img {
    transform: none !important;
  }
}

/* ============================================================
 * Premium Motion v2.1 extras — chips · conveyor · capsule · glitch
 * ============================================================ */

/* ---------- Floating glass certification chips ---------- */
.prem-chips {
  opacity: 0;
  transition: opacity 1.2s var(--prem-ease-lux) 0.4s;
}
body.hero-active .prem-chips,
body.home-active .prem-chips,
body.page-sub .prem-chips {
  opacity: 1;
}
.prem-chips {
  position: absolute;
  inset: 0;
  z-index: 0; /* under hero title/actions (z:1); decorative only */
  pointer-events: none;
  overflow: visible;
}
.prem-chip {
  position: absolute;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-family: 'Barlow Condensed', 'DIN Alternate', sans-serif;
  color: rgba(220, 235, 255, 0.92);
  background: linear-gradient(135deg, rgba(18, 28, 42, 0.55), rgba(12, 18, 28, 0.35));
  border: 1px solid rgba(127, 178, 255, 0.28);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  box-shadow:
    0 10px 28px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 0 20px rgba(59, 130, 246, 0.12);
  white-space: nowrap;
  will-change: transform;
  opacity: 0.55;
}
.prem-chip::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(120deg, transparent 40%, rgba(127, 233, 255, 0.12) 50%, transparent 60%);
  pointer-events: none;
}
.hero .prem-chips .prem-chip:nth-child(1) { top: 18%; left: 6%; }
.hero .prem-chips .prem-chip:nth-child(2) { top: 32%; right: 8%; }
.hero .prem-chips .prem-chip:nth-child(3) { bottom: 28%; left: 10%; }
.hero .prem-chips .prem-chip:nth-child(4) { top: 58%; right: 12%; }
.hero .prem-chips .prem-chip:nth-child(5) { bottom: 16%; right: 22%; }
.hero .prem-chips .prem-chip:nth-child(6) { top: 22%; left: 42%; opacity: 0.55; }
#products .prem-chips { z-index: 1; }
#products .prem-chips .prem-chip:nth-child(1) { top: 8%; right: 4%; }
#products .prem-chips .prem-chip:nth-child(2) { top: 42%; left: 2%; }
#products .prem-chips .prem-chip:nth-child(3) { bottom: 12%; right: 8%; }
@media (max-width: 900px) {
  .prem-chips { display: none; }
}

/* ---------- Product-family conveyor ---------- */
.prem-conveyor {
  position: relative;
  margin: 10px 0 28px;
  overflow: hidden;
  border-radius: 999px;
  border: 1px solid rgba(127, 178, 255, 0.14);
  background: linear-gradient(90deg, rgba(8, 14, 22, 0.35), rgba(16, 28, 44, 0.45), rgba(8, 14, 22, 0.35));
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.prem-conveyor .track {
  display: flex;
  width: max-content;
  gap: 0;
  animation: premConveyor 38s linear infinite;
  will-change: transform;
  padding: 10px 0;
}
.prem-conveyor:hover .track {
  animation-play-state: paused;
}
.prem-conveyor .track span {
  flex: none;
  padding: 0 1.75em;
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(170, 205, 255, 0.78);
  font-family: 'Barlow Condensed', sans-serif;
  white-space: nowrap;
  border-right: 1px solid rgba(127, 178, 255, 0.12);
}
@keyframes premConveyor {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ---------- Sticky capsule mini-nav ---------- */
#prem-capsule {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%) translateY(24px);
  z-index: 90;
  display: flex;
  gap: 2px;
  padding: 6px;
  border-radius: 999px;
  background: rgba(10, 16, 24, 0.55);
  border: 1px solid rgba(127, 178, 255, 0.28);
  backdrop-filter: blur(18px) saturate(180%);
  -webkit-backdrop-filter: blur(18px) saturate(180%);
  box-shadow:
    0 16px 40px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 0 28px rgba(59, 130, 246, 0.15);
  opacity: 0;
  pointer-events: none;
  transition:
    opacity .45s var(--prem-ease-lux),
    transform .55s var(--prem-ease-lux);
}
#prem-capsule.on {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
#prem-capsule a {
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  color: rgba(200, 220, 255, 0.72);
  transition: color .3s ease, background .3s ease, text-shadow .3s ease;
  font-family: 'Barlow Condensed', sans-serif;
}
#prem-capsule a:hover,
#prem-capsule a.active {
  color: #eaf4ff;
  background: rgba(59, 130, 246, 0.22);
  text-shadow: 0 0 14px rgba(127, 233, 255, 0.35);
}
@media (max-width: 900px), (pointer: coarse) {
  #prem-capsule { display: none !important; }
}

/* ---------- Section eyebrow glitch (restrained) ---------- */
.section-eyebrow.prem-glitch {
  position: relative;
  display: inline-block;
}
.section-eyebrow.prem-glitch::before,
.section-eyebrow.prem-glitch::after {
  content: attr(data-glitch);
  position: absolute;
  left: 0; top: 0;
  width: 100%;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  clip-path: inset(0 0 0 0);
}
.section-eyebrow.prem-glitch::before {
  color: rgba(127, 233, 255, 0.7);
  transform: translate(1px, 0);
  text-shadow: -1px 0 rgba(59, 130, 246, 0.5);
}
.section-eyebrow.prem-glitch::after {
  color: rgba(170, 130, 255, 0.55);
  transform: translate(-1px, 0);
  text-shadow: 1px 0 rgba(255, 80, 120, 0.25);
}
.section-eyebrow.prem-glitch.is-glitching::before {
  opacity: 0.55;
  animation: premGlitchA 0.45s steps(2, end) 1;
}
.section-eyebrow.prem-glitch.is-glitching::after {
  opacity: 0.4;
  animation: premGlitchB 0.45s steps(2, end) 1;
}
@keyframes premGlitchA {
  0%   { clip-path: inset(0 0 60% 0); transform: translate(1px, 0); }
  35%  { clip-path: inset(30% 0 20% 0); transform: translate(2px, -0.5px); }
  70%  { clip-path: inset(70% 0 0 0); transform: translate(-1px, 0.5px); }
  100% { clip-path: inset(0 0 0 0); opacity: 0; }
}
@keyframes premGlitchB {
  0%   { clip-path: inset(40% 0 10% 0); transform: translate(-1px, 0); }
  40%  { clip-path: inset(0 0 55% 0); transform: translate(-2px, 0.5px); }
  80%  { clip-path: inset(55% 0 5% 0); transform: translate(1px, -0.5px); }
  100% { clip-path: inset(0 0 0 0); opacity: 0; }
}

/* Expand scroll spin to all product card images */
.product-card .img {
  transform-style: preserve-3d;
  will-change: transform;
}
.product-card .img.prem-spin-target {
  transform: rotateY(var(--spin-y, 0deg));
  transition: transform .5s var(--prem-ease-lux);
}
.product-card.is-tilting .img.prem-spin-target {
  transition: none;
}

@media (prefers-reduced-motion: reduce) {
  .prem-chips,
  .prem-conveyor .track,
  #prem-capsule,
  .section-eyebrow.prem-glitch::before,
  .section-eyebrow.prem-glitch::after {
    animation: none !important;
    display: none !important;
  }
  .product-card .img.prem-spin-target,
  .product-card .img img {
    transform: none !important;
  }
}

/* ============================================================
 * Premium Motion v3 — high-transparency glass · craft pin safe
 * ============================================================ */

/* ---------- Glass sections (homepage + sub-pages) ---------- */
body.hero-active section,
body.home-active section,
body.page-sub section {
  background: rgba(7, 9, 13, 0.34);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  backdrop-filter: blur(18px) saturate(140%);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

body.hero-active .section-dark,
body.home-active .section-dark,
body.page-sub .section-dark,
body.hero-active #products,
body.home-active #products,
body.page-sub #products,
body.hero-active #quality,
body.home-active #quality,
body.page-sub #quality,
body.hero-active #application,
body.home-active #application {
  background: rgba(7, 9, 13, 0.38);
  -webkit-backdrop-filter: blur(20px) saturate(145%);
  backdrop-filter: blur(20px) saturate(145%);
}

/* Craft section uses the SAME page glass as other sections (v9.7).
   Beam/aurora lives inside .craft-collapsed glass frame — not the section wash. */
body.hero-active #craft,
body.home-active #craft,
#craft {
  background: rgba(7, 9, 13, 0.26) !important;
  -webkit-backdrop-filter: blur(18px) saturate(140%) !important;
  backdrop-filter: blur(18px) saturate(140%) !important;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transform: none;
  filter: none;
  perspective: none;
  isolation: auto;
  will-change: auto;
}
/* Hero / first screen stays fully clear */
body.hero-active .hero,
body.home-active .hero,
.hero {
  background: transparent !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
  border-top: none !important;
  box-shadow: none !important;
}

.craft-pin,
#craftPin {
  /* Do NOT force transform:none — GSAP pin owns transform on this node */
  filter: none;
  perspective: none;
  isolation: auto;
  background: transparent !important;
}

/* Soften craft left scrim further for particle bleed-through */
.craft-scrim {
  background:
    linear-gradient(90deg, rgba(4,6,10,.28) 0%, rgba(4,6,10,.08) 48%, rgba(4,6,10,0) 100%),
    linear-gradient(180deg, rgba(4,6,10,.18) 0%, rgba(4,6,10,0) 28%, rgba(4,6,10,0) 72%, rgba(4,6,10,.28) 100%) !important;
}

/* Stronger craft glass content panel (left text) */
.craft-head {
  background: linear-gradient(165deg, rgba(255,255,255,.07), rgba(255,255,255,.02));
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  backdrop-filter: blur(16px) saturate(140%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  padding: 18px 22px 16px;
  box-shadow:
    0 14px 40px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.16);
  max-width: 580px;
}
.craft-steps {
  background: linear-gradient(165deg, rgba(10,14,22,.28), rgba(10,14,22,.08));
  -webkit-backdrop-filter: blur(12px) saturate(130%);
  backdrop-filter: blur(12px) saturate(130%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 6px 14px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

/* ---------- Hero: one clean glass panel (not stacked black washes) ---------- */
.hero-sub {
  background: linear-gradient(165deg, rgba(255,255,255,.10), rgba(255,255,255,.03)) !important;
  -webkit-backdrop-filter: blur(20px) saturate(150%) !important;
  backdrop-filter: blur(20px) saturate(150%) !important;
  border: 1px solid rgba(255, 255, 255, 0.16) !important;
  border-radius: 18px !important;
  box-shadow:
    0 12px 36px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.22) !important;
  padding: 16px 28px !important;
  max-width: 640px !important;
}

/* Lighten cinematic hero::before further when premium is on */
/* First-page hero: no dark wash — particles + cutouts stay sharp */
body.hero-active .hero::before,
body.home-active .hero::before {
  opacity: 0 !important;
  background: none !important;
}

/* Hero clarity: do NOT re-darken intro-scrim (showcase.css kills it) */
body.hero-active #intro-scrim,
body.home-active #intro-scrim,
#intro.final-frame #intro-scrim,
#intro.bg-layer #intro-scrim {
  opacity: 0 !important;
  background: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

/* ---------- Sub-page glass hero ---------- */
body.page-sub .page-hero {
  background: rgba(7, 9, 13, 0.32);
  -webkit-backdrop-filter: blur(20px) saturate(145%);
  backdrop-filter: blur(20px) saturate(145%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
body.page-sub .page-hero::after {
  /* keep accent wash but softer */
  opacity: 0.55;
  filter: none;
  animation: none;
  background:
    radial-gradient(ellipse 80% 60% at 20% 40%, rgba(59,130,246,.12) 0%, transparent 55%),
    radial-gradient(ellipse 60% 50% at 85% 20%, rgba(127,233,255,.08) 0%, transparent 50%) !important;
}

/* Catalogue / dense cards stay glass, not solid */
.catalogue-grid .product-card {
  background: linear-gradient(165deg, rgba(255,255,255,.08), rgba(255,255,255,.02)) !important;
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  backdrop-filter: blur(16px) saturate(140%);
}

/* Capsule above craft pin chrome; below mail/fab if needed */
#prem-capsule {
  z-index: 95;
}

/* Fewer noisy chips on hero */
.hero .prem-chips .prem-chip:nth-child(5),
.hero .prem-chips .prem-chip:nth-child(6) {
  display: none;
}

@media (prefers-reduced-motion: reduce) {
  body.hero-active section,
  body.home-active section,
  body.page-sub section,
  body.page-sub .page-hero {
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
  .craft-head,
  .craft-steps,
  .hero-sub {
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
  }
}


/* ===== v3 rail anti-overlap ===== */
/* Active rail labels were sitting on top of glass hero/body copy on subpages */
body.page-sub .rail-dot.on span {
  opacity: 0;
  pointer-events: none;
}
body.page-sub .rail-dot:hover span {
  opacity: 1;
  pointer-events: auto;
}
body.page-sub .page-hero,
body.page-sub main,
body.page-sub section > .container {
  padding-left: max(var(--pad, 24px), 88px);
}
@media (max-width: 1180px) {
  body.page-sub .page-hero,
  body.page-sub main,
  body.page-sub section > .container {
    padding-left: var(--pad, 24px);
  }
}


/* ============================================================
 * Premium v4 — Quiet premium redesign (少而贵)
 * Airform glass + Talkify craft rhythm + Isaac Fayemi hierarchy
 * Motion: pointer glow · horizontal light-sweep · glass-edge
 * ============================================================ */

:root {
  --prem-glass: rgba(7, 9, 13, 0.28);
  --prem-glass-edge: rgba(255, 255, 255, 0.14);
  --prem-sweep: rgba(127, 233, 255, 0.35);
  --prem-type-display: clamp(2.4rem, 5.2vw, 4.2rem);
  --prem-type-lead: clamp(1.05rem, 1.6vw, 1.25rem);
}

/* Weaken full-screen shader / light-flow / aurora clutter */
body.home-active #premium-shader,
body.hero-active #premium-shader,
body.page-sub #premium-shader {
  opacity: 0.1 !important;
}
#light-flow {
  opacity: 0.32 !important;
}
body.hero-active .hero-aurora,
body.home-active .hero-aurora {
  opacity: 0.38 !important;
}
.hero-aurora .blob {
  filter: blur(72px) !important;
  opacity: 0.55;
}
.prem-orbs .orb {
  opacity: 0.28 !important;
}
.prem-orbs .line {
  opacity: 0.18 !important;
}

/* Weaken glitch */
.section-eyebrow.prem-glitch::before,
.section-eyebrow.prem-glitch::after {
  opacity: 0 !important;
}
.section-eyebrow.prem-glitch.is-glitching::before,
.section-eyebrow.prem-glitch.is-glitching::after {
  opacity: 0.18 !important;
}

/* ---------- Nav: homepage fully clear until particles handoff ---------- */
/* Do NOT force blur/gradient on hero — that fought transparent nav. */
body:not(.page-sub):not(.nav-solid) .site-nav {
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  box-shadow: none !important;
  background: transparent !important;
  border-bottom-color: transparent !important;
}
body.page-sub .site-nav {
  background:
    linear-gradient(180deg, rgba(8, 12, 18, 0.42) 0%, rgba(8, 12, 18, 0.12) 75%, rgba(8, 12, 18, 0) 100%) !important;
  backdrop-filter: blur(14px) saturate(150%) !important;
  -webkit-backdrop-filter: blur(14px) saturate(150%) !important;
}
body.nav-solid .site-nav,
.site-nav.is-solid {
  background: rgba(8, 12, 18, 0.55) !important;
  backdrop-filter: blur(18px) saturate(160%) !important;
  -webkit-backdrop-filter: blur(18px) saturate(160%) !important;
  border-bottom: 1px solid rgba(255,255,255,.08) !important;
  box-shadow:
    0 10px 40px rgba(0,0,0,.18),
    inset 0 -1px 0 rgba(127,178,255,.08) !important;
  transition: background .55s cubic-bezier(.22, 1, .36, 1),
              backdrop-filter .55s cubic-bezier(.22, 1, .36, 1),
              -webkit-backdrop-filter .55s cubic-bezier(.22, 1, .36, 1),
              box-shadow .55s cubic-bezier(.22, 1, .36, 1),
              border-color .55s cubic-bezier(.22, 1, .36, 1) !important;
}
.site-nav .brand-mark {
  height: 28px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 0 12px rgba(127, 178, 255, 0.15));
}
.intro-brand .brand-mark {
  height: clamp(36px, 5vw, 52px);
  width: auto;
  object-fit: contain;
}
.site-footer .brand-mark {
  height: 40px;
  width: auto;
  max-width: 220px;
  object-fit: contain;
}

/* Glass edge highlight on nav */
.site-nav.prem-glass-edge {
  box-shadow:
    0 6px 24px rgba(0, 0, 0, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    inset 0 -1px 0 rgba(127, 178, 255, 0.08) !important;
}

/* ---------- Capsule quieter ---------- */
#prem-capsule {
  background: rgba(10, 16, 24, 0.38) !important;
  border-color: rgba(127, 178, 255, 0.16) !important;
  box-shadow:
    0 10px 28px rgba(0, 0, 0, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;
  padding: 4px !important;
}
#prem-capsule a {
  padding: 6px 12px !important;
  font-size: 11px !important;
  color: rgba(200, 220, 255, 0.58) !important;
}
#prem-capsule a.active {
  background: rgba(59, 130, 246, 0.14) !important;
}

/* ---------- Hero quieter: claim + sub glass; ≤2 chips ---------- */
.hero-title {
  font-size: var(--prem-type-display);
  letter-spacing: -0.02em;
  line-height: 1.08;
  text-shadow:
    0 0 28px rgba(59, 130, 246, 0.18),
    0 2px 20px rgba(0, 0, 0, 0.45) !important;
}
.hero-sub {
  font-size: var(--prem-type-lead);
  max-width: 36rem;
  padding: 18px 22px !important;
  border-radius: 16px !important;
  background: rgba(7, 9, 13, 0.22) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  backdrop-filter: blur(18px) saturate(140%) !important;
  -webkit-backdrop-filter: blur(18px) saturate(140%) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 12px 40px rgba(0, 0, 0, 0.18) !important;
}
.hero .prem-chips .prem-chip:nth-child(n+3) {
  display: none !important;
}
.hero .prem-chips .prem-chip {
  opacity: 0.4 !important;
  padding: 6px 12px !important;
  font-size: 10px !important;
}
#products .prem-chips {
  display: none !important;
}

/* Soft float / fade for hero lines */
body.hero-active .hero-title,
body.home-active .hero-title {
  animation: premHeroFloat 7s var(--prem-ease-lux) infinite alternate;
}
@keyframes premHeroFloat {
  from { transform: translateY(0); }
  to   { transform: translateY(-4px); }
}
.hero-title .prem-word,
.hero-sub .prem-word {
  display: inline-block;
}

/* ---------- Engineering grid texture (subtle) ---------- */
.prem-eng-grid {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.07;
  background-image: url('../media/generated/eng-grid.svg');
  background-size: 240px 240px;
  mix-blend-mode: screen;
}
#about .prem-eng-grid,
#quality .prem-eng-grid,
.page-hero .prem-eng-grid {
  opacity: 0.09;
}
#craft .prem-eng-grid { display: none !important; }

/* ---------- Horizontal light-sweep on section enter ---------- */
.prem-light-sweep {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  overflow: hidden;
  border-radius: inherit;
}
.prem-light-sweep::before {
  content: '';
  position: absolute;
  top: -20%;
  bottom: -20%;
  left: -40%;
  width: 38%;
  background: linear-gradient(
    105deg,
    transparent 0%,
    rgba(127, 233, 255, 0.0) 30%,
    rgba(127, 233, 255, 0.14) 48%,
    rgba(255, 255, 255, 0.18) 50%,
    rgba(127, 178, 255, 0.1) 55%,
    transparent 70%
  );
  transform: translateX(-120%) skewX(-12deg);
  opacity: 0;
}
.prem-light-sweep.is-sweeping::before {
  animation: premHSweep 1.15s var(--prem-ease-lux) forwards;
}
@keyframes premHSweep {
  0%   { transform: translateX(-120%) skewX(-12deg); opacity: 0; }
  15%  { opacity: 1; }
  100% { transform: translateX(320%) skewX(-12deg); opacity: 0; }
}

/* ---------- Glass-edge highlight on cards / nav ---------- */
.product-card.prem-glass-edge,
.quality-card.prem-glass-edge,
.app-card.prem-glass-edge,
.spotlight-card.prem-glass-edge {
  box-shadow:
    0 16px 40px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    inset 0 0 0 1px rgba(127, 178, 255, 0.12) !important;
}
.product-card.prem-glass-edge:hover,
.quality-card.prem-glass-edge:hover,
.app-card.prem-glass-edge:hover {
  box-shadow:
    0 22px 52px rgba(0, 0, 0, 0.34),
    0 0 28px rgba(59, 130, 246, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    inset 0 0 0 1px rgba(127, 233, 255, 0.22) !important;
}

/* Lighter tilt / calmer card hover */
.product-card:hover,
.quality-card:hover,
.app-card:hover,
.spotlight-card:hover {
  transform: translateY(-3px) scale(1.006) !important;
}
.product-card.is-tilting {
  /* tilt amplitude reduced via JS TILT_MAX */
}

/* Products: larger calmer cards + monospace-ish specs */
.product-card {
  border-radius: 18px !important;
  padding: clamp(18px, 2vw, 26px) !important;
  background: linear-gradient(165deg, rgba(255,255,255,.07), rgba(255,255,255,.015)) !important;
}
.product-card .meta,
.product-card .spec,
.product-card .tags,
.catalogue-grid .product-card .body small,
.catalogue-grid .product-card .meta {
  font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace !important;
  letter-spacing: 0.04em;
  font-size: 11px;
  color: rgba(170, 205, 255, 0.72) !important;
}

/* Conveyor as quiet category guide */
.prem-conveyor {
  margin: 6px 0 18px !important;
  border-color: rgba(127, 178, 255, 0.08) !important;
  background: linear-gradient(90deg, rgba(8,14,22,0.15), rgba(16,28,44,0.22), rgba(8,14,22,0.15)) !important;
}
.prem-conveyor .track span {
  font-size: 11px !important;
  letter-spacing: 0.18em !important;
  color: rgba(170, 205, 255, 0.55) !important;
  opacity: 0.85;
}

/* Category abstract cover wash on panels */
.product-panel[data-cat-cover] {
  position: relative;
}
.product-panel[data-cat-cover]::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  border-radius: 16px;
  background-image: var(--cat-cover);
  background-size: cover;
  background-position: center;
  opacity: 0.14;
  mask-image: linear-gradient(180deg, rgba(0,0,0,.55), transparent 85%);
  -webkit-mask-image: linear-gradient(180deg, rgba(0,0,0,.55), transparent 85%);
}
.product-panel[data-cat-cover] > * {
  position: relative;
  z-index: 1;
}

/* ---------- Craft Talkify rhythm ---------- */
/* Opacity only — never override transform (GSAP / cinematic scrub owns it) */
#craft .craft-step,
#craft .craft-step.passed {
  opacity: 0.2;
  transition:
    opacity 0.55s var(--prem-ease-lux),
    box-shadow 0.55s var(--prem-ease-lux),
    background 0.55s var(--prem-ease-lux),
    filter 0.55s var(--prem-ease-lux);
}
#craft .craft-step.active {
  opacity: 1 !important;
}
#craft.craft-pin.finale .craft-step,
#craft .craft-pin.finale .craft-step {
  opacity: 0.55;
}
.craft-step .idx {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}
.craft-step-ico {
  width: 22px;
  height: 22px;
  opacity: 0.5;
  transition: opacity 0.45s var(--prem-ease), filter 0.45s var(--prem-ease);
}
.craft-step.active .craft-step-ico {
  opacity: 1;
  filter: drop-shadow(0 0 8px rgba(127, 233, 255, 0.35));
}
.craft-step-ico img {
  width: 100%;
  height: 100%;
  display: block;
}
.craft-progress {
  font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  letter-spacing: 0.14em;
  font-size: 12px;
  color: rgba(200, 225, 255, 0.7);
  border: 1px solid rgba(127, 178, 255, 0.16);
  border-radius: 999px;
  padding: 6px 12px;
  background: rgba(8, 14, 22, 0.28);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
.craft-progress-text {
  color: #eaf4ff;
  font-weight: 600;
}
.craft-step.active .prem-ico-path {
  stroke-dasharray: 120;
  animation: premIcoDraw 1.2s var(--prem-ease-lux) both;
}
@keyframes premIcoDraw {
  from { stroke-dashoffset: 120; opacity: 0.4; }
  to   { stroke-dashoffset: 0; opacity: 1; }
}

/* ---------- Quality: certificate glass + big numbers ---------- */
.quality-card {
  border-radius: 20px !important;
  padding: clamp(22px, 2.4vw, 32px) !important;
  background: linear-gradient(165deg, rgba(255,255,255,.09), rgba(255,255,255,.02)) !important;
  border: 1px solid rgba(127, 178, 255, 0.16) !important;
  backdrop-filter: blur(18px) saturate(145%);
  -webkit-backdrop-filter: blur(18px) saturate(145%);
}
.quality-card .icon.prem-badge-ico {
  width: 64px;
  height: 64px;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none !important;
  font-size: 0 !important;
}
.quality-card .icon.prem-badge-ico img {
  width: 64px;
  height: 64px;
  display: block;
  filter: drop-shadow(0 0 12px rgba(127, 233, 255, 0.2));
}
.quality-card h4 {
  font-size: clamp(1.25rem, 2vw, 1.65rem) !important;
  letter-spacing: -0.01em;
}
.quality-card .meta {
  font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  letter-spacing: 0.12em;
  font-size: 11px;
  margin-top: 14px;
  color: rgba(127, 233, 255, 0.75) !important;
}

/* Big number treatment for 415 card */
.quality-card:has(h4) .prem-big-num,
.quality-card h4 {
  font-variant-numeric: tabular-nums;
}

/* ---------- Subpages unified page-hero glass ---------- */
body.page-sub .page-hero {
  background: rgba(7, 9, 13, 0.26) !important;
  backdrop-filter: blur(18px) saturate(140%) !important;
  -webkit-backdrop-filter: blur(18px) saturate(140%) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 20px 60px rgba(0, 0, 0, 0.12);
}
body.page-sub .page-hero h1 {
  font-size: clamp(2rem, 4.5vw, 3.4rem);
  letter-spacing: -0.02em;
}

/* Single-layer section glass (less muddy stacked scrims) */
body.hero-active section,
body.home-active section,
body.page-sub section {
  background: rgba(7, 9, 13, 0.26) !important;
}
body.hero-active section.hero,
body.home-active section.hero,
section.hero,
.hero {
  background: transparent !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
}
body.hero-active section::before,
body.home-active section::before,
body.page-sub section::before {
  opacity: 0.35 !important;
}

/* Craft pin-safe but same glass wash as other sections */
#craft,
#craft.craft-pin {
  background: rgba(7, 9, 13, 0.26) !important;
  backdrop-filter: blur(18px) saturate(140%) !important;
  -webkit-backdrop-filter: blur(18px) saturate(140%) !important;
  filter: none !important;
  perspective: none !important;
  isolation: auto !important;
}
.craft-pin {
  background: transparent !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  filter: none !important;
  perspective: none !important;
  isolation: auto !important;
}

/* Pointer glow stays subtle (spot-glow already present) */
.spot-glow {
  mix-blend-mode: soft-light;
  opacity: 0;
}
.product-card.is-spot .spot-glow,
.quality-card.is-spot .spot-glow,
.app-card.is-spot .spot-glow {
  opacity: 0.85;
}

@media (prefers-reduced-motion: reduce) {
  .prem-light-sweep::before,
  body.hero-active .hero-title,
  .craft-step.active .prem-ico-path {
    animation: none !important;
  }
  .craft-step { opacity: 1 !important; }
}


/* ============================================================
 * v7: kill mouse-follow cursor glow + glass light-sweep streaks
 * ============================================================ */
#prem-cursor {
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}
.prem-light-sweep,
.prem-light-sweep::before,
.prem-light-sweep.is-sweeping::before {
  display: none !important;
  animation: none !important;
  opacity: 0 !important;
}
/* nav pointer spotlight off on homepage until solid (already dimmed above) */
body:not(.page-sub) .site-nav::before {
  background: none !important;
}

/* also kill card border-beam shine streaks + button shimmer sweeps */
.border-beam,
.border-beam::before {
  display: none !important;
  animation: none !important;
  opacity: 0 !important;
}
.btn-shimmer {
  display: none !important;
  animation: none !important;
  opacity: 0 !important;
}
.tilt-glare {
  display: none !important;
  opacity: 0 !important;
}

/* ===== v7.2 nav: transparent on looping intro; frost only with particles ===== */
body:not(.page-sub):not(.nav-solid) .site-nav,
body.hero-active:not(.nav-solid):not(.page-sub) .site-nav {
  background: transparent !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border-bottom: 1px solid transparent !important;
  box-shadow: none !important;
}
body:not(.page-sub):not(.nav-solid) .site-nav::before,
body:not(.page-sub):not(.nav-solid) .site-nav::after {
  opacity: 0 !important;
  background: none !important;
}
body.nav-solid .site-nav,
body.home-active.nav-solid .site-nav,
body.scrolled-past-hero.nav-solid .site-nav,
.site-nav.is-solid {
  background: rgba(8, 12, 18, 0.55) !important;
  backdrop-filter: blur(18px) saturate(160%) !important;
  -webkit-backdrop-filter: blur(18px) saturate(160%) !important;
  border-bottom: 1px solid rgba(255,255,255,.08) !important;
}


/* v11.6.2 bottom capsule removed */
#prem-capsule { display: none !important; visibility: hidden !important; pointer-events: none !important; }


/* v11.7.1 quality nested glass off — layout-polish owns cards */
body.hero-active #quality,
body.home-active #quality,
body.page-sub #quality {
  background: transparent !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
  border: none !important;
  box-shadow: none !important;
}
