/* ============================================
   SOCIAL BY CLO — Design system
   Canvas neutre + chaque projet révèle sa couleur
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,400;12..96,500;12..96,600;12..96,700;12..96,800&family=Inter:wght@400;500;600;700&family=Space+Mono:wght@400;700&family=Tajawal:wght@400;500;700;800&display=swap');

:root {
  --canvas: #FAF6EF;
  --canvas-alt: #F3EEE4;
  --ink: #17141A;
  --ink-soft: #565064;
  --flame: #FF3B5C;
  --zest: #FFC93C;
  --grape: #7B4FE0;
  --line: rgba(23, 20, 26, 0.12);
  --white: #FFFFFF;
  --surface: #FFFFFF;
  --mix-base: #FFFFFF;
  --accent: var(--flame);
  --accent-light: #FFF1EE;

  /* Fixed tokens — do not change with theme (used for permanently-dark accent blocks) */
  --ink-fixed: #17141A;
  --canvas-fixed: #FAF6EF;

  --font-display: 'Bricolage Grotesque', 'Inter', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'Space Mono', monospace;

  --radius: 20px;
  --radius-sm: 12px;
  --container: 1240px;
  --nav-bg: rgba(250, 246, 239, 0.82);

  color-scheme: light;
}

html[data-theme="dark"] {
  --canvas: #15121D;
  --canvas-alt: #1E1929;
  --ink: #F5F1FA;
  --ink-soft: #B5AEC6;
  --line: rgba(255, 255, 255, 0.14);
  --surface: #241F30;
  --mix-base: #1B1726;
  --accent-light: color-mix(in srgb, var(--flame) 20%, #1B1726);
  --nav-bg: rgba(21, 18, 29, 0.82);
  color-scheme: dark;
}

html[data-theme="dark"] body { background: var(--canvas); }

html {
  transition: background-color .35s ease;
}
body, .site-nav, .modal, .featured-card, .project-card, .reco-card,
.ugc-skill-card, .ugc-example-card, .media-item, .chip, .filter-btn {
  transition: background-color .3s ease, border-color .3s ease, color .3s ease;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, video { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

::selection { background: var(--flame); color: var(--white); }

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

:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
}

/* ---------- Typography helpers ---------- */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.eyebrow::before {
  content: '';
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent);
  display: inline-block;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  margin: 0;
  letter-spacing: -0.01em;
}

/* ============================================
   NAV
   ============================================ */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  background: var(--nav-bg);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease;
}
.site-nav.scrolled { border-bottom-color: var(--line); }

.site-nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  max-width: 1600px;
}

.brand-mark {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 19px;
  letter-spacing: -0.01em;
  display: flex;
  align-items: baseline;
  gap: 2px;
  white-space: nowrap;
  flex-shrink: 0;
}
.brand-mark span { color: var(--accent); transition: color .4s ease; }

.nav-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.theme-toggle {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1.5px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: background .2s ease, border-color .2s ease, color .2s ease, transform .2s ease;
}
.theme-toggle:hover { border-color: var(--ink); transform: rotate(-8deg); }
.theme-icon-moon { display: none; }
html[data-theme="dark"] .theme-icon-sun { display: none; }
html[data-theme="dark"] .theme-icon-moon { display: block; color: var(--zest); }

.lang-switcher {
  display: flex;
  gap: 2px;
  background: var(--surface);
  border: 1.5px solid var(--line);
  border-radius: 100px;
  padding: 3px;
  flex-shrink: 0;
}
.lang-btn {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.03em;
  padding: 6px 11px;
  border-radius: 100px;
  border: none;
  background: transparent;
  color: var(--ink-soft);
  cursor: pointer;
  white-space: nowrap;
  transition: background .2s ease, color .2s ease;
}
.lang-btn:hover { color: var(--ink); }
.lang-btn.active { background: var(--ink); color: var(--canvas); }

