/* Legendary wordmark treatment, isolated to the “وهج الحضارات 2026” preview. */
:is(body.public-home-luxe-2026, body.auth-luxe-2026, body.public-manual-luxe-2026) .swHdr__title {
  gap: .28em;
  box-sizing: border-box;
  padding: .18em 1.08em .42em;
  filter: drop-shadow(0 .16em .18em rgba(38, 29, 12, .3));
}

:is(body.public-home-luxe-2026, body.auth-luxe-2026, body.public-manual-luxe-2026) .swHdr__title::before {
  width: 106%;
  height: 74%;
  box-sizing: border-box;
  background:
    linear-gradient(90deg, transparent 0 5%, rgba(255, 241, 191, .26) 22%, rgba(255, 249, 220, .72) 50%, rgba(255, 241, 191, .26) 78%, transparent 95%),
    linear-gradient(180deg, rgba(87, 57, 14, .08), rgba(255, 246, 207, .3) 48%, rgba(91, 59, 12, .12));
  border-block: 1px solid rgba(146, 99, 23, .48);
  border-radius: 50%;
  box-shadow:
    0 0 0 1px rgba(255, 250, 224, .28),
    inset 0 1px rgba(255, 255, 255, .72),
    0 .18em .5em rgba(78, 49, 8, .16);
  animation: swLuxeCrestBreath 4.8s ease-in-out infinite;
}

:is(body.public-home-luxe-2026, body.auth-luxe-2026, body.public-manual-luxe-2026) .swHdr__title::after {
  content: "";
  position: absolute;
  inset: auto 14% .24em;
  z-index: -1;
  height: 1px;
  background: linear-gradient(90deg, transparent, #9d711b 25%, #f4d781 50%, #9d711b 75%, transparent);
  box-shadow: 0 1px rgba(255, 250, 226, .6);
}

:is(body.public-home-luxe-2026, body.auth-luxe-2026, body.public-manual-luxe-2026) .swHdr__name {
  letter-spacing: .012em;
  background:
    linear-gradient(180deg, #fff8d3 0%, #f7d875 22%, #b77c18 49%, #f3c94f 68%, #7f4c08 100%);
  background-size: 100% 240%;
  background-clip: text;
  -webkit-background-clip: text;
  filter:
    drop-shadow(0 .018em 0 #fff9da)
    drop-shadow(0 .055em 0 #83500a)
    drop-shadow(0 .105em .07em rgba(70, 40, 4, .5))
    drop-shadow(0 0 .3em rgba(255, 210, 78, .55));
  animation: swLuxeWordmarkShine 6.8s ease-in-out infinite, swLuxeWordmarkGlow 4.8s ease-in-out infinite;
}

:is(body.public-home-luxe-2026, body.auth-luxe-2026, body.public-manual-luxe-2026) .swHdr__name::before {
  -webkit-text-stroke: .075em rgba(91, 52, 5, .9);
  text-shadow:
    0 .03em 0 #fbe39a,
    0 .09em .03em rgba(71, 40, 4, .52),
    0 0 .16em rgba(255, 224, 123, .55);
}

:is(body.public-home-luxe-2026, body.auth-luxe-2026, body.public-manual-luxe-2026) .swHdr__name::after {
  content: attr(data-subtitle);
  position: absolute;
  inset: calc(100% + .34em) 0 auto;
  color: #68460f;
  -webkit-text-fill-color: #68460f;
  font-family: Arial, Helvetica, sans-serif;
  font-size: .17em;
  font-weight: 700;
  line-height: 1;
  letter-spacing: .07em;
  text-align: center;
  text-shadow: 0 1px rgba(255, 250, 224, .82);
}

:is(body.public-home-luxe-2026, body.auth-luxe-2026, body.public-manual-luxe-2026) .swHdr__sword {
  display: block;
  width: calc(var(--sw-title-size) * .72);
  filter:
    drop-shadow(0 .08em .06em rgba(56, 39, 13, .55))
    drop-shadow(0 0 .16em rgba(255, 225, 136, .5));
  animation: swLuxeSwordLeft .9s .18s cubic-bezier(.2, .9, .25, 1) both, swSwordShine 5.5s linear infinite;
}

:is(body.public-home-luxe-2026, body.auth-luxe-2026, body.public-manual-luxe-2026) .swHdr__sword--r {
  animation-name: swLuxeSwordRight, swSwordShine;
}

@keyframes swLuxeCrestBreath {
  0%, 100% { opacity: .78; transform: translate(-50%, -50%) scale(.985); }
  50% { opacity: 1; transform: translate(-50%, -50%) scale(1.02); }
}

@keyframes swLuxeWordmarkShine {
  0%, 100% { background-position: 50% 0; }
  42% { background-position: 50% 0; }
  58% { background-position: 50% 100%; }
}

@keyframes swLuxeWordmarkGlow {
  0%, 100% { opacity: .94; }
  50% { opacity: 1; }
}

@keyframes swLuxeSwordLeft {
  from { opacity: 0; transform: translateY(-.25em) rotate(-18deg) scale(.9); }
  to { opacity: 1; transform: translateY(0) rotate(-9deg) scale(1); }
}

@keyframes swLuxeSwordRight {
  from { opacity: 0; transform: scaleX(-1) translateY(-.25em) rotate(-18deg) scale(.9); }
  to { opacity: 1; transform: scaleX(-1) translateY(0) rotate(-9deg) scale(1); }
}

@media (max-width: 640px) {
  :is(body.public-home-luxe-2026, body.auth-luxe-2026, body.public-manual-luxe-2026) .swHdr__title {
    gap: .12em;
    padding-inline: .68em;
  }

  :is(body.public-home-luxe-2026, body.auth-luxe-2026, body.public-manual-luxe-2026) .swHdr__sword {
    display: block;
    width: calc(var(--sw-title-size) * .54);
  }

  :is(body.public-home-luxe-2026, body.auth-luxe-2026, body.public-manual-luxe-2026) .swHdr__name::after {
    inset-block-start: calc(100% + .48em);
    font-size: .18em;
  }
}

@media (prefers-reduced-motion: reduce) {
  :is(body.public-home-luxe-2026, body.auth-luxe-2026, body.public-manual-luxe-2026) .swHdr__title::before,
  :is(body.public-home-luxe-2026, body.auth-luxe-2026, body.public-manual-luxe-2026) .swHdr__name,
  :is(body.public-home-luxe-2026, body.auth-luxe-2026, body.public-manual-luxe-2026) .swHdr__sword {
    animation: none !important;
  }
}
