.logo-depth {
  --light: -40%;
  --turn-x: 0deg;
  --turn-y: 0deg;
  --edge: #77736f;
  width: 100%;
  min-height: 340px;
  display: grid;
  place-items: center;
  perspective: 900px;
}

.logo-depth .hero-name-block {
  opacity: 1;
  animation: none;
  transform: rotateX(var(--turn-x)) rotateY(var(--turn-y));
  transition: transform .45s cubic-bezier(.2, .7, .2, 1);
}

.logo-depth .hero-name {
  position: relative;
  isolation: isolate;
  text-shadow: 0 1px 0 var(--edge), 1px 2px 0 var(--edge),
    2px 3px 0 var(--edge), 3px 4px 0 var(--edge),
    4px 5px 0 var(--edge), 5px 6px 0 var(--edge),
    7px 12px 12px rgba(0, 0, 0, .13), 14px 24px 30px rgba(0, 0, 0, .08);
}

.logo-depth .hero-name::after {
  content: 'AI';
  position: absolute;
  top: 0;
  left: 0;
  pointer-events: none;
  color: transparent;
  text-shadow: none;
  background: linear-gradient(110deg,
    transparent calc(var(--light) - 24%),
    rgba(232, 87, 42, .25) calc(var(--light) - 10%),
    rgba(255, 255, 255, .82) var(--light),
    rgba(232, 87, 42, .38) calc(var(--light) + 3%),
    transparent calc(var(--light) + 20%));
  -webkit-background-clip: text;
  background-clip: text;
}

.logo-depth .hero-name-dot { text-shadow: none; }
.logo-depth .hero-name-dot:focus-visible { outline: 2px solid #e8572a; outline-offset: 5px; }
[data-theme="dark"] .logo-depth { --edge: #696666; }

@media (max-width: 768px) {
  .logo-depth { min-height: 230px; }
}

@media (prefers-reduced-motion: reduce) {
  .logo-depth .hero-name-block { transform: none; transition: none; }
  .logo-depth .hero-name::after { display: none; }
  .logo-depth .dot-ring { animation: none; }
}