.nav-links {
  display: flex;
  gap: 2px;
  list-style: none;
  margin: 0; padding: 0;
  align-items: center;
  flex-shrink: 0;
}
.nav-links a {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 8px 12px;
  border-radius: 100px;
  white-space: nowrap;
  transition: background .25s ease, color .25s ease;
}
.nav-links a:hover { background: var(--ink); color: var(--canvas); }
.nav-links .nav-cta {
  background: var(--ink);
  color: var(--canvas);
}
.nav-links .nav-cta:hover { background: var(--accent); color: var(--white); }
.nav-links .nav-cv {
  border: 1.5px solid var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.nav-links .nav-cv:hover { background: var(--ink); color: var(--canvas); }

.nav-toggle {
  display: none;
  background: none; border: none; cursor: pointer;
  width: 40px; height: 40px;
  align-items: center; justify-content: center;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: ''; display: block; width: 20px; height: 2px; background: var(--ink);
  position: relative; transition: transform .25s ease, opacity .25s ease;
}
.nav-toggle span::before { position: absolute; top: -6px; }
.nav-toggle span::after { position: absolute; top: 6px; }

/* ============================================
   HERO
   ============================================ */
.hero {
  position: relative;
  padding: 168px 0 96px;
  overflow: hidden;
}

.hero-blobs { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.45;
  animation: float 16s ease-in-out infinite;
}
.blob-1 { width: 420px; height: 420px; background: var(--flame); top: -140px; right: -80px; animation-delay: 0s; }
.blob-2 { width: 320px; height: 320px; background: var(--zest); bottom: -100px; left: -60px; animation-delay: -5s; }
.blob-3 { width: 260px; height: 260px; background: var(--grape); top: 40%; right: 18%; opacity: 0.28; animation-delay: -9s; }

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -20px) scale(1.06); }
  66% { transform: translate(-20px, 25px) scale(0.96); }
}

.hero-inner { position: relative; z-index: 1; }

.hero-eyebrow { margin-bottom: 28px; }

.hero h1 {
  font-size: clamp(42px, 7vw, 92px);
  line-height: 0.98;
  margin-bottom: 24px;
}
.hero h1 em {
  font-style: normal;
  color: var(--accent);
  position: relative;
}

.hero-sub {
  font-size: clamp(17px, 2vw, 21px);
  color: var(--ink-soft);
  max-width: 560px;
  margin-bottom: 28px;
}

.hero-trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  border-radius: 100px;
  background: var(--surface);
  border: 1px solid var(--line);
  margin-bottom: 32px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--ink);
  transition: border-color .2s ease, transform .2s ease;
}
.hero-trust-badge:hover { border-color: var(--grape); transform: translateY(-1px); }
.hero-trust-stars { color: #F5A623; letter-spacing: 1px; font-size: 13px; }

.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 72px; }

.btn {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 15px 26px;
  border-radius: 100px;
  border: 1.5px solid var(--ink);
  cursor: pointer;
  transition: transform .2s ease, background .2s ease, color .2s ease, box-shadow .2s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.btn-primary { background: var(--ink); color: var(--canvas); }
.btn-primary:hover { background: var(--accent); border-color: var(--accent); color: var(--white); transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--canvas); transform: translateY(-2px); }

/* Marquee — the signature element: a chameleon strip of every discipline she moves through */
.marquee-band {
  border-top: 1.5px solid var(--ink);
  border-bottom: 1.5px solid var(--ink);
  overflow: hidden;
  background: var(--ink);
}
.marquee-track {
  display: flex;
  width: max-content;
  animation: scroll-marquee 32s linear infinite;
}
@keyframes scroll-marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.marquee-track span {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(24px, 4vw, 44px);
  color: var(--canvas);
  padding: 18px 28px;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 24px;
}
.marquee-track span::after {
  content: '●';
  font-size: 14px;
  color: var(--flame);
}
.marquee-track span:nth-child(4n+2)::after { color: var(--zest); }
.marquee-track span:nth-child(4n+3)::after { color: var(--grape); }

/* ============================================
   TRUSTED BY (brand marquee)
   ============================================ */
.trusted-section {
  padding: 56px 0 64px;
}
.trusted-title {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
  text-align: center;
  margin: 0 0 32px;
}
.trusted-marquee {
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
}
.trusted-track {
  display: flex;
  width: max-content;
  animation: scroll-marquee 46s linear infinite;
}
.trusted-track span {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(17px, 2vw, 22px);
  color: var(--ink-soft);
  opacity: 0.55;
  padding: 0 32px;
  white-space: nowrap;
  transition: color .25s ease, opacity .25s ease;
  cursor: default;
}
.trusted-track span:hover { color: var(--flame); opacity: 1; }

/* ============================================
   SECTION generic
   ============================================ */
