/* =====================================================================
   AboKhadija | أبو خديجة — Style System
   Eston filmmaker editorial x Minifolio accent engine
   Pure CSS3 · CSS custom properties · no frameworks
   ===================================================================== */

/* ---------- 1. Design tokens ---------- */
:root {
  --bg: #0A0A0B;
  --surface: #121215;
  --surface-2: #17171B;
  --text: #F5F5F7;
  --muted: #9CA3AF;
  --line: rgba(245, 245, 247, 0.10);
  --line-strong: rgba(245, 245, 247, 0.22);
  --on-accent: #0A0A0B;

  /* Dynamic Accent Engine */
  --accent: #B8FF00;
  --accent-rgb: 184, 255, 0;
  --glass: rgba(var(--accent-rgb), 0.14);
  --glass-border: rgba(var(--accent-rgb), 0.30);

  --font-body: 'Cairo', 'IBM Plex Sans Arabic', 'Segoe UI', system-ui, -apple-system, Arial, sans-serif;
  --font-display: 'Cairo', 'Syne', 'Segoe UI', system-ui, sans-serif;
  --lh: 1.95;

  --container: 1240px;
  --gutter: clamp(18px, 4vw, 40px);
  --radius: 18px;
  --radius-lg: 26px;
  --header-h: 74px;
  --ease: cubic-bezier(0.2, 0.7, 0.3, 1);
}

html[lang="en"] {
  --font-body: 'Inter', 'Segoe UI', system-ui, -apple-system, Arial, sans-serif;
  --font-display: 'Syne', 'Inter', 'Segoe UI', system-ui, sans-serif;
  --lh: 1.75;
}

/* ---------- 2. Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }

* { margin: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 18px);
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: var(--lh);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  font-synthesis-weight: none;
}

img, svg, video, iframe { display: block; max-width: 100%; }
img { height: auto; }

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul, ol { list-style: none; padding: 0; }
[hidden] { display: none !important; }

::selection { background: var(--accent); color: var(--on-accent); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: #0d0d0f; }
::-webkit-scrollbar-thumb { background: #26262c; border-radius: 8px; }
::-webkit-scrollbar-thumb:hover { background: #33333b; }
* { scrollbar-color: #26262c #0d0d0f; scrollbar-width: thin; }

/* ---------- 3. Utilities ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  padding-block: clamp(70px, 9vw, 122px);
  scroll-margin-top: calc(var(--header-h) + 10px);
  position: relative;
}

.skip-link {
  position: fixed;
  top: -80px;
  inset-inline-start: 16px;
  z-index: 200;
  background: var(--accent);
  color: var(--on-accent);
  padding: 12px 20px;
  border-radius: 0 0 12px 12px;
  font-weight: 700;
  transition: top 0.25s var(--ease);
}
.skip-link:focus { top: 0; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--muted);
  text-transform: uppercase;
  margin-bottom: 18px;
}
.eyebrow-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 5px rgba(var(--accent-rgb), 0.16);
  flex: 0 0 auto;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.6vw, 3rem);
  font-weight: 800;
  line-height: 1.35;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
html[lang="en"] .section-title {
  font-size: clamp(1.7rem, 3vw, 2.5rem);
  line-height: 1.16;
  letter-spacing: -0.02em;
}

.section-text {
  color: var(--muted);
  font-size: clamp(0.97rem, 1.1vw, 1.05rem);
  line-height: var(--lh);
  max-width: 66ch;
  margin-top: 18px;
}

.section-head { margin-bottom: clamp(34px, 4vw, 54px); max-width: 820px; }
.section-head--center {
  margin-inline: auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.section-head--center .section-text { margin-inline: auto; }

.glass {
  background: var(--glass);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
  backdrop-filter: blur(12px) saturate(140%);
  border: 1px solid var(--glass-border);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1;
  padding: 1rem 1.7rem;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  text-align: center;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease),
              background-color 0.3s var(--ease), border-color 0.3s var(--ease), color 0.3s var(--ease);
}
.btn svg { flex: 0 0 auto; }
.btn-primary {
  background: var(--accent);
  color: var(--on-accent);
  box-shadow: 0 12px 34px rgba(var(--accent-rgb), 0.22);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 44px rgba(var(--accent-rgb), 0.36);
}
.btn-ghost {
  border-color: var(--line-strong);
  color: var(--text);
  background: rgba(245, 245, 247, 0.02);
}
.btn-ghost:hover {
  transform: translateY(-2px);
  border-color: rgba(var(--accent-rgb), 0.65);
  background: rgba(var(--accent-rgb), 0.10);
}
.btn-sm { padding: 0.62rem 1.15rem; font-size: 0.85rem; }
.btn-lg { padding: 1.1rem 2rem; font-size: 1rem; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text);
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 6px;
  transition: color 0.25s var(--ease), border-color 0.25s var(--ease), gap 0.25s var(--ease);
}
.link-arrow:hover { color: var(--accent); border-color: var(--accent); gap: 14px; }

/* Reveal on scroll (content is visible until JS marks it) */
@keyframes riseIn {
  from { opacity: 0; transform: translateY(26px); }
  to { opacity: 1; transform: none; }
}
.reveal.is-visible { animation: riseIn 0.75s var(--ease) both; }

