/* Brillnet Atlas integration. All layout overrides require the new component. */
brillnet-voxel-scene {
  display: block;
  position: relative;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 320px;
  aspect-ratio: auto;
  background: transparent;
  font-family: inherit;
  --voxel-ink: var(--ink, #102d28);
  --voxel-paper: var(--paper, #fbfcf9);
  --voxel-line: var(--line, #d7e2d8);
}

.brillnet-hero-voxel-stage:has(brillnet-voxel-scene) {
  position: relative;
  display: block;
  width: 100%;
  height: clamp(320px, 40vw, 520px);
  min-width: 0;
  min-height: 320px;
  max-height: 520px;
  aspect-ratio: auto;
  margin: 0;
  padding: 0;
  overflow: visible;
  background: transparent;
  border: 0;
  box-shadow: none;
}

body[data-design="atlas"] .company-hero__visual:has(brillnet-voxel-scene) {
  position: relative;
  inset: auto;
  display: block;
  width: 100%;
  max-width: none;
  min-width: 0;
  height: auto;
  min-height: 320px;
  flex: none;
  margin: 0;
  padding: 0;
  align-self: center;
  justify-self: stretch;
  overflow: visible;
  background: transparent;
}

/* The former cube used narrower shares below 1100/930px. The maquette fills
   its existing hero container after the site's normal column-to-row switch. */
@media (max-width: 1100px) {
  body[data-design="atlas"] .company-hero__inner:has(brillnet-voxel-scene) {
    display: flex;
    flex-direction: column;
    gap: 24px;
    min-width: 0;
  }

  body[data-design="atlas"] .company-hero__visual:has(brillnet-voxel-scene) {
    width: 100%;
    max-width: 100%;
    align-self: stretch;
  }

  .brillnet-hero-voxel-stage:has(brillnet-voxel-scene) {
    height: clamp(320px, 65vw, 520px);
  }
}

/* Remove only the legacy cube's mobile slot. No other hero or page is touched. */
@media (max-width: 620px) {
  body[data-design="atlas"] .company-hero__inner:has(brillnet-voxel-scene) {
    gap: 20px;
  }

  body[data-design="atlas"] .company-hero__visual:has(brillnet-voxel-scene) {
    position: relative;
    top: auto;
    right: auto;
    bottom: auto;
    left: auto;
    width: 100%;
    max-width: 100%;
    margin: 0;
  }

  body[data-design="atlas"] .company-hero__inner:has(brillnet-voxel-scene)
    .company-hero__copy > .company-eyebrow {
    max-width: 100%;
    min-height: 0;
  }

  .brillnet-hero-voxel-stage:has(brillnet-voxel-scene) {
    height: clamp(320px, 88vw, 520px);
  }
}