.section { padding: 96px 0; position: relative; overflow: hidden; }
.section .wrap { position: relative; z-index: 1; }
.section::before {
  content: '';
  position: absolute;
  width: 340px; height: 340px;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.16;
  z-index: 0;
  pointer-events: none;
}
#about::before { background: var(--grape); top: -80px; left: -100px; }
#featured::before { background: var(--zest); top: 20%; right: -120px; }
#work::before { background: var(--flame); bottom: -100px; left: 40%; }
#ugc::before { background: var(--zest); top: 0; right: -100px; }
#recommendations::before { background: var(--grape); top: 10%; left: -120px; }
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}
.section-head h2 {
  font-size: clamp(32px, 4.5vw, 52px);
  line-height: 1.02;
}
.section-lede {
  max-width: 460px;
  color: var(--ink-soft);
  font-size: 16px;
}

/* ---------- UGC ---------- */
.ugc-subhead {
  font-family: var(--font-display);
  font-size: 22px;
  margin: 0 0 24px;
}
.ugc-examples-head {
  margin-top: 56px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.ugc-examples-head .ugc-subhead { margin-bottom: 0; }
.ugc-examples-lede { color: var(--ink-soft); font-size: 15px; max-width: 440px; }

.ugc-skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}
.ugc-skill-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 26px;
}
.ugc-skill-icon {
  font-size: 20px; display: flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 12px;
  margin-bottom: 16px;
}
.ugc-skill-icon-0 { background: color-mix(in srgb, var(--flame) 16%, var(--mix-base)); }
.ugc-skill-icon-1 { background: color-mix(in srgb, var(--zest) 22%, var(--mix-base)); }
.ugc-skill-icon-2 { background: color-mix(in srgb, var(--grape) 16%, var(--mix-base)); }
.ugc-skill-card h4 { font-family: var(--font-display); font-size: 16.5px; margin-bottom: 8px; }
.ugc-skill-card p { font-size: 13.5px; color: var(--ink-soft); line-height: 1.55; }

.ugc-examples-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}
.ugc-example-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.ugc-video-wrap { aspect-ratio: 9/16; background: #000; }
.ugc-video-wrap video { width: 100%; height: 100%; object-fit: cover; display: block; }
.ugc-example-body { padding: 20px; display: flex; flex-direction: column; gap: 4px; }
.ugc-example-brand { font-family: var(--font-display); font-weight: 700; font-size: 15.5px; }
.ugc-example-niche {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.03em;
  color: color-mix(in srgb, var(--zest) 55%, var(--ink) 45%);
  text-transform: uppercase;
}
.ugc-example-caption { font-size: 13px; color: var(--ink-soft); line-height: 1.5; margin-top: 6px; }

.ugc-example-card.ugc-coming-soon {
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 28px;
  background: var(--canvas-alt);
  border-style: dashed;
  min-height: 300px;
}
.ugc-coming-icon { font-size: 28px; margin-bottom: 12px; }
.ugc-coming-soon h4 { font-family: var(--font-display); font-size: 16px; margin-bottom: 8px; }
.ugc-coming-soon p { font-size: 13px; color: var(--ink-soft); line-height: 1.55; max-width: 260px; }

@media (max-width: 640px) {
  .ugc-examples-grid { grid-template-columns: 1fr; }
}

/* ---------- RECOMMENDATIONS ---------- */
.reco-carousel {
  position: relative;
}
.reco-track {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding-bottom: 6px;
  margin-bottom: 8px;
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.reco-track::-webkit-scrollbar { display: none; }
.reco-card {
  flex: 0 0 auto;
  width: min(420px, 84vw);
  scroll-snap-align: start;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
  display: flex;
  flex-direction: column;
}
.reco-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1.5px solid var(--ink);
  background: var(--canvas);
  color: var(--ink);
  cursor: pointer;
  transition: background .2s ease, color .2s ease, opacity .2s ease;
  z-index: 2;
}
.reco-nav:hover { background: var(--ink); color: var(--canvas); }
.reco-nav.prev { left: -22px; }
.reco-nav.next { right: -22px; }
.reco-nav[disabled] { opacity: 0.3; cursor: default; pointer-events: none; }
.reco-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
}
.reco-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--line);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background .2s ease, transform .2s ease;
}
.reco-dot.active { background: var(--grape); transform: scale(1.3); }
.reco-quote-icon { color: var(--grape); opacity: 0.35; margin-bottom: 12px; }
.reco-text {
  font-family: var(--font-display);
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink);
  display: -webkit-box;
  -webkit-line-clamp: 6;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 4px;
}
.reco-text.expanded { display: block; -webkit-line-clamp: unset; overflow: visible; }
.reco-text br + br { content: ""; display: block; margin-top: 10px; }
.reco-toggle {
  align-self: flex-start;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.02em;
  color: var(--grape);
  text-decoration: underline;
  text-underline-offset: 3px;
  margin: 10px 0 24px;
  transition: opacity .2s ease;
}
.reco-toggle:hover { opacity: 0.7; }
.reco-footer {
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  flex-wrap: wrap;
}
.reco-person { display: flex; flex-direction: column; gap: 3px; }
.reco-name { font-family: var(--font-display); font-weight: 700; font-size: 15.5px; }
.reco-role { font-size: 13px; color: var(--ink-soft); }
.reco-context { font-size: 12px; color: var(--ink-soft); opacity: 0.75; }
.reco-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.reco-date { font-family: var(--font-mono); font-size: 11px; color: var(--ink-soft); opacity: 0.8; }
.reco-pdf-link {
  font-family: var(--font-mono);
  font-size: 11.5px;
  padding: 7px 14px;
  border-radius: 100px;
  border: 1.5px solid var(--ink);
  transition: background .2s ease, color .2s ease;
  white-space: nowrap;
}
.reco-pdf-link:hover { background: var(--ink); color: var(--canvas); }