/* ---------- 4. Header ---------- */
.site-header {
  position: fixed;
  inset-block-start: 0;
  inset-inline: 0;
  z-index: 80;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(10, 10, 11, 0);
  border-bottom: 1px solid transparent;
  transition: background-color 0.35s var(--ease), border-color 0.35s var(--ease), backdrop-filter 0.35s var(--ease);
}
.site-header.is-scrolled {
  background: rgba(10, 10, 11, 0.82);
  -webkit-backdrop-filter: blur(14px) saturate(150%);
  backdrop-filter: blur(14px) saturate(150%);
  border-bottom-color: var(--line);
}

.nav-inner {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2vw, 32px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  flex: 0 0 auto;
}
.brand-mark {
  width: 38px; height: 38px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 900;
  font-size: 0.95rem;
  letter-spacing: -0.02em;
  box-shadow: 0 8px 22px rgba(var(--accent-rgb), 0.28);
}
.brand-text { display: grid; line-height: 1.15; }
.brand-text strong {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.01em;
}
.brand-sub { font-size: 0.72rem; color: var(--muted); }

.nav-menu {
  display: flex;
  align-items: center;
  gap: clamp(8px, 1.4vw, 22px);
  margin-inline-start: auto;
}
.nav-link {
  position: relative;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--muted);
  padding: 8px 4px;
  transition: color 0.25s var(--ease);
}
.nav-link::after {
  content: "";
  position: absolute;
  inset-block-end: 0;
  inset-inline-start: 0;
  width: 100%;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: inline-end;
  transition: transform 0.3s var(--ease);
}
.nav-link:hover, .nav-link.is-active { color: var(--text); }
.nav-link:hover::after, .nav-link.is-active::after { transform: scaleX(1); transform-origin: inline-start; }

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-inline-start: auto;
}

.lang-toggle {
  display: inline-flex;
  padding: 4px;
  gap: 2px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(245, 245, 247, 0.03);
}
.lang-opt {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--muted);
  padding: 6px 10px;
  border-radius: 999px;
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease);
}
.lang-opt.is-active { background: var(--accent); color: var(--on-accent); }

.icon-btn {
  width: 40px; height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--muted);
  transition: color 0.25s var(--ease), border-color 0.25s var(--ease), background-color 0.25s var(--ease);
}
.icon-btn:hover, .icon-btn[aria-expanded="true"] {
  color: var(--accent);
  border-color: rgba(var(--accent-rgb), 0.55);
  background: rgba(var(--accent-rgb), 0.10);
}

