/* =========================================================
   POST MOTION — MAIN STYLESHEET
   Design tokens: post-production / color-grading language
   ========================================================= */

:root {
  /* Colors — Post Motion brand palette, disciplined:
     white carries headlines, purple is accent-only, platinum
     is the secondary "luxury" tone that sits between them. */
  --bg: #09090b;
  --bg-alt: #111113;
  --bg-raised: #17171a;
  --ink: #ffffff;
  --platinum: #cfcfd6;
  --ink-dim: #cfcfd6;
  --ink-faint: #8a8a95;
  --primary: #7c3aed;
  --primary-dim: #3d2170;
  --secondary: #9f67ff;
  --secondary-dim: #5b2d85;
  --glow: #c084fc;
  --line: rgba(255, 255, 255, 0.07);
  --line-strong: rgba(255, 255, 255, 0.14);

  /* Type — Latin */
  --font-display: "Big Shoulders Display", sans-serif;
  --font-body: "Manrope", sans-serif;
  --font-mono: "JetBrains Mono", monospace;

  /* Type — Arabic (swapped in via [lang="ar"]) */
  --font-display-ar: "Cairo", sans-serif;
  --font-body-ar: "Cairo", sans-serif;

  /* Serif accent — used only for the single contrast word in the hero */
  --font-serif: "Playfair Display", serif;
  --font-serif-ar: "Amiri", serif;

  /* Layout */
  --container: 1240px;
  --gutter: 32px;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 22px;

  /* Design tokens — unified scale, referenced everywhere instead of
     one-off values, so the whole site shares one visual rhythm */
  --radius-btn: 14px;
  --radius-input: 14px;
  --radius-card: 20px;
  --radius-modal: 24px;
  --radius-pill: 999px;

  --shadow-sm: 0 6px 18px -8px rgba(0, 0, 0, 0.45);
  --shadow-md: 0 20px 48px -16px rgba(0, 0, 0, 0.6);
  --shadow-glow: 0 20px 60px -20px rgba(124, 58, 237, 0.18);

  --dur-hover: 200ms;
  --dur-fade: 350ms;
  --dur-reveal: 500ms;
  --dur-stagger: 100ms;

  /* Semantic status colors, for form validation / alerts */
  --success: #4ade80;
  --warning: #f59e0b;
  --error: #ff5c5c;

  /* Motion */
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft: cubic-bezier(0.4, 0, 0.2, 1);
}

/* =========================================================
   LANGUAGE / DIRECTION SYSTEM
   English keeps the editorial display font; Arabic switches
   to Cairo (headlines) + Readex Pro (body) while every
   timecode / HUD readout stays in JetBrains Mono either way —
   numerals and codes read the same in both directions.
   ========================================================= */
html[lang="ar"] {
  --font-display: var(--font-display-ar);
  --font-body: var(--font-body-ar);
  --font-serif: var(--font-serif-ar);
}
html[lang="ar"] body { direction: rtl; }
/* =========================================================
   ARABIC TYPOGRAPHY SYSTEM
   Cairo-based hierarchy: hero carries the heaviest weight,
   every other heading level steps down to 700 so the page
   doesn't read as "everything is the same weight". Body copy
   stays at a readable 400/18px with generous line-height.
   ========================================================= */
html[lang="ar"] h1, html[lang="ar"] h2, html[lang="ar"] h3, html[lang="ar"] h4 {
  letter-spacing: 0;
  font-weight: 700;
  line-height: 1.3;
}
html[lang="ar"] .hero__title { font-weight: 800; line-height: 1.28 !important; max-width: none; }
html[lang="ar"] .logo__text { font-weight: 700 !important; }
html[lang="ar"] .glass-card__num, html[lang="ar"] .compare__pm,
html[lang="ar"] .faq__cta-title, html[lang="ar"] .stat__num,
html[lang="ar"] .studio__facts span {
  font-weight: 700 !important;
  letter-spacing: 0;
}
html[lang="ar"] .section-head h2 { text-transform: none; margin-bottom: 6px; }
html[lang="ar"] .cta h2 { text-transform: none; }
html[lang="ar"] .studio__copy h2,
html[lang="ar"] .team-full h2,
html[lang="ar"] .popup__body h3,
html[lang="ar"] .project-card__title { text-transform: none; }

/* Body copy: readable weight + generous breathing room */
html[lang="ar"] p, html[lang="ar"] li {
  font-weight: 400;
  line-height: 1.85;
}
html[lang="ar"] .hero__desc, html[lang="ar"] .section-head__desc,
html[lang="ar"] .team-full__desc, html[lang="ar"] .cta__desc,
html[lang="ar"] .process__body p, html[lang="ar"] .problem__list li,
html[lang="ar"] .accordion__a p {
  font-size: 1.125rem;
}
html[lang="ar"] .testimonial p { line-height: 1.7 !important; }

/* Small labels: a touch more tracking reads more premium */
html[lang="ar"] .eyebrow, html[lang="ar"] .project-card__cat,
html[lang="ar"] .field label, html[lang="ar"] .popup__cat {
  letter-spacing: 0.04em;
  font-weight: 500;
}