@media (max-width: 640px) {
  .reco-card { padding: 24px; width: 88vw; }
  .reco-footer { flex-direction: column; align-items: flex-start; }
  .reco-meta { align-items: flex-start; }
  .reco-nav { display: none; }
}

html[dir="rtl"] .reco-nav svg { transform: scaleX(-1); }

/* ============================================
   ABOUT
   ============================================ */
.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 64px;
  align-items: start;
}
.about-bio {
  position: sticky;
  top: 96px;
  align-self: start;
}
.about-bio p {
  font-size: clamp(19px, 2.4vw, 26px);
  line-height: 1.45;
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--ink);
  margin: 0 0 28px;
}

.quick-facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px 28px;
  margin-top: 44px;
  padding-top: 36px;
  border-top: 1.5px dashed var(--line);
}
.qf-item { display: flex; flex-direction: column; gap: 4px; }
.qf-value {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(28px, 3.4vw, 38px);
  line-height: 1;
  background: linear-gradient(135deg, var(--flame), var(--grape));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.qf-label {
  font-size: 13px;
  color: var(--ink-soft);
  max-width: 180px;
  line-height: 1.35;
}

.passions-block { margin-top: 36px; }
.passions-block h4 {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 0 0 14px;
  font-weight: 700;
}
.passions-list { display: flex; flex-direction: column; gap: 10px; }
.passion-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink);
}
.passion-icon {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--canvas-alt);
  display: flex; align-items: center; justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}
.passion-icon-0 { background: color-mix(in srgb, var(--flame) 15%, var(--mix-base)); }
.passion-icon-1 { background: color-mix(in srgb, var(--zest) 22%, var(--mix-base)); }
.passion-icon-2 { background: color-mix(in srgb, var(--grape) 15%, var(--mix-base)); }

@media (max-width: 860px) {
  .about-bio { position: static; }
}

