.brand-scene {
  position: relative;
  isolation: isolate;
  display: grid;
  min-width: 0;
  min-height: 18rem;
  aspect-ratio: 6 / 5;
  overflow: hidden;
  overflow: clip;
  border: 1px solid #404047;
  border-radius: clamp(1.05rem, 3vw, 2.3rem);
  background:
    radial-gradient(ellipse at 31% 14%, #383940, transparent 65%),
    #101116;
  color: #f6f6f8;
  box-shadow: 0 1.4rem 3.4rem #07070a62;
}

.brand-scene::before,
.brand-scene::after {
  position: absolute;
  pointer-events: none;
  content: '';
}

.brand-scene::before {
  inset: 63% -35% -50%;
  z-index: -1;
  border-top: 1px solid #8a8e981f;
  background:
    radial-gradient(ellipse 23% 8% at 49% 21%, #090a0f, transparent 100%),
    linear-gradient(168deg, #24252a, #0f1015 74%);
  transform: translateY(5%) perspective(450px) rotateX(24deg);
  transform-origin: 50% 0;
}

.brand-scene::after {
  z-index: -1;
  inset: .85rem;
  border: 1px solid #e6e8f111;
  border-radius: clamp(.6rem, 2.25vw, 1.6rem);
}

.brand-scene [data-scene-canvas],
.brand-scene-fallback {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.brand-scene [data-scene-canvas] {
  display: block;
  visibility: hidden;
  cursor: grab;
  touch-action: manipulation;
  touch-action: pan-y pinch-zoom;
}

.brand-scene[data-scene-dragging] [data-scene-canvas] { cursor: grabbing; }
.brand-scene[data-scene-ready] [data-scene-canvas] { visibility: visible; }
.brand-scene[data-scene-ready] .brand-scene-fallback { visibility: hidden; }

.brand-scene-fallback {
  display: grid;
  place-items: center;
  pointer-events: none;
}

.brand-scene-fallback img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand-scene-controls {
  position: absolute;
  right: 0;
  bottom: clamp(1rem, 4%, 1.65rem);
  left: 0;
  display: flex;
  justify-content: center;
  gap: .25rem;
  width: max-content;
  margin-inline: auto;
  padding: .25rem;
  border: 1px solid #dce5fa40;
  border-radius: .7rem;
  background: #171821dc;
  box-shadow: 0 .65rem 1.2rem #05050b7a;
  backdrop-filter: blur(14px);
}

.brand-scene-controls[hidden] { display: none; }

.brand-scene-controls button {
  display: grid;
  min-width: 2.75rem;
  min-height: 2.75rem;
  place-items: center;
  padding: .35rem .7rem;
  border: 0;
  border-radius: .5rem;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font: 600 .9rem/1.2 system-ui, sans-serif;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.brand-scene-controls button:focus-visible {
  outline: 2px solid #ff8292;
  outline-offset: 1px;
}

.brand-scene-controls button:active { background: #702f43; }
.brand-scene-controls [aria-pressed='true'] { background: #823347; }
.brand-scene-status { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

@media (hover: hover) {
  .brand-scene-controls button:hover { background: #f0f2ff1a; }
}

@media (max-width: 42rem) {
  .brand-scene { width: 100%; min-height: 0; aspect-ratio: 7 / 6; }
  .brand-scene::after { inset: .6rem; }
}