/* Timecodes / HUD stay Latin-numeral and left-to-right regardless of page direction */
html[lang="ar"] .eyebrow, html[lang="ar"] .nav-tc,
html[lang="ar"] .hud-tc, html[lang="ar"] #heroTimecode, html[lang="ar"] .cursor__tc,
html[lang="ar"] .process__tc, html[lang="ar"] .site-footer__tc,
html[lang="ar"] .services-timeline__num {
  direction: ltr;
  unicode-bidi: isolate;
}

/* =========================================================
   RESET
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: auto; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; background: none; border: none; color: inherit; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4 { margin: 0; font-family: var(--font-display); font-weight: 800; letter-spacing: -0.01em; }
p { margin: 0; }
input, textarea { font-family: inherit; font-size: inherit; color: inherit; }

::selection { background: var(--primary); color: var(--bg); }

/* Focus visibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--secondary);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--primary);
  color: var(--bg);
  padding: 12px 20px;
  z-index: 9999;
  font-weight: 700;
}
.skip-link:focus {
  left: 16px;
  top: 16px;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* =========================================================
   TYPE UTILITIES
   ========================================================= */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-dim);
  margin-bottom: 18px;
}
.eyebrow .tc {
  color: var(--primary);
  border: 1px solid var(--primary-dim);
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 11px;
}

h2 em, h1 em {
  font-style: normal;
  color: var(--primary);
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-head {
  max-width: 720px;
  margin-bottom: 56px;
}
.section-head h2 {
  font-size: clamp(2.1rem, 4.4vw, 3.4rem);
  line-height: 1.05;
  text-transform: uppercase;
}

/* =========================================================
   BUTTONS
   ========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 26px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 14.5px;
  letter-spacing: 0.01em;
  transition: transform var(--dur-hover) var(--ease), background var(--dur-hover) var(--ease-soft), color var(--dur-hover) var(--ease-soft), border-color var(--dur-hover) var(--ease-soft), box-shadow var(--dur-hover) var(--ease-soft);
  white-space: nowrap;
}
.btn i { font-size: 12px; transition: transform 0.35s var(--ease); }

.btn--primary {
  position: relative;
  overflow: hidden;
  background: var(--ink);
  color: var(--bg);
}
.btn--primary::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  inset-inline-start: -60%;
  width: 40%;
  background: linear-gradient(115deg, transparent, rgba(255,255,255,0.5), transparent);
  transform: skewX(-20deg);
  transition: inset-inline-start 0.6s var(--ease);
}
.btn--primary:hover::before { inset-inline-start: 120%; }
.btn--primary:hover {
  background: var(--primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
}
.btn--primary:hover i { transform: translateX(3px); }

.btn--outline {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  color: var(--ink);
  background: linear-gradient(160deg, rgba(255,255,255,0.04), transparent 60%);
}
.btn--outline:hover {
  border-color: var(--secondary);
  color: var(--secondary);
  transform: translateY(-2px);
  box-shadow: 0 0 0 1px rgba(159,103,255,0.25), 0 12px 30px -14px rgba(159,103,255,0.4);
}
.btn--sm { padding: 9px 18px; font-size: 13px; }
.btn--sm .btn__circle-icon { width: 20px; height: 20px; font-size: 9px; }

.btn--ghost {
  border: 1px solid var(--line);
  color: var(--ink-dim);
  padding: 10px 18px;
  font-size: 13px;
}
.btn--ghost:hover {
  color: var(--ink);
  border-color: var(--line-strong);
}

/* =========================================================
   PRELOADER
   ========================================================= */
#preloader {
  position: fixed;
  inset: 0;
  background: #000;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s var(--ease-soft), visibility 0.6s var(--ease-soft);
}
#preloader.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.preloader__frame {
  position: relative;
  text-align: center;
  width: 240px;
}
.preloader__glow {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 340px;
  height: 340px;
  transform: translate(-50%, -58%) scale(0.8);
  background: radial-gradient(circle, rgba(138,43,226,0.4), transparent 70%);
  filter: blur(50px);
  opacity: 0;
  animation: preloader-glow-in 1.4s var(--ease) forwards, preloader-breathe 2.6s ease-in-out 1.4s infinite;
  pointer-events: none;
}
.preloader__particles {
  position: absolute;
  inset: -60px;
  pointer-events: none;
}
.preloader__particles span {
  position: absolute;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--secondary);
  opacity: 0;
  animation: preloader-particle 4s ease-in-out infinite;
}
.preloader__mark {
  position: relative;
  display: block;
  margin: 0 auto 26px;
  opacity: 0;
  transform: scale(0.9);
  animation: preloader-mark-in 0.9s var(--ease) 0.35s forwards, preloader-mark-breathe 2.6s ease-in-out 1.3s infinite;
}
.preloader__beam-track {
  position: relative;
  width: 100%;
  height: 1px;
  background: var(--line);
  margin: 4px 0 18px;
  overflow: visible;
  opacity: 0;
  animation: preloader-fade-in 0.6s var(--ease) 0.75s forwards;
}
.preloader__beam {
  position: absolute;
  top: -1.5px;
  height: 4px;
  width: 0%;
  border-radius: 3px;
  background: linear-gradient(90deg, #8a2be2, #b54dff, #ff2bd6);
  box-shadow: 0 0 14px 2px rgba(181,77,255,0.7);
}
.preloader__stage {
  position: relative;
  display: block;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  color: var(--ink-faint);
  opacity: 0;
  filter: blur(3px);
  animation: preloader-fade-in 0.6s var(--ease) 0.9s forwards;
  transition: opacity 0.35s ease, filter 0.35s ease;
}
.preloader__stage.is-swapping { opacity: 0; filter: blur(3px); }

@keyframes preloader-glow-in { to { opacity: 1; transform: translate(-50%, -58%) scale(1); } }
@keyframes preloader-fade-in { to { opacity: 1; filter: blur(0); } }
@keyframes preloader-mark-in { to { opacity: 1; transform: scale(1); } }
@keyframes preloader-breathe {
  0%, 100% { opacity: 0.75; transform: translate(-50%, -58%) scale(1); }
  50% { opacity: 1; transform: translate(-50%, -58%) scale(1.06); }
}
@keyframes preloader-mark-breathe {
  0%, 100% { opacity: 0.9; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.05); }
}
@keyframes preloader-particle {
  0% { opacity: 0; transform: translateY(0); }
  15% { opacity: 0.3; }
  85% { opacity: 0.1; }
  100% { opacity: 0; transform: translateY(-40px); }
}
@media (prefers-reduced-motion: reduce) {
  .preloader__glow, .preloader__mark, .preloader__particles span { animation: none; opacity: 1; }
}

