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

.hero-nameplate {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 1.25rem;
}

#hero-name {
  position: relative;
  padding: 0 .13em .35em;
  font-family: "Aref Ruqaa", Cairo, serif;
  font-size: clamp(1.9rem, 4.6vw, 2.9rem);
  font-weight: 700;
  line-height: 1.5;
  text-wrap: balance;
}

.hero-name-en {
  margin-top: .45rem;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-style: italic;
  font-weight: 600;
  font-size: clamp(.95rem, 2.4vw, 1.15rem);
  letter-spacing: .28em;
  text-indent: .28em;
  color: var(--color-azure-300);
  opacity: .85;
}

#hero-role { margin-top: 1.75rem; }

#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(17rem, 82vw, 32rem);
  width: var(--portrait-size);
  height: calc(var(--portrait-size) * .6);
}

.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: calc(5.1rem + env(safe-area-inset-top));
  left: calc(1.5rem + 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) {
  .floating-social {
    top: calc(5.1rem + env(safe-area-inset-top));
    left: max(2.2rem, calc((100vw - 80rem) / 2 + 2.2rem));
    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;
  }
}


/* ====================================================================== */
/* ===================== MOHAMMED — hero, emblem, store ================ */
/* ====================================================================== */

/* ---- rotating translucent hero backgrounds (opacity-only cross-fade, GPU layers) ---- */
#hero-bg { transform: translateZ(0); contain: layout paint; }

#hero-bg > .hero-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  opacity: 0;
  transition: opacity 2.6s ease-in-out;
  animation: hero-drift 30s ease-in-out infinite alternate;
  will-change: opacity, transform;
  backface-visibility: hidden;
}

#hero-bg > .hero-slide.is-on { opacity: .5; }

#hero-bg:has(> .hero-slide)::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(180deg, #06070b66, transparent 22%, #06070b55 45%, #06070bcf 72%, #06070b 100%);
}

@keyframes hero-drift {
  from { transform: scale(1.04) translate3d(0, 0, 0); }
  to { transform: scale(1.13) translate3d(-1.2%, 0, 0); }
}

/* ---- parrot emblem ---- */
.emblem-glow {
  position: absolute;
  inset: 6%;
  border-radius: 50%;
  background: radial-gradient(circle, rgb(217 178 111 / .24), rgb(115 196 245 / .08) 55%, transparent 70%);
  filter: blur(18px);
  transform: translateZ(-50px);
  pointer-events: none;
  animation: glow-breathe 5s ease-in-out infinite;
}

@keyframes glow-breathe {
  50% { opacity: .55; scale: 1.06; }
}

#emblem-slot { transform-style: preserve-3d; cursor: pointer; -webkit-tap-highlight-color: transparent; }

.em-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: contain;
  user-select: none;
  pointer-events: none;
}


.em-custom { inset: -33.3% 0; height: 166.6%; object-fit: contain; transform: translateZ(40px); filter: drop-shadow(0 18px 30px rgb(0 0 0 / .5)); }

/* ---- animated player figure (transparent GIF, keeps looping on its own) ---- */
.em-player { animation: em-float 4.6s ease-in-out infinite; }

@keyframes em-float {
  0%, 100% { transform: translateZ(40px) translateY(-1.4%); }
  50% { transform: translateZ(40px) translateY(1.4%); }
}

.parrot {
  position: absolute;
  inset: -33.3% 0;
  transform-style: preserve-3d;
  transform:
    translateZ(70px)
    translate(calc(var(--px, 0) * 2.4%), calc(var(--py, 0) * 1.8%))
    rotate(calc(var(--px, 0) * 2.2deg));
}

/* The parrot is shown whole, in one frame, once every layer is decoded (see fatima.js). Until then it is hidden
   and all of its animations are held at frame 0, so they all start together and never run on half-loaded art. */
.parrot.pr-loading { visibility: hidden; }
.parrot.pr-loading, .parrot.pr-loading * { animation-play-state: paused !important; }

/* No blur/fade/slide entrance on the parrot stage: it is present from the first frame. */
#tilt-stage.rise { animation: none; }