.hamburger {
  display: none;
  width: 42px; height: 42px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 11px 10px;
  flex-direction: column;
  justify-content: space-between;
}
.hamburger span {
  display: block;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.25s var(--ease);
}
.hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- 5. Hero ---------- */
.hero {
  position: relative;
  padding-top: calc(var(--header-h) + clamp(30px, 6vh, 70px));
  overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.hero-banner {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  filter: saturate(1) brightness(0.9) contrast(1.05);
}
/* Studio details stay visible; dark gradient only protects the text columns
   (right column in AR / left column in EN) and the marquee edge. */
.hero-banner-tint {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(78% 62% at 74% 8%, rgba(var(--accent-rgb), 0.2), transparent 60%),
    linear-gradient(to bottom, rgba(10, 10, 11, 0.45), rgba(10, 10, 11, 0.16) 44%, rgba(10, 10, 11, 0.9) 100%),
    linear-gradient(to right, rgba(10, 10, 11, 0.86), rgba(10, 10, 11, 0.5) 38%, rgba(10, 10, 11, 0.12) 60%, rgba(10, 10, 11, 0.62));
}
.hero-copy { text-shadow: 0 1px 18px rgba(10, 10, 11, 0.55); }
.hero-grid-lines {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(245, 245, 247, 0.045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(245, 245, 247, 0.045) 1px, transparent 1px);
  background-size: 78px 78px;
  -webkit-mask-image: radial-gradient(115% 85% at 60% 25%, #000 35%, transparent 78%);
  mask-image: radial-gradient(115% 85% at 60% 25%, #000 35%, transparent 78%);
}
.hero-glow {
  position: absolute;
  inset-block-start: -18%;
  inset-inline-end: -8%;
  width: 60vw; height: 60vw;
  max-width: 820px; max-height: 820px;
  background: radial-gradient(circle, rgba(var(--accent-rgb), 0.16), transparent 62%);
  filter: blur(10px);
}
.hero-outline {
  position: absolute;
  inset-block-end: 4%;
  inset-inline-start: -2%;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(6rem, 21vw, 17rem);
  letter-spacing: -0.03em;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(245, 245, 247, 0.055);
  user-select: none;
  line-height: 0.8;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(34px, 5vw, 72px);
  align-items: center;
  padding-block-end: clamp(46px, 6vw, 84px);
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.35rem, 6.2vw, 5rem);
  font-weight: 900;
  line-height: 1.22;
  letter-spacing: -0.01em;
  margin-block: 8px 22px;
}
html[lang="en"] .hero-title { line-height: 1.02; letter-spacing: -0.03em; }
.hero-title .line { display: block; }
.hero-title .accent {
  color: var(--accent);
  text-shadow: 0 0 42px rgba(var(--accent-rgb), 0.35);
}

.hero-lead {
  color: var(--muted);
  font-size: clamp(1rem, 1.35vw, 1.12rem);
  line-height: var(--lh);
  max-width: 56ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}

.hero-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 34px;
}
.chip {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--muted);
  padding: 0.5rem 0.95rem;
  border-radius: 999px;
  background: rgba(245, 245, 247, 0.03);
  border: 1px solid var(--line);
}
.chip.glass { background: var(--glass); border-color: var(--glass-border); color: var(--text); }

/* Hero portrait */
.hero-visual {
  position: relative;
  width: min(100%, 520px);
  margin-inline: auto;
  aspect-ratio: 4 / 5;
}
.portrait {
  position: relative;
  overflow: hidden;
  background: #0E0E11;
  border: 1px solid var(--line);
}
.portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  filter: grayscale(1) contrast(1.06);
}
.portrait--hero img { filter: saturate(1.02) contrast(1.03); }
.portrait--hero {
  height: 100%;
  border-radius: 24px;
  box-shadow: 0 40px 90px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(var(--accent-rgb), 0.14);
}
.portrait-rim {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(115% 70% at 78% 4%, rgba(var(--accent-rgb), 0.20), transparent 58%),
    linear-gradient(to top, rgba(10, 10, 11, 0.78), rgba(10, 10, 11, 0) 46%);
}
.frame-corner {
  position: absolute;
  width: 40px; height: 40px;
  border: 2px solid var(--accent);
  pointer-events: none;
}
.fc-tl {
  inset-block-start: 14px;
  inset-inline-start: 14px;
  border-inline-end: 0;
  border-block-end: 0;
}
.fc-br {
  inset-block-end: 14px;
  inset-inline-end: 14px;
  border-inline-start: 0;
  border-block-start: 0;
}
.rec-badge {
  position: absolute;
  inset-block-end: 18px;
  inset-inline-start: 18px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--text);
  padding: 0.42rem 0.8rem;
  border-radius: 999px;
  background: rgba(10, 10, 11, 0.55);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(245, 245, 247, 0.18);
}
.rec-badge i {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent);
  animation: blink 1.6s steps(1, end) infinite;
}
@keyframes blink { 50% { opacity: 0.15; } }