.about-side { display: flex; flex-direction: column; gap: 32px; }
.chip-group h4 {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 14px;
  font-weight: 700;
}
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  font-size: 13.5px;
  padding: 7px 14px;
  border-radius: 100px;
  border: 1.5px solid var(--line);
  background: var(--surface);
  transition: border-color .2s ease, transform .2s ease;
}
.chips:not(.chips-accent) .chip:nth-child(6n+1):hover { border-color: var(--flame); transform: translateY(-1px); }
.chips:not(.chips-accent) .chip:nth-child(6n+2):hover { border-color: var(--zest); transform: translateY(-1px); }
.chips:not(.chips-accent) .chip:nth-child(6n+3):hover { border-color: var(--grape); transform: translateY(-1px); }
.chips:not(.chips-accent) .chip:nth-child(6n+4):hover { border-color: #17A398; transform: translateY(-1px); }
.chips:not(.chips-accent) .chip:nth-child(6n+5):hover { border-color: #9A1A35; transform: translateY(-1px); }
.chips:not(.chips-accent) .chip:nth-child(6n+6):hover { border-color: #C68958; transform: translateY(-1px); }
.lang-list { display: flex; flex-direction: column; gap: 10px; }
.lang-row {
  display: flex; justify-content: space-between; align-items: baseline;
  padding-bottom: 10px; border-bottom: 1px solid var(--line);
  font-size: 14.5px;
}
.lang-row .lname { font-weight: 600; }
.lang-row .llevel { font-family: var(--font-mono); font-size: 12px; color: var(--ink-soft); text-align: right; }

.seeking-group { padding: 20px; background: var(--accent-light); border-radius: var(--radius-sm); border: 1.5px solid var(--flame); }
.seeking-row { margin-bottom: 14px; }
.seeking-row:last-child { margin-bottom: 0; }
.seeking-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 6px;
}
.chips-accent .chip { border-color: var(--flame); background: var(--surface); }
.chip-highlight {
  background: var(--flame) !important;
  color: var(--white) !important;
  border-color: var(--flame) !important;
  font-weight: 700;
}

.versatility-group { border-left: 4px solid var(--zest); padding-left: 16px; }
.versatility-tagline {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15.5px;
  margin: 0 0 8px;
}
.versatility-note {
  font-size: 13.5px;
  color: var(--ink-soft);
  line-height: 1.55;
  margin: 0;
}
.edu-note {
  font-size: 11px;
  color: var(--ink-soft);
  font-style: italic;
  font-weight: 400;
}

/* ============================================
   FEATURED CASE STUDIES
   ============================================ */
.featured-list { display: flex; flex-direction: column; gap: 20px; }

.featured-card {
  --fc: var(--flame);
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 0;
  background: var(--surface);
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  transition: border-color .25s ease, transform .25s ease, box-shadow .25s ease;
}
.featured-card:hover {
  border-color: var(--fc);
  transform: translateY(-4px);
  box-shadow: 0 20px 40px -20px rgba(0,0,0,0.18);
}
.featured-card .fc-media {
  position: relative;
  min-height: 260px;
  background: var(--canvas-alt);
}
.featured-card .fc-media img { width: 100%; height: 100%; object-fit: cover; }
.featured-card .fc-body {
  padding: 32px 36px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
}
.fc-swatch {
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--fc);
  flex-shrink: 0;
  border: 3px solid var(--surface);
  box-shadow: 0 0 0 1.5px var(--fc);
}
.fc-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 4px; }
.fc-tag {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 100px;
  color: var(--fc);
  background: var(--fc);
  background: color-mix(in srgb, var(--fc) 12%, var(--mix-base));
}
.featured-card h3 { font-size: clamp(22px, 2.6vw, 30px); }
.featured-card .fc-subtitle { font-size: 13.5px; color: var(--ink-soft); font-weight: 600; }
.featured-card .fc-desc {
  font-size: 14.5px; color: var(--ink-soft); line-height: 1.55;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
  max-width: 620px;
}
.fc-more {
  font-family: var(--font-mono);
  font-size: 12px; letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--fc); display: inline-flex; align-items: center; gap: 6px; margin-top: 4px;
}
.fc-more svg { transition: transform .2s ease; }
.featured-card:hover .fc-more svg { transform: translateX(4px); }

.fc-stats {
  display: flex; flex-wrap: wrap; gap: 6px 16px;
  margin: 2px 0 4px;
}
.fc-stat {
  font-size: 12.5px;
  color: var(--ink-soft);
}
.fc-stat b {
  font-family: var(--font-display);
  font-size: 16px;
  color: var(--fc);
  margin-inline-end: 4px;
}

@media (max-width: 780px) {
  .featured-card { grid-template-columns: 1fr; }
  .featured-card .fc-media { min-height: 200px; }
}

/* ============================================
   PROJECT GRID + FILTERS
   ============================================ */
.filters {
  display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 40px;
}
.filter-btn {
  font-family: var(--font-mono);
  font-size: 12px; letter-spacing: 0.04em; text-transform: uppercase;
  padding: 9px 16px; border-radius: 100px;
  border: 1.5px solid var(--line);
  background: var(--surface);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  transition: all .2s ease;
}
.filter-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--fbc, var(--accent)); flex-shrink: 0; }
.filter-btn:hover { border-color: var(--fbc, var(--ink)); }
.filter-btn.active { background: var(--ink); color: var(--canvas); border-color: var(--ink); }
.filter-btn.active .filter-dot { background: var(--canvas); }

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 980px) { .project-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .project-grid { grid-template-columns: 1fr; } }