/* =========================================================
   CUSTOM CURSOR
   ========================================================= */
.cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 0;
  height: 0;
  pointer-events: none;
  z-index: 9998;
  mix-blend-mode: difference;
}
.cursor__dot {
  position: absolute;
  width: 6px;
  height: 6px;
  background: var(--ink);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}
.cursor__ring {
  position: absolute;
  width: 36px;
  height: 36px;
  border: 1px solid var(--ink);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.3s var(--ease), height 0.3s var(--ease), border-color 0.3s;
}
.cursor__tc {
  position: absolute;
  transform: translate(14px, 14px);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.05em;
  color: var(--ink);
  white-space: nowrap;
  opacity: 0.7;
}
.cursor.is-active .cursor__ring {
  width: 60px;
  height: 60px;
  border-color: var(--primary);
}
@media (hover: none), (pointer: coarse) {
  .cursor { display: none; }
}

/* =========================================================
   SCROLL SCRUBBER
   ========================================================= */
.scrubber {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  z-index: 9990;
}
.scrubber__track {
  position: relative;
  width: 100%;
  height: 100%;
  background: var(--line);
}
.scrubber__fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
}
.scrubber__playhead {
  position: absolute;
  top: 0;
  left: 0%;
  width: 10px;
  height: 10px;
  background: var(--ink);
  border-radius: 50%;
  transform: translate(-50%, -30%);
  box-shadow: 0 0 0 4px var(--bg);
}

/* =========================================================
   HEADER
   ========================================================= */
.site-header {
  position: fixed;
  top: 3px;
  left: 0;
  width: 100%;
  z-index: 900;
  padding: 22px 0;
  transition: padding 0.4s var(--ease-soft), background 0.4s var(--ease-soft), border-color 0.4s var(--ease-soft);
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
  padding: 14px 0;
  background: rgba(11, 11, 12, 0.82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.site-header__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo { display: flex; align-items: center; gap: 10px; }
.logo__text {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 19px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.logo__text em { font-style: normal; color: var(--primary); }

.main-nav ul { display: flex; gap: 6px; }
.main-nav a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-dim);
  border-radius: 999px;
  transition: color 0.3s, background 0.3s;
}
.main-nav a:hover { color: var(--ink); background: var(--bg-raised); }
.nav-tc {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--secondary);
  opacity: 0.8;
}

.site-header__actions { display: flex; align-items: center; gap: 14px; }

.menu-toggle {
  display: none;
  width: 40px;
  height: 40px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border-radius: 50%;
  border: 1px solid var(--line);
}
.menu-toggle span {
  width: 18px;
  height: 1.5px;
  background: var(--ink);
  transition: transform 0.3s var(--ease), opacity 0.3s;
}
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* =========================================================
   MOBILE NAV
   ========================================================= */
