/* Scoped to the HALO cutaway module. */
.halo-cutaway {
  --hc-glow: #71ddff;
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  align-items: center;
  gap: clamp(1.5rem, 5vw, 5rem);
  padding: clamp(1.25rem, 5vw, 5rem);
  background: radial-gradient(ellipse at 22% 40%, #173f66, transparent 55%), #071728;
  color: #eaf5ff;
  font: 1rem/1.55 system-ui, sans-serif;
}
.halo-cutaway [hidden] { display: none !important; }
.halo-cutaway .hc-product { display: grid; justify-items: center; }
.halo-cutaway .hc-photo {
  position: relative;
  width: min(100%, 232px);
  overflow: hidden;
  border: 1px solid #8fe7ff88;
  border-radius: 8rem 8rem 1.5rem 1.5rem;
  box-shadow: 0 0 2.5rem #49c7fa36, 0 1.5rem 3rem #0007;
}
.halo-cutaway img { width: 100%; height: auto; display: block; }
.halo-cutaway .hc-ring {
  position: absolute;
  left: 32%;
  right: 9%;
  top: 62%;
  height: 18%;
  border: 2px solid #00b9ed;
  border-radius: .8rem;
  box-shadow: 0 0 14px #00b9ed, inset 0 0 12px #00b9ed88;
  transition: top .5s ease, height .5s ease;
  pointer-events: none;
}
.halo-cutaway:has([data-zone="media"][open]) .hc-ring { top: 77%; height: 16%; }
.halo-cutaway:has([data-zone="ion"][open]) .hc-ring { left: 55%; right: 28%; top: 78%; height: 18%; }
.halo-cutaway .hc-product p { color: #b0c7dc; font-size: .8rem; margin: 1rem 0 0; text-align: center; }
.halo-cutaway :is(h2,h3,p) { color: inherit; }
.halo-cutaway h2 { font-size: clamp(2.3rem, 5vw, 4.3rem); line-height: 1; letter-spacing: -.055em; margin: 0 0 1rem; }
.halo-cutaway h3 { font-size: 1rem; margin: 0 0 .25rem; }
.halo-cutaway .hc-copy > p { color: #c5d9ec; margin: 0 0 1.25rem; }
.halo-cutaway details { border-top: 1px solid #36536e; }
.halo-cutaway details:last-child { border-bottom: 1px solid #36536e; }
.halo-cutaway summary { cursor: pointer; padding: .7rem 0; font-weight: 700; }
.halo-cutaway summary span { color: var(--hc-glow); margin: 0 .75rem 0 .35rem; font-variant-numeric: tabular-nums; }
.halo-cutaway details[open] summary { color: var(--hc-glow); }
.halo-cutaway details > div { padding: 0 .9rem .85rem 3rem; }
.halo-cutaway details p { color: #c5d9ec; margin: 0; }
.halo-cutaway :is(.hc-play,.hc-cta) {
  display: inline-block; margin: 1rem .4rem 0 0; padding: .65rem 1rem;
  color: #fff; background: transparent; border: 1px solid #7797b8;
  border-radius: 2rem; cursor: pointer; font: inherit; font-weight: 700;
  text-decoration: none;
}
.halo-cutaway .hc-cta { background: #9ee9ff; border-color: #9ee9ff; color: #102a47; }
.halo-cutaway :is(summary,button,a):focus-visible { outline: 3px solid var(--hc-glow); outline-offset: 3px; }
@media (max-width: 700px) {
  .halo-cutaway { grid-template-columns: 1fr; }
  .halo-cutaway .hc-photo { width: min(60vw, 176px); }
}
@media (prefers-reduced-motion: reduce) {
  .halo-cutaway .hc-ring { transition: none; }
}

/* Stages 1 and 2 — the shared dark carbon bed */
.halo-cutaway .hc-photo .hc-ring {
  left: 35%;
  right: 34%;
  top: 61%;
  height: 17%;
  box-sizing: border-box;
  pointer-events: none;
}

/* Stage 3 — the pale filter media below the carbon */
.halo-cutaway:has(.hc-stages > details:nth-of-type(3)[open]) .hc-photo .hc-ring {
  left: 36%;
  right: 35%;
  top: 78%;
  height: 9%;
}

/* Stage 4 — the reddish garnet at the base */
.halo-cutaway:has(.hc-stages > details:nth-of-type(4)[open]) .hc-photo .hc-ring {
  left: 40%;
  right: 39%;
  top: 87%;
  height: 6%;
}

/* Stage 5 — the narrow HALO ION cylinder in the centre */
.halo-cutaway:has(.hc-stages > details:nth-of-type(5)[open]) .hc-photo .hc-ring {
  left: 46%;
  right: 45%;
  top: 77%;
  height: 17%;
}

.halo-cutaway:not(:has(.hc-stages > details[open])) .hc-photo .hc-ring {
  opacity: 0;
}

@media (prefers-reduced-motion: no-preference) {
  .halo-cutaway .hc-photo .hc-ring {
    transition: left .45s ease, right .45s ease,
                top .45s ease, height .45s ease;
  }
}

/* Stage 1 — upper portion of the carbon bed */
.halo-cutaway:has(.hc-stages > details:nth-of-type(1)[open]) .hc-photo .hc-ring {
  top: 60.5%;
  height: 8.5%;
}

/* Stage 2 — lower portion of the carbon bed */
.halo-cutaway:has(.hc-stages > details:nth-of-type(2)[open]) .hc-photo .hc-ring {
  top: 69.5%;
  height: 8%;
}