/* 031 · GSAP Pill Nav (قوس الإيقاع — Arc Pace) — 1:1 Reference-Faithful Bespoke Stylesheet */
:root {
  --gp-bg: #050505;
  --gp-black: #000000;
  --gp-accent: #da3a16;
  --gp-ink: #ffffff;
  --gp-muted: rgba(255, 255, 255, 0.64);
}

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

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

body {
  margin: 0;
  background: var(--gp-bg);
  color: var(--gp-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;
}

/* Minimal Chrome: Top-Center Vector Emblem + Fixed Circular Bubble Menu Button */
.gp-top-logo {
  position: fixed;
  top: 26px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 45;
  color: #ffffff;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  opacity: 0.94;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.gp-top-logo:hover {
  opacity: 1;
  transform: translateX(-50%) scale(1.04);
}

.gp-bubble-btn {
  position: fixed;
  top: 22px;
  inset-inline-end: 26px;
  z-index: 70;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.gp-bubble-btn:hover {
  transform: scale(1.06);
}

.gp-line {
  display: block;
  height: 2px;
  background: #000000;
  border-radius: 2px;
  transition: width 0.25s ease, transform 0.28s ease;
}

.gp-line-top {
  width: 20px;
}

.gp-line-bot {
  width: 14px;
}

.gp-bubble-btn:hover .gp-line-bot {
  width: 20px;
}

.gp-bubble-btn.is-open .gp-line-top {
  width: 20px;
  transform: translateY(4px) rotate(45deg);
}

.gp-bubble-btn.is-open .gp-line-bot {
  width: 20px;
  transform: translateY(-4px) rotate(-45deg);
}

/* Fullscreen GSAP-Style Tilted Pill Menu Overlay */
.gp-bubble-overlay {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(0, 0, 0, 0.74);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.32s ease, visibility 0.32s ease;
}

.gp-bubble-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.gp-pill-list {
  max-width: 820px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
}

.gp-menu-pill {
  padding: 16px 36px;
  border-radius: 999px;
  background: #ffffff;
  color: #000000;
  font-family: 'Readex Pro', 'IBM Plex Sans Arabic', sans-serif;
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  font-weight: 700;
  text-decoration: none;
  transform: rotate(var(--rot, -3deg)) scale(0.86);
  opacity: 0;
  transition:
    transform 0.36s cubic-bezier(0.34, 1.56, 0.64, 1),
    background 0.22s ease,
    color 0.22s ease,
    opacity 0.28s ease;
}

.gp-bubble-overlay.is-open .gp-menu-pill {
  opacity: 1;
  transform: rotate(var(--rot, -3deg)) scale(1);
}

.gp-menu-pill:hover {
  background: var(--hover-bg, #3b82f6);
  color: #ffffff;
  transform: rotate(0deg) scale(1.07) !important;
}

/* Section 1: Sticky 100dvh Hero */
.gp-hero {
  position: sticky;
  top: 0;
  z-index: 1;
  height: 100dvh;
  min-height: 600px;
  overflow: hidden;
  background: var(--gp-bg);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  padding: 96px 24px 48px;
}

html.is-preview .gp-hero {
  position: relative;
}

.gp-media-base,
.gp-spot-canvas,
.gp-hero-scrim {
  position: absolute;
  inset: 0;
}

.gp-media-base img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gp-spot-canvas {
  width: 100%;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}

.gp-hero-scrim {
  z-index: 3;
  pointer-events: none;
  background:
    radial-gradient(50% 45% at 50% 52%, rgba(218, 58, 22, 0.18) 0%, transparent 72%),
    linear-gradient(180deg, rgba(5, 5, 5, 0.55) 0%, rgba(5, 5, 5, 0.08) 46%, rgba(5, 5, 5, 0.88) 100%);
}

.gp-hero-copy {
  position: relative;
  z-index: 5;
  text-align: center;
  max-width: 820px;
}

.gp-hero-kicker {
  display: inline-block;
  font-size: 0.74rem;
  color: rgba(255, 255, 255, 0.72);
  letter-spacing: 0.22em;
  margin-bottom: 12px;
}

.gp-h1 {
  margin: 0;
  font-family: 'Readex Pro', 'IBM Plex Sans Arabic', sans-serif;
  font-size: clamp(2.4rem, 5.2vw, 4.5rem);
  font-weight: 600;
  line-height: 1.08;
  color: #ffffff;
}

.gp-h1 em {
  display: block;
  font-family: 'Amiri', Georgia, serif;
  font-style: italic;
  font-weight: 400;
  font-size: 1.08em;
  color: #ffffff;
  margin-top: 4px;
}

/* Section 2: Telemetry Curtain Sliding Over Sticky Hero */
.gp-telemetry {
  position: relative;
  z-index: 10;
  min-height: 100dvh;
  background: var(--gp-black);
  box-shadow: 0 -24px 56px rgba(0, 0, 0, 0.65);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(88px, 10vh, 120px) clamp(24px, 6vw, 96px) 32px;
}

.gp-telemetry-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.42;
}

.gp-telemetry-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.75) brightness(0.65);
}

