/* 036 · Unleash Scroll Hero (حَراك بصري — Unleash Motion) — 1:1 Reference-Faithful Bespoke Stylesheet */
:root {
  --un-bg: #000000;
  --un-ink: #ffffff;
  --un-muted: rgba(255, 255, 255, 0.68);
  --un-faint: rgba(255, 255, 255, 0.42);
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--un-bg);
  color: var(--un-ink);
}

body {
  margin: 0;
  background: var(--un-bg);
  color: var(--un-ink);
  font-family: 'IBM Plex Sans Arabic', sans-serif;
  line-height: 1.6;
  letter-spacing: 0;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, p, a, button, span {
  letter-spacing: 0;
}

[dir="ltr"] {
  font-family: 'JetBrains Mono', 'Readex Pro', monospace;
}

/* Fast Non-Blocking Cinematic Preloader (Never hangs!) */
.un-loader {
  position: fixed;
  inset: 0;
  z-index: 120;
  background: #000000;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.85);
  transition: opacity 0.45s ease, visibility 0.45s ease;
}

html.is-preview .un-loader,
.un-loader.is-done {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* Fixed Top Pill Nav Dock with Expanding Circle Wipe Hover */
.un-pill-nav-container {
  position: fixed;
  top: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 8px;
}

.un-pill-logo {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #000000;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.55);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: transform 0.25s ease;
}

.un-pill-logo:hover {
  transform: scale(1.06) rotate(45deg);
}

.un-pill-dock {
  background: #000000;
  border: 2px solid #18181b;
  border-radius: 999px;
  padding: 4px;
  display: flex;
  align-items: center;
  gap: 4px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6);
}

.un-pill {
  position: relative;
  overflow: hidden;
  height: 40px;
  padding: 0 20px;
  border-radius: 999px;
  background: #f0f0f0;
  color: #000000;
  font-family: 'Readex Pro', 'IBM Plex Sans Arabic', sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}

.un-pill.is-active {
  background: #e0e0e0;
}

.un-hover-circle {
  position: absolute;
  bottom: -20%;
  left: 50%;
  width: 150%;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  background: #000000;
  transform: translate(-50%, 50%) scale(0);
  transition: transform 0.36s cubic-bezier(0.22, 1, 0.36, 1);
  z-index: 1;
}

.un-pill:hover .un-hover-circle {
  transform: translate(-50%, 35%) scale(1.25);
}

.un-label-stack {
  position: relative;
  z-index: 2;
  display: inline-grid;
  overflow: hidden;
}

.un-label-stack > span {
  grid-area: 1 / 1;
  transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}

.un-label-hover {
  color: #ffffff;
  transform: translateY(120%);
}

.un-pill:hover .un-label-base {
  transform: translateY(-120%);
}

.un-pill:hover .un-label-hover {
  transform: translateY(0);
}

/* Fixed Full-Bleed Scroll-Scrubbed Kinetic Backdrop */
.un-fixed-stage {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  background: #000000;
}

.un-fixed-stage img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.08);
  will-change: transform, filter;
}

.un-stage-scrim {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60% 55% at 50% 45%, rgba(0, 0, 0, 0.14) 0%, rgba(0, 0, 0, 0.78) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.45) 0%, rgba(0, 0, 0, 0.12) 45%, rgba(0, 0, 0, 0.85) 100%);
}

/* 340vh Scroll Choreography Track (100vh in ?preview=1) */
.un-scroll-track {
  position: relative;
  z-index: 5;
  height: 340vh;
}

html.is-preview .un-scroll-track {
  height: 100vh;
}

/* Pinned Monumental Bottom-Aligned Float Typography */
.un-hero-pin {
  position: sticky;
  top: 0;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(20px, 3.5vw, 44px);
  pointer-events: none;
}

.un-kicker-en {
  font-size: clamp(0.75rem, 1.1vw, 0.95rem);
  color: rgba(255, 255, 255, 0.66);
  letter-spacing: 0.28em;
  margin-bottom: 12px;
}

.un-mega-h1 {
  margin: 0;
  font-family: 'Readex Pro', 'IBM Plex Sans Arabic', sans-serif;
  font-size: clamp(3.4rem, 10.5vw, 9.2rem);
  font-weight: 700;
  line-height: 0.94;
  color: #ffffff;
}

.un-word {
  display: inline-block;
  transform-origin: 50% 0%;
  will-change: transform, opacity;
  margin-inline-end: 0.22em;
}

/* Docked 3D Perspective Frosted Glass About Card at Base of Scroll Track */
.un-about-anchor {
  position: absolute;
  bottom: 0;
  inset-inline: 0;
  min-height: 100dvh;
  padding: 96px clamp(16px, 3.5vw, 40px) 32px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  perspective: 1000px;
}

html.is-preview .un-about-anchor {
  display: none;
}

.un-about-card {
  width: min(1240px, 100%);
  min-height: min(760px, 82vh);
  background: rgba(8, 8, 10, 0.46);
  backdrop-filter: blur(56px) saturate(140%);
  -webkit-backdrop-filter: blur(56px) saturate(140%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 28px;
  padding: clamp(32px, 5vw, 64px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-align: center;
  transform-style: preserve-3d;
  will-change: transform;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.65);
}

.un-about-eyebrow {
  font-family: 'Amiri', Georgia, serif;
  font-style: italic;
  font-size: 1.2rem;
  color: var(--un-muted);
}

.un-about-statement {
  margin: 22px auto;
  max-width: 980px;
  font-family: 'Amiri', 'Readex Pro', serif;
  font-size: clamp(2.1rem, 4.8vw, 4.4rem);
  font-weight: 400;
  line-height: 1.18;
  color: #ffffff;
}

.un-about-statement em {
  font-style: italic;
  color: #fdba74;
}

/* Infinite Partner Marquee Inside About Card */
.un-marquee-wrap {
  padding-top: 26px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}

.un-marquee-track {
  display: flex;
  width: max-content;
  gap: 48px;
  animation: unLoop 22s linear infinite;
}

@keyframes unLoop {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.un-marquee-track span {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: var(--un-faint);
  transition: color 0.2s ease;
  white-space: nowrap;
}

.un-marquee-track span:hover {
  color: #ffffff;
}

/* Minimal Centered Footer + Showcase Navigation */
.un-footer {
  position: relative;
  z-index: 20;
  background: #000000;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 30px clamp(20px, 4vw, 48px);
}

.un-foot-row {
  max-width: 1240px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  font-size: 0.82rem;
  color: var(--un-faint);
}

.un-foot-btn {
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.05);
  color: #ffffff;
  text-decoration: none;
  font-size: 0.8rem;
  transition: background 0.2s ease;
}

.un-foot-btn:hover {
  background: rgba(255, 255, 255, 0.16);
}
