.brand-lockup,
.footer-brand {
  flex: none;
  line-height: 0;
}

.brand-logo {
  display: block;
  height: auto;
}

.header .brand-logo-full {
  width: 220px;
}

.header .brand-logo-icon,
.footer .brand-logo-icon {
  display: none;
}

.footer .footer-brand .brand-logo-full {
  width: 240px;
}

.core-symbol-logo {
  display: block;
  width: 52px;
  height: 52px;
  object-fit: contain;
}

.page-hero .contact-note {
  margin: 14px auto 0;
  color: #817a74;
  font-size: 11px;
  letter-spacing: 0.035em;
  line-height: 1.5;
}

.scroll-progress {
  position: fixed;
  z-index: 220;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  overflow: visible;
  background: rgba(8, 5, 3, 0.52);
  pointer-events: none;
}

.scroll-progress__fill {
  position: absolute;
  inset: 0;
  transform: scaleX(0);
  transform-origin: left center;
  background: linear-gradient(90deg, #8f3218 0%, #d45123 42%, #f78445 72%, #ffd0ad 100%);
  box-shadow: 0 0 8px rgba(242, 106, 61, 0.72), 0 0 18px rgba(212, 81, 35, 0.38);
  will-change: transform;
}

.scroll-progress__fill::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -2px;
  width: 82px;
  height: 7px;
  transform: translateY(-50%);
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(255, 171, 116, 0.18) 35%, rgba(255, 225, 204, 0.9) 82%, #fff 100%);
  filter: drop-shadow(0 0 5px rgba(255, 130, 72, 0.9));
  animation: progress-star-glow 1.25s ease-in-out infinite alternate;
}

.back-to-top {
  position: fixed;
  z-index: 180;
  right: 24px;
  bottom: 24px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  overflow: hidden;
  padding: 11px 15px;
  border: 1px solid rgba(255, 156, 103, 0.34);
  border-radius: 999px;
  background: rgba(15, 11, 9, 0.82);
  box-shadow: 0 10px 34px rgba(0, 0, 0, 0.34), inset 0 1px rgba(255, 255, 255, 0.08);
  color: #f4eee9;
  font-size: 12px;
  letter-spacing: 0.015em;
  backdrop-filter: blur(15px);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
}

.back-to-top::before {
  content: "";
  position: absolute;
  inset: -2px;
  transform: translateX(-145%);
  background: linear-gradient(110deg, transparent 25%, rgba(255, 197, 161, 0.08) 42%, rgba(255, 239, 228, 0.48) 50%, rgba(255, 148, 91, 0.1) 58%, transparent 75%);
  transition: transform 0.72s cubic-bezier(0.2, 0.7, 0.2, 1);
  pointer-events: none;
}

.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  border-color: rgba(255, 166, 112, 0.72);
  transform: translateY(-3px);
}

.back-to-top:hover::before {
  transform: translateX(145%);
}

.back-to-top b {
  color: #f78445;
  font-size: 15px;
  font-weight: 500;
}

@keyframes progress-star-glow {
  from { opacity: 0.52; transform: translateY(-50%) scaleX(0.78); }
  to { opacity: 1; transform: translateY(-50%) scaleX(1); }
}

@media (max-width: 1100px) {
  .header .brand-logo-full {
    display: none;
  }

  .header .brand-logo-icon {
    display: block;
    width: 36px;
  }
}

@media (max-width: 680px) {
  .back-to-top {
    right: 14px;
    bottom: 14px;
    padding: 10px 13px;
  }

  .scroll-progress {
    height: 2px;
  }

  .header .brand-logo-full {
    display: block;
    width: 184px;
  }

  .header .brand-logo-icon {
    display: none;
  }

  .footer .footer-brand .brand-logo-full {
    display: block;
    width: 205px;
  }

  .footer .footer-brand .brand-logo-icon {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .scroll-progress__fill::after {
    animation: none;
  }

  .back-to-top,
  .back-to-top::before {
    transition: none;
  }
}