/* Floating glass cards */
.float-card {
  position: absolute;
  z-index: 3;
  display: grid;
  gap: 3px;
  padding: 12px 16px;
  border-radius: 16px;
  background: rgba(var(--accent-rgb), 0.14);
  -webkit-backdrop-filter: blur(12px) saturate(150%);
  backdrop-filter: blur(12px) saturate(150%);
  border: 1px solid var(--glass-border);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.42);
  animation: floaty 6s ease-in-out infinite;
}
.fc-title { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.05em; color: var(--muted); }
.fc-value { display: inline-flex; align-items: center; gap: 6px; font-size: 0.85rem; font-weight: 800; }
.fc-value.ok { color: var(--accent); }
.fc-value.muted { color: var(--muted); }
/* Program badges — Ae / Pr letter tiles (Adobe dark navy + periwinkle) */
.fc-head { display: flex; align-items: center; gap: 8px; }
.fc-tile {
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 7px;
  background: #00005B;
  color: #9999FF;
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0;
  flex: none;
}
.fc-tile svg { display: block; color: var(--text); }
.fc-big {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1;
  color: var(--text);
}
.float-1 { inset-block-start: 7%; inset-inline-start: -7%; animation-delay: 0s; }
.float-2 { inset-block-start: 44%; inset-inline-end: -7%; animation-delay: 1.6s; }
.float-3 { inset-block-end: 9%; inset-inline-start: -5%; animation-delay: 3.2s; }
@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-11px); }
}

/* Marquee */
.marquee {
  position: relative;
  border-block: 1px solid var(--line);
  padding-block: 15px;
  overflow: hidden;
  background: rgba(245, 245, 247, 0.015);
}
.marquee-track {
  display: flex;
  width: max-content;
  direction: ltr;
  animation: scrollX 34s linear infinite;
}
.marquee-group {
  display: flex;
  align-items: center;
  gap: 44px;
  padding-inline-end: 44px;
}
.marquee-group span {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}
.marquee-group i { color: var(--accent); font-style: normal; font-size: 0.72rem; }
@keyframes scrollX { to { transform: translateX(-50%); } }

/* ---------- 6. About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(36px, 5vw, 74px);
  align-items: center;
}
.about-visual { position: relative; margin: 0; }
.portrait--about {
  border-radius: 24px;
  aspect-ratio: 4 / 5;
  box-shadow: 0 40px 90px rgba(0, 0, 0, 0.5);
}
.portrait--about-snap {
  position: absolute;
  inset-block-start: -16px;
  inset-inline-start: -16px;
  width: 46%;
  aspect-ratio: 16 / 9;
  border-radius: 16px;
  box-shadow: 0 26px 60px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(var(--accent-rgb), 0.16);
  z-index: 2;
}
.about-caption {
  position: absolute;
  inset-block-end: -22px;
  inset-inline: 22px;
  padding: 14px 20px;
  border-radius: 16px;
  font-size: 0.9rem;
  font-weight: 700;
  text-align: center;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 38px;
}
.stat {
  border-block-start: 1px solid var(--line);
  padding-block-start: 16px;
  display: grid;
  gap: 5px;
}
.stat-num {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 2.8vw, 2.35rem);
  font-weight: 800;
  line-height: 1;
}
.stat-num .plus { color: var(--accent); }
.stat-label { font-size: 0.82rem; color: var(--muted); }

.toolkit { margin-top: 36px; }
.toolkit-title {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 14px;
}
.tool-list { display: flex; flex-wrap: wrap; gap: 10px; }
.toolkit-group {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 14px 0 8px;
}
.toolkit-group + .tool-list { margin-top: 0; }
.tool-list--support li {
  color: var(--muted);
  border-style: dashed;
}
.tool-list li {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text);
  padding: 0.5rem 1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(245, 245, 247, 0.03);
  transition: border-color 0.25s var(--ease), color 0.25s var(--ease), background-color 0.25s var(--ease);
}
.tool-list li:hover {
  border-color: rgba(var(--accent-rgb), 0.55);
  background: rgba(var(--accent-rgb), 0.10);
  color: var(--accent);
}

/* ---------- 7. Work ---------- */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 32px;
}
.filter {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--muted);
  padding: 0.6rem 1.2rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(245, 245, 247, 0.02);
  transition: all 0.25s var(--ease);
}
.filter:hover {
  color: var(--text);
  border-color: rgba(var(--accent-rgb), 0.5);
  background: rgba(var(--accent-rgb), 0.08);
}
.filter.is-active {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--on-accent);
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 26px;
  align-items: start;
}
.work-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
  transition: transform 0.35s var(--ease), border-color 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.work-card:hover {
  transform: translateY(-6px);
  border-color: rgba(var(--accent-rgb), 0.5);
  box-shadow: 0 26px 60px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(var(--accent-rgb), 0.12);
}
.work-thumb {
  position: relative;
  overflow: hidden;
  background: #0D0D10;
}
.ratio-9x16 .work-thumb { aspect-ratio: 9 / 16; }
.ratio-16x9 .work-thumb { aspect-ratio: 16 / 9; }
.work-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: grayscale(0.85) contrast(1.05);
  transition: transform 0.6s var(--ease), filter 0.4s var(--ease);
}
.work-card:hover .work-thumb img { transform: scale(1.05); filter: grayscale(0) contrast(1.02); }