.mobile-nav {
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 850;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 110px 28px 40px;
  transform: translateY(-100%);
  transition: transform 0.55s var(--ease);
}
.mobile-nav.is-open { transform: translateY(0); }
.mobile-nav ul { display: flex; flex-direction: column; gap: 6px; }
.mobile-nav a {
  display: flex;
  align-items: baseline;
  gap: 18px;
  padding: 16px 4px;
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 700;
  text-transform: uppercase;
  border-bottom: 1px solid var(--line);
}
.mobile-nav a span {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--primary);
}
.mobile-nav__footer { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; }
.mobile-nav__footer a { font-family: var(--font-mono); color: var(--ink-dim); }
.mobile-nav__social { display: flex; gap: 16px; font-size: 18px; }

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 140px var(--gutter) 100px;
  overflow: hidden;
  background:
    radial-gradient(ellipse 60% 50% at 20% 15%, rgba(124, 58, 237, 0.16), transparent 60%),
    radial-gradient(ellipse 60% 50% at 85% 85%, rgba(168, 85, 247, 0.14), transparent 60%),
    var(--bg);
}
.hero__grain {
  position: absolute;
  inset: 0;
  opacity: 0.05;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}
.hero__grade {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, transparent 0%, transparent 82%, var(--bg) 100%);
}

.hero__hud {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-dim);
  letter-spacing: 0.06em;
}
.hud-item { display: flex; align-items: center; gap: 6px; }
.hud-tc { color: var(--secondary); font-variant-numeric: tabular-nums; }
.rec-dot { color: var(--glow); font-size: 8px; animation: rec-blink 1.4s infinite; }

.hero__content {
  position: relative;
  z-index: 2;
  max-width: var(--container);
  margin: 0 auto;
  width: 100%;
}
.hero__title {
  font-size: clamp(2.6rem, 5.8vw, 5.25rem);
  line-height: 1.12;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  margin-bottom: 28px;
  max-width: 720px;
}
.hero__title .line { display: block; overflow: hidden; padding-bottom: 0.1em; }
.hero__title em { font-style: normal; color: transparent; -webkit-text-stroke: 1.5px var(--primary); }
html[lang="ar"] .hero__title em {
  color: var(--secondary);
  -webkit-text-stroke: 0;
}

.hero__desc {
  max-width: 480px;
  font-size: 1.05rem;
  color: var(--ink-dim);
  margin-bottom: 40px;
}
.hero__actions { display: flex; gap: 16px; flex-wrap: wrap; }

.hero__scroll {
  position: absolute;
  bottom: 96px;
  right: var(--gutter);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  z-index: 2;
  color: var(--ink-dim);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.hero__scroll-line {
  width: 1px;
  height: 60px;
  background: var(--line-strong);
  position: relative;
  overflow: hidden;
}
.hero__scroll-line i {
  position: absolute;
  top: -20px;
  left: 0;
  width: 100%;
  height: 20px;
  background: var(--primary);
  animation: scroll-cue 2s ease-in-out infinite;
}

.hero__timeline {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  z-index: 2;
  padding: 0 var(--gutter) 26px;
}
.hero__timeline-track {
  position: relative;
  max-width: var(--container);
  margin: 0 auto;
  height: 1px;
  background: var(--line-strong);
}
.hero__timeline-track .tick {
  position: absolute;
  top: -20px;
  transform: translateX(-50%);
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--ink-faint);
}
.hero__timeline-track .tick::after {
  content: "";
  position: absolute;
  top: 24px;
  left: 50%;
  width: 1px;
  height: 6px;
  background: var(--line-strong);
}

/* =========================================================
   MARQUEE
   ========================================================= */
.marquee {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  padding: 40px 0 36px;
  background: var(--bg-alt);
}
.marquee__label {
  text-align: center;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 20px;
}
html[lang="ar"] .marquee__label { letter-spacing: 0.02em; text-transform: none; }
.marquee__track {
  display: flex;
  width: max-content;
  gap: 28px;
  animation: marquee-scroll 38s linear infinite;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.04em;
  color: var(--ink-faint);
  white-space: nowrap;
}
.marquee__track .dot { color: var(--primary); font-size: 0.7rem; }

.marquee__stats {
  max-width: var(--container);
  margin: 32px auto 0;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  border-top: 1px solid var(--line);
  padding-top: 28px;
}
.marquee__stat { text-align: center; }
.marquee__stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  font-weight: 800;
  color: var(--ink);
  padding-bottom: 6px;
  margin-bottom: 4px;
  border-bottom: 2px solid var(--primary-dim);
  width: fit-content;
  margin-inline: auto;
}
.marquee__stat small { color: var(--ink-faint); font-size: 0.82rem; }
@media (max-width: 768px) {
  .marquee__stats { grid-template-columns: 1fr 1fr; gap: 24px 16px; }
}

/* =========================================================
   WORK / SWIPER CARDS
   ========================================================= */
.work { padding: 130px 0 120px; }

.work-swiper { padding: 0 var(--gutter) 10px; }
.work-swiper .swiper-slide { width: 380px; }

.project-card {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 22px;
  text-align: left;
  background: var(--bg-alt);
  border: 1px solid var(--line);
  transition: transform 0.55s var(--ease), border-color 0.4s;
}
.project-card:hover { transform: translateY(-8px); border-color: var(--primary); box-shadow: var(--shadow-sm); }

