/*
 * V53 / PROCEDURAL ASIC PRODUCT RITUAL
 * WebGL is progressive enhancement; the V52 CSS object remains the fallback.
 */

.asic-scene {
  min-height: 215vh;
  background:
    radial-gradient(circle at 73% 49%, rgba(231,199,125,.06), transparent 29rem),
    #050707;
}

.asic-scene::after {
  position: absolute;
  z-index: -1;
  inset: 0;
  opacity: .2;
  background:
    linear-gradient(90deg, transparent 49.9%, rgba(231,199,125,.055) 50%, transparent 50.1%),
    linear-gradient(transparent 49.9%, rgba(231,199,125,.04) 50%, transparent 50.1%);
  background-size: 9vw 9vw;
  content: "";
  -webkit-mask-image: linear-gradient(90deg, transparent 25%, #000 55%);
  mask-image: linear-gradient(90deg, transparent 25%, #000 55%);
}

.asic-environment { opacity: .18; filter: saturate(.23) contrast(1.2) brightness(.62); }

.asic-viewport {
  width: 62vw;
  overflow: hidden;
  perspective: none;
}

.asic-viewport::before {
  position: absolute;
  z-index: 4;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 56% 49%, transparent 0 34%, rgba(5,7,7,.08) 52%, rgba(5,7,7,.68) 88%),
    linear-gradient(90deg, rgba(5,7,7,.58), transparent 25%, transparent 78%, rgba(5,7,7,.3));
  content: "";
}

.asic-viewport canvas {
  position: absolute;
  z-index: 2;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1s cubic-bezier(.16,1,.3,1);
}

.asic-v53-qa-poster {
  position: absolute;
  z-index: 2;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: fill;
}

.asic-scene.is-v53-ready .asic-viewport canvas { opacity: 1; }
.asic-scene.is-v53-ready .asic-rig { opacity: 0; }
.asic-rig { transition: opacity .65s ease; }

.asic-scene.is-v53-ready .asic-callout { opacity: 0; }

.asic-v53-hud {
  position: absolute;
  z-index: 5;
  inset: 0;
  pointer-events: none;
}

.asic-v53-status {
  position: absolute;
  top: 13%;
  right: 7%;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 5px 10px;
  color: rgba(211,206,195,.4);
  font-size: 6px;
  font-weight: 700;
  letter-spacing: .17em;
}
.asic-v53-status i {
  grid-row: 1 / 3;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #9bd6df;
  box-shadow: 0 0 14px rgba(155,214,223,.62);
}
.asic-v53-status b { color: rgba(231,199,125,.72); font-size: inherit; }

.asic-v53-axis {
  position: absolute;
  right: 7%;
  bottom: 13%;
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(208,202,188,.3);
  font-size: 6px;
  font-weight: 700;
  letter-spacing: .16em;
}
.asic-v53-axis i { width: 32px; height: 1px; background: rgba(231,199,125,.2); }

.asic-v53-core-label {
  --core-x: 55%;
  --core-y: 50%;
  --core-visible: 0;
  position: absolute;
  top: var(--core-y);
  left: var(--core-x);
  display: flex;
  align-items: center;
  gap: 10px;
  opacity: var(--core-visible);
  transform: translate3d(22px,-50%,0);
  transition: opacity .12s linear;
}
.asic-v53-core-label::before {
  position: absolute;
  top: 50%;
  right: calc(100% + 7px);
  width: 58px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(231,199,125,.72));
  content: "";
}
.asic-v53-core-label > i {
  width: 7px;
  height: 7px;
  border: 1px solid #ffe3a0;
  border-radius: 50%;
  background: rgba(231,199,125,.5);
  box-shadow: 0 0 20px rgba(231,199,125,.65);
}
.asic-v53-core-label span { display: grid; gap: 5px; }
.asic-v53-core-label b,
.asic-v53-core-label small {
  font-size: 6px;
  letter-spacing: .15em;
  white-space: nowrap;
}
.asic-v53-core-label b { color: rgba(247,226,179,.82); }
.asic-v53-core-label small { color: rgba(151,205,216,.48); }

.asic-progress {
  z-index: 6;
  background: rgba(5,7,7,.48);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

@media (max-width: 1050px) {
  .asic-viewport { width: 66vw; }
  .asic-v53-status,
  .asic-v53-axis { right: 4%; }
}

@media (max-width: 760px) {
  .asic-scene { min-height: 185vh; }
  .asic-scene::after { background-size: 24vw 24vw; }
  .asic-copy {
    min-height: 100vh;
    padding-top: 108px;
  }
  .asic-copy h2 {
    max-width: 94%;
    font-size: 46px;
  }
  .asic-copy > p:not(.eyebrow) { max-width: 86%; font-size: 13px; }
  .asic-metrics { max-width: 100%; margin-top: 24px; }
  .asic-viewport {
    width: 100vw;
    height: 100vh;
    margin-top: -100vh;
  }
  .asic-viewport::before {
    background:
      radial-gradient(circle at 50% 65%, transparent 0 28%, rgba(5,7,7,.08) 47%, rgba(5,7,7,.67) 86%),
      linear-gradient(180deg, rgba(5,7,7,.83) 0 36%, transparent 52%, rgba(5,7,7,.48));
  }
  .asic-viewport canvas { top: 24%; height: 76%; }
  .asic-v53-status { top: 46%; right: 18px; }
  .asic-v53-axis { right: 18px; bottom: 10%; }
  .asic-v53-axis i { width: 18px; }
  .asic-v53-core-label small { display: none; }
  .asic-v53-core-label::before { width: 30px; }
  .asic-progress { right: 18px; bottom: 34px; left: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  .asic-viewport canvas { transition: none; }
}