.thumb-fb {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  gap: 10px;
  background:
    radial-gradient(90% 70% at 50% 110%, rgba(var(--accent-rgb), 0.16), transparent 65%),
    repeating-linear-gradient(135deg, #141419 0 14px, #101014 14px 28px);
}
.thumb-fb-label {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(245, 245, 247, 0.16);
  text-align: center;
  padding-inline: 14px;
}
.thumb-fb-code {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  color: rgba(var(--accent-rgb), 0.75);
}

.work-open {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: transparent;
  z-index: 2;
}
.play-badge {
  width: 64px; height: 64px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(10, 10, 11, 0.55);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(245, 245, 247, 0.3);
  color: var(--text);
  transition: transform 0.3s var(--ease), background-color 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.work-open:hover .play-badge,
.work-open:focus-visible .play-badge {
  transform: scale(1.09);
  background: var(--accent);
  border-color: var(--accent);
  color: var(--on-accent);
}
.platform-badge {
  position: absolute;
  inset-block-start: 13px;
  inset-inline-start: 13px;
  z-index: 2;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text);
  padding: 0.36rem 0.7rem;
  border-radius: 999px;
  background: rgba(var(--accent-rgb), 0.14);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
}
.work-info {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 15px 18px 18px;
}
.work-title { font-size: 0.98rem; font-weight: 700; line-height: 1.5; }
.work-tag { font-size: 0.74rem; color: var(--muted); white-space: nowrap; }

.work-empty {
  text-align: center;
  color: var(--muted);
  padding: 50px 20px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
}
.work-foot {
  margin-top: 44px;
  display: flex;
  justify-content: center;
}

/* ---------- 8. Product / AboKhadija-Tools ---------- */
.tools {
  background:
    radial-gradient(70% 45% at 50% 0%, rgba(var(--accent-rgb), 0.09), transparent 70%),
    linear-gradient(180deg, var(--bg) 0%, #0C0C0F 22%, #0C0C0F 78%, var(--bg) 100%);
  border-block: 1px solid var(--line);
}
.app-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 8px 16px 8px 8px;
  border-radius: 999px;
  background: rgba(var(--accent-rgb), 0.10);
  border: 1px solid var(--glass-border);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  margin-bottom: 22px;
}
html[dir="rtl"] .app-badge { padding: 8px 8px 8px 16px; }
.app-icon {
  width: 36px; height: 36px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--accent);
  color: var(--on-accent);
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 0.85rem;
}
.app-name { font-family: var(--font-display); font-weight: 800; font-size: 0.98rem; }
.app-ver { font-size: 0.72rem; color: var(--muted); font-weight: 700; }

.support-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 26px;
}
.support-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 0.6rem 1.15rem;
  border-radius: 999px;
  font-size: 0.83rem;
  border: 1px solid var(--line);
  background: rgba(245, 245, 247, 0.03);
}
.support-badge em { font-style: normal; color: var(--muted); font-weight: 600; }
.support-badge strong { font-weight: 800; }
.support-badge.is-live {
  background: rgba(var(--accent-rgb), 0.12);
  border-color: rgba(var(--accent-rgb), 0.45);
}
.support-badge.is-live em { color: var(--accent); font-weight: 800; }
.support-badge.is-soon { border-style: dashed; }
.sb-dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.support-badge.is-live .sb-dot { background: var(--accent); box-shadow: 0 0 0 4px rgba(var(--accent-rgb), 0.18); }
.support-badge.is-soon .sb-dot { background: var(--muted); }

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(285px, 1fr));
  gap: 20px;
}
.feature-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 26px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
  transition: transform 0.35s var(--ease), border-color 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.feature-card::before {
  content: "";
  position: absolute;
  inset-block-start: 0;
  inset-inline: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, rgba(var(--accent-rgb), 0.75), transparent);
  transform: scaleX(0);
  transition: transform 0.45s var(--ease);
}
.feature-card:hover {
  transform: translateY(-6px);
  border-color: rgba(var(--accent-rgb), 0.45);
  box-shadow: 0 24px 54px rgba(0, 0, 0, 0.42);
}
.feature-card:hover::before { transform: scaleX(1); }
.feature-icon {
  width: 52px; height: 52px;
  display: grid;
  place-items: center;
  border-radius: 15px;
  background: rgba(var(--accent-rgb), 0.12);
  border: 1px solid rgba(var(--accent-rgb), 0.32);
  color: var(--accent);
}
.feature-icon svg { width: 26px; height: 26px; }
.feature-title { font-size: 1.08rem; font-weight: 700; line-height: 1.5; }
.feature-text { font-size: 0.92rem; color: var(--muted); line-height: var(--lh); }
.feature-tag {
  align-self: flex-start;
  margin-top: auto;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--text);
  padding: 0.36rem 0.8rem;
  border-radius: 999px;
  background: rgba(var(--accent-rgb), 0.12);
  border: 1px solid var(--glass-border);
}

