/* Authentic workshop equipment, rendered as a restrained 2.5D technical presence. */
[data-equipment-stage] {
  --equipment-rx: 0deg;
  --equipment-ry: 0deg;
  --equipment-light-x: 50%;
}

.home-dryice {
  scroll-margin-top: 96px;
}

.home-dryice__visual {
  isolation: isolate;
  perspective: 1200px;
}

.home-dryice__equipment-grid,
.dryice-tech__equipment-grid {
  position: absolute;
  z-index: 1;
  inset: 0;
  overflow: hidden;
  background:
    linear-gradient(rgba(206, 238, 250, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(206, 238, 250, 0.055) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(circle at 50% 52%, #000 0 28%, rgba(0, 0, 0, 0.78) 52%, transparent 82%);
  pointer-events: none;
}

.home-dryice__equipment-grid::after,
.dryice-tech__equipment-grid::after {
  position: absolute;
  top: -12%;
  bottom: -12%;
  left: -28%;
  width: 24%;
  background: linear-gradient(90deg, transparent, rgba(198, 238, 255, 0.18), transparent);
  content: "";
  opacity: 0;
  transform: skewX(-13deg);
}

[data-equipment-stage].is-equipment-visible .home-dryice__equipment-grid::after,
[data-equipment-stage].is-equipment-visible .dryice-tech__equipment-grid::after {
  animation: ccc-equipment-light-pass 1250ms 260ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.home-dryice__equipment-halo,
.dryice-tech__equipment-halo {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 50%;
  width: min(78%, 500px);
  aspect-ratio: 1;
  border: 1px solid rgba(201, 239, 255, 0.16);
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(137, 211, 244, 0.17), transparent 58%),
    conic-gradient(from 210deg, transparent 0 31%, rgba(225, 37, 27, 0.28) 34%, transparent 38% 68%, rgba(174, 226, 250, 0.28) 71%, transparent 75%);
  box-shadow: inset 0 0 68px rgba(185, 232, 252, 0.04), 0 0 74px rgba(91, 179, 219, 0.08);
  opacity: 0.58;
  pointer-events: none;
  transform: translate(-50%, -50%) rotate(-12deg);
}

[data-equipment-stage].is-equipment-visible .home-dryice__equipment-halo,
[data-equipment-stage].is-equipment-visible .dryice-tech__equipment-halo {
  animation: ccc-equipment-halo-in 900ms 120ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.home-dryice__equipment {
  position: absolute;
  z-index: 5;
  bottom: 1.5%;
  left: 3.5%;
  display: block;
  width: min(73%, 430px);
  transform: rotateX(var(--equipment-rx)) rotateY(var(--equipment-ry)) translateZ(18px);
  transform-origin: 50% 68%;
  transform-style: preserve-3d;
  transition: transform 180ms ease-out;
  will-change: transform;
}

.home-dryice__equipment img,
.dryice-tech__machine-picture img {
  display: block;
  width: 100%;
  height: auto;
  opacity: 1;
  transform: none;
  filter:
    drop-shadow(0 34px 28px rgba(0, 0, 0, 0.58))
    drop-shadow(18px 0 24px rgba(105, 205, 247, 0.08))
    drop-shadow(-14px 0 20px rgba(225, 37, 27, 0.07));
}

[data-equipment-stage].is-equipment-visible .home-dryice__equipment img,
[data-equipment-stage].is-equipment-visible .dryice-tech__machine-picture img {
  animation: ccc-equipment-image-in 920ms 90ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.home-dryice__equipment-label {
  position: absolute;
  z-index: 7;
  top: 24px;
  left: 24px;
  display: grid;
  gap: 4px;
  padding-left: 12px;
  border-left: 2px solid #e1251b;
  color: rgba(242, 248, 250, 0.72);
  font-family: "JetBrains Mono", ui-monospace, monospace;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.home-dryice__equipment-label small {
  font-size: 0.48rem;
}

.home-dryice__equipment-label strong {
  color: #fff;
  font-size: 0.68rem;
}

.home-dryice__temperature {
  z-index: 3;
  opacity: 0.86;
}

.home-dryice__scan {
  z-index: 6;
  mix-blend-mode: screen;
}

/* The equipment proof on the dry-ice page is intentionally large and visual,
   while the copy continues to explain the work instead of selling the machine. */
.dryice-tech__machine-feature {
  width: min(100%, 1180px);
  margin: 0 0 clamp(42px, 6vw, 72px);
  gap: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 24px;
  background: #0d0f12;
  box-shadow: 0 32px 90px rgba(0, 0, 0, 0.26);
}

.dryice-tech__machine-media {
  position: relative;
  display: grid;
  width: 100%;
  min-width: 0;
  min-height: 530px;
  margin: 0;
  place-items: center;
  padding: 30px;
  overflow: hidden;
  background:
    radial-gradient(circle at var(--equipment-light-x) 44%, rgba(119, 205, 242, 0.2), transparent 31%),
    radial-gradient(circle at 20% 70%, rgba(225, 37, 27, 0.13), transparent 32%),
    linear-gradient(145deg, #171b20, #080a0d 72%);
  isolation: isolate;
  perspective: 1200px;
}

.dryice-tech__machine-media::before {
  position: absolute;
  z-index: 1;
  right: 10%;
  bottom: 5%;
  left: 10%;
  height: 15%;
  display: block;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(0, 0, 0, 0.74), transparent 70%);
  filter: blur(14px);
  content: "";
  pointer-events: none;
}

.dryice-tech__machine-media::after {
  position: absolute;
  z-index: 2;
  right: 8%;
  bottom: 8%;
  left: 8%;
  height: 1px;
  display: block;
  background: linear-gradient(90deg, transparent, rgba(179, 224, 244, 0.38), transparent);
  box-shadow: 0 0 24px rgba(148, 215, 244, 0.18);
  content: "";
  pointer-events: none;
}

.dryice-tech__machine-picture {
  position: relative;
  z-index: 4;
  display: block;
  width: min(88%, 470px);
  transform: rotateX(var(--equipment-rx)) rotateY(var(--equipment-ry)) translateZ(20px);
  transform-origin: 50% 66%;
  transform-style: preserve-3d;
  transition: transform 180ms ease-out;
  will-change: transform;
}

.dryice-tech__machine-image {
  width: 100%;
  max-height: none;
  object-fit: contain;
}

.dryice-tech__equipment-temperature {
  position: absolute;
  z-index: 7;
  top: 24px;
  right: 24px;
  padding: 8px 10px;
  border: 1px solid rgba(205, 237, 250, 0.2);
  border-radius: 999px;
  background: rgba(8, 11, 14, 0.52);
  color: rgba(228, 246, 252, 0.8);
  font: 700 0.58rem/1 "JetBrains Mono", ui-monospace, monospace;
  letter-spacing: 0.13em;
  backdrop-filter: blur(10px);
}

.dryice-tech__machine-badge {
  position: absolute;
  z-index: 7;
  top: auto;
  right: auto;
  bottom: 22px;
  left: 22px;
  gap: 3px;
  margin: 0;
  padding: 10px 12px;
  border-left: 2px solid #e1251b;
  background: rgba(8, 10, 13, 0.72);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(12px);
}

.dryice-tech__machine-copy {
  padding: clamp(34px, 5vw, 64px);
  background:
    linear-gradient(135deg, rgba(225, 37, 27, 0.055), transparent 38%),
    #111316;
}

.dryice-tech__machine-copy h2 {
  max-width: 12ch;
  font-size: clamp(2.15rem, 4.2vw, 4.4rem);
  line-height: 0.94;
}

.dryice-tech__machine-copy > p {
  max-width: 58ch;
  font-size: 1rem;
  line-height: 1.68;
}

@media (min-width: 960px) {
  .dryice-tech__machine-feature {
    grid-template-columns: minmax(430px, 1.02fr) minmax(0, 0.98fr);
  }

  .dryice-tech__machine-media {
    min-height: 650px;
  }
}

@media (min-width: 901px) {
  .home-dryice__visual {
    position: sticky;
    top: 96px;
    align-self: start;
    height: min(680px, calc(100svh - 110px));
    min-height: 560px;
  }
}

@media (max-width: 959px) {
  .dryice-tech__machine-feature {
    grid-template-columns: 1fr;
  }

  .dryice-tech__machine-media {
    min-height: clamp(420px, 68vw, 560px);
  }

  .dryice-tech__machine-picture {
    width: min(74%, 430px);
    transform: none;
  }

  .home-dryice__equipment,
  .dryice-tech__machine-picture {
    will-change: auto;
  }
}

@media (max-width: 900px) {
  .home-dryice__equipment {
    bottom: 0;
    left: 50%;
    width: min(64%, 330px);
    transform: translateX(-50%);
    will-change: auto;
  }

  .home-dryice__equipment-halo {
    width: min(72%, 380px);
  }
}

@media (min-width: 700px) and (max-width: 900px) and (min-height: 560px) and (max-height: 920px) and (min-aspect-ratio: 4 / 5) and (max-aspect-ratio: 3 / 2) {
  .home-dryice__equipment {
    top: 32%;
    bottom: auto;
    left: 50%;
    width: min(96%, 290px);
    transform: translate(-50%, -50%);
  }

  .home-dryice__equipment-label {
    top: 18px;
    left: 18px;
  }
}

@media (max-width: 600px) {
  .home-dryice__equipment {
    bottom: -4%;
    width: min(70%, 250px);
  }

  .home-dryice__equipment-label {
    top: 16px;
    left: 16px;
  }

  .home-dryice__equipment-label small {
    font-size: 0.43rem;
  }

  .home-dryice__equipment-label strong {
    font-size: 0.6rem;
  }

  .dryice-tech__machine-media {
    min-height: 390px;
    padding: 20px 14px 28px;
  }

  .dryice-tech__machine-picture {
    width: min(94%, 320px);
  }

  .dryice-tech__equipment-temperature {
    top: 15px;
    right: 15px;
    font-size: 0.5rem;
  }

  .dryice-tech__machine-badge {
    bottom: 15px;
    left: 15px;
    padding: 8px 10px;
  }

  .dryice-tech__machine-copy {
    padding: 30px 22px 34px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-dryice__equipment,
  .dryice-tech__machine-picture,
  .home-dryice__equipment img,
  .dryice-tech__machine-picture img {
    transition: none;
  }

  [data-equipment-stage].is-equipment-visible .home-dryice__equipment img,
  [data-equipment-stage].is-equipment-visible .dryice-tech__machine-picture img {
    animation: none;
  }

  [data-equipment-stage].is-equipment-visible .home-dryice__equipment-grid::after,
  [data-equipment-stage].is-equipment-visible .dryice-tech__equipment-grid::after,
  [data-equipment-stage].is-equipment-visible .home-dryice__equipment-halo,
  [data-equipment-stage].is-equipment-visible .dryice-tech__equipment-halo {
    animation: none;
  }
}

@keyframes ccc-equipment-light-pass {
  0% { left: -28%; opacity: 0; }
  16% { opacity: 0.72; }
  78% { opacity: 0.26; }
  100% { left: 112%; opacity: 0; }
}

@keyframes ccc-equipment-halo-in {
  from { opacity: 0; transform: translate(-50%, -50%) rotate(-24deg) scale(0.9); }
  to { opacity: 0.58; transform: translate(-50%, -50%) rotate(-12deg) scale(1); }
}

@keyframes ccc-equipment-image-in {
  from { opacity: 0; transform: translateY(28px) scale(0.965); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@media print {
  .home-dryice__equipment-grid,
  .home-dryice__equipment-halo,
  .dryice-tech__equipment-grid,
  .dryice-tech__equipment-halo,
  .dryice-tech__equipment-temperature {
    display: none;
  }
}