.project-card {
  --pc: var(--flame);
  background: var(--surface);
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  transition: border-color .25s ease, transform .25s ease, box-shadow .25s ease;
  display: flex;
  flex-direction: column;
}
.project-card:hover {
  border-color: var(--pc);
  transform: translateY(-4px);
  box-shadow: 0 18px 34px -18px rgba(0,0,0,0.18);
}
.pc-media {
  aspect-ratio: 4/3;
  background: var(--pc);
  background: color-mix(in srgb, var(--pc) 14%, var(--mix-base));
  position: relative;
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.pc-media img { width: 100%; height: 100%; object-fit: cover; }
.pc-media .pc-noimg {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 15px;
  color: var(--pc);
  text-align: center;
  padding: 24px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  position: relative;
  z-index: 1;
}
.pc-media {
  background-image: repeating-linear-gradient(135deg, color-mix(in srgb, var(--pc) 10%, var(--mix-base)) 0px, color-mix(in srgb, var(--pc) 10%, var(--mix-base)) 14px, color-mix(in srgb, var(--pc) 20%, var(--mix-base)) 14px, color-mix(in srgb, var(--pc) 20%, var(--mix-base)) 28px);
}
.pc-media .pc-video-badge {
  position: absolute; top: 12px; right: 12px;
  width: 34px; height: 34px; border-radius: 50%;
  background: rgba(23,20,26,0.72);
  display: flex; align-items: center; justify-content: center;
}
.pc-body { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.pc-top { display: flex; align-items: center; gap: 8px; }
.pc-swatch { width: 12px; height: 12px; border-radius: 50%; background: var(--pc); flex-shrink: 0; }
.pc-tag { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-soft); }
.project-card h3 { font-size: 19px; line-height: 1.15; }
.pc-subtitle { font-size: 13px; color: var(--ink-soft); }

/* ============================================
   MODAL
   ============================================ */
.modal-overlay {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(23, 20, 26, 0.7);
  backdrop-filter: blur(4px);
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding: 40px 20px;
  overflow-y: auto;
}
.modal-overlay.open { display: flex; }

.modal {
  background: var(--canvas);
  border-radius: 24px;
  max-width: 880px;
  width: 100%;
  margin-top: 20px;
  position: relative;
  animation: modal-in .3s cubic-bezier(.2,.8,.2,1);
}
@keyframes modal-in {
  from { opacity: 0; transform: translateY(24px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.modal-close {
  position: sticky;
  top: 20px;
  float: right;
  margin: 20px 20px 0 0;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--ink); color: var(--canvas);
  border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  z-index: 5;
  transition: background .2s ease, transform .2s ease;
}
.modal-close:hover { background: var(--flame); transform: rotate(90deg); }

.modal-header {
  padding: 48px 48px 32px;
}
.modal-eyebrow { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; }
.modal-swatch { width: 20px; height: 20px; border-radius: 50%; }
.modal-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.modal-tag {
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 100px;
  color: var(--mtc, var(--ink));
  background: color-mix(in srgb, var(--mtc, var(--ink)) 12%, var(--mix-base));
  border: 1px solid color-mix(in srgb, var(--mtc, var(--ink)) 30%, transparent);
}
.modal h2 { font-size: clamp(28px, 4vw, 42px); margin-bottom: 8px; }
.modal-subtitle { font-size: 14.5px; color: var(--ink-soft); font-weight: 600; margin-bottom: 20px; }
.modal-desc { font-size: 16px; line-height: 1.6; color: var(--ink); max-width: 640px; }
.modal-cta-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  padding: 10px 20px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.02em;
  border-radius: 100px;
  border: 1.5px solid var(--ink);
  color: var(--ink);
  transition: background .2s ease, color .2s ease;
}
.modal-cta-link:hover { background: var(--ink); color: var(--canvas); }

.stat-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1.5px dashed var(--line);
}
.stat-item { display: flex; flex-direction: column; gap: 2px; }
.stat-value {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(22px, 3vw, 30px);
  color: var(--sc);
  line-height: 1;
}
.stat-label {
  font-size: 12px;
  color: var(--ink-soft);
  max-width: 130px;
}

.modal-body { padding: 0 48px 56px; display: flex; flex-direction: column; gap: 40px; }

.sub-block h4 {
  font-family: var(--font-display); font-size: 19px; margin-bottom: 8px;
}
.sub-block .sub-text { font-size: 14.5px; color: var(--ink-soft); line-height: 1.6; margin-bottom: 16px; max-width: 600px; }

.sub-links { margin-bottom: 16px; }
.sub-link-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  padding: 10px 18px;
  border-radius: 100px;
  background: #1DB954;
  color: white;
  font-weight: 600;
  transition: transform .2s ease, box-shadow .2s ease;
}
.sub-link-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 16px -6px rgba(29,185,84,0.5); }