/* Mixed-direction UI labels resolve their own base direction
   (fixes "5 presets" style strings flipping inside an RTL page) */
.feature-tag, .stat-num, .metric-num, .rec-badge, .thumb-fb-code,
.fc-title, .work-tag, .chip, .platform-badge, .app-name, .app-ver,
.step-num, .copyright, .footer-note {
  unicode-bidi: plaintext;
}

/* Licensing flow */
.activate {
  margin-top: clamp(44px, 5vw, 70px);
  padding: clamp(28px, 4vw, 48px);
  border-radius: var(--radius-lg);
  background: rgba(var(--accent-rgb), 0.10);
  border: 1px solid rgba(var(--accent-rgb), 0.32);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
  backdrop-filter: blur(12px) saturate(140%);
  display: grid;
  gap: clamp(26px, 3vw, 40px);
}
.activate-head { text-align: center; display: grid; justify-items: center; }
.activate-title {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.6vw, 2.1rem);
  font-weight: 800;
  line-height: 1.4;
}
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 3vw, 34px);
  counter-reset: step;
}
.step { position: relative; padding-inline-start: 4px; }
.step-num {
  display: block;
  font-family: var(--font-display);
  font-size: 2.6rem;
  font-weight: 800;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(var(--accent-rgb), 0.9);
  margin-bottom: 12px;
}
.step-title { font-size: 1.02rem; font-weight: 700; margin-bottom: 6px; }
.step-text { font-size: 0.9rem; color: var(--muted); line-height: var(--lh); }

.activate-cta { display: grid; justify-items: center; gap: 12px; text-align: center; }
.activate-note { font-size: 0.82rem; color: var(--muted); }

/* ---------- 9. Contact / metrics / social ---------- */
.cta-banner {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(28px, 4vw, 52px);
  align-items: center;
  padding: clamp(28px, 4vw, 54px);
  background:
    radial-gradient(75% 100% at 8% 0%, rgba(var(--accent-rgb), 0.13), transparent 62%),
    var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.cta-banner .section-title, .cta-banner .section-text { max-width: 34ch; }
.cta-visual { position: relative; }
.portrait--cta {
  border-radius: 20px;
  aspect-ratio: 3 / 2;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.5);
}
.portrait--cta-snap {
  position: absolute;
  inset-block-end: 16px;
  inset-inline-start: 16px;
  width: 42%;
  aspect-ratio: 4 / 3;
  border-radius: 14px;
  box-shadow: 0 24px 54px rgba(0, 0, 0, 0.62), 0 0 0 1px rgba(var(--accent-rgb), 0.16);
  z-index: 2;
}
.cta-copy .hero-actions { margin-top: 28px; }

.metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(16px, 2vw, 28px);
  margin-top: clamp(34px, 4vw, 54px);
}
.metric {
  border-block-start: 1px solid var(--line);
  padding-block-start: 18px;
  display: grid;
  gap: 6px;
}
.metric-num {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3.6vw, 2.9rem);
  font-weight: 800;
  line-height: 1;
}
.metric-label { font-size: 0.84rem; color: var(--muted); }

.social-bar {
  margin-top: clamp(34px, 4vw, 52px);
  border-block-start: 1px solid var(--line);
  padding-block-start: 26px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.social-title {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.social-list { display: flex; flex-wrap: wrap; gap: 12px; }
.social-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 0.87rem;
  font-weight: 700;
  padding: 0.62rem 1.15rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text);
  transition: all 0.25s var(--ease);
}
.social-link:hover {
  border-color: rgba(var(--accent-rgb), 0.6);
  background: rgba(var(--accent-rgb), 0.12);
  color: var(--accent);
  transform: translateY(-2px);
}
.social-link svg { flex: 0 0 auto; }