.parrot-fly {
  position: absolute;
  inset: 0;
  filter: drop-shadow(0 22px 20px rgb(0 0 0 / .55));
  animation: parrot-bob 1.5s ease-in-out infinite;
}

/* artwork box (same footprint the previous emblem used: flight path & position unchanged) */
.pr-rig { position: absolute; inset: 8%; width: 84%; height: 84%; }
.pr-rig > *, .pr-wing-out { position: absolute; inset: 0; width: 100%; height: 100%; will-change: transform; }
.pr-img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: contain; user-select: none; pointer-events: none; }

/* wings: inner wing beats from the shoulder, the outer wing follows from the wrist a beat later */
.pr-wing-l { transform-origin: 43.8% 39.3%; animation: wing-l 1.5s ease-in-out infinite; }
.pr-wing-r { transform-origin: 56.2% 39.3%; animation: wing-r 1.5s ease-in-out infinite; }
.pr-wing-l-out { transform-origin: 31.4% 31.8%; animation: wing-l-out 1.5s ease-in-out -.14s infinite; }
.pr-wing-r-out { transform-origin: 70.3% 31.8%; animation: wing-r-out 1.5s ease-in-out -.14s infinite; }

/* tail: three feather groups swaying independently around the root */
.pr-tail-l { transform-origin: 51.1% 55.0%; animation: tail-l 1.9s ease-in-out -.3s infinite; }
.pr-tail-c { transform-origin: 51.1% 55.0%; animation: tail-c 2.3s ease-in-out -.9s infinite; }
.pr-tail-r { transform-origin: 51.1% 55.0%; animation: tail-r 1.7s ease-in-out -.6s infinite; }

/* body & head: tiny pitch that rides the wing beat */
.pr-body { transform-origin: 50% 50%; animation: pr-body 1.5s ease-in-out infinite; }

@keyframes parrot-bob {
  0%, 100% { transform: translateY(-1.6%) scale(1.006); }
  50% { transform: translateY(1.2%) scale(1); }
}

@keyframes wing-l {
  0%, 100% { transform: rotate(9deg) scale(1, 1.02); }
  50% { transform: rotate(-9deg) scale(1, .97); }
}

@keyframes wing-r {
  0%, 100% { transform: rotate(-9deg) scale(1, 1.02); }
  50% { transform: rotate(9deg) scale(1, .97); }
}

@keyframes wing-l-out {
  0%, 100% { transform: rotate(8deg); }
  50% { transform: rotate(-11deg); }
}

@keyframes wing-r-out {
  0%, 100% { transform: rotate(-8deg); }
  50% { transform: rotate(11deg); }
}

@keyframes tail-l {
  0%, 100% { transform: rotate(-4deg); }
  50% { transform: rotate(5deg); }
}

@keyframes tail-c {
  0%, 100% { transform: rotate(2.5deg) scaleY(1.015); }
  50% { transform: rotate(-3deg) scaleY(.985); }
}

@keyframes tail-r {
  0%, 100% { transform: rotate(4.5deg); }
  50% { transform: rotate(-4deg); }
}

@keyframes pr-body {
  0%, 100% { transform: rotate(-.9deg) translateY(.6%); }
  50% { transform: rotate(.9deg) translateY(-.6%); }
}

/* in flight (after a tap): faster wing beats, streaming tail */
.parrot.is-flying .pr-wing-l, .parrot.is-flying .pr-wing-r { animation-duration: .34s; }
.parrot.is-flying .pr-wing-l-out, .parrot.is-flying .pr-wing-r-out { animation-duration: .34s; animation-delay: -.04s; }
.parrot.is-flying .pr-tail { animation-duration: .7s; }
.parrot.is-flying .pr-body { animation-duration: .34s; }

/* ---- photos fill their frame (no letterboxing) ---- */
.slide .bg { display: none; }
.slide .fg { object-fit: cover; object-position: center 42%; }
.ar-tall { aspect-ratio: 4 / 5; }
@media (min-width: 48rem) {
  .ar-tall { aspect-ratio: 1 / 1; }
  .grid.lg\:grid-cols-4 .ar-tall { aspect-ratio: 4 / 5; }
}

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