.media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
}
.media-grid.single { grid-template-columns: 1fr; }
.media-item {
  border-radius: 14px;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
}
.media-item img, .media-item video { width: 100%; height: 100%; object-fit: cover; display: block; }
.media-item.tall { aspect-ratio: 3/4; }
.media-item video { aspect-ratio: 9/16; background: #000; }
.media-item .vid-label {
  font-family: var(--font-mono); font-size: 11px; padding: 8px 12px; color: var(--ink-soft);
}

.ig-wrap { min-height: 200px; display: flex; align-items: center; justify-content: center; background: var(--surface); border-radius: 14px; overflow: hidden; }
.ig-wrap iframe { width: 100% !important; }
.ig-fallback {
  min-height: 200px;
  display: flex; align-items: center; justify-content: center;
  padding: 24px; text-align: center;
  background: var(--canvas-alt);
  border-radius: 14px;
}
.ig-fallback a {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.03em;
  padding: 12px 20px;
  border-radius: 100px;
  border: 1.5px solid var(--ink);
  transition: background .2s ease, color .2s ease;
}
.ig-fallback a:hover { background: var(--ink); color: var(--canvas); }

/* Instagram fallback card — lightweight & reliable, used for grids of many posts */
.ig-card {
  aspect-ratio: 3/4;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  text-decoration: none;
  color: var(--ink);
  background: linear-gradient(155deg, color-mix(in srgb, var(--mc, var(--flame)) 16%, var(--mix-base)), color-mix(in srgb, var(--mc, var(--flame)) 6%, var(--mix-base)));
  transition: transform .2s ease, background .2s ease;
  padding: 20px;
  text-align: center;
}
.ig-card:hover { transform: scale(1.02); }
.ig-card .ig-icon {
  width: 46px; height: 46px; border-radius: 14px;
  background: var(--mc, var(--flame));
  display: flex; align-items: center; justify-content: center;
  color: white;
}
.ig-card .ig-label {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.03em;
  line-height: 1.4;
}
.ig-card .ig-cta {
  font-family: var(--font-mono);
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--mc, var(--flame));
  font-weight: 700;
}

/* ---------- CAROUSEL ---------- */
.carousel {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
}
.carousel-track {
  display: flex;
  transition: transform .45s cubic-bezier(.65,0,.35,1);
}
.carousel-track .media-item.carousel-slide {
  flex: 0 0 100%;
  width: 100%;
  border-radius: 0;
  border: none;
  aspect-ratio: 4/5;
}
.carousel-track .media-item.carousel-slide img,
.carousel-track .media-item.carousel-slide video { height: 100%; }
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.9);
  color: var(--ink);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 16px -4px rgba(0,0,0,0.25);
  transition: background .2s ease, transform .2s ease;
  z-index: 2;
}
.carousel-btn:hover { background: var(--ink); color: var(--canvas); transform: translateY(-50%) scale(1.06); }
.carousel-btn.prev { left: 14px; }
.carousel-btn.next { right: 14px; }
.carousel-dots {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 2;
}
.carousel-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.55);
  border: 1px solid rgba(0,0,0,0.15);
  transition: background .2s ease, transform .2s ease;
}
.carousel-dot.active { background: var(--canvas); transform: scale(1.25); }

@media (max-width: 640px) {
  .modal-header, .modal-body { padding-left: 24px; padding-right: 24px; }
  .carousel-track .media-item.carousel-slide { aspect-ratio: 3/4; }
  .carousel-btn { width: 34px; height: 34px; }
}

/* ============================================
   CONTACT
   ============================================ */
.contact-section {
  background: var(--ink-fixed);
  color: var(--canvas-fixed);
  border-radius: 32px;
  margin: 0 20px;
  padding: 80px 56px;
  position: relative;
  overflow: hidden;
}
.contact-section::before {
  content: '';
  position: absolute; width: 500px; height: 500px; border-radius: 50%;
  background: var(--flame); opacity: 0.35; filter: blur(80px);
  top: -200px; right: -100px;
}
.contact-inner { position: relative; z-index: 1; }
.contact-section h2 { font-size: clamp(34px, 6vw, 64px); color: var(--canvas-fixed); margin-bottom: 20px; max-width: 700px; }
.contact-section .section-lede { color: rgba(250,246,239,0.65); max-width: 500px; margin-bottom: 44px; }