/* ---------- 10. Footer ---------- */
.site-footer {
  background: #08080A;
  border-block-start: 1px solid var(--line);
  padding-block: clamp(46px, 6vw, 70px) 26px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.7fr 1fr 1fr 1fr;
  gap: clamp(26px, 4vw, 48px);
}
.footer-tag {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: var(--lh);
  max-width: 34ch;
  margin-top: 16px;
}
.footer-col { display: grid; align-content: start; gap: 4px; }
.footer-head {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 10px;
}
.footer-col a {
  font-size: 0.89rem;
  color: var(--muted);
  padding-block: 6px;
  transition: color 0.22s var(--ease), transform 0.22s var(--ease);
}
.footer-col a:hover { color: var(--accent); transform: translateX(3px); }
html[dir="rtl"] .footer-col a:hover { transform: translateX(-3px); }

.footer-bottom {
  margin-top: clamp(34px, 4vw, 54px);
  border-block-start: 1px solid var(--line);
  padding-block-start: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  align-items: center;
}
.copyright, .footer-note { font-size: 0.8rem; color: var(--muted); }

/* ---------- 11. Theme customizer dock ---------- */
.theme-dock {
  position: fixed;
  inset-block-end: 20px;
  inset-inline-end: 20px;
  z-index: 90;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
}
.theme-fab {
  width: 50px; height: 50px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(18, 18, 21, 0.9);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border: 1px solid var(--line-strong);
  color: var(--text);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.5);
  transition: all 0.3s var(--ease);
}
.theme-fab:hover, .theme-fab[aria-expanded="true"] {
  color: var(--accent);
  border-color: rgba(var(--accent-rgb), 0.6);
  transform: rotate(25deg);
  box-shadow: 0 14px 40px rgba(var(--accent-rgb), 0.28);
}
.theme-panel {
  width: 246px;
  padding: 17px;
  border-radius: 20px;
  background: rgba(var(--accent-rgb), 0.10);
  display: grid;
  gap: 13px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
  animation: panelIn 0.28s var(--ease) both;
}
@keyframes panelIn {
  from { opacity: 0; transform: translateY(10px) scale(0.97); }
  to { opacity: 1; transform: none; }
}
.theme-label { font-size: 0.8rem; font-weight: 800; }
.swatches { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.swatch {
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--c);
  border: 2px solid rgba(10, 10, 11, 0.6);
  transition: transform 0.22s var(--ease), outline-color 0.22s var(--ease);
  outline: 2px solid transparent;
  outline-offset: 3px;
}
.swatch:hover { transform: scale(1.1); }
.swatch.is-active { outline-color: var(--text); transform: scale(1.06); }
.theme-custom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 0.8rem;
  color: var(--muted);
}
.theme-custom input[type="color"] {
  width: 46px;
  height: 30px;
  padding: 3px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: rgba(10, 10, 11, 0.5);
  cursor: pointer;
}
.theme-custom input[type="color"]::-webkit-color-swatch-wrapper { padding: 2px; }
.theme-custom input[type="color"]::-webkit-color-swatch { border: none; border-radius: 5px; }
.theme-reset {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--muted);
  padding: 0.5rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  transition: all 0.22s var(--ease);
}
.theme-reset:hover { color: var(--accent); border-color: rgba(var(--accent-rgb), 0.5); }
.theme-hint { font-size: 0.7rem; color: var(--muted); opacity: 0.85; line-height: 1.6; }

