/* Decorative layers (orbs, rotated frames) must never create sideways scrolling on phones. */
html,
body {
  overflow-x: clip;
}

#hero-bg > img {
  position: absolute;
  inset: 0 auto 0 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 23%;
  opacity: .52;
}

#hero-bg:has(> img)::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(180deg, #06070b40, transparent 24%, #06070b40 40%, #06070bc9 64%, #06070b 100%);
}

#hero-name {
  position: relative;
  padding: 0 .13em .15em;
  font-family: "Aref Ruqaa", Cairo, serif;
  font-size: clamp(2.25rem, 6.6vw, 5.25rem);
  font-weight: 700;
  line-height: 1.4;
  text-wrap: balance;
}

#hero-name::before,
#hero-name::after {
  position: absolute;
  bottom: 0;
  left: 50%;
  content: "";
  translate: -50% 50%;
}

#hero-name::before {
  width: 7rem;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-gold-300), transparent);
}

#hero-name::after {
  width: .3rem;
  height: .3rem;
  rotate: 45deg;
  background: var(--color-gold-300);
}

#tilt-card {
  --portrait-size: clamp(10rem, 28vw, 13.5rem);
  width: var(--portrait-size);
  height: var(--portrait-size);
}

.brand-mark,
.medallion {
  padding: 3px;
}

.brand-photo {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand-mark .brand-photo {
  border-radius: 10px;
}

.medallion {
  width: clamp(2.25rem, 6vw, 3rem);
  aspect-ratio: 1;
  inset-inline-end: -.25rem;
  inset-block-end: -.2rem;
}

.medallion .brand-photo {
  border-radius: 50%;
}

.floating-social {
  position: fixed;
  z-index: 40;
  top: max(9.5rem, 22svh);
  left: calc(.4rem + env(safe-area-inset-left));
  flex-direction: column;
  gap: .55rem;
}

.floating-social:not([hidden]) {
  display: flex;
}

.floating-social .social-pill {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  animation: social-beat 3s ease-in-out infinite;
  animation-delay: var(--pulse-delay, 0s);
}

.social-pill--tiktok {
  border: 2px solid #ff4058;
}

.floating-social .social-pill > svg,
.floating-social .social-pill > span:not(.ring-pulse) {
  width: 1.15rem;
  height: 1.15rem;
}

.floating-social .social-pill--facebook {
  --pulse-delay: 1.1s;
  border: 1px solid #76b8ff;
}

.floating-social .social-pill--whatsapp {
  --pulse-delay: 2s;
  border: 1px solid #91e5ac;
}

.floating-social .ring-pulse {
  pointer-events: none;
  animation: social-wave 3s ease-out infinite;
  animation-delay: var(--pulse-delay, 0s);
}

.floating-social .social-pill:focus-visible {
  outline: 2px solid var(--color-gold-200);
  outline-offset: 4px;
}

.floating-social .social-pill:active {
  transform: scale(.94);
}

@keyframes social-beat {
  0%, 26%, 100% { scale: 1; }
  12% { scale: 1.07; }
}

@keyframes social-wave {
  0% { opacity: .65; transform: scale(1); }
  46%, 100% { opacity: 0; transform: scale(1.38); }
}

@media (min-width: 48rem) {
  #hero-bg > img {
    width: min(60%, 66rem);
    mask-image: linear-gradient(90deg, #000 54%, transparent 100%);
    opacity: .62;
  }

  .floating-social {
    top: max(calc(5.5rem + env(safe-area-inset-top)), 24svh);
    left: calc(1.25rem + env(safe-area-inset-left));
    gap: .65rem;
  }

  .floating-social .social-pill {
    width: 2.6rem;
    height: 2.6rem;
  }

  .floating-social .social-pill > svg,
  .floating-social .social-pill > span:not(.ring-pulse) {
    width: 1.3rem;
    height: 1.3rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .floating-social .social-pill,
  .floating-social .social-pill .ring-pulse,
  .floating-social .social-pill::after {
    animation: none;
  }
}
