/* IMERSA — ASSEMBLY. A V2 é isolada da intro original e usa o mesmo app. */
html[data-intro-version="v1"] .intro-v2 { display: none; }
html:is([data-intro-version="v2"],[data-intro-version="v3"]) #intro { display: none; }

.intro-v2 {
  position: fixed;
  inset: 0;
  z-index: 55;
  display: block;
  height: 100svh;
  overflow: hidden;
  isolation: isolate;
  background: #000;
  color: #f0f5f7;
  transition: background .62s ease, opacity .5s ease;
}

.intro-v2::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: .42;
  background:
    radial-gradient(ellipse at 52% 48%, rgba(5, 33, 45, .24), transparent 46%),
    linear-gradient(112deg, transparent 35%, rgba(29, 112, 148, .035) 48%, transparent 61%);
}

.v2-skip {
  position: absolute;
  z-index: 50;
  top: max(24px, env(safe-area-inset-top));
  right: max(26px, env(safe-area-inset-right));
  border: 0;
  padding: 10px;
  background: transparent;
  color: rgba(198, 216, 223, .48);
  font-size: 9px;
  font-weight: 750;
  letter-spacing: .24em;
  cursor: pointer;
  transition: color .24s ease, opacity .24s ease;
}

.v2-skip:hover { color: #eef7fa; }

.v2-assembly-shell {
  position: absolute;
  z-index: 10;
  left: 50%;
  top: 50%;
  width: min(86vw, 1380px);
  aspect-ratio: 3 / 2;
  transform: translate3d(-50%, -50%, 0);
  transform-origin: 50% 50%;
  will-change: transform;
}

.v2-assembly-product,
.v2-part,
.v2-cut,
.v2-part > img,
.v2-part > .v2-part-raster,
.v2-cut > img,
.v2-full-image,
.v2-preflash,
.v2-inspection-light {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.v2-assembly-product {
  transform-origin: 50% 50%;
  will-change: transform, filter, opacity;
}

.v2-part,
.v2-cut {
  opacity: 0;
  transform-origin: var(--part-origin, 50% 50%);
  will-change: transform, opacity, filter;
}

.v2-part > img,
.v2-cut > img,
.v2-full-image,
.v2-preflash,
.v2-inspection-light {
  display: block;
  object-fit: contain;
  mix-blend-mode: screen;
  pointer-events: none;
  user-select: none;
}

.v2-part-tube {
  --part-origin: 32% 49%;
}

.v2-part-stock { --part-origin: 32.5% 49%; }

.v2-part-head {
  --part-origin: 83.7% 24.4%;
}

.v2-part-mechanism {
  --part-origin: 33.5% 53.2%;
  clip-path: polygon(21.5% 48.5%, 35.5% 48.5%, 36.5% 58.5%, 34% 65%, 27.5% 67%, 21.5% 63%);
}

.v2-part-reel {
  --part-origin: 39.4% 61%;
  clip-path: polygon(29% 49%, 44% 49%, 48% 55%, 48% 68%, 44% 72%, 31% 72%, 28% 66%, 28% 55%);
}

.v2-part-bands {
  --part-origin: 84.5% 24%;
}

.v2-part-shaft {
  --part-origin: 31% 47%;
}

.v2-part-raster {
  mix-blend-mode: screen;
  pointer-events: none;
  transform-box: fill-box;
  transform-origin: center;
}

.v2-part-bands,
.v2-part-shaft,
.v2-part-tube,
.v2-part-head,
.v2-part-stock { overflow: visible; }

.intro-v2.has-clean-parts .v2-part > img,
.intro-v2.has-clean-parts .v2-part-raster,
.intro-v2.has-clean-parts .v2-cut > img { mix-blend-mode: normal; }

.v2-full-image { z-index: 14; opacity: 0; will-change: opacity, filter; }
.v2-preflash { z-index: 15; opacity: 0; clip-path: polygon(27% 44%, 84% 19%, 85% 21%, 28% 47%); }
.v2-inspection-light {
  z-index: 16;
  opacity: 0;
  filter: brightness(2.2) contrast(1.08) drop-shadow(0 0 5px rgba(92, 188, 226, .22));
  -webkit-mask-image: linear-gradient(105deg, transparent 38%, #000 47%, #000 52%, transparent 62%);
  mask-image: linear-gradient(105deg, transparent 38%, #000 47%, #000 52%, transparent 62%);
  -webkit-mask-size: 320% 100%;
  mask-size: 320% 100%;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: 125% 0;
  mask-position: 125% 0;
  will-change: opacity, -webkit-mask-position, mask-position;
}

.v2-junction {
  position: absolute;
  z-index: 20;
  width: clamp(24px, 2.4vw, 42px);
  aspect-ratio: 1;
  border-radius: 50%;
  opacity: 0;
  background: radial-gradient(circle, rgba(217, 243, 252, .54) 0 2%, rgba(69, 170, 210, .2) 16%, transparent 64%);
  transform: translate(-50%, -50%) scale(.2);
  pointer-events: none;
}
.v2-junction-rear { left: 31.5%; top: 49%; }
.v2-junction-head { left: 84%; top: 24%; }
.v2-junction-mechanism { left: 33.5%; top: 53.2%; }
.v2-junction-reel { left: 39.4%; top: 61%; }

.v2-component-label,
.v2-armed {
  position: absolute;
  z-index: 24;
  left: 30%;
  top: 61%;
  opacity: 0;
  color: rgba(218, 234, 240, .86);
  font-size: clamp(9px, .72vw, 12px);
  font-weight: 720;
  letter-spacing: .32em;
  transform: translateY(6px);
  text-shadow: 0 0 14px rgba(69, 169, 210, .28);
  pointer-events: none;
}

.intro-v2[data-label="stock"] .v2-component-label { left: 25%; top: 61%; }
.intro-v2[data-label="head"] .v2-component-label { left: 73%; top: 31%; }
.v2-armed { left: 57%; top: 62%; color: rgba(232, 244, 248, .94); }

.v2-brand-layer {
  position: absolute;
  inset: 0;
  z-index: 7;
  pointer-events: none;
}

.v2-brand-logo {
  position: absolute;
  left: 50%;
  top: 18%;
  width: min(150px, 12vw);
  aspect-ratio: 799 / 800;
  height: auto;
  opacity: 0;
  transform: translate(-50%, 7px) scale(.985);
  will-change: transform, opacity;
}
.v2-logo-symbol, .v2-logo-word, .v2-logo-lines { position: absolute; inset: 0; width: 100%; height: 100%; }
.v2-logo-symbol, .v2-logo-word { object-fit: contain; filter: brightness(.9) contrast(1.06); opacity: 0; }
.v2-logo-symbol { clip-path: inset(0 0 29% 0); }
.v2-logo-word { clip-path: inset(70% 0 0 0); transform: translateY(7px); }
.v2-logo-lines { fill: none; stroke: #e8f2f5; stroke-width: 7; stroke-linecap: round; stroke-linejoin: round; opacity: 0; filter: drop-shadow(0 0 8px rgba(112, 200, 231, .26)); }
.v2-logo-lines path { stroke-dasharray: 1; stroke-dashoffset: 1; }

.v2-brand-copy {
  position: absolute;
  z-index: 30;
  left: 50%;
  bottom: 17%;
  width: min(92vw, 1120px);
  text-align: center;
  opacity: 0;
  transform: translate(-50%, 10px);
  will-change: transform, opacity;
}

.v2-brand-copy h1 {
  margin: 0;
  color: #f1f5f6;
  font-size: clamp(48px, 6.2vw, 108px);
  line-height: .88;
  letter-spacing: -.06em;
  font-weight: 780;
}

.v2-brand-copy p {
  margin: 14px 0 0;
  color: rgba(181, 205, 214, .55);
  font-size: clamp(8px, .68vw, 11px);
  font-weight: 620;
  letter-spacing: .24em;
  text-transform: uppercase;
}

.v2-progress {
  position: absolute;
  z-index: 40;
  left: clamp(26px, 5vw, 78px);
  right: clamp(26px, 5vw, 78px);
  bottom: max(28px, env(safe-area-inset-bottom));
  height: 1px;
  overflow: hidden;
  background: rgba(164, 201, 216, .09);
}
.v2-progress i {
  display: block;
  width: 0;
  height: 100%;
  background: rgba(120, 198, 230, .56);
  transform-origin: left;
  will-change: width;
}

.v2-signature {
  position: absolute;
  z-index: 41;
  right: clamp(26px, 5vw, 78px);
  bottom: calc(max(28px, env(safe-area-inset-bottom)) + 13px);
  color: rgba(126, 158, 171, .32);
  font-size: 7px;
  letter-spacing: .27em;
}

.intro-v2.is-handoff {
  background: rgba(0, 0, 0, 0);
  pointer-events: none;
}
.intro-v2.is-clearing .v2-progress,
.intro-v2.is-clearing .v2-signature,
.intro-v2.is-clearing .v2-skip { opacity: 0; transition: opacity .14s ease; }
.intro-v2.is-handoff::before,
.intro-v2.is-handoff .v2-progress,
.intro-v2.is-handoff .v2-signature,
.intro-v2.is-handoff .v2-skip,
.intro-v2.is-handoff .v2-component-label,
.intro-v2.is-handoff .v2-armed { opacity: 0; transition: opacity .2s ease; }
.intro-v2.is-gone { display: none; }

.v2-shared-active .v2-full-image,
.v2-shared-active .v2-brand-logo,
.v2-shared-active .brand,
.v2-shared-active .v3-brand img,
.v2-shared-active .speargun-render,
.v2-shared-active .v3-speargun > img:not(.v3-light-pass) { visibility: hidden; }
.v2-shared-speargun {
  position: fixed;
  z-index: 80;
  display: block;
  max-width: none;
  object-fit: contain;
  mix-blend-mode: screen;
  filter: contrast(1.04) brightness(.9);
  transform-origin: 0 0;
  pointer-events: none;
  will-change: transform, opacity;
}
.v2-shared-logo {
  position: fixed; z-index: 81; display: block; max-width: none; object-fit: contain;
  transform-origin: 0 0; pointer-events: none; will-change: transform, opacity;
}

@media (max-aspect-ratio: 4 / 5) {
  .v2-assembly-shell {
    top: 48%;
    width: min(120vw, 68svh);
    transform: translate3d(-50%, -50%, 0) rotate(-43deg);
  }
  .v2-brand-logo { top: 21%; width: min(122px, 30vw); }
  .v2-brand-copy { bottom: 20%; width: 92vw; }
  .v2-brand-copy h1 { font-size: clamp(42px, 12.6vw, 62px); }
  .v2-brand-copy p { margin-top: 10px; font-size: 7px; letter-spacing: .18em; }
  .v2-component-label, .v2-armed { font-size: 9px; letter-spacing: .24em; }
  .intro-v2[data-label="stock"] .v2-component-label { left: 12%; top: 64%; }
  .intro-v2[data-label="head"] .v2-component-label { left: 58%; top: 29%; }
  .v2-armed { left: 57%; top: 61%; }
  .v2-signature { display: none; }
}

@media (min-width: 561px) and (max-aspect-ratio: 4 / 5) {
  .v2-assembly-shell {
    width: min(112vw, 92svh);
    transform: translate3d(-50%, -50%, 0) rotate(-24deg);
  }
  .v2-brand-logo { width: 140px; }
}

@media (prefers-reduced-motion: reduce) {
  .v2-preflash, .v2-junction, .v2-inspection-light { display: none; }
  .v2-assembly-product, .v2-assembly-shell { filter: none !important; }
}