.project-card--primary, .project-card--secondary, .project-card--glow { background: var(--bg-alt); }

.project-card__thumb {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease), filter 0.5s;
  filter: saturate(0.9) brightness(0.82);
}
.project-card:hover .project-card__thumb { transform: scale(1.06); filter: saturate(1.05) brightness(0.7); }
.project-card__scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(9,9,11,0.55) 0%, rgba(9,9,11,0.15) 30%, rgba(9,9,11,0.25) 60%, rgba(9,9,11,0.92) 100%),
    linear-gradient(160deg, rgba(124,58,237,0.08), transparent 55%);
}
.project-card__play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.85);
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(9,9,11,0.45);
  border: 1.5px solid rgba(255,255,255,0.55);
  backdrop-filter: blur(4px);
  color: var(--ink);
  font-size: 18px;
  opacity: 0.85;
  transition: transform 0.45s var(--ease), background 0.35s, opacity 0.35s;
}
.project-card:hover .project-card__play {
  transform: translate(-50%, -50%) scale(1.05);
  background: var(--primary);
  opacity: 1;
}

.project-card__tc, .project-card__meta, .project-card__expand, .project-card__play, .project-card__glyph {
  position: relative;
  z-index: 2;
}
.project-card__tc {
  align-self: flex-start;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-dim);
  background: rgba(0,0,0,0.4);
  padding: 5px 10px;
  border-radius: 5px;
}
.project-card__glyph { display: none; }

.project-card__meta { display: flex; flex-direction: column; gap: 6px; position: relative; z-index: 2; }
.project-card__cat {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--primary);
}
.project-card__title {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1.1;
}
.project-card__expand {
  position: absolute;
  top: 22px;
  right: 22px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(11,11,12,0.5);
  border: 1px solid var(--line-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  transition: background 0.3s, transform 0.4s var(--ease);
}
.project-card:hover .project-card__expand { background: var(--ink); color: var(--bg); transform: rotate(45deg); }

.work-swiper__nav {
  display: flex;
  align-items: center;
  gap: 18px;
  max-width: var(--container);
  margin: 40px auto 0;
  padding: 0 var(--gutter);
}
.swiper-btn {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.3s, color 0.3s, transform 0.3s;
}
.swiper-btn:hover { background: var(--ink); color: var(--bg); transform: scale(1.06); }
.work-swiper__nav .swiper-pagination { position: static; flex: 1; display: flex; align-items: center; gap: 8px; }
.work-swiper__nav .swiper-pagination-bullet {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--line-strong); opacity: 1; margin: 0 !important;
  transition: background 0.3s, width 0.3s;
}
.work-swiper__nav .swiper-pagination-bullet-active { background: var(--primary); width: 22px; border-radius: 4px; }

/* =========================================================
   SERVICES — TIMELINE
   ========================================================= */
.services { padding: 40px 0 130px; }

.services-timeline {
  position: relative;
  border-top: 1px solid var(--line-strong);
}
.services-timeline::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  inset-inline-start: 27px;
  width: 1px;
  background: linear-gradient(180deg, var(--secondary-dim), var(--line) 90%);
}
.services-timeline__item {
  position: relative;
  display: grid;
  grid-template-columns: 56px 1fr 40px;
  align-items: center;
  gap: 26px;
  padding: 30px 0;
  border-bottom: 1px solid var(--line);
  transition: background var(--dur-hover) var(--ease-soft), padding var(--dur-hover) var(--ease-soft);
}
.services-timeline__item:hover {
  background: var(--bg-alt);
  padding-inline: 14px;
}
.services-timeline__marker {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.services-timeline__icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: var(--secondary);
  background: var(--bg-alt);
  border: 1px solid var(--secondary-dim);
  transition: transform var(--dur-hover) var(--ease-soft), color var(--dur-hover) var(--ease-soft), background var(--dur-hover) var(--ease-soft);
}
.services-timeline__item:hover .services-timeline__icon {
  transform: rotate(-8deg) scale(1.06);
  color: #fff;
  background: var(--primary);
}
.services-timeline__num {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-faint);
  letter-spacing: 0.06em;
}
.services-timeline__body h3 {
  font-size: clamp(1.4rem, 2.2vw, 1.75rem);
  font-weight: 700;
  margin-bottom: 6px;
  transition: color var(--dur-hover) var(--ease-soft);
}
.services-timeline__item:hover .services-timeline__body h3 { color: var(--secondary); }
.services-timeline__body p {
  color: var(--ink-dim);
  font-size: 1rem;
  line-height: 1.6;
  max-width: 560px;
}
.services-timeline__arrow {
  justify-self: end;
  color: var(--ink-faint);
  font-size: 1.1rem;
  opacity: 0;
  transform: translateX(-8px);
  transition: opacity var(--dur-hover) var(--ease-soft), transform var(--dur-hover) var(--ease-soft), color var(--dur-hover) var(--ease-soft);
}
.services-timeline__item:hover .services-timeline__arrow { opacity: 1; transform: translateX(0); color: var(--secondary); }
html[lang="ar"] .services-timeline__arrow i,
html[lang="ar"] .services-timeline__item:hover .services-timeline__arrow { transform: scaleX(-1); }
html[lang="ar"] .services-timeline__item:hover .services-timeline__arrow { transform: scaleX(-1) translateX(0); }