.contact-links { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 56px; }
.contact-links a {
  font-family: var(--font-mono); font-size: 13.5px;
  padding: 14px 22px; border-radius: 100px;
  border: 1.5px solid rgba(250,246,239,0.3);
  display: inline-flex; align-items: center; gap: 8px;
  transition: all .2s ease;
}
.contact-links a:hover { background: var(--canvas-fixed); color: var(--ink-fixed); border-color: var(--canvas-fixed); }
.contact-links a.cv-link { background: var(--flame); border-color: var(--flame); color: #FFFFFF; font-weight: 600; }
.contact-links a.cv-link:hover { background: #FFFFFF; color: var(--flame); }

.contact-footer {
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 12px;
  padding-top: 28px;
  border-top: 1px solid rgba(250,246,239,0.18);
  font-family: var(--font-mono); font-size: 12px; color: rgba(250,246,239,0.5);
}

/* ============================================
   RESPONSIVE NAV
   ============================================ */
@media (max-width: 1300px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: fixed; top: 72px; left: 0; right: 0;
    background: var(--canvas);
    flex-direction: column;
    align-items: stretch;
    padding: 16px 24px 28px;
    border-bottom: 1px solid var(--line);
    display: none;
    gap: 4px;
  }
  .nav-links.open { display: flex; }
  .nav-links a { text-align: center; padding: 14px; }
}

@media (max-width: 860px) {
  .about-grid { grid-template-columns: 1fr; gap: 48px; }
  .contact-section { padding: 56px 28px; margin: 0 12px; }
}

@media (max-width: 480px) {
  .wrap { padding: 0 20px; }
  .hero { padding-top: 140px; }
  .hero-ctas .btn { flex: 1; justify-content: center; }
}

/* footer credit tiny link visibility fix */
.skip-link { position: absolute; left: -9999px; }

/* ============================================
   RTL SUPPORT (Arabic)
   ============================================ */
html[dir="rtl"] {
  --font-display: 'Tajawal', 'Inter', sans-serif;
  --font-body: 'Tajawal', 'Inter', sans-serif;
  --font-mono: 'Tajawal', 'Inter', sans-serif;
}
html[dir="rtl"] .eyebrow::before { margin-inline-end: 0; }
html[dir="rtl"] .marquee-track { animation-direction: reverse; }
html[dir="rtl"] .modal-close { float: left; margin: 20px 0 0 20px; }
html[dir="rtl"] .arrow-icon svg,
html[dir="rtl"] .fc-more svg { transform: scaleX(-1); }
html[dir="rtl"] .featured-card:hover .fc-more svg { transform: scaleX(-1) translateX(4px); }
html[dir="rtl"] .lang-row { direction: rtl; }
html[dir="rtl"] .contact-section::before { right: auto; left: -100px; }
html[dir="rtl"] blockquote.instagram-media { direction: ltr; }

/* ============================================
   IMAGE LIGHTBOX
   ============================================ */
.media-item img { cursor: zoom-in; }
.lightbox-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(10, 10, 12, 0.94);
  align-items: center;
  justify-content: center;
  padding: 40px;
  backdrop-filter: blur(4px);
}
.lightbox-overlay.open { display: flex; animation: lightbox-fade .2s ease; }
@keyframes lightbox-fade { from { opacity: 0; } to { opacity: 1; } }
.lightbox-overlay img {
  max-width: 90vw;
  max-height: 88vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
  animation: lightbox-zoom .22s cubic-bezier(.2,.8,.2,1);
}
@keyframes lightbox-zoom { from { transform: scale(.96); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.lightbox-close, .lightbox-nav {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.12);
  color: #fff;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  transition: background .15s ease, transform .15s ease;
}
.lightbox-close:hover, .lightbox-nav:hover { background: rgba(255,255,255,0.24); }
.lightbox-close {
  top: 20px;
  right: 20px;
  width: 44px;
  height: 44px;
}
.lightbox-nav {
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
}
.lightbox-nav:hover { transform: translateY(-50%) scale(1.06); }
.lightbox-nav.prev { left: 20px; }
.lightbox-nav.next { right: 20px; }
.lightbox-nav[hidden] { display: none; }

@media (max-width: 640px) {
  .lightbox-overlay { padding: 16px; }
  .lightbox-close { top: 12px; right: 12px; width: 38px; height: 38px; }
  .lightbox-nav { width: 42px; height: 42px; }
  .lightbox-nav.prev { left: 8px; }
  .lightbox-nav.next { right: 8px; }
}

html[dir="rtl"] .lightbox-nav svg { transform: scaleX(-1); }
