/**
 * MKA — 3D Grok-stage
 * Glossy orb + glass M + perspective slab. Pointer-lit.
 * 2026-08-26
 */

:root {
  --px: 0;
  --py: 0;
}

.nav-brand img {
  width: 38px !important;
  height: 38px !important;
  border-radius: 12px !important;
  object-fit: cover;
  background: #000;
  mix-blend-mode: screen;
  filter: contrast(1.15) brightness(1.25);
}

.hero.hero-3d {
  display: grid;
  grid-template-columns: minmax(280px, 0.95fr) minmax(320px, 1.15fr);
  align-items: center;
  gap: 32px 48px;
  min-height: 100svh;
  padding: 96px 40px 48px !important;
  max-width: 1280px;
  margin: 0 auto;
  perspective: 1600px;
}

.hero.hero-3d .hero-media::before,
.hero.hero-3d .hero-media::after {
  display: none !important;
}

.hero.hero-3d .hero-content {
  background: none !important;
  padding: 0 !important;
  position: relative;
  z-index: 3;
}
.hero.hero-3d .hero-content > * {
  max-width: 36ch;
}
.hero.hero-3d .hero h1,
.hero.hero-3d h1 {
  color: #f7f4ee !important;
  -webkit-text-fill-color: #f7f4ee !important;
  text-shadow: none !important;
  font-size: clamp(40px, 6vw, 68px) !important;
}
.hero.hero-3d .hero-lead,
.hero.hero-3d .mka-4moc,
.hero.hero-3d .mka-4moc p,
.hero.hero-3d .mka-4moc h2 {
  color: #d8d4cb !important;
  text-shadow: none !important;
}
.hero.hero-3d .mka-4moc h2 {
  color: #f2efe8 !important;
}
.hero.hero-3d .mka-4moc a {
  color: #f2efe8 !important;
}
.hero.hero-3d .hero-badge {
  background: rgba(255, 255, 255, 0.05) !important;
  color: #e8e4dc !important;
}

.hero-stage {
  position: relative;
  transform-style: preserve-3d;
  transform:
    rotateY(calc(var(--px) * 10deg))
    rotateX(calc(var(--py) * -7deg));
  transition: transform 0.18s var(--ease);
  will-change: transform;
}

.hero-slab {
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  transform: translateZ(40px);
  background: #0a0a0b;
  box-shadow:
    0 40px 90px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(255, 255, 255, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
}
.hero-slab::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    125deg,
    rgba(255, 255, 255, 0.16) 0%,
    transparent 34%,
    transparent 62%,
    rgba(255, 255, 255, 0.04) 100%
  );
  mix-blend-mode: screen;
}
.hero.hero-3d .hero-media {
  position: absolute !important;
  inset: 0 !important;
  min-height: 0 !important;
  height: 100% !important;
  width: 100% !important;
}
.hero-slab .hero-media,
.hero-slab picture,
.hero-slab img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.hero-slab video {
  display: none !important;
}

.g3d-orb {
  position: absolute;
  width: min(46%, 300px);
  right: -8%;
  bottom: -10%;
  z-index: 4;
  transform: translateZ(90px);
  mix-blend-mode: screen;
  pointer-events: none;
  animation: g3d-float 6.5s ease-in-out infinite;
}
@keyframes g3d-float {
  0%, 100% { transform: translateZ(90px) translateY(0); }
  50% { transform: translateZ(90px) translateY(-10px); }
}

.hero.hero-3d .mka-price-fold {
  grid-column: 1 / -1;
  margin-top: 8px;
}
.hero.hero-3d .mka-price-ref,
.hero.hero-3d .mka-price-fold p {
  color: #b8b3aa !important;
  text-shadow: none !important;
  border-top-color: var(--line) !important;
}

/* 3D cards */
.room,
.sig-card,
.moment,
.imm-tilt {
  transform: translateZ(0);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease) !important;
  box-shadow:
    0 16px 40px rgba(0, 0, 0, 0.35),
    0 0 0 1px rgba(255, 255, 255, 0.06) !important;
}
.room:hover,
.sig-card:hover,
.moment:hover {
  transform: translateY(-8px) rotateX(2deg) !important;
  box-shadow:
    0 28px 60px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(255, 255, 255, 0.12) !important;
}

@media (max-width: 899px) {
  .hero.hero-3d {
    grid-template-columns: 1fr;
    padding: 88px 18px 28px !important;
    gap: 22px;
    min-height: auto;
  }
  .hero-stage {
    order: -1;
    transform: none !important;
  }
  .g3d-orb {
    width: 34%;
    bottom: -10%;
    right: -4%;
    animation: none;
    transform: none;
  }
  .hero.hero-3d .hero-content > * {
    max-width: 100%;
  }
  .hero.hero-3d h1 {
    font-size: clamp(34px, 10vw, 44px) !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .g3d-orb,
  .hero-stage {
    animation: none !important;
    transform: none !important;
  }
}