@media (max-width: 640px) {
  .services-timeline::before { inset-inline-start: 22px; }
  .services-timeline__item { grid-template-columns: 46px 1fr; gap: 16px; }
  .services-timeline__arrow { display: none; }
  .services-timeline__icon { width: 46px; height: 46px; font-size: 17px; }
}

/* =========================================================
   STATS
   ========================================================= */
.stats { padding: 60px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.stat { text-align: left; }
.stat__num {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  font-weight: 800;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.stat__label {
  display: block;
  margin-top: 10px;
  font-size: 0.9rem;
  color: var(--ink-dim);
}

/* =========================================================
   PROCESS
   ========================================================= */
.process { padding: 130px 0; }
.process__list { border-top: 1px solid var(--line-strong); }
.process__item {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 32px;
  padding: 36px 0;
  border-bottom: 1px solid var(--line);
}
.process__tc {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--primary);
  padding-top: 4px;
}
.process__body h3 {
  font-size: 1.6rem;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.process__body p {
  color: var(--ink-dim);
  max-width: 640px;
}

/* =========================================================
   STUDIO
   ========================================================= */
.studio { padding: 40px 0 130px; }
.studio__grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 70px;
  align-items: center;
}
.studio__copy h2 {
  font-size: clamp(2rem, 3.6vw, 2.8rem);
  text-transform: uppercase;
  line-height: 1.1;
  margin-bottom: 24px;
}
.studio__lead { font-size: 1.05rem; color: var(--ink-dim); margin-bottom: 18px; }
.studio__copy > p { color: var(--ink-dim); margin-bottom: 18px; }
.studio__facts {
  display: flex;
  gap: 36px;
  margin-top: 34px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}
.studio__facts div { display: flex; flex-direction: column; gap: 4px; }
.studio__facts span {
  font-family: var(--font-display);
  font-size: 1.9rem;
  font-weight: 800;
  color: var(--secondary);
}
.studio__facts div { font-size: 0.85rem; color: var(--ink-dim); }

.studio__frame {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line-strong);
  background: linear-gradient(155deg, rgba(242,169,59,0.14), rgba(63,208,201,0.1) 60%, var(--bg-raised));
  padding: 34px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 20px;
  overflow: hidden;
}
.studio__waveform {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 90px;
}
.studio__waveform span {
  flex: 1;
  background: var(--secondary);
  opacity: 0.7;
  border-radius: 2px;
  animation: wave-bounce 1.8s ease-in-out infinite;
}
.studio__waveform span:nth-child(odd) { background: var(--primary); animation-duration: 1.3s; }
.studio__waveform span:nth-child(1) { height: 30%; animation-delay: 0.05s; }
.studio__waveform span:nth-child(2) { height: 60%; animation-delay: 0.1s; }
.studio__waveform span:nth-child(3) { height: 90%; animation-delay: 0.15s; }
.studio__waveform span:nth-child(4) { height: 45%; animation-delay: 0.2s; }
.studio__waveform span:nth-child(5) { height: 70%; animation-delay: 0.25s; }
.studio__waveform span:nth-child(6) { height: 20%; animation-delay: 0.3s; }
.studio__waveform span:nth-child(7) { height: 85%; animation-delay: 0.35s; }
.studio__waveform span:nth-child(8) { height: 50%; animation-delay: 0.4s; }
.studio__waveform span:nth-child(9) { height: 35%; animation-delay: 0.45s; }
.studio__waveform span:nth-child(10) { height: 65%; animation-delay: 0.5s; }
.studio__waveform span:nth-child(11) { height: 95%; animation-delay: 0.55s; }
.studio__waveform span:nth-child(12) { height: 40%; animation-delay: 0.6s; }
.studio__waveform span:nth-child(13) { height: 55%; animation-delay: 0.65s; }
.studio__waveform span:nth-child(14) { height: 75%; animation-delay: 0.7s; }
.studio__waveform span:nth-child(15) { height: 25%; animation-delay: 0.75s; }
.studio__waveform span:nth-child(16) { height: 60%; animation-delay: 0.8s; }
.studio__waveform span:nth-child(17) { height: 80%; animation-delay: 0.85s; }
.studio__waveform span:nth-child(18) { height: 30%; animation-delay: 0.9s; }
.studio__waveform span:nth-child(19) { height: 50%; animation-delay: 0.95s; }
.studio__waveform span:nth-child(20) { height: 70%; animation-delay: 1s; }