/* ---------- 12. Video modal ---------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: clamp(14px, 3vw, 34px);
}
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 5, 6, 0.86);
  -webkit-backdrop-filter: blur(7px);
  backdrop-filter: blur(7px);
}
.modal-dialog {
  position: relative;
  width: min(980px, 100%);
  max-height: 92vh;
  overflow: auto;
  background: #0E0E11;
  border: 1px solid var(--line-strong);
  border-radius: 22px;
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.65);
  animation: panelIn 0.3s var(--ease) both;
}
.modal-close {
  position: absolute;
  inset-block-start: 12px;
  inset-inline-end: 12px;
  z-index: 3;
  width: 40px; height: 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(10, 10, 11, 0.7);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border: 1px solid var(--line-strong);
  color: var(--text);
  transition: all 0.25s var(--ease);
}
.modal-close:hover { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.modal-media {
  background: #000;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 200px;
  overflow: hidden;
}
.media-frame { position: relative; width: 100%; aspect-ratio: 16 / 9; background: #000; }
.media-frame.is-vertical {
  width: auto;
  height: min(62vh, 560px);
  aspect-ratio: 9 / 16;
}
.media-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.media-placeholder {
  display: grid;
  place-items: center;
  gap: 14px;
  text-align: center;
  padding: clamp(34px, 6vw, 66px) 26px;
  color: var(--muted);
  background:
    radial-gradient(70% 90% at 50% 110%, rgba(var(--accent-rgb), 0.14), transparent 66%),
    repeating-linear-gradient(135deg, #0F0F13 0 16px, #0C0C10 16px 32px);
}
.media-placeholder svg { width: 46px; height: 46px; color: var(--accent); }
.media-placeholder strong { color: var(--text); font-size: 1.02rem; }
.media-placeholder p { font-size: 0.88rem; max-width: 46ch; line-height: var(--lh); }
.modal-info {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 18px 22px 22px;
}
.modal-title { font-size: 1.05rem; font-weight: 700; line-height: 1.5; }
.modal-sub { font-size: 0.84rem; color: var(--muted); margin-top: 3px; }

/* ---------- 13. Responsive ---------- */
@media (max-width: 1080px) {
  .hero-grid { grid-template-columns: 1fr 1fr; }
  .float-1 { inset-inline-start: -3%; }
  .float-2 { inset-inline-end: -3%; }
  .float-3 { inset-inline-start: -2%; }
}

@media (max-width: 980px) {
  .nav-menu {
    position: absolute;
    inset-block-start: calc(100% + 10px);
    inset-inline: var(--gutter);
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 10px;
    background: rgba(14, 14, 17, 0.97);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    border: 1px solid var(--line-strong);
    border-radius: 18px;
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.55);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.28s var(--ease), transform 0.28s var(--ease), visibility 0.28s;
  }
  .nav-menu.is-open { opacity: 1; visibility: visible; transform: none; }
  .nav-link { padding: 12px 14px; border-radius: 12px; font-size: 0.95rem; }
  .nav-link:hover, .nav-link.is-active { background: rgba(var(--accent-rgb), 0.10); }
  .nav-link::after { display: none; }
  .hamburger { display: flex; }
  .nav-actions { margin-inline-start: auto; }
  .nav-menu + .nav-actions { margin-inline-start: auto; }

  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { width: min(100%, 460px); order: 2; }
  .hero-copy { order: 1; }
  .about-grid { grid-template-columns: 1fr; }
  .about-visual { width: min(100%, 480px); margin-inline: auto; }
  .cta-banner { grid-template-columns: 1fr; }
  .cta-visual { order: -1; }
  .steps { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 22px 18px; }
  .metrics { grid-template-columns: repeat(2, 1fr); gap: 24px 18px; }
  .work-grid { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
  .hero-actions .btn { width: 100%; }
  .float-card { padding: 10px 13px; }
  .float-1 { inset-inline-start: -2%; }
  .float-2 { inset-inline-end: -2%; inset-block-start: 40%; }
  .float-3 { display: none; }
  .social-bar { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 560px) {
  :root { --header-h: 66px; }
  .nav-cta { display: none; }
  .brand-sub { display: none; }
  .portrait--about-snap { inset-block-start: 10px; inset-inline-start: 10px; width: 44%; }
  .portrait--cta-snap { inset-block-end: 10px; inset-inline-start: 10px; width: 46%; }
  .hero-title { font-size: clamp(2.05rem, 9vw, 2.9rem); }
  .work-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .modal-info { flex-direction: column; align-items: stretch; }
  .modal-info .btn { width: 100%; }
  .theme-dock { inset-inline-end: 14px; inset-block-end: 14px; }
  .theme-panel { width: min(260px, calc(100vw - 84px)); }
  .feature-card { padding: 22px; }
}

/* ---------- 14. Motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal.is-visible { animation: none; }
  .marquee-track { animation: none; }
  .float-card { animation: none; }
}

/* Print: keep it honest and light */
@media print {
  .site-header, .theme-dock, .modal, .marquee, .hero-bg { display: none !important; }
  body { background: #fff; color: #000; }
}
