/* 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 30%;
  opacity: 0;
  transition: opacity 2.4s ease;
}

/* up to 3 photos cross-fade slowly, each with a gentle zoom */
#hero-bg > img.on {
  opacity: .52;
  animation: hero-zoom 14s ease-out both;
}

@keyframes hero-zoom {
  from { scale: 1; }
  to { scale: 1.08; }
}

#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(15rem, 74vw, 25rem);
  width: var(--portrait-size);
  height: var(--portrait-size);
}

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

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

.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: 5.125rem; /* just under the top bar, below the ≡ menu button */
  left: calc(1.4375rem + env(safe-area-inset-left)); /* same left edge as the ≡ button */
  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: 40rem) and (max-width: 47.99rem) {
  .floating-social {
    left: calc(2.3125rem + env(safe-area-inset-left));
  }
}

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

  #hero-bg > img.on {
    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;
  }
}


/* ------------------------------------------------------- slider: fill the frame */
.slide .fg {
  object-fit: cover;
  object-position: center 42%;
}

.slide .bg {
  display: none;
}

/* ---------------------------------------------------------- hero emblem + falcon */
.emblem-glow {
  position: absolute;
  inset: 5%;
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(circle, #d9b26f26, transparent 68%);
  box-shadow: 0 0 90px -14px #d9b26f70, 0 0 170px -40px #73c4f550;
}

.emblem-disc {
  position: absolute;
  inset: 6.8%;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 36%, #1d2436d6, #090b11e0 78%);
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
  box-shadow: inset 0 0 46px #000c;
}

.emblem-base {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
  filter: drop-shadow(0 6px 16px #0009);
}

.emblem-base[hidden] {
  display: none;
}

.falcon {
  position: absolute;
  left: 0;
  top: 22.2%;
  width: 100%;
  aspect-ratio: 1000 / 546;
  cursor: pointer;
  outline: none;
  -webkit-tap-highlight-color: transparent;
}

.falcon:focus-visible .falcon-idle {
  outline: 2px dashed var(--color-gold-300);
  outline-offset: 4px;
}

.falcon-fly,
.falcon-idle {
  position: absolute;
  inset: 0;
}

.falcon-idle {
  filter: drop-shadow(0 20px 14px #000a);
  animation: falcon-glide 7s ease-in-out infinite;
}

.falcon-part {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  -webkit-user-select: none;
  user-select: none;
}

/* One image cut into body + two wings so each wing can flap around its shoulder. */
.falcon-body {
  -webkit-mask-image: linear-gradient(90deg, transparent 34%, #000 40%, #000 60%, transparent 66%), linear-gradient(180deg, transparent 58%, #000 68%);
  mask-image: linear-gradient(90deg, transparent 34%, #000 40%, #000 60%, transparent 66%), linear-gradient(180deg, transparent 58%, #000 68%);
}

.falcon-wing {
  -webkit-mask-composite: source-in;
  mask-composite: intersect;
  will-change: transform;
}

.falcon-wing--l {
  -webkit-mask-image: linear-gradient(90deg, #000 40%, transparent 47%), linear-gradient(180deg, #000 58%, transparent 68%);
  mask-image: linear-gradient(90deg, #000 40%, transparent 47%), linear-gradient(180deg, #000 58%, transparent 68%);
  transform-origin: 41% 40%;
  animation: wing-l 2.6s ease-in-out infinite;
}

.falcon-wing--r {
  -webkit-mask-image: linear-gradient(270deg, #000 40%, transparent 47%), linear-gradient(180deg, #000 58%, transparent 68%);
  mask-image: linear-gradient(270deg, #000 40%, transparent 47%), linear-gradient(180deg, #000 58%, transparent 68%);
  transform-origin: 59% 40%;
  animation: wing-r 2.6s ease-in-out infinite;
}

.falcon.is-alert .falcon-wing--l,
.falcon.is-alert .falcon-wing--r {
  animation-duration: 1.1s;
}

.falcon.is-flying .falcon-wing--l {
  animation: wing-l-fast .24s ease-in-out infinite;
}

.falcon.is-flying .falcon-wing--r {
  animation: wing-r-fast .24s ease-in-out infinite;
}

.falcon.is-flying .falcon-idle {
  animation: none;
}

@keyframes wing-l {
  0%, 100% { transform: rotate(-3deg); }
  50% { transform: rotate(6deg); }
}

@keyframes wing-r {
  0%, 100% { transform: rotate(3deg); }
  50% { transform: rotate(-6deg); }
}

@keyframes wing-l-fast {
  0%, 100% { transform: rotate(-12deg) scaleY(.97); }
  50% { transform: rotate(16deg) scaleY(1.03); }
}

@keyframes wing-r-fast {
  0%, 100% { transform: rotate(12deg) scaleY(.97); }
  50% { transform: rotate(-16deg) scaleY(1.03); }
}

@keyframes falcon-glide {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  30% { transform: translate(1.2%, -3.2%) rotate(.9deg); }
  65% { transform: translate(-1.2%, -1%) rotate(-.9deg); }
}

/* ------------------------------------------------ floating e-mail button */
.floating-social .social-pill--email {
  --pulse-delay: 2.9s;
  border: 1px solid #ffc7b0;
}

.social-pill--email::before {
  position: absolute;
  z-index: 2;
  top: -2px;
  right: -2px;
  width: .55rem;
  height: .55rem;
  border-radius: 50%;
  content: "";
  background: #ffe14d;
  box-shadow: 0 0 0 2px #0b0d14, 0 0 10px #ffe14d;
  animation: mail-dot 1.8s ease-in-out infinite;
}

@keyframes mail-dot {
  0%, 100% { scale: 1; }
  50% { scale: 1.35; }
}

/* ------------------------------------------------------------- footer shop */
.shop-scene {
  display: flex;
  justify-content: center;
  padding: .5rem 0 0;
}

.shop-scene[hidden] {
  display: none;
}

.shop-stage {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: clamp(.1rem, 2.4vw, 1.25rem);
  perspective: 900px;
}

.shop-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .9rem;
  width: clamp(10.5rem, 44vw, 15rem);
}

.shop-bubble {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .1rem;
  padding: .6rem 1rem;
  border: 1px solid #d9b26f55;
  border-radius: 1.1rem;
  text-align: center;
  line-height: 1.5;
  background: linear-gradient(145deg, #1c2133f2, #0d1019f2);
  box-shadow: 0 12px 34px -14px #d9b26f99;
  animation: bubble-bob 4.6s ease-in-out infinite;
}

.shop-bubble::after {
  position: absolute;
  bottom: -7px;
  left: 50%;
  width: 12px;
  height: 12px;
  border: 1px solid #d9b26f55;
  border-width: 0 1px 1px 0;
  content: "";
  background: #0d1019;
  rotate: 45deg;
  translate: -50% 0;
}

.shop-bubble strong {
  font-family: "Aref Ruqaa", Cairo, serif;
  font-size: 1.35rem;
  color: var(--color-gold-200);
}

.shop-bubble span {
  font-size: .8rem;
  color: #f3e9d5cc;
}

.shop-float {
  width: 100%;
  transform-style: preserve-3d;
  transition: transform .25s cubic-bezier(.2, .7, .2, 1);
  animation: shop-float 4.6s ease-in-out infinite;
}

.shop-link {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  cursor: pointer;
  background: none;
  filter: drop-shadow(0 16px 22px #d9b26f40);
  transition: scale .3s;
  -webkit-tap-highlight-color: transparent;
}

.shop-link:hover,
.shop-link:focus-visible {
  scale: 1.06;
  outline: none;
}

.shop-svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

.shop-awning {
  transform-origin: 110px 58px;
  animation: awning 4.2s ease-in-out infinite;
}

.shop-sign {
  transform-origin: 110px 40px;
  animation: sign-swing 3.4s ease-in-out infinite;
}

.shop-open {
  animation: open-blink 2.4s steps(1) infinite;
}

.shop-spark path {
  transform-box: fill-box;
  transform-origin: center;
  animation: spark 2.2s ease-in-out infinite;
}

.shop-spark path:nth-child(2) { animation-delay: .7s; }
.shop-spark path:nth-child(3) { animation-delay: 1.3s; }

.child-wrap {
  position: relative;
  width: clamp(5.8rem, 25vw, 8.6rem);
  margin-bottom: .1rem;
}

.child-say {
  position: absolute;
  z-index: 5;
  top: -.4rem;
  right: 0;
  padding: .3rem .7rem;
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 700;
  white-space: nowrap;
  color: #0b0d14;
  opacity: 0;
  background: #ffe08a;
  box-shadow: 0 8px 20px -8px #ffe08a;
  translate: 0 8px;
  scale: .85;
  transition: opacity .25s, translate .25s, scale .25s;
  pointer-events: none;
}

.child-say.show {
  opacity: 1;
  translate: 0 0;
  scale: 1;
}

.child-hop.hop {
  animation: child-hop .7s cubic-bezier(.3, .7, .4, 1);
}

.child-sway {
  animation: child-sway 7s ease-in-out infinite;
}

.child3d {
  position: relative;
  aspect-ratio: 194 / 262;
  cursor: pointer;
  outline: none;
  transform-style: preserve-3d;
  transition: transform .2s cubic-bezier(.2, .7, .2, 1);
  -webkit-tap-highlight-color: transparent;
}

.child3d:focus-visible {
  outline: 2px dashed var(--color-gold-300);
  outline-offset: 6px;
  border-radius: 1rem;
}

.child3d .cl {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  filter: drop-shadow(0 3px 3px #00000040);
  pointer-events: none;
}

.child3d .cl-shadow {
  filter: blur(2px);
}

.child-head {
  transform-box: view-box;
  transform-origin: 80px 100px;
  animation: child-nod 3.8s ease-in-out infinite;
}

.child-eyes {
  transform-box: fill-box;
  transform-origin: center;
  animation: child-blink 4.6s infinite;
}

.child-arm {
  transform-box: view-box;
  transform-origin: 52px 118px;
  animation: child-point 1.9s ease-in-out infinite;
}

.child-hop.hop .child-arm {
  animation-duration: .45s;
}

@keyframes shop-float {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -9px; }
}

@keyframes bubble-bob {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -5px; }
}

@keyframes awning {
  0%, 100% { transform: skewX(0deg); }
  50% { transform: skewX(-2.4deg); }
}

@keyframes sign-swing {
  0%, 100% { transform: rotate(-1.6deg); }
  50% { transform: rotate(1.6deg); }
}

@keyframes open-blink {
  0%, 70% { opacity: 1; }
  71%, 100% { opacity: .35; }
}

@keyframes spark {
  0%, 100% { scale: .6; opacity: .5; }
  50% { scale: 1.15; opacity: 1; }
}

@keyframes child-sway {
  0%, 100% { transform: rotateY(-9deg); }
  50% { transform: rotateY(9deg); }
}

@keyframes child-nod {
  0%, 100% { transform: rotate(-5deg); }
  50% { transform: rotate(-1deg); }
}

@keyframes child-blink {
  0%, 92%, 100% { scale: 1 1; }
  95% { scale: 1 .1; }
}

@keyframes child-point {
  0%, 100% { transform: rotate(0deg) translateX(0); }
  50% { transform: rotate(-5deg) translateX(-5px); }
}

@keyframes child-hop {
  0% { translate: 0 0; scale: 1 1; }
  25% { translate: 0 6px; scale: 1.05 .94; }
  55% { translate: 0 -26px; scale: .97 1.05; }
  100% { translate: 0 0; scale: 1 1; }
}

@media (prefers-reduced-motion: reduce) {
  .falcon-idle,
  .falcon-wing,
  .shop-bubble,
  .shop-float,
  .shop-awning,
  .shop-sign,
  .shop-open,
  .shop-spark path,
  .child-sway,
  .child-head,
  .child-eyes,
  .child-arm,
  .social-pill--email::before,
  #hero-bg > img.on {
    animation: none;
  }
}