.studio__scopes { display: flex; gap: 14px; }
.scope {
  flex: 1;
  aspect-ratio: 1.6 / 1;
  border-radius: 8px;
  border: 1px solid var(--line-strong);
  background: rgba(0,0,0,0.3);
  display: flex;
  align-items: flex-end;
  padding: 8px;
}
.scope span { font-family: var(--font-mono); font-size: 9px; color: var(--ink-faint); letter-spacing: 0.08em; }

/* =========================================================
   TESTIMONIALS
   ========================================================= */
.testimonials { padding: 40px 0 130px; }
.testimonial-swiper { padding-bottom: 50px; }
.testimonial {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 46px;
  min-height: 300px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: var(--bg-alt);
}
.testimonial__mark { font-size: 1.6rem; color: var(--primary); margin-bottom: 20px; }
.testimonial p {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--ink);
}
.testimonial footer { margin-top: 28px; display: flex; flex-direction: column; gap: 2px; }
.testimonial footer strong { font-size: 0.95rem; }
.testimonial footer span { font-size: 0.85rem; color: var(--ink-dim); }

.testimonial-pagination { position: relative; margin-top: 10px; display: flex; justify-content: center; gap: 8px; }
.testimonial-pagination .swiper-pagination-bullet {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--line-strong); opacity: 1;
  transition: background 0.3s, width 0.3s;
}
.testimonial-pagination .swiper-pagination-bullet-active { background: var(--secondary); width: 22px; border-radius: 4px; }

/* =========================================================
   CTA / CONTACT
   ========================================================= */
.cta {
  position: relative;
  padding: 130px 0 60px;
  background: linear-gradient(180deg, var(--bg-alt), var(--bg));
  border-top: 1px solid var(--line);
  overflow: hidden;
}
.cta__bg-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.22;
  z-index: 0;
}
.cta__grain {
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
  pointer-events: none;
}
.cta__inner { position: relative; z-index: 2; }
.cta h2 {
  font-size: clamp(2.4rem, 6vw, 4.6rem);
  text-transform: uppercase;
  line-height: 1;
  max-width: 900px;
  margin-bottom: 20px;
}
.cta__desc { max-width: 520px; color: var(--ink-dim); margin-bottom: 50px; font-size: 1.05rem; }

.cta__form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  max-width: 760px;
  margin-bottom: 56px;
}
.field { display: flex; flex-direction: column; gap: 8px; }
.field--full { grid-column: 1 / -1; }
.field label { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-dim); }
.field input, .field textarea, .field select {
  appearance: none;
  -webkit-appearance: none;
  background: var(--bg-raised);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-input);
  color: var(--ink);
  font-size: 0.95rem;
  resize: vertical;
  transition: border-color 0.3s, box-shadow 0.3s, background 0.3s;
}
.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%23a855f7' stroke-width='2'%3E%3Cpath d='M5 8l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: left 14px center;
  padding-inline-start: 40px;
  cursor: pointer;
}
html[lang="ar"] .field select {
  background-position: right 14px center;
  padding-inline-start: 16px;
  padding-inline-end: 40px;
}
.field select option { background: var(--bg-raised); color: var(--ink); }
.field input::placeholder, .field textarea::placeholder { color: var(--ink-faint); }
.field input:focus, .field textarea:focus, .field select:focus {
  border-color: var(--primary);
  outline: none;
  background: var(--bg-alt);
  box-shadow: 0 0 0 3px rgba(124,58,237,0.22), var(--shadow-glow);
}
.cta__form .btn { justify-self: start; margin-top: 8px; transition: background var(--dur-hover), color var(--dur-hover), transform var(--dur-hover); }
.cta__form .btn.is-loading { opacity: 0.85; cursor: default; }
.cta__form .btn.is-success { background: var(--success); color: #fff; }

.cta__contacts {
  display: flex;
  flex-wrap: wrap;
  gap: 34px;
  font-family: var(--font-mono);
  font-size: 13.5px;
  color: var(--ink-dim);
}
.cta__contacts a, .cta__contacts span { display: flex; align-items: center; gap: 10px; }
.cta__contacts a:hover { color: var(--secondary); }
.cta__contacts i { color: var(--primary); }

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer { background: var(--bg-alt); border-top: 1px solid var(--line); padding-top: 80px; }
.site-footer__inner {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 60px;
}
.site-footer__brand p { color: var(--ink-dim); margin: 18px 0 24px; max-width: 320px; font-size: 0.92rem; }
.site-footer__social { display: flex; gap: 14px; }
.site-footer__social a {
  width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid var(--line-strong);
  display: flex; align-items: center; justify-content: center;
  transition: background 0.3s, color 0.3s;
}
.site-footer__social a:hover { background: var(--ink); color: var(--bg); }

.site-footer__col h4 {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-dim);
  margin-bottom: 18px;
}
.site-footer__col a {
  display: block;
  padding: 6px 0;
  color: var(--ink-dim);
  position: relative;
  width: fit-content;
  transition: color var(--dur-hover) var(--ease-soft), transform var(--dur-hover) var(--ease-soft);
}
.site-footer__col a::after {
  content: "";
  position: absolute;
  bottom: 2px;
  inset-inline-start: 0;
  width: 0;
  height: 1px;
  background: var(--secondary);
  transition: width var(--dur-hover) var(--ease-soft);
}
.site-footer__col a:hover { color: var(--secondary); transform: translateX(4px); }
html[lang="ar"] .site-footer__col a:hover { transform: translateX(-4px); }
.site-footer__col a:hover::after { width: 100%; }
.site-footer__col p { color: var(--ink-dim); font-size: 0.9rem; margin-bottom: 16px; }

