.hero_brand_title {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.hero_logo_cube {
  display: block;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  position: relative;
  width: min(100%, 560px);
  height: clamp(220px, 40vh, 440px);
  margin: 0 auto 0.75rem;
  touch-action: pan-y;
}
.hero_logo_cube.is_ready { cursor: pointer; }
.hero_logo_cube:focus-visible { outline: 2px solid var(--color_accent); outline-offset: 4px; border-radius: 24px; }
.hero_logo_cube::before {
  content: "";
  position: absolute;
  inset: 15% 0 0;
  background: radial-gradient(ellipse, rgb(255 0 35 / 13%), transparent 65%);
  pointer-events: none;
}
.hero_logo_cube canvas {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
}
.hero_logo_fallback {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.hero_logo_cube.is_ready .hero_logo_fallback { display: none; }
.hero_logo_cube::before { transition: opacity 0.4s ease, transform 0.4s ease; }
.hero_logo_cube.is_impact::before { animation: logo_glow 0.9s ease-out; }
/* Onda de choque disparada quando as faces voltam a se encaixar. */
.hero_logo_ring {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 46%;
  aspect-ratio: 1;
  border-radius: 50%;
  border: 2px solid rgb(255 30 50 / 90%);
  box-shadow: 0 0 24px rgb(255 0 35 / 55%), inset 0 0 18px rgb(255 0 35 / 35%);
  transform: translate(-50%, -50%) scale(0.4);
  opacity: 0;
  pointer-events: none;
}
.hero_logo_cube.is_impact .hero_logo_ring { animation: logo_shockwave 0.85s cubic-bezier(0.16, 1, 0.3, 1); }
@keyframes logo_shockwave {
  0% { opacity: 0.95; transform: translate(-50%, -50%) scale(0.45); border-width: 3px; }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(1.9); border-width: 1px; }
}
@keyframes logo_glow {
  0% { opacity: 1; transform: scale(1); }
  25% { opacity: 1; transform: scale(1.25); filter: brightness(2.2); }
  100% { opacity: 1; transform: scale(1); }
}
@media (max-width: 720px) {
  .hero_logo_cube { height: clamp(240px, 38vh, 320px); margin-bottom: 0.75rem; }
}
@media (prefers-reduced-motion: reduce) {
  .hero_logo_cube.is_impact .hero_logo_ring,
  .hero_logo_cube.is_impact::before { animation: none; }
}
