/* ---------- Live hero (NAS-UI-022, Proposed): animated athlete stage, brand shards ---------- */
.hero--live { text-align: start; padding-block: var(--space-5) var(--space-4); min-block-size: calc(100svh - var(--header-height)); display: flex; align-items: center; }
.hero__shards { position: absolute; inset: 0; inline-size: 100%; block-size: 100%; pointer-events: none; }
.hero--live .hero__strokes path { stroke-dasharray: 2400; stroke-dashoffset: 2400; animation: hero-draw 1.8s cubic-bezier(.16, 1, .3, 1) 1.4s forwards; }
.hero__grid {
  position: relative; z-index: 1; inline-size: 100%;
  display: grid; grid-template-columns: 1fr 1.05fr; gap: var(--space-4); align-items: center;
}
.hero--live .hero__copy { padding-inline-start: clamp(0px, 6vw, 110px); }
.hero--live .hero__logo { margin-inline: 0; inline-size: clamp(96px, 9vw, 140px); filter: drop-shadow(0 10px 18px rgba(63, 46, 129, .2)); }
.hero--live .hero__title {
  margin-block-start: var(--space-3);
  background: linear-gradient(100deg, var(--nas-purple) 0%, var(--nas-blue) 25%, var(--nas-teal) 50%, var(--nas-green) 75%, var(--nas-purple) 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: nas-flow 9s linear infinite;
}
.hero--live .prose { margin-inline: 0; }
.hero__progress { margin-block-start: var(--space-4); max-inline-size: 420px; block-size: 5px; border-radius: 5px; background: rgba(35, 31, 64, .1); overflow: hidden; }
.hero__progress i { display: block; block-size: 100%; inline-size: 35%; border-radius: 5px; background: var(--nas-gradient); animation: hero-run 2.4s cubic-bezier(.6, 0, .4, 1) infinite; }
:root[dir="rtl"] .hero__progress i { animation-name: hero-run-rtl; }

.reveal { opacity: 0; transform: translateY(24px); animation: hero-up .9s cubic-bezier(.16, 1, .3, 1) forwards; }
.reveal--1 { animation-delay: 1.45s; }
.reveal--2 { animation-delay: 1.6s; }
.reveal--3 { animation-delay: 1.8s; }
.reveal--4 { animation-delay: 2.4s; }
.reveal--5 { animation-delay: 2.6s; }

.hero__stage-col { display: flex; flex-direction: column; align-items: center; }
.hero__stage { position: relative; inline-size: min(100%, 560px); aspect-ratio: 1; transition: transform .6s cubic-bezier(.16, 1, .3, 1); }
.hero__hex { position: absolute; inset: 4%; inline-size: 92%; block-size: 92%; overflow: visible; }
.hero__spin { transform-origin: 50% 50%; animation: hero-spin 40s linear infinite; }
.hero__spin--rev { animation-duration: 60s; animation-direction: reverse; }
.hero__seg { fill: none; stroke-width: 9; stroke-linecap: round; stroke-linejoin: round; }
.hero__athlete-canvas { position: absolute; inset: 0; inline-size: 100%; block-size: 100%; }
.hero__label { display: block; margin-block-start: -6px; text-align: center; text-decoration: none; color: var(--nas-ink); min-block-size: 64px; }
.hero__label:hover .hero__label-name { color: var(--nas-purple); }
.hero__label-name {
  display: block; font-family: var(--font-display); font-style: italic; font-weight: 800;
  font-size: clamp(1.6rem, 3vw, 2.5rem); text-transform: uppercase; letter-spacing: .04em; line-height: 1.1;
}
:root[lang|="ar"] .hero__label-name { font-style: normal; font-family: var(--font-arabic); }
.hero__label-name.is-swapping { animation: hero-swap .7s cubic-bezier(.16, 1, .3, 1); }
.hero__timer { display: block; inline-size: 160px; block-size: 3px; margin: 10px auto 0; border-radius: 3px; background: rgba(35, 31, 64, .1); overflow: hidden; }
.hero__timer i { display: block; block-size: 100%; inline-size: 100%; background: var(--nas-gradient); transform-origin: left; transform: scaleX(0); }
:root[dir="rtl"] .hero__timer i { transform-origin: right; }

@keyframes hero-draw { to { stroke-dashoffset: 0; } }
@keyframes hero-up { to { opacity: 1; transform: none; } }
@keyframes hero-spin { to { transform: rotate(360deg); } }
@keyframes hero-run { from { transform: translateX(-110%); } to { transform: translateX(300%); } }
@keyframes hero-run-rtl { from { transform: translateX(110%); } to { transform: translateX(-300%); } }
@keyframes hero-swap { from { opacity: 0; transform: translateY(14px); filter: blur(6px); } }

/* Intro: the logo hexagon draws itself, then the page opens through it (as in the root index.html) */
.hero-intro {
  position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; pointer-events: none;
  background: var(--nas-gradient);
  clip-path: polygon(50% -60%, 160% 25%, 160% 75%, 50% 160%, -60% 75%, -60% 25%);
  animation: intro-close 1.1s cubic-bezier(.16, 1, .3, 1) 1.2s forwards;
}
.hero-intro svg { inline-size: min(220px, 50vw); overflow: visible; }
.hero-intro__seg { fill: none; stroke: #fff; stroke-width: 9; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 200; stroke-dashoffset: 200; animation: hero-draw .7s cubic-bezier(.16, 1, .3, 1) forwards; }
.hero-intro__seg:nth-of-type(2) { animation-delay: .15s; }
.hero-intro__seg:nth-of-type(3) { animation-delay: .3s; }
.hero-intro text { fill: #fff; font-family: var(--font-display); font-style: italic; font-weight: 800; font-size: 40px; letter-spacing: 1px; opacity: 0; animation: hero-up .6s ease .55s forwards; }
@keyframes intro-close { to { clip-path: polygon(50% 50%, 50% 50%, 50% 50%, 50% 50%, 50% 50%, 50% 50%); visibility: hidden; } }

.hero__eyebrow { margin: var(--space-4) 0 0; font-weight: 600; font-size: clamp(.78rem, 1.3vw, .95rem); letter-spacing: .32em; text-transform: uppercase; color: var(--nas-muted); }
.hero__arabic { margin: 4px 0 0; font-family: var(--font-arabic); font-weight: 700; font-size: clamp(1rem, 1.8vw, 1.25rem); text-align: inherit; }
.hero--live .hero__title { font-size: clamp(2.6rem, 1.6rem + 4.4vw, 5.6rem); line-height: .95; font-family: var(--font-display); font-style: italic; font-weight: 800; text-transform: uppercase; }
:root[lang|="ar"] .hero--live .hero__title { font-style: normal; font-family: var(--font-arabic); }
.hero__letter { display: inline-block; opacity: 0; transform: translateY(70%) rotate(6deg); animation: hero-up .9s cubic-bezier(.16, 1, .3, 1) forwards; }
.hero__word { display: inline-block; white-space: nowrap; }

@media (max-width: 900px) {
  .hero--live { text-align: center; min-block-size: 0; }
  .hero__grid { grid-template-columns: 1fr; gap: 0; }
  .hero--live .hero__copy { padding-inline: 0; }
  .hero--live .hero__logo, .hero--live .prose, .hero__progress { margin-inline: auto; }
  .hero__stage { inline-size: min(100%, 420px); }
  .hero--live .hero__strokes { opacity: .5; }
}
@media (prefers-reduced-motion: reduce) {
  .site-header::after, .hero--live .hero__title, .hero__progress i, .hero__spin { animation: none; }
  .reveal, .hero__letter, .hero--live .hero__strokes path { animation: none; opacity: 1; transform: none; stroke-dashoffset: 0; }
  .hero-intro { display: none; }
}

/* Split title: background-clip text does not paint through transformed letters, so use solid brand colours. */
.hero--live .hero__title.is-split { background: none; color: var(--nas-purple); animation: none; }
.hero__title.is-split .hero__word:nth-child(even) .hero__letter { color: var(--nas-teal); }

/* Corner brackets (replace the variant-A strokes, which scale with hero height and would cross the title) */
.hero--live .hero__brackets svg { position: absolute; inset-block: 0 auto; block-size: auto; max-inline-size: none; overflow: visible; }
.hero__bracket path { fill: none; stroke-width: 26; stroke-linecap: round; stroke-linejoin: round; }
.hero--live .hero__brackets .hero__bracket--start { inset-inline-start: 2vw; inline-size: clamp(90px, 10vw, 160px); }
.hero--live .hero__brackets .hero__bracket--end { inset-inline-end: 2vw; inline-size: clamp(80px, 12vw, 200px); }
:root[dir="rtl"] .hero__bracket { transform: scaleX(-1); }
.hero__arabic { text-align: left; }
:root[dir="rtl"] .hero__arabic { text-align: right; }
@media (max-width: 900px) {
  .hero--live .hero__brackets .hero__bracket--end { display: none; }
  .hero--live .hero__brackets .hero__bracket--start { inline-size: 18vw; }
  .hero__arabic { text-align: center; }
}

/* Arabic: no letter-spacing (it breaks joined letters), taller line-height for descenders, more room under the title */
:root[lang|="ar"] .hero__eyebrow { letter-spacing: 0; text-transform: none; font-family: var(--font-arabic); font-size: clamp(1rem, 1.6vw, 1.2rem); }
:root[lang|="ar"] .hero--live .hero__title { line-height: 1.35; letter-spacing: 0; font-weight: 800; font-size: clamp(2.6rem, 1.6rem + 4vw, 5rem); }
:root[lang|="ar"] .hero__tag { margin-block-start: var(--space-3); }
:root[lang|="ar"] .hero__label-name { letter-spacing: 0; }
.hero--live .hero__title { margin-block-end: var(--space-3); }