/* ====================================================================== */
/* ============================== store zone ============================ */
/* ====================================================================== */

.store-zone {
  position: relative;
  padding: 1rem 0 2rem;
}

.store-stage {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: clamp(.25rem, 3vw, 2.5rem);
  max-width: 44rem;
  margin-inline: auto;
}

.kid-col { flex: 0 0 auto; width: clamp(8.5rem, 34vw, 15rem); }
.store-col { flex: 0 1 auto; width: clamp(11rem, 46vw, 21rem); display: flex; flex-direction: column; align-items: center; }

.kid-stage { width: 100%; aspect-ratio: 280 / 300; position: relative; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.kid3d { position: absolute; inset: 0; }
.kid-layer { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.kid-shadow { transform: translateZ(-30px); filter: blur(3px); }
.kid-body { transform: translateZ(0); filter: drop-shadow(0 10px 12px rgb(0 0 0 / .4)); }
.kid-arm { transform: translateZ(38px); transform-origin: 45% 50.7%; animation: kid-point 1.8s ease-in-out infinite; filter: drop-shadow(0 8px 8px rgb(0 0 0 / .35)); }
.kid-head { transform: translateZ(62px); transform-origin: 57% 36%; animation: kid-head 3.6s ease-in-out infinite; filter: drop-shadow(0 8px 10px rgb(0 0 0 / .35)); }

@keyframes kid-point {
  0%, 100% { rotate: -3deg; }
  50% { rotate: 4deg; }
}

@keyframes kid-head {
  0%, 100% { transform: translateZ(62px) rotate(-4deg) translateY(0); }
  50% { transform: translateZ(62px) rotate(-1deg) translateY(-1.5%); }
}

.kid-finger { animation: kid-poke .9s ease-in-out infinite; }

@keyframes kid-poke {
  50% { transform: translateX(-5px); }
}

.kid-pings { animation: kid-ping .9s ease-in-out infinite; }

@keyframes kid-ping {
  0%, 100% { opacity: .2; }
  50% { opacity: 1; }
}

.kid-pupil { transition: transform .12s ease-out; }

.kid-eye { transform-box: fill-box; transform-origin: center; animation: kid-blink 5s infinite; }

@keyframes kid-blink {
  0%, 94%, 100% { transform: scaleY(1); }
  97% { transform: scaleY(.08); }
}

.kid-arm-back { transform-box: fill-box; transform-origin: 6% 8%; animation: kid-sway 3.2s ease-in-out infinite; }

@keyframes kid-sway {
  50% { transform: rotate(5deg); }
}

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

@keyframes kid-hop {
  0%, 100% { translate: 0 0; }
  25% { translate: 0 -9%; }
  50% { translate: 0 0; }
  70% { translate: 0 -4%; }
}

/* he points harder when the shop is hovered */
.store-stage:has(.store-btn:hover) .kid-arm { animation-duration: .5s; }
.store-stage:has(.store-btn:hover) .kid-finger { animation-duration: .35s; }

/* ---- banner over the store ---- */
.store-banner {
  position: relative;
  margin-bottom: 1.1rem;
  padding: .7rem 1.15rem;
  max-width: 100%;
  border-radius: 1.1rem;
  text-align: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(.95rem, 3.6vw, 1.2rem);
  line-height: 1.6;
  color: var(--color-gold-200);
  background: linear-gradient(145deg, #ffffff1c, #ffffff08);
  border: 1px solid #d9b26f66;
  box-shadow: 0 14px 40px -18px #d9b26fb3, inset 0 1px #ffffff26;
  backdrop-filter: blur(14px);
  animation: banner-float 4s ease-in-out infinite;
}

.store-banner::after {
  position: absolute;
  bottom: -.5rem;
  left: 50%;
  width: .95rem;
  height: .95rem;
  content: "";
  rotate: 45deg;
  translate: -50% 0;
  background: #1a1a22;
  border-right: 1px solid #d9b26f66;
  border-bottom: 1px solid #d9b26f66;
}

@keyframes banner-float {
  50% { translate: 0 -6px; }
}

/* ---- the shop ---- */
.store-btn {
  position: relative;
  display: block;
  width: 100%;
  -webkit-tap-highlight-color: transparent;
  animation: store-float 4.2s ease-in-out infinite;
  transition: scale .35s cubic-bezier(.2, .8, .2, 1.3);
}

.store-btn:hover,
.store-btn:focus-visible { scale: 1.08; }
.store-btn:active { scale: .96; }

.store-svg { width: 100%; height: auto; overflow: visible; filter: drop-shadow(0 18px 22px rgb(0 0 0 / .45)); }

.store-glow {
  position: absolute;
  inset: 8% 4% 6%;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(circle, #ff4d8d66, #8a5cff44 45%, transparent 70%);
  filter: blur(22px);
  animation: glow-breathe 3.6s ease-in-out infinite;
}

@keyframes store-float {
  0%, 100% { transform: translateY(0) rotate(-.6deg); }
  50% { transform: translateY(-12px) rotate(.8deg); }
}

.store-awning { transform-box: fill-box; transform-origin: 50% 0; animation: awning-wave 3s ease-in-out infinite; }

@keyframes awning-wave {
  0%, 100% { transform: skewX(0); }
  50% { transform: skewX(-1.6deg) scaleY(1.03); }
}

.store-btn:hover .store-awning { animation-duration: .9s; }

.store-open { transform-box: fill-box; transform-origin: 50% 0; animation: open-swing 2.4s ease-in-out infinite; }

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

.bulb { animation: bulb 1.6s ease-in-out infinite; }
.bulb.b2, .bulb.b4, .bulb.b6 { animation-delay: .8s; }

@keyframes bulb {
  50% { opacity: .25; }
}

.spk { transform-box: fill-box; transform-origin: center; animation: spk 2.2s ease-in-out infinite; }
.spk.s2 { animation-delay: .7s; }
.spk.s3 { animation-delay: 1.3s; }

@keyframes spk {
  0%, 100% { transform: scale(.4) rotate(0); opacity: .3; }
  50% { transform: scale(1.1) rotate(35deg); opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .parrot-fly, .pr-wing, .pr-wing-out, .pr-tail, .pr-body, .em-player, .emblem-glow, .kid-arm, .kid-head, .kid-finger, .kid-pings, .kid-eye, .kid-arm-back,
  .store-btn, .store-banner, .store-awning, .store-open, .bulb, .spk, .store-glow { animation: none !important; }
}

/* ---- extra social pill + footer ---- */
.floating-social .social-pill--website {
  --pulse-delay: 2.4s;
  border: 1px solid #9fd8ff;
}

.site-footer > div > div:last-child { justify-content: center; text-align: center; }
.site-footer .md\:text-start { text-align: center; }

/* ---- top bar: name next to the small logo ---- */
.brand-text { gap: .1rem; }
.gold-text {
  background: linear-gradient(180deg, #fdf4de 0%, #f3e2bd 34%, #d9b26f 68%, #b8893f 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  text-shadow: none;
}
#brand-name {
  font-family: "Aref Ruqaa", Cairo, serif;
  font-size: 1.45rem;
  font-weight: 700;
  line-height: 1.25;
  background: linear-gradient(180deg, #fdf4de 0%, #f3e2bd 34%, #d9b26f 68%, #b8893f 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}
.brand-en {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-style: italic;
  font-weight: 600;
  font-size: .78rem;
  letter-spacing: .26em;
  background: linear-gradient(180deg, #f7e9c8 0%, #e8cd93 60%, #c79a4e 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

/* ---- footer name: Ruqaa like the top bar ---- */
#footer-name {
  font-family: "Aref Ruqaa", Cairo, serif;
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1.4;
  background: linear-gradient(180deg, #fdf4de 0%, #f3e2bd 34%, #d9b26f 68%, #b8893f 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}