.footer-form { display: flex; border-bottom: 1px solid var(--line-strong); padding-bottom: 8px; }
.footer-form input { flex: 1; background: none; border: none; color: var(--ink); }
.footer-form input::placeholder { color: var(--ink-faint); }
.footer-form button { color: var(--primary); font-size: 15px; }

.site-footer__bottom { border-top: 1px solid var(--line); padding: 22px 0; }
.site-footer__bottom-inner {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--ink-faint);
  letter-spacing: 0.04em;
}

/* =========================================================
   POPUP / LIGHTBOX
   ========================================================= */
.popup {
  position: fixed;
  inset: 0;
  z-index: 9500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.4s var(--ease-soft), visibility 0.4s var(--ease-soft);
}
.popup.is-open { visibility: visible; opacity: 1; }
.popup__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(11, 11, 12, 0.86);
  backdrop-filter: blur(6px);
}
.popup__panel {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 880px;
  max-height: 88vh;
  overflow-y: auto;
  background: var(--bg-raised);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-modal);
  grid-template-columns: 1fr 1fr;
  transform: translateY(24px) scale(0.98);
  opacity: 0;
  transition: transform 0.5s var(--ease), opacity 0.5s var(--ease);
}
.popup.is-open .popup__panel { transform: translateY(0) scale(1); opacity: 1; }

.popup__close {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 3;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(0,0,0,0.4);
  border: 1px solid var(--line-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s, transform 0.4s var(--ease);
}
.popup__close:hover { background: var(--glow); transform: rotate(90deg); }

.popup__visual {
  position: relative;
  min-height: 260px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
  padding: 28px;
}
.popup__player {
  position: relative;
  width: 100%;
  max-width: 300px;
  aspect-ratio: 9 / 16;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #000;
  box-shadow: var(--shadow-md);
}
.popup__player iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  pointer-events: none;
}
.popup__custom-controls {
  position: absolute;
  inset-inline: 0;
  bottom: 14px;
  display: flex;
  justify-content: center;
  gap: 10px;
  z-index: 2;
}
.popup__ctrl {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(9,9,11,0.55);
  border: 1px solid rgba(255,255,255,0.18);
  backdrop-filter: blur(8px);
  color: var(--ink);
  font-size: 15px;
  transition: background 0.25s, transform 0.25s;
}
.popup__ctrl:hover { background: rgba(124,58,237,0.55); transform: scale(1.08); }
.popup__player__loading {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-faint);
  font-size: 1.6rem;
}

.popup__body { padding: 46px 40px; }
.popup__cat {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary);
}
.popup__body h3 {
  font-size: 2rem;
  text-transform: uppercase;
  margin: 12px 0 18px;
  line-height: 1.05;
}
.popup__body p { color: var(--ink-dim); margin-bottom: 26px; }

.popup__gcsr { display: flex; flex-direction: column; gap: 16px; margin-bottom: 28px; }
.popup__gcsr-row { padding-inline-start: 14px; border-inline-start: 2px solid var(--line-strong); }
.popup__gcsr-row p { color: var(--ink-dim); font-size: 0.92rem; line-height: 1.55; margin: 0; }
.popup__gcsr-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 4px;
  color: var(--ink-faint);
}
.popup__gcsr-row--goal { border-inline-start-color: var(--secondary); }
.popup__gcsr-row--goal .popup__gcsr-label { color: var(--secondary); }
.popup__gcsr-row--challenge { border-inline-start-color: var(--glow); }
.popup__gcsr-row--challenge .popup__gcsr-label { color: var(--glow); }
.popup__gcsr-row--solution { border-inline-start-color: var(--primary); }
.popup__gcsr-row--solution .popup__gcsr-label { color: var(--primary); }
.popup__gcsr-row--result { border-inline-start-color: #22c55e; }
.popup__gcsr-row--result .popup__gcsr-label { color: #22c55e; }

.popup__specs { display: flex; flex-direction: column; gap: 10px; margin-bottom: 32px; }
.popup__specs li {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--ink-dim);
  border-bottom: 1px solid var(--line);
  padding-bottom: 10px;
}
.popup__specs li span:last-child { color: var(--secondary); }
.popup__actions { display: flex; gap: 12px; }
.popup__actions .btn { flex: 1; padding: 12px; font-size: 13px; }

/* =========================================================
   MISC
   ========================================================= */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--bg-raised); border: 2px solid var(--bg); border-radius: 6px; }
::-webkit-scrollbar-thumb:hover { background: var(--ink-faint); }