.gp-telemetry-scrim {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.56) 0%, rgba(0, 0, 0, 0.28) 50%, rgba(0, 0, 0, 0.9) 100%);
}

/* Floating Glass 78% Spline Metric Card */
.gp-metric-card {
  position: relative;
  z-index: 5;
  width: min(350px, 100%);
  margin-inline-start: clamp(0px, 8vw, 140px);
  padding: 24px 30px;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.26);
  backdrop-filter: blur(48px);
  -webkit-backdrop-filter: blur(48px);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.gp-metric-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 10px;
}

.gp-metric-val {
  font-family: 'Amiri', Georgia, serif;
  font-style: italic;
  font-size: 4.3rem;
  line-height: 0.95;
  color: var(--gp-accent);
}

.gp-wave-svg {
  width: 138px;
  height: 66px;
  overflow: visible;
}

.gp-metric-title {
  margin: 0 0 6px;
  font-family: 'Amiri', 'IBM Plex Sans Arabic', serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: #ffffff;
}

.gp-metric-sub {
  margin: 0;
  font-size: 0.84rem;
  color: var(--gp-muted);
}

/* Bottom Split: 4-Line Mixed Sans/Serif Headline + Two-Part #DA3A16 Brand Stamp */
.gp-telemetry-bot {
  position: relative;
  z-index: 5;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin-top: 64px;
}

.gp-h2-mixed {
  margin: 0;
  max-width: 520px;
  font-family: 'Readex Pro', 'IBM Plex Sans Arabic', sans-serif;
  font-size: clamp(1.9rem, 3.3vw, 2.85rem);
  font-weight: 500;
  line-height: 1.12;
  color: #ffffff;
}

.gp-h2-mixed em {
  display: block;
  font-family: 'Amiri', Georgia, serif;
  font-style: italic;
  font-weight: 400;
  font-size: 1.08em;
  color: rgba(255, 255, 255, 0.92);
  margin-top: 6px;
}

.gp-stamp {
  width: 184px;
  flex-shrink: 0;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.5);
}

.gp-stamp-top {
  background: #ffffff;
  color: #000000;
  text-align: center;
  padding: 6px 8px;
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.gp-stamp-body {
  height: 100px;
  background: var(--gp-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
}

/* Tucked Showcase Footer Bar */
.gp-foot-bar {
  position: relative;
  z-index: 5;
  margin-top: 42px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.82rem;
  color: var(--gp-muted);
}

.gp-foot-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.gp-foot-pill {
  padding: 7px 15px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.05);
  color: #ffffff;
  text-decoration: none;
  font-size: 0.8rem;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.gp-foot-pill:hover {
  background: var(--gp-accent);
  border-color: var(--gp-accent);
}

@media (max-width: 720px) {
  .gp-metric-card {
    margin-inline-start: 0;
  }
  .gp-telemetry-bot {
    flex-direction: column;
    align-items: flex-start;
  }
}
