.site-header {
  background: rgba(247, 255, 242, 0.86);
  box-shadow: 0 10px 34px rgba(8, 71, 52, 0.08);
}

.header-grid {
  height: 88px;
}

.brand,
.footer-brand {
  gap: 14px;
  letter-spacing: 0;
}

.brand-cube {
  width: 64px !important;
  height: 58px !important;
  object-fit: contain;
  filter: drop-shadow(0 10px 18px rgba(8, 71, 52, 0.18)) drop-shadow(0 0 12px rgba(206, 241, 123, 0.22));
}

.brand-text {
  font-size: 25px !important;
  line-height: 1;
  font-weight: 950;
  color: #063b2c;
}

.brand-wordmark {
  display: none !important;
}

.footer-brand {
  align-items: center;
}

.footer-logo {
  width: 76px !important;
  height: 72px !important;
  object-fit: contain;
  filter: drop-shadow(0 16px 24px rgba(0, 0, 0, 0.34)) drop-shadow(0 0 18px rgba(206, 241, 123, 0.28));
}

.footer-brand span {
  font-size: 28px;
  line-height: 1;
  font-weight: 950;
  color: #f7fff2;
}

.page-hero {
  position: relative;
  overflow: hidden;
}

.ambient-cube-scene.ambient-brand-cube-scene {
  position: absolute;
  top: 50%;
  right: clamp(18px, 6vw, 92px);
  width: clamp(170px, 23vw, 320px);
  height: clamp(170px, 23vw, 320px);
  transform: translateY(-50%);
  opacity: 0.42;
  pointer-events: none;
  z-index: 0;
}

.ambient-brand-cube {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  animation: brandCubeDrift 8s ease-in-out infinite;
}

.ambient-brand-cube::after {
  content: "";
  position: absolute;
  width: 68%;
  height: 18%;
  bottom: 12%;
  border-radius: 999px;
  background: radial-gradient(ellipse, rgba(206, 241, 123, 0.28), rgba(8, 71, 52, 0.08) 48%, transparent 72%);
  filter: blur(8px);
}

.ambient-brand-cube-glow {
  position: absolute;
  width: 86%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(206, 241, 123, 0.28), rgba(39, 207, 183, 0.08) 44%, transparent 72%);
  filter: blur(18px);
}

.ambient-brand-cube img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 24px 34px rgba(8, 71, 52, 0.22)) drop-shadow(0 0 20px rgba(206, 241, 123, 0.26));
}

.ambient-cube-scene .ctrlbox-cube-3d {
  display: none !important;
}

.detail-logo-panel img[src*="ctrlbox-cube-brand"],
.image-panel img[src*="ctrlbox-cube-brand"] {
  width: min(100%, 360px);
  max-height: 360px;
  object-fit: contain;
  filter: drop-shadow(0 24px 42px rgba(8, 71, 52, 0.22)) drop-shadow(0 0 26px rgba(206, 241, 123, 0.22));
}

.case-logo-wrap img[src*="ctrlbox-cube-brand"] {
  width: min(100%, 180px);
  max-height: 180px;
  filter: drop-shadow(0 16px 28px rgba(8, 71, 52, 0.18));
}

.testimonial-card img[src*="ctrlbox-cube-brand"] {
  padding: 0;
  background: transparent;
  object-fit: contain;
}

@keyframes brandCubeDrift {
  0%,
  100% {
    transform: translate3d(0, 0, 0) rotateZ(-1deg);
  }
  50% {
    transform: translate3d(0, -10px, 0) rotateZ(1deg);
  }
}

@media (max-width: 980px) {
  .ambient-cube-scene.ambient-brand-cube-scene {
    right: 12px;
    bottom: 14px;
    top: auto;
    width: 170px;
    height: 170px;
    transform: none;
    opacity: 0.24;
  }
}

@media (max-width: 760px) {
  .header-grid {
    height: 76px;
  }

  .brand {
    gap: 10px;
  }

  .brand-cube {
    width: 50px !important;
    height: 46px !important;
  }

  .brand-text {
    font-size: 21px !important;
  }

  .primary-nav {
    top: 88px;
  }

  .footer-logo {
    width: 64px !important;
    height: 60px !important;
  }

  .footer-brand span {
    font-size: 24px;
  }

  .ambient-cube-scene.ambient-brand-cube-scene {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ambient-brand-cube {
    animation: none !important;
  }
}
