/* Connected SPID installation, site and technical visual system. */
.spid-stage {
  --spid-barrier-width: 78%;
  min-height: 560px;
  border-radius: 20px;
  background: #e7ecee;
}

.spid-stage__site {
  isolation: isolate;
  overflow: hidden;
  background: #d8e0e3;
}

.spid-stage__site::before {
  display: none;
}

.spid-stage__backdrop {
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  background: #d8e0e3;
  filter: saturate(0.94) contrast(1.035) brightness(0.985);
  transform: none;
  transition: opacity 180ms ease, filter 180ms ease;
}

.spid-stage__wash {
  background:
    linear-gradient(180deg, rgba(6, 18, 28, 0.18), transparent 28%),
    linear-gradient(0deg, rgba(5, 15, 23, 0.24), transparent 35%),
    linear-gradient(90deg, rgba(8, 22, 31, 0.08), transparent 35% 72%, rgba(8, 22, 31, 0.08));
}

.spid-stage__site::after {
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22), inset 0 -34px 52px rgba(5, 15, 23, 0.08);
  content: "";
  pointer-events: none;
}

.spid-stage__context {
  top: 18px;
  left: 18px;
  z-index: 8;
  min-width: 188px;
  gap: 3px;
  padding: 11px 13px;
  border-radius: 12px;
  background: rgba(10, 27, 39, 0.84);
  box-shadow: 0 14px 36px rgba(5, 17, 26, 0.22);
  backdrop-filter: none;
}

.spid-stage__context span {
  color: #ff9b98;
}

.spid-stage__context strong {
  font-family: "Montserrat", sans-serif;
  font-size: 0.78rem;
  letter-spacing: -0.025em;
}

.spid-stage__context small {
  color: rgba(232, 240, 244, 0.72);
  font-size: 0.64rem;
}

.spid-stage__facts {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 8;
  display: grid;
  grid-template-columns: repeat(3, minmax(84px, 1fr));
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 14px 32px rgba(5, 17, 26, 0.17);
  backdrop-filter: none;
}

.spid-stage__facts div {
  display: grid;
  gap: 2px;
  padding: 9px 11px;
  border-left: 1px solid rgba(16, 38, 58, 0.1);
}

.spid-stage__facts div:first-child {
  border-left: 0;
}

.spid-stage__facts span {
  color: #7c8897;
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.spid-stage__facts strong {
  overflow: hidden;
  color: var(--spid-navy);
  font-size: 0.64rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.spid-site-barrier {
  position: absolute;
  bottom: 54px;
  left: 9%;
  z-index: 4;
  width: var(--spid-barrier-width);
  height: 290px;
  filter: drop-shadow(0 16px 12px rgba(7, 17, 24, 0.25));
  transform: perspective(1100px) rotateX(0.65deg);
  transform-origin: center bottom;
  transition: width 240ms ease, transform 240ms ease;
}

.spid-site-barrier__ground {
  position: absolute;
  right: 3%;
  bottom: -3px;
  left: 0;
  height: 14px;
  border-radius: 50%;
  background: linear-gradient(90deg, rgba(3, 10, 15, 0.32), rgba(3, 10, 15, 0.17) 18% 72%, transparent);
  filter: blur(8px);
  transform: perspective(420px) rotateX(70deg) scaleX(0.98);
}

.spid-site-barrier__cabinet {
  position: absolute;
  bottom: 0;
  left: 0;
  z-index: 3;
  width: auto;
  height: 77%;
  object-fit: contain;
  object-position: left bottom;
  filter: drop-shadow(3px 8px 7px rgba(7, 17, 24, 0.2));
}

.spid-site-barrier__boom {
  position: absolute;
  top: 68px;
  right: 0;
  left: 7.3%;
  z-index: 4;
  height: 112px;
}

.spid-site-barrier__boom > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: fill;
  object-position: left center;
  filter: drop-shadow(0 5px 4px rgba(7, 17, 24, 0.18));
}

.spid-site-barrier__spb-arm {
  position: absolute;
  top: 35px;
  right: 0;
  left: 1.8%;
  display: none;
  height: 39px;
  border: 1px solid rgba(70, 76, 80, 0.38);
  border-radius: 2px 13px 13px 2px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.8), transparent 24%),
    linear-gradient(180deg, #f9f9f5 0 73%, #353b3e 74% 100%);
  box-shadow: 0 7px 8px rgba(7, 17, 24, 0.24);
}

.profile-spb .spid-site-barrier__boom > img {
  display: none;
}

.profile-spb .spid-site-barrier__spb-arm {
  display: block;
}

.spid-site-barrier__led,
.spid-site-barrier__reflectors,
.spid-site-barrier__joint,
.spid-site-barrier__skirt {
  position: absolute;
  z-index: 6;
  display: none;
  pointer-events: none;
}

.spid-site-barrier__led {
  top: 29px;
  right: 5%;
  left: 2%;
  height: 14px;
  background: linear-gradient(90deg, #f42a32, #dc171f);
  clip-path: polygon(0 78%, 100% 0, 100% 22%, 0 100%);
  filter: drop-shadow(0 0 3px rgba(241, 31, 42, 0.62));
}

.has-led .spid-site-barrier__led {
  display: block;
}

.spid-site-barrier__reflectors {
  top: 49px;
  right: 12%;
  left: 24%;
  justify-content: space-between;
}

.spid-site-barrier__reflectors i {
  width: 28px;
  height: 16px;
  border: 2px solid #fff;
  background: #d8212b;
  box-shadow: 0 2px 5px rgba(5, 14, 20, 0.2);
}

.has-reflectors .spid-site-barrier__reflectors {
  display: flex;
}

.spid-site-barrier__joint {
  top: 9px;
  left: calc(59% - 56px);
  width: 112px;
  height: 64px;
  background: url("./assets/ditec-spid/bart-joint-overlay.svg") center / contain no-repeat;
  filter:
    contrast(1.06)
    drop-shadow(0 5px 5px rgba(5, 14, 20, 0.28));
  transform: scaleX(-1);
}

.has-articulated .spid-site-barrier__joint {
  display: block;
}

.spid-site-barrier__skirt {
  top: 84px;
  left: 33%;
  width: 44%;
  height: 94px;
  border-top: 8px solid #d91c25;
  background: repeating-linear-gradient(90deg, transparent 0 19px, rgba(235, 239, 239, 0.95) 19px 23px);
  filter: drop-shadow(0 4px 3px rgba(5, 14, 20, 0.22));
}

.has-skirt .spid-site-barrier__skirt {
  display: block;
}

.spid-site-barrier__support {
  position: absolute;
  right: 0;
  bottom: 0;
  z-index: 5;
  width: 72px;
  height: 178px;
  object-fit: contain;
  object-position: center bottom;
  filter:
    contrast(1.38)
    brightness(0.86)
    drop-shadow(0 0 1px rgba(255, 255, 255, 0.95))
    drop-shadow(1px 0 0 rgba(16, 38, 58, 0.34))
    drop-shadow(-1px 0 0 rgba(255, 255, 255, 0.9))
    drop-shadow(0 12px 10px rgba(7, 17, 24, 0.42));
  transform: translateX(50%);
  transform-origin: center bottom;
}

.spid-site-barrier__support[hidden] {
  display: none;
}

.profile-epb .spid-site-barrier__support {
  right: 4%;
}

.has-mobile-support .spid-site-barrier__support {
  width: 66px;
  height: 170px;
}

.spid-stage__measure {
  right: 9%;
  bottom: 14px;
  left: 9%;
  z-index: 8;
  opacity: 0.9;
}

.spid-stage__measure span {
  border-radius: 8px;
  background: rgba(10, 27, 39, 0.88);
  font-size: 0.64rem;
  letter-spacing: 0.03em;
}

.spid-stage__hotspot {
  z-index: 9;
  border-color: rgba(255, 255, 255, 0.7);
  opacity: 0.78;
  background: rgba(10, 27, 39, 0.76);
  box-shadow: 0 5px 14px rgba(5, 17, 26, 0.14);
  transition: opacity 150ms ease, background 150ms ease;
}

.spid-stage__hotspot:hover,
.spid-stage__hotspot:focus-visible {
  opacity: 1;
  transform: none;
}

.spid-stage__hotspot--support {
  opacity: 0;
  pointer-events: none;
}

.spid-stage.has-fixed-support .spid-stage__hotspot--support,
.spid-stage.has-locked-support .spid-stage__hotspot--support,
.spid-stage.has-mobile-support .spid-stage__hotspot--support {
  opacity: 0.78;
  pointer-events: auto;
}

.spid-stage__hotspot--cabinet { top: 61%; left: 13%; }
.spid-stage__hotspot--boom { top: 50%; left: 54%; }
.spid-stage__hotspot--support { top: 61%; right: 1%; }
.has-articulated .spid-stage__hotspot--boom { left: 43%; }
.profile-epb .spid-stage__hotspot--support { right: 4%; }

.spid-stage__technical {
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 13px;
  padding: 18px;
  background:
    linear-gradient(rgba(16, 38, 58, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(16, 38, 58, 0.045) 1px, transparent 1px),
    radial-gradient(circle at 72% 20%, rgba(215, 25, 32, 0.06), transparent 32%),
    #f3f5f4;
  background-size: 22px 22px, 22px 22px, auto, auto;
}

.spid-tech__head {
  align-items: center;
  padding-bottom: 10px;
}

.spid-tech__head strong {
  font-size: 1.35rem;
  letter-spacing: -0.04em;
}

.spid-tech__board {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(235px, 0.34fr);
  min-height: 335px;
  gap: 12px;
}

.spid-tech__assembly {
  position: relative;
  display: block;
  min-height: 335px;
  overflow: hidden;
  border: 1px solid rgba(16, 38, 58, 0.13);
  border-radius: 17px;
  background:
    radial-gradient(circle at 17% 75%, rgba(16, 38, 58, 0.07), transparent 28%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(237, 241, 241, 0.94));
  box-shadow: 0 15px 34px rgba(16, 38, 58, 0.09);
}

.spid-tech__assembly::after {
  position: absolute;
  right: 4%;
  bottom: 30px;
  left: 5%;
  height: 18px;
  border-radius: 50%;
  background: rgba(10, 25, 35, 0.11);
  content: "";
  filter: blur(11px);
}

.spid-tech__cabinet-image {
  position: absolute;
  bottom: 28px;
  left: 5%;
  z-index: 3;
  width: auto;
  height: 69%;
  object-fit: contain;
  filter: drop-shadow(0 14px 13px rgba(10, 25, 35, 0.18));
}

.spid-tech__arm-visual {
  position: absolute;
  top: 40%;
  right: 4%;
  left: 13%;
  z-index: 4;
  height: 48px;
  transform: translateY(-50%);
}

.spid-tech__arm-visual img {
  display: none;
  width: 100%;
  height: 100%;
  object-fit: fill;
  object-position: left center;
  filter: drop-shadow(0 8px 8px rgba(10, 25, 35, 0.16));
}

.spid-tech__arm-profile {
  position: absolute;
  top: 9px;
  right: 0;
  left: 0;
  display: none;
  height: 30px;
  border: 1px solid rgba(70, 76, 80, 0.28);
  border-radius: 2px 10px 10px 2px;
  background: linear-gradient(180deg, #fff 0 72%, #363d40 73% 100%);
  box-shadow: 0 6px 7px rgba(10, 25, 35, 0.17);
}

.profile-spb .spid-tech__arm-profile,
.profile-epb .spid-tech__arm-profile {
  display: block;
}

.profile-epb .spid-tech__arm-profile {
  top: 9px;
  height: 30px;
  overflow: hidden;
  border-color: rgba(132, 20, 25, 0.34);
  border-radius: 3px 11px 11px 3px;
  background: linear-gradient(
    180deg,
    #d71920 0 5px,
    #fafafa 5px calc(100% - 5px),
    #d71920 calc(100% - 5px) 100%
  );
}

.profile-epb .spid-tech__arm-profile::before {
  position: absolute;
  top: 50%;
  left: 53%;
  padding: 2px 10px;
  border-radius: 2px;
  background: #d71920;
  color: #fff;
  content: "Ditec";
  font: 700 8px/1 Poppins, sans-serif;
  font-style: normal;
  transform: translate(-50%, -50%);
}

.profile-epb .spid-tech__arm-profile::after {
  position: absolute;
  top: 0;
  right: 0;
  width: 16px;
  height: 100%;
  border-radius: 0 9px 9px 0;
  background: linear-gradient(90deg, #c71017, #ec242b);
  content: "";
}

.spid-tech__callout {
  position: absolute;
  z-index: 6;
  display: grid;
  min-width: 130px;
  gap: 2px;
  padding: 9px 11px;
  border: 1px solid rgba(16, 38, 58, 0.12);
  border-left: 3px solid var(--spid-red);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 8px 20px rgba(16, 38, 58, 0.08);
}

.spid-tech__callout span {
  color: var(--spid-red);
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.spid-tech__callout strong {
  font-family: "Montserrat", sans-serif;
  font-size: 0.76rem;
}

.spid-tech__callout small {
  color: #687789;
  font-size: 0.64rem;
}

.spid-tech__callout--cabinet {
  top: 16px;
  left: 16px;
}

.spid-tech__callout--arm {
  right: 16px;
  bottom: 16px;
}

.spid-tech__hardware {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.spid-tech__hardware article {
  position: relative;
  grid-template-columns: 86px 1fr;
  min-height: 0;
  padding: 12px;
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 10px 25px rgba(16, 38, 58, 0.07);
}

.spid-tech__hardware img {
  width: 82px;
  height: 102px;
  padding: 4px;
  border-radius: 10px;
  background: #f0f3f3;
}

.spid-tech__hardware article > div {
  gap: 4px;
}

.spid-tech__hardware article > div span {
  color: #7a8795;
}

.spid-tech__hardware article > div strong {
  font-family: "Montserrat", sans-serif;
  font-size: 0.82rem;
}

.spid-tech__hardware article > div small {
  color: #6b7988;
  font-size: 0.64rem;
  line-height: 1.4;
}

.spid-tech__step {
  position: absolute;
  top: 9px;
  left: 9px;
  z-index: 2;
  display: grid;
  width: 25px;
  height: 25px;
  place-items: center;
  border-radius: 7px;
  color: #fff;
  background: var(--spid-navy);
  font-size: 0.64rem;
  font-weight: 800;
}

.spid-tech__options {
  grid-template-columns: minmax(145px, 0.65fr) repeat(3, minmax(0, 1fr));
  min-height: 86px;
}

.spid-tech__options-head {
  border-left-width: 4px;
  border-radius: 0 10px 10px 0;
  background: rgba(255, 255, 255, 0.76);
}

.spid-tech__options article {
  grid-template-columns: 72px 1fr;
  min-height: 82px;
  padding: 8px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.94);
}

.spid-tech__options img {
  width: 68px;
  height: 66px;
  border-radius: 8px;
  background: #eef2f2;
}

.spid-tech__options article strong {
  font-size: 0.62rem;
}

.spid-tech__options article small {
  font-size: 0.64rem;
}

@media (max-width: 1180px) {
  .spid-stage {
    min-height: 520px;
  }

  .spid-stage__facts {
    grid-template-columns: 1fr;
  }

  .spid-stage__facts div {
    grid-template-columns: 52px 1fr;
    padding: 6px 9px;
  }

  .spid-site-barrier {
    bottom: 48px;
    height: 255px;
  }

  .spid-tech__board {
    grid-template-columns: minmax(0, 1fr) 210px;
  }
}

@media (max-width: 760px) {
  .spid-stage__facts {
    top: auto;
    right: 10px;
    bottom: 50px;
    left: 10px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .spid-stage__facts div {
    display: grid;
    grid-template-columns: 1fr;
    padding: 7px;
  }

  .spid-site-barrier {
    bottom: 82px;
    left: 5%;
    width: 90%;
    height: 230px;
  }

  .spid-stage.view-technical {
    min-height: 720px;
  }

  .spid-stage__technical {
    overflow: auto;
  }

  .spid-tech__board {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .spid-tech__assembly {
    min-height: 315px;
  }

  .spid-tech__hardware {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .spid-tech__hardware article {
    grid-template-columns: 64px 1fr;
  }

  .spid-tech__hardware img {
    width: 60px;
    height: 76px;
  }

  .spid-tech__options {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-height: none;
  }

  .spid-tech__options-head {
    grid-column: 1 / -1;
  }
}

@media (max-width: 520px) {
  .spid-stage {
    min-height: 480px;
  }

  .spid-stage.view-technical {
    min-height: 760px;
  }

  .spid-stage__context {
    max-width: calc(100% - 20px);
  }

  .spid-stage__facts {
    bottom: 46px;
  }

  .spid-stage__facts strong {
    font-size: 0.64rem;
  }

  .spid-site-barrier {
    bottom: 90px;
    height: 200px;
  }

  .spid-site-barrier__boom {
    top: 53px;
    height: 92px;
  }

  .spid-site-barrier__led {
    top: 24px;
    height: 11px;
  }

  .spid-site-barrier__joint {
    top: 6px;
    left: calc(59% - 45px);
    width: 90px;
    height: 52px;
  }

  .spid-site-barrier__support,
  .has-mobile-support .spid-site-barrier__support {
    width: 58px;
    height: 148px;
  }

  .spid-stage__hotspot {
    display: none;
  }

  .spid-tech__head p {
    display: none;
  }

  .spid-tech__assembly {
    min-height: 280px;
  }

  .spid-tech__cabinet-image {
    height: 60%;
  }

  .spid-tech__arm-visual {
    left: 16%;
  }

  .spid-tech__callout {
    min-width: 112px;
    padding: 7px 8px;
  }

  .spid-tech__callout small {
    display: none;
  }

  .spid-tech__hardware {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .spid-stage__backdrop,
  .spid-site-barrier {
    transition: none;
  }
}
