/* YMS Studio — v4 */
:root {
  --bg-primary: #000000;
  --bg-secondary: #0A0A0A;
  --border: #1A1A1A;
  --text-primary: #FFFFFF;
  --text-secondary: #B8B8B8;
  --text-muted: #666666;
  --text-faint: #444444;
  --accent-lime: #CFFF04;
  --accent-violet: #7C2BE3;
  /* removed legacy indigo */
  --ease-out-expo: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out-quart: cubic-bezier(0.76, 0, 0.24, 1);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
section[id] { scroll-margin-top: 24px; }
@media (hover: none) { section[id] { scroll-margin-top: 0; } }
html, body {
  margin: 0; padding: 0;
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: 'Space Grotesk', 'Inter Tight', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
img { display: block; max-width: 100%; }
::selection { background: var(--accent-violet); color: #fff; }

.mono {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.18em; color: var(--text-muted);
}
.display { font-family: 'Space Grotesk', sans-serif; font-weight: 500; letter-spacing: -0.04em; }
.display-italic { font-family: 'Inter Tight', sans-serif; font-weight: 300; font-style: italic; letter-spacing: -0.035em; }

:focus-visible { outline: 2px solid var(--accent-lime); outline-offset: 3px; }
button, a { -webkit-tap-highlight-color: transparent; }

/* ============== Footer v2 — NURUI-style massive ghost wordmark ============== */
.ft2 {
  position: relative;
  background: #000;
  color: #fff;
  padding: 96px 0 0;
  overflow: hidden;
  border-top: 1px solid rgba(255,255,255,0.08);
  margin-top: 80px;
}
.ft2-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 56px;
  position: relative;
  z-index: 2;
}
@media (max-width: 767px) {
  .ft2 { padding: 64px 0 0; margin-top: 48px; }
  .ft2-inner { padding: 0 24px; }
}

/* Top section: brand + nav columns */
.ft2-top {
  display: grid;
  grid-template-columns: 1.3fr 1.7fr;
  gap: 56px;
  padding-bottom: 80px;
}
@media (max-width: 900px) {
  .ft2-top { grid-template-columns: 1fr; gap: 56px; padding-bottom: 56px; }
}

/* Brand column (left) */
.ft2-brand {
  display: flex;
  flex-direction: column;
  gap: 24px;
  max-width: 420px;
}
.ft2-logo {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: #fff;
}
.ft2-logo img {
  height: 44px;
  width: auto;
  display: block;
}
.ft2-logo-name {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 500;
  font-size: 24px;
  letter-spacing: -0.02em;
  color: #fff;
}
.ft2-tagline {
  font-family: 'Inter Tight', sans-serif;
  font-size: 15px;
  line-height: 1.6;
  color: rgba(255,255,255,0.55);
  margin: 0;
}
.ft2-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 22px;
  background: var(--accent-lime, #CFFF04);
  color: #000;
  text-decoration: none;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
  border-radius: 4px;
  align-self: flex-start;
  transition: background 200ms ease, transform 120ms ease;
}
.ft2-cta:hover { background: #fff; transform: translateY(-1px); }
.ft2-cta:active { transform: translateY(0); }
.ft2-status {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
}
.ft2-status-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent-lime, #CFFF04);
  box-shadow: 0 0 10px var(--accent-lime, #CFFF04);
  animation: ft2pulse 1.8s ease-in-out infinite;
}
@keyframes ft2pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

/* Nav columns (right) */
.ft2-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
}
@media (max-width: 600px) {
  .ft2-cols { grid-template-columns: 1fr 1fr; gap: 40px 32px; }
}
.ft2-col-title {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin: 0 0 18px;
}
.ft2-col-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 13px;
}
.ft2-col-list a {
  font-family: 'Inter Tight', sans-serif;
  font-size: 15px;
  color: rgba(255,255,255,0.78);
  text-decoration: none;
  transition: color 200ms ease, transform 200ms ease;
  display: inline-block;
}
.ft2-col-list a:hover {
  color: var(--accent-lime, #CFFF04);
  transform: translateX(3px);
}

/* Massive ghost wordmark with mouse-tracking spotlight reveal */
.ft2-wordmark-row {
  position: relative;
  width: 100%;
  padding: 40px 0 24px;
  overflow: hidden;
  border-top: 1px solid rgba(255,255,255,0.08);
  margin-top: 0;
  /* Mouse position vars (set via JS) — default to top-center for the idle drift */
  --mx: 50%;
  --my: 50%;
  cursor: default;
}
/* Outline layer (always visible) */
.ft2-wordmark {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 500;
  font-size: clamp(80px, 19vw, 300px);
  line-height: 0.85;
  letter-spacing: -0.045em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255,255,255,0.22);
  text-stroke: 1px rgba(255,255,255,0.22);
  white-space: nowrap;
  text-align: center;
  margin: 0;
  user-select: none;
  pointer-events: none;
  display: block;
  position: relative;
  z-index: 1;
}
.ft2-wordmark sup {
  font-size: 0.3em;
  vertical-align: super;
  -webkit-text-stroke-width: 0.8px;
}
/* Fill layer (revealed only where the spotlight gradient is visible) */
.ft2-wordmark-row::after {
  content: 'YMS STUDIO\00AE';   /* ® via unicode */
  position: absolute;
  inset: 0;
  padding: 40px 0 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 500;
  font-size: clamp(80px, 19vw, 300px);
  line-height: 0.85;
  letter-spacing: -0.045em;
  white-space: nowrap;
  margin: 0;
  pointer-events: none;
  z-index: 2;
  background: radial-gradient(
    circle 440px at var(--mx) var(--my),
    var(--accent-lime, #CFFF04) 0%,
    rgba(207,255,4,0.7) 14%,
    rgba(124,43,227,0.45) 32%,
    transparent 60%
  );
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  transition: opacity 600ms ease;
}
@media (prefers-reduced-motion: reduce) {
  .ft2-wordmark-row::after { display: none; }
}

/* Bottom row: copyright + legal + social */
.ft2-bottom {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 32px;
  padding: 24px 56px;
  border-top: 1px solid rgba(255,255,255,0.08);
  max-width: 1400px;
  margin: 0 auto;
}
@media (max-width: 767px) {
  .ft2-bottom {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 24px 24px;
    text-align: center;
    justify-items: center;
  }
}
.ft2-copy {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
}
.ft2-legal {
  display: flex;
  gap: 24px;
  list-style: none;
  padding: 0;
  margin: 0;
  justify-content: center;
}
.ft2-legal a {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  text-decoration: none;
  transition: color 200ms ease;
}
.ft2-legal a:hover { color: #fff; }
.ft2-social {
  display: flex;
  gap: 12px;
  list-style: none;
  padding: 0;
  margin: 0;
  justify-content: flex-end;
}
@media (max-width: 767px) {
  .ft2-social { justify-content: center; }
}
.ft2-social a {
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 999px;
  color: rgba(255,255,255,0.7);
  transition: border-color 200ms ease, color 200ms ease, background 200ms ease, transform 200ms ease;
  text-decoration: none;
}
.ft2-social a:hover {
  border-color: var(--accent-lime, #CFFF04);
  color: var(--accent-lime, #CFFF04);
  transform: translateY(-2px);
}
.ft2-social svg { width: 14px; height: 14px; }

/* ============== MacBook + Browser mockup (case study previews) ============== */
.mockup-laptop {
  position: relative;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  perspective: 1800px;
}
.mockup-laptop__screen {
  position: relative;
  background: #0d0d0d;
  border-radius: 16px 16px 6px 6px;
  padding: 24px 14px 14px;
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.06) inset,
    0 30px 80px rgba(0,0,0,0.55),
    0 8px 30px rgba(124,43,227,0.15);
}
.mockup-laptop__notch {
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 110px;
  height: 10px;
  background: #000;
  border-radius: 0 0 10px 10px;
  z-index: 3;
}
.mockup-laptop__notch::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 4px;
  background: #1a1a1a;
  border-radius: 50%;
  box-shadow: 0 0 0 1px #2a2a2a;
}
.mockup-browser {
  background: #0a0a0a;
  border-radius: 8px 8px 4px 4px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.08);
}
.mockup-browser__bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: rgba(255,255,255,0.04);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.mockup-browser__dots {
  display: flex;
  gap: 6px;
}
.mockup-browser__dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: rgba(255,255,255,0.18);
}
.mockup-browser__dot--red { background: #ff5f57; }
.mockup-browser__dot--yellow { background: #febc2e; }
.mockup-browser__dot--green { background: #28c840; }
.mockup-browser__url {
  flex: 1;
  margin-left: 12px;
  padding: 4px 14px;
  background: rgba(255,255,255,0.05);
  border-radius: 6px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.04em;
  color: rgba(255,255,255,0.55);
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mockup-browser__url-lock {
  display: inline-block;
  margin-right: 6px;
  opacity: 0.5;
}
.mockup-browser__viewport {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #000;
}
.mockup-browser__viewport img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.mockup-laptop__base {
  position: relative;
  width: 108%;
  height: 12px;
  margin-left: -4%;
  background: linear-gradient(180deg, #1a1a1a 0%, #0a0a0a 50%, #1a1a1a 100%);
  border-radius: 0 0 12px 12px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}
.mockup-laptop__base::after {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 110px;
  height: 5px;
  background: #050505;
  border-radius: 0 0 8px 8px;
}
@media (max-width: 640px) {
  .mockup-laptop__screen { padding: 18px 8px 10px; }
  .mockup-laptop__notch { width: 80px; height: 7px; }
  .mockup-browser__bar { padding: 8px 10px; }
  .mockup-browser__dot { width: 9px; height: 9px; }
  .mockup-browser__url { font-size: 9px; padding: 3px 10px; }
}

/* Skip-to-content link for keyboard users */
.skip-link {
  position: absolute; top: -100px; left: 12px; z-index: 9999;
  background: var(--accent-lime); color: #000;
  padding: 12px 20px; border-radius: 8px;
  font-family: 'JetBrains Mono', monospace; font-size: 12px;
  text-decoration: none; font-weight: 600;
  transition: top 200ms ease;
}
.skip-link:focus { top: 12px; }

/* NAV */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 24px;
  transform: translateY(-110%); opacity: 0; pointer-events: none;
  transition: transform 500ms var(--ease-out-expo), opacity 400ms ease, background-color 350ms ease, backdrop-filter 350ms ease, border-color 350ms ease;
  border-bottom: 1px solid transparent;
}
.nav.visible {
  transform: translateY(0); opacity: 1; pointer-events: auto;
  background: rgba(0,0,0,0.78);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-bottom-color: var(--border);
}
.nav-logo img { height: 18px; width: auto; display: block; }
@media (min-width: 768px) { .nav-logo img { height: 22px; } }
.nav-logo:hover img { opacity: 0.85; }
/* Inline nav links */
.nav-links { display: flex; align-items: center; gap: 36px; }
.nav-link {
  color: var(--text-secondary); text-decoration: none;
  font-size: 11px; font-family: 'JetBrains Mono', monospace;
  letter-spacing: 0.14em; text-transform: uppercase;
  position: relative; padding: 4px 0;
  opacity: 0; transform: translateY(-8px);
  transition: opacity 550ms cubic-bezier(0.22,1,0.36,1), transform 550ms cubic-bezier(0.22,1,0.36,1), color 200ms ease;
}
.nav.visible .nav-link { opacity: 1; transform: translateY(0); }
.nav.visible .nav-links .nav-link:nth-child(1) { transition-delay: 0ms; }
.nav.visible .nav-links .nav-link:nth-child(2) { transition-delay: 60ms; }
.nav.visible .nav-links .nav-link:nth-child(3) { transition-delay: 120ms; }
.nav.visible .nav-links .nav-link:nth-child(4) { transition-delay: 180ms; }
.nav-link::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0;
  height: 1px; background: #fff;
  transform: scaleX(0); transform-origin: left;
  transition: transform 280ms cubic-bezier(0.22,1,0.36,1);
}
.nav-link:hover { color: #fff; }
.nav-link:hover::after { transform: scaleX(1); }
/* Arabic language toggle button */
.nav-lang {
  display: inline-flex; align-items: center;
  cursor: pointer; background: transparent;
  border: 1px solid rgba(255,255,255,0.3); padding: 6px 14px;
  color: rgba(255,255,255,0.8);
  font-family: 'Tajawal', sans-serif; font-size: 15px; font-weight: 700;
  letter-spacing: 0.06em; white-space: nowrap;
  opacity: 0; transform: translateY(-8px);
  transition: opacity 550ms 220ms cubic-bezier(0.22,1,0.36,1),
              transform 550ms 220ms cubic-bezier(0.22,1,0.36,1),
              letter-spacing 550ms cubic-bezier(0.22,1,0.36,1),
              border-color 200ms ease, color 200ms ease;
}
.nav.visible .nav-lang { opacity: 1; transform: translateY(0); }
.nav-lang:hover {
  letter-spacing: 0.45em;
  border-color: rgba(255,255,255,0.7);
  color: #fff;
}

/* HERO — full-bleed video background, overlaid editorial type (eatnaked.co pattern) */
/* ─── HERO GALLERY ──────────────────────────────────────────── */
.hero {
  position: sticky; top: 0; z-index: 1;
  min-height: 100vh; height: 100svh;
  width: 100%; overflow: clip; background: #000;
  display: flex; align-items: center; justify-content: center;
}
.hero-gallery {
  position: absolute; inset: 0; z-index: 0;
  display: flex; flex-direction: column; gap: 16px;
  justify-content: center; padding: 16px 0; pointer-events: none;
}
.hero-row { display: flex; gap: 16px; width: max-content; flex-shrink: 0; }
.hero-row--left  { animation: marquee-left  38s linear infinite; }
.hero-row--right { animation: marquee-right 38s linear infinite; }
@keyframes marquee-left  { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes marquee-right { from { transform: translateX(-50%); } to { transform: translateX(0); } }
.hero-card { width: 200px; height: 300px; flex-shrink: 0; border-radius: 10px; overflow: hidden; }
@media (min-width: 768px) { .hero-card { width: 240px; height: 360px; } }
.hero-card img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-overlay {
  position: absolute; inset: 0; z-index: 1;
  background:
    radial-gradient(ellipse 80% 55% at 50% 50%, rgba(0,0,0,0.88) 0%, rgba(0,0,0,0.55) 55%, rgba(0,0,0,0.18) 100%),
    linear-gradient(180deg, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0) 25%, rgba(0,0,0,0) 75%, rgba(0,0,0,0.6) 100%);
}
.hero-content {
  position: relative; z-index: 2;
  display: flex; flex-direction: column; align-items: center;
  text-align: center; padding: 0 24px; gap: 28px;
}
.hero-eyebrow { color: rgba(255,255,255,0.65); opacity: 0; }
body.loaded .hero-eyebrow { animation: hero-fade 0.5s ease 0.1s forwards; }
.hero-headline {
  margin: 0;
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  font-family: 'Space Grotesk', sans-serif; font-weight: 700;
  font-size: clamp(52px, 9vw, 140px); line-height: 0.88;
  letter-spacing: -0.045em; text-transform: uppercase; color: #fff;
}
html[lang="ar"] .hero-headline {
  font-family: 'Tajawal', sans-serif; font-weight: 800;
  font-size: clamp(44px, 7.5vw, 110px); letter-spacing: 0;
}
.hw { position: relative; display: block; overflow: hidden; }
html[lang="ar"] .hw { padding-bottom: 0.14em; margin-bottom: -0.14em; }
.hw-text { display: block; opacity: 0; }
body.loaded .hw-text--1 { animation: hw-appear 0s 0.5s forwards; }
body.loaded .hw-text--2 { animation: hw-appear 0s 1.05s forwards; }
.hw-block { position: absolute; inset: -6px 0; transform: translateX(-101%); }
body.loaded .hw-block--lime   { animation: hw-sweep 0.7s cubic-bezier(0.77,0,0.18,1) 0.15s forwards; }
body.loaded .hw-block--indigo { animation: hw-sweep 0.7s cubic-bezier(0.77,0,0.18,1) 0.7s  forwards; }
.hw-block--lime   { background: var(--accent-lime); }
.hw-block--indigo { background: var(--accent-violet); }
@keyframes hw-appear { to { opacity: 1; } }
@keyframes hw-sweep {
  0%   { transform: translateX(-101%); }
  44%  { transform: translateX(0); }
  56%  { transform: translateX(0); }
  100% { transform: translateX(101%); }
}
@media (prefers-reduced-motion: reduce) {
  .hw-text { opacity: 1; animation: none; }
  .hw-block { display: none; }
  .hero-eyebrow, .hero-sub, .hero-actions { opacity: 1; animation: none; }
}
.hero-sub {
  max-width: 480px; margin: 0;
  font-family: 'Inter Tight', sans-serif; font-weight: 400;
  font-size: clamp(15px, 1.2vw, 18px); line-height: 1.5;
  color: rgba(255,255,255,0.8); letter-spacing: -0.005em;
  opacity: 0;
}
body.loaded .hero-sub { animation: hero-fade 0.6s ease 1.6s forwards; }
@keyframes hero-fade { to { opacity: 1; } }
.contact-sub {
  margin: 24px auto 0; max-width: 540px;
  font-family: 'Inter Tight', sans-serif; font-weight: 400;
  font-size: clamp(14px, 1.1vw, 16px); line-height: 1.5;
  color: var(--text-secondary); letter-spacing: -0.005em;
}
.hero-actions {
  display: flex; align-items: center; gap: 24px; flex-wrap: wrap; justify-content: center;
  opacity: 0;
}
body.loaded .hero-actions { animation: hero-fade 0.6s ease 1.9s forwards; }
.hero-cta {
  display: inline-flex; align-items: center; gap: 14px;
  padding: 18px 26px; background: rgba(255,255,255,0.06); color: #fff;
  border: 1px solid rgba(255,255,255,0.65);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  font-family: inherit; font-size: 13px; font-weight: 500;
  text-decoration: none; cursor: pointer; letter-spacing: 0.06em; text-transform: uppercase;
  min-height: 44px; position: relative; overflow: hidden;
  transition: color 250ms ease, border-color 250ms ease;
}
.hero-cta::before { content: ''; position: absolute; inset: 0; background: var(--accent-violet); transform: translateY(101%); transition: transform 350ms var(--ease-in-out-quart); z-index: 0; }
.hero-cta > * { position: relative; z-index: 1; }
.hero-cta:hover::before, .hero-cta:focus-visible::before { transform: translateY(0); }
.hero-cta:hover, .hero-cta:focus-visible { border-color: var(--accent-violet); }
.hero-cta .arr { transition: transform 250ms var(--ease-out-expo); }
.hero-cta:hover .arr { transform: translateX(6px); }
.hero-status { display: inline-flex; align-items: center; gap: 10px; font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: rgba(255,255,255,0.6); }
.hero-status .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent-lime); box-shadow: 0 0 10px var(--accent-lime); animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.5; transform: scale(0.85); } }

/* SECTION ENTRANCE — generic reveal */
.section-reveal { opacity: 0; transform: translate3d(0, 36px, 0); transition: opacity 700ms var(--ease-out-expo), transform 700ms var(--ease-out-expo); will-change: opacity, transform; }
.section-reveal.in { opacity: 1; transform: translate3d(0, 0, 0); }
@media (prefers-reduced-motion: reduce) { .section-reveal { opacity: 1; transform: none; transition: none; } }

/* MARQUEE */
.manifesto { height: 40vh; min-height: 220px; overflow: hidden; display: flex; align-items: center; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.manifesto-track {
  display: flex; gap: 0; white-space: nowrap; animation: marquee 36s linear infinite;
  font-family: 'Space Grotesk', sans-serif; font-weight: 500;
  font-size: clamp(64px, 11vw, 160px); line-height: 1; color: #fff;
  letter-spacing: -0.045em; will-change: transform;
}
.manifesto-track > span { padding: 0 0.4em; display: inline-flex; align-items: center; gap: 0.3em; }
.manifesto-track .dash { color: var(--text-muted); font-style: normal; }
.manifesto-track .star { color: var(--accent-lime); font-style: normal; font-size: 0.7em; }
@keyframes marquee { 0% { transform: translate3d(0,0,0); } 100% { transform: translate3d(-50%,0,0); } }
@media (prefers-reduced-motion: reduce) { .manifesto-track { animation: none; } }

/* SECTION HEADERS */
.section-head { max-width: 1500px; margin: 0 auto; padding: 80px 24px 40px; display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 768px) { .section-head { grid-template-columns: 1fr 1fr; gap: 32px; align-items: end; padding: 96px 56px 40px; } }
.section-head .label { color: var(--text-muted); }
.section-head .ttl {
  font-family: 'Space Grotesk', sans-serif; font-weight: 500;
  font-size: clamp(36px, 4.4vw, 64px); line-height: 1; letter-spacing: -0.04em; margin: 0;
}
.section-head .ttl .ital { font-family: 'Inter Tight', sans-serif; font-style: italic; font-weight: 300; color: var(--text-secondary); letter-spacing: -0.035em; }

/* SERVICES — horizontal scroll (sticky track) */

/* Sticky pin area — just the panels, no intro */
.services-pin { position: relative; }
.services-sticky {
  position: sticky; top: 0; z-index: 2;
  height: 100vh; height: 100svh;
  background: var(--bg-primary);
  overflow: hidden; display: flex; flex-direction: column;
  border-top: 1px solid var(--border);
  padding-bottom: 56px; /* clear the progress bar */
}
.services-track { display: flex; flex: 1; will-change: transform; min-height: 0; }

.spread {
  position: relative;
  width: 100vw; flex-shrink: 0; height: 100%;
  background: var(--bg-primary);
  display: grid;
  grid-template-columns: 320px 1fr 220px;
  grid-template-rows: 1fr;
  grid-template-areas: "center thumbs side";
  gap: 0 40px; padding: 72px 56px 40px;
  border-left: 1px solid var(--border);
}
.spread:first-child { border-left: none; }
@media (max-width: 1100px) { .spread { grid-template-columns: 160px 1fr 240px; gap: 0 20px; padding: 72px 32px 32px; } }
.spread-head { position: absolute; top: 20px; left: 56px; right: auto; display: flex; justify-content: flex-start; align-items: baseline; max-width: 360px; }
@media (max-width: 1100px) { .spread-head { left: 32px; right: auto; } }
.spread-center { grid-area: center; display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-start; padding-top: 28px; }
.spread-words { margin: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 0; font-family: 'Space Grotesk', sans-serif; font-weight: 500; font-size: clamp(36px, 5.5vw, 92px); line-height: 0.88; letter-spacing: -0.05em; color: #fff; }
.spread-word { display: inline-flex; overflow: hidden; padding: 0.06em 0; }
.spread-letter { display: inline-block; will-change: transform, opacity; }
.spread-slash { color: var(--text-muted); font-weight: 400; display: block; font-size: 0.5em; line-height: 1.8; }
.spread-sig { width: clamp(100px, 14vw, 200px); height: auto; margin-top: 20px; transform: rotate(-4deg); pointer-events: none; display: block; }
.spread-side { grid-area: side; display: flex; flex-direction: column; gap: 12px; align-self: flex-start; max-width: 200px; padding-top: 28px; }
.spread-side .spread-num { font-family: 'JetBrains Mono', monospace; font-size: 11px; color: var(--text-muted); letter-spacing: 0.18em; }
.spread-side .spread-desc { font-size: 11px; line-height: 1.65; color: var(--text-secondary); margin: 0; max-width: 200px; }
.spread-side .spread-link { display: inline-flex; align-items: center; gap: 8px; color: #fff; text-decoration: none; font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; padding: 6px 0; position: relative; align-self: flex-start; margin-top: 8px; }
.spread-side .spread-link::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--accent-lime); transform: scaleX(0); transform-origin: left; transition: transform 250ms var(--ease-out-expo); }
.spread-side .spread-link:hover::after { transform: scaleX(1); }
.spread-side .spread-link .arrow { transition: transform 250ms var(--ease-out-expo); }
.spread-side .spread-link:hover .arrow { transform: translateX(4px); }
.spread-thumbs { grid-area: thumbs; display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 8px; align-self: center; height: 68vh; }
.spread-thumb { position: relative; background-image: repeating-linear-gradient(45deg, #0d0d0d 0 2px, #141414 2px 14px); border: 1px solid var(--border); overflow: hidden; transition: border-color 250ms ease; }
.spread-thumb:hover { border-color: var(--text-muted); }
.spread-thumb-img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 500ms var(--ease-out-expo); }
.spread-thumb-img--contain { object-fit: contain; background: #080808; }
.spread-thumb:hover .spread-thumb-img { transform: scale(1.04); }
.spread-thumb-label { position: absolute; bottom: 8px; left: 8px; font-family: 'JetBrains Mono', monospace; font-size: 9px; letter-spacing: 0.18em; color: var(--text-muted); text-transform: uppercase; }
.spread-thumb-corner { position: absolute; width: 10px; height: 10px; border: 1px solid var(--text-faint); }
.spread-thumb-corner.tl { top: 6px; left: 6px; border-right: none; border-bottom: none; }
.spread-thumb-corner.tr { top: 6px; right: 6px; border-left: none; border-bottom: none; }
.spread-thumb-corner.bl { bottom: 6px; left: 6px; border-right: none; border-top: none; }
.spread-thumb-corner.br { bottom: 6px; right: 6px; border-left: none; border-top: none; }
/* Scroll progress bar */
.services-progress {
  position: absolute; bottom: 20px; left: 56px; right: 56px; z-index: 5;
  display: flex; align-items: center; gap: 16px;
  font-family: 'JetBrains Mono', monospace; font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--text-muted);
  pointer-events: none;
}
.services-progress .bar { flex: 1; height: 1px; background: var(--border); position: relative; overflow: hidden; }
.services-progress .bar-fill { position: absolute; left: 0; top: 0; bottom: 0; width: 0%; background: var(--accent-violet); }

/* SHOWCASE */
.showcase { padding-top: 96px; padding-bottom: 120px; }
.showcase-grid .showcase-tile { opacity: 0; transform: translateY(60px); transition: opacity 900ms var(--ease-out-expo), transform 900ms var(--ease-out-expo); }
.showcase-grid.in .showcase-tile { opacity: 1; transform: translateY(0); }
.showcase-grid.in .showcase-tile:nth-child(1) { transition-delay: 0ms; }
.showcase-grid.in .showcase-tile:nth-child(2) { transition-delay: 80ms; }
.showcase-grid.in .showcase-tile:nth-child(3) { transition-delay: 160ms; }
.showcase-grid.in .showcase-tile:nth-child(4) { transition-delay: 240ms; }
.showcase-grid.in .showcase-tile:nth-child(5) { transition-delay: 320ms; }
.showcase-grid.in .showcase-tile:nth-child(6) { transition-delay: 400ms; }
.showcase-grid { max-width: 1500px; margin: 0 auto; padding: 0 24px; display: grid; grid-template-columns: repeat(12, 1fr); gap: 16px; }
@media (min-width: 768px) { .showcase-grid { padding: 0 56px; } }
.showcase-tile { position: relative; background-image: repeating-linear-gradient(135deg, #0d0d0d 0 2px, #141414 2px 14px); border: 1px solid var(--border); display: flex; align-items: end; padding: 20px; overflow: hidden; text-decoration: none; color: inherit; transition: border-color 350ms ease; }
.showcase-tile::before { content: ''; position: absolute; inset: 0; background: var(--accent-violet); transform: scaleY(0); transform-origin: bottom; transition: transform 500ms var(--ease-in-out-quart); z-index: 0; opacity: 0.92; }
.showcase-tile:hover::before, .showcase-tile:focus-visible::before { transform: scaleY(1); }
.showcase-tile:hover, .showcase-tile:focus-visible { border-color: var(--accent-violet); }
.showcase-tile > * { position: relative; z-index: 1; }
.showcase-tile .tag { font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--text-muted); transition: color 250ms ease; }
.showcase-tile:hover .tag { color: #fff; }
.showcase-tile .ttl { font-family: 'Space Grotesk', sans-serif; font-weight: 500; font-size: clamp(20px, 2.4vw, 32px); color: #fff; margin: 4px 0 0; line-height: 1; letter-spacing: -0.03em; }
.showcase-tile .ttl .ital { font-family: 'Inter Tight', sans-serif; font-style: italic; font-weight: 300; letter-spacing: -0.035em; }
.showcase-tile .meta { display: flex; flex-direction: column; gap: 4px; }
.tile-1 { grid-column: span 7; aspect-ratio: 16/10; }
.tile-2 { grid-column: span 5; aspect-ratio: 4/5; }
.tile-3 { grid-column: span 4; aspect-ratio: 4/5; }
.tile-4 { grid-column: span 8; aspect-ratio: 16/9; }
.tile-5 { grid-column: span 6; aspect-ratio: 3/2; }
.tile-6 { grid-column: span 6; aspect-ratio: 3/2; }
@media (max-width: 767px) { .showcase-grid { grid-template-columns: 1fr; } .showcase-tile { grid-column: 1 / -1 !important; aspect-ratio: 4/3 !important; } }
.showcase-note { margin-top: 32px; font-family: 'JetBrains Mono', monospace; font-size: 11px; color: var(--text-faint); letter-spacing: 0.18em; text-transform: uppercase; text-align: center; }

/* All post-services sections must paint over the sticky hero (z-index 1) */
.clients, .reviews, .about, .contact, .footer, .manifesto {
  position: relative; z-index: 3; background: var(--bg-primary);
}

/* CLIENTS */
.clients { padding-bottom: 96px; }
.clients-grid {
  max-width: 1500px; margin: 0 auto; padding: 0 24px;
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px;
  background: var(--border); border: 1px solid var(--border);
}
@media (min-width: 600px) { .clients-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 900px) { .clients-grid { grid-template-columns: repeat(4, 1fr); padding: 0 56px; } }
@media (min-width: 1200px) { .clients-grid { grid-template-columns: repeat(6, 1fr); } }
.client-cell {
  background: var(--bg-primary); aspect-ratio: 1.5/1;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
  position: relative; overflow: hidden; cursor: default;
  opacity: 0; transform: translateY(24px);
  transition: opacity 700ms var(--ease-out-expo), transform 700ms var(--ease-out-expo), background-color 350ms ease;
}
.clients.in .client-cell { opacity: 1; transform: translateY(0); }
.client-cell::before {
  content: ''; position: absolute; inset: 0; background: var(--accent-violet);
  transform: scaleY(0); transform-origin: bottom;
  transition: transform 450ms var(--ease-in-out-quart);
}
.client-cell:hover::before { transform: scaleY(1); }
.client-cell:hover .client-mark { color: #fff; border-color: #fff; }
.client-cell:hover .client-name { color: var(--accent-lime); }
.client-mark {
  position: relative; z-index: 1;
  font-family: 'Space Grotesk', sans-serif; font-weight: 500;
  font-size: clamp(28px, 3.2vw, 44px); letter-spacing: -0.04em; color: var(--text-secondary);
  width: 76px; height: 76px; border: 1px solid var(--border);
  display: inline-flex; align-items: center; justify-content: center;
  transition: color 250ms ease, border-color 250ms ease;
}
.client-name {
  position: relative; z-index: 1;
  font-family: 'JetBrains Mono', monospace; font-size: 11px;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--text-muted);
  transition: color 250ms ease;
}

/* REVIEWS */
.reviews { padding-bottom: 96px; border-top: 1px solid var(--border); }
.reviews-grid {
  max-width: 1500px; margin: 0 auto; padding: 0 24px;
  display: grid; grid-template-columns: 1fr; gap: 24px;
}
@media (min-width: 768px) { .reviews-grid { padding: 0 56px; } }
@media (min-width: 900px) { .reviews-grid { grid-template-columns: repeat(3, 1fr); gap: 16px; } }
.review-card {
  background: var(--bg-secondary); border: 1px solid var(--border);
  padding: 32px 28px; margin: 0;
  display: flex; flex-direction: column; gap: 24px;
  position: relative; overflow: hidden;
  opacity: 0; transform: translateY(40px);
  transition: opacity 800ms var(--ease-out-expo), transform 800ms var(--ease-out-expo), border-color 300ms ease;
}
.reviews.in .review-card { opacity: 1; transform: translateY(0); }
.review-card:hover { border-color: var(--text-muted); }
.review-card::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 2px;
  background: var(--accent-lime); transform: scaleY(0); transform-origin: top;
  transition: transform 500ms var(--ease-in-out-quart);
}
.review-card:hover::before { transform: scaleY(1); }
.review-score {
  font-family: 'JetBrains Mono', monospace; font-size: 14px;
  letter-spacing: 0.4em; color: var(--accent-lime);
}
.review-quote {
  margin: 0; font-family: 'Space Grotesk', sans-serif; font-weight: 400;
  font-size: clamp(17px, 1.4vw, 20px); line-height: 1.5;
  letter-spacing: -0.01em; color: var(--text-primary);
  position: relative;
}
.review-quote .quote-mark {
  font-family: 'Inter Tight', sans-serif; font-style: italic; font-weight: 300;
  color: var(--accent-lime); font-size: 1.4em; line-height: 0;
  margin-right: 6px; position: relative; top: 0.18em;
}
.review-meta {
  display: flex; flex-direction: column; gap: 4px;
  border-top: 1px solid var(--border); padding-top: 20px; margin-top: auto;
}
.review-meta .author {
  font-family: 'Space Grotesk', sans-serif; font-weight: 500;
  font-size: 15px; color: #fff; letter-spacing: -0.01em;
}
.review-meta .role {
  font-family: 'JetBrains Mono', monospace; font-size: 11px;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--text-muted);
}

/* ABOUT */
.about { padding-bottom: 80px; border-top: 1px solid var(--border); }
.about-grid { max-width: 1500px; margin: 0 auto; padding: 24px 24px 0; display: grid; grid-template-columns: 1fr; gap: 48px; }
@media (min-width: 768px) { .about-grid { grid-template-columns: 1.1fr 0.9fr; gap: 96px; padding: 24px 56px 0; } }
.about-copy { display: flex; flex-direction: column; gap: 20px; max-width: 560px; }
.about-copy p { margin: 0; font-size: clamp(16px, 1.4vw, 20px); line-height: 1.55; color: var(--text-secondary); letter-spacing: -0.005em; }
.about-stats { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--border); border: 1px solid var(--border); }
.about-stats li { background: var(--bg-primary); padding: 28px 24px; display: flex; flex-direction: column; gap: 8px; min-height: 140px; justify-content: space-between; transition: background-color 250ms ease; }
.about-stats li:hover { background: var(--bg-secondary); }
.about-stats .num { font-family: 'Space Grotesk', sans-serif; font-weight: 500; font-size: clamp(32px, 4vw, 56px); line-height: 1; letter-spacing: -0.04em; color: #fff; }
.about-stats .lbl { font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--text-muted); }

/* CONTACT */
.contact { min-height: 90vh; padding: 120px 24px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; border-top: 1px solid var(--border); position: relative; }
.contact-eyebrow { color: var(--text-muted); margin-bottom: 32px; }
.contact-headline { font-family: 'Space Grotesk', sans-serif; font-weight: 500; font-size: clamp(44px, 8vw, 160px); line-height: 0.95; letter-spacing: -0.05em; margin: 0; max-width: 1500px; }
.contact-headline .ital { font-family: 'Inter Tight', sans-serif; font-style: italic; font-weight: 300; color: var(--text-secondary); letter-spacing: -0.035em; }
.contact-headline .accent { color: var(--accent-violet); }
.contact-ctas { margin-top: 48px; display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; }
.btn { display: inline-flex; align-items: center; gap: 12px; padding: 18px 28px; font-size: 13px; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; font-family: inherit; text-decoration: none; cursor: pointer; border: 1px solid transparent; min-height: 44px; position: relative; overflow: hidden; transition: color 250ms ease, border-color 250ms ease; }
.btn .arr { transition: transform 250ms var(--ease-out-expo); position: relative; z-index: 1; }
.btn span { position: relative; z-index: 1; }
.btn:hover .arr { transform: translateX(6px); }
.btn-primary { background: var(--accent-lime); color: #000; border-color: var(--accent-lime); }
.btn-primary::before { content: ''; position: absolute; inset: 0; background: #fff; transform: translateY(101%); transition: transform 400ms var(--ease-in-out-quart); }
.btn-primary:hover::before { transform: translateY(0); }
.btn-secondary { background: transparent; color: #fff; border-color: var(--border); }
.btn-secondary::before { content: ''; position: absolute; inset: 0; background: var(--accent-violet); transform: translateY(101%); transition: transform 400ms var(--ease-in-out-quart); }
.btn-secondary:hover::before, .btn-secondary:focus-visible::before { transform: translateY(0); }
.btn-secondary:hover, .btn-secondary:focus-visible { border-color: var(--accent-violet); }
.btn-secondary.copied { border-color: var(--accent-lime); color: var(--accent-lime); }
.btn-secondary.copied::before { transform: translateY(101%); }

/* LOADER */
#loader {
  position: fixed; inset: 0; z-index: 9999;
  background: #000;
  display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 20px;
  transition: opacity 400ms ease;
}
#loader.done { opacity: 0; pointer-events: none; }
.loader-logo { width: 180px; display: block; opacity: 0.9; }
.loader-bar-track { width: 180px; height: 1px; background: rgba(255,255,255,0.1); overflow: hidden; }
.loader-bar { height: 100%; width: 0; background: var(--accent-violet); animation: loader-bar 1.2s cubic-bezier(0.4,0,0.2,1) forwards; }
@keyframes loader-bar { to { width: 100%; } }

/* FOOTER */
.footer { padding: 80px 24px 32px; border-top: 1px solid var(--border); }
.footer-mark { margin-bottom: 56px; display: flex; justify-content: center; }
.footer-mark img { width: 100%; max-width: 1400px; height: auto; }
.footer-rows { max-width: 1400px; margin: 0 auto; display: grid; grid-template-columns: 1fr auto 1fr; gap: 24px; align-items: center; }
.footer-left { color: var(--text-muted); font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; }
.footer-center { display: flex; gap: 24px; justify-content: center; flex-wrap: wrap; }
.footer-center a, .footer-right a { color: #fff; text-decoration: none; font-size: 13px; position: relative; padding: 4px 0; }
.footer-center a::after, .footer-right a::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--accent-lime); transform: scaleX(0); transform-origin: left; transition: transform 250ms var(--ease-out-expo); }
.footer-center a:hover::after, .footer-right a:hover::after { transform: scaleX(1); }
.footer-right { display: flex; gap: 24px; justify-content: flex-end; flex-wrap: wrap; }
.footer-bottom { margin-top: 48px; text-align: center; font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--text-faint); }
@media (max-width: 767px) { .footer-rows { grid-template-columns: 1fr; text-align: center; } .footer-right { justify-content: center; } .footer-left { text-align: center; } }

/* Page transition wipe */
#pg-trans { position: fixed; inset: 0; z-index: 9997; background: #000; transform: translateY(0); transition: transform 640ms cubic-bezier(0.77,0,0.18,1); pointer-events: none; }
#pg-trans.out { transform: translateY(-100%); pointer-events: none; }

/* ── Animated floating pill nav (expand on hero / collapse on scroll-down) ──
   Smoothness notes:
   - Width animates between two EXPLICIT values (CSS can't tween `width: auto`).
     We use `min-width` for the natural-fit expanded state and a hard width for
     collapsed, both driven by the same easing.
   - Items fade-out completes BEFORE the pill finishes collapsing → no visual
     conflict between text and width snap.
   - Single physical easing curve (`cubic-bezier(0.32,0.72,0,1)` — Apple's
     spring-out feel) is shared by width, transform and opacity so every part
     of the morph moves in sync.                                              */
.anim-nav-wrap {
  position: fixed;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 250;
  pointer-events: none;
  /* Centering wrap gives the nav its own animatable scaling space */
}
.anim-nav {
  display: flex; align-items: center;
  position: relative;
  overflow: hidden;
  border-radius: 9999px;
  background: rgba(10,10,10,0.82);
  -webkit-backdrop-filter: blur(24px) saturate(150%);
  backdrop-filter: blur(24px) saturate(150%);
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: 0 14px 44px rgba(0,0,0,0.55), inset 0 0 0 1px rgba(255,255,255,0.02);
  height: 52px;
  pointer-events: auto;
  will-change: width, transform, border-color, background;
  transform: translateZ(0); /* dedicated GPU layer */
  transition:
    width 620ms cubic-bezier(0.32, 0.72, 0, 1),
    transform 260ms cubic-bezier(0.32, 0.72, 0, 1),
    border-color 260ms ease,
    background 260ms ease,
    box-shadow 260ms ease;
}
/* Explicit width on expanded so the transition has two concrete endpoints */
.anim-nav.expanded {
  width: 580px;
}
.anim-nav.collapsed {
  width: 52px;
  cursor: pointer;
  justify-content: center;
}
.anim-nav.collapsed:hover {
  transform: translateZ(0) scale(1.08);
  border-color: rgba(255,255,255,0.26);
  background: rgba(22,22,22,0.88);
  box-shadow: 0 16px 52px rgba(0,0,0,0.65);
}
.anim-nav.collapsed:active { transform: translateZ(0) scale(0.95); }

/* ── Logo (fades out + slides; no rotation = no janky spin) ── */
.anim-nav-logo {
  flex-shrink: 0;
  display: flex; align-items: center;
  padding: 0 10px 0 20px;
  color: #fff; text-decoration: none;
  will-change: opacity, transform;
  transition:
    opacity 220ms cubic-bezier(0.4, 0, 0.2, 1),
    transform 360ms cubic-bezier(0.32, 0.72, 0, 1);
}
.anim-nav-logo img {
  height: 18px; width: auto; display: block;
}
/* Expanded: logo fades in AFTER the pill has begun opening */
.anim-nav.expanded .anim-nav-logo {
  opacity: 1; transform: translateX(0);
  transition-delay: 140ms;
}
/* Collapsed: logo fades out FIRST so it doesn't fight the width */
.anim-nav.collapsed .anim-nav-logo {
  opacity: 0;
  transform: translateX(-12px);
  pointer-events: none;
  transition-delay: 0ms;
}

/* ── Nav items ── */
.anim-nav-items {
  display: flex; align-items: center; gap: 2px;
  padding: 0 16px 0 6px;
  will-change: opacity, transform;
  transition:
    opacity 240ms cubic-bezier(0.4, 0, 0.2, 1),
    transform 340ms cubic-bezier(0.32, 0.72, 0, 1);
}
.anim-nav.expanded .anim-nav-items {
  opacity: 1; transform: translateX(0);
  transition-delay: 180ms;
}
.anim-nav.collapsed .anim-nav-items {
  opacity: 0;
  transform: translateX(8px);
  pointer-events: none;
  transition-delay: 0ms;
}
.anim-nav-link {
  color: rgba(255,255,255,0.6);
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 8px 13px;
  border-radius: 999px;
  white-space: nowrap;
  transition: color 200ms ease, background 200ms ease;
}
.anim-nav-link:hover { color: #fff; background: rgba(255,255,255,0.06); }
.anim-nav-link.active { color: #fff; background: rgba(255,255,255,0.08); }

/* ── Hamburger icon (centered when collapsed) ── */
.anim-nav-menu {
  position: absolute;
  inset: 0;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  pointer-events: none;
  opacity: 0;
  transform: scale(0.6);
  will-change: opacity, transform;
  transition:
    opacity 240ms cubic-bezier(0.4, 0, 0.2, 1),
    transform 320ms cubic-bezier(0.32, 0.72, 0, 1);
}
/* Show only after the pill has visibly become a circle */
.anim-nav.collapsed .anim-nav-menu {
  opacity: 1;
  transform: scale(1);
  transition-delay: 260ms;
}
.anim-nav-menu svg { width: 20px; height: 20px; stroke: currentColor; }

/* Hide the old site-nav and remove its body padding */
.site-nav { display: none !important; }
body { padding-top: 0 !important; }

/* Responsive widths */
@media (max-width: 900px) {
  .anim-nav.expanded { width: 520px; }
}
@media (max-width: 640px) {
  .anim-nav { height: 48px; }
  .anim-nav.expanded { width: 92vw; max-width: 460px; }
  .anim-nav.collapsed { width: 48px; }
  .anim-nav-link { font-size: 9.5px; padding: 7px 10px; letter-spacing: 0.12em; }
  .anim-nav-logo { padding: 0 6px 0 16px; }
  .anim-nav-logo img { height: 16px; }
  .anim-nav-items { padding: 0 12px 0 4px; }
}
@media (prefers-reduced-motion: reduce) {
  .anim-nav, .anim-nav-logo, .anim-nav-items, .anim-nav-menu {
    transition-duration: 80ms !important;
    transition-delay: 0ms !important;
  }
}

/* ── Site Footer (shared across all pages) ──────────────────────────────── */
.ft {
  padding: 64px 0 32px;
  background: #050505;
  border-top: 1px solid rgba(255,255,255,0.07);
  color: #fff;
}
@media (min-width: 1024px) { .ft { padding: 96px 0 40px; } }

.ft-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
}
@media (min-width: 1024px) { .ft-inner { padding: 0 56px; } }

/* Top row: brand on the left, social icons on the right */
.ft-top {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: flex-start;
}
@media (min-width: 768px) {
  .ft-top { flex-direction: row; align-items: center; justify-content: space-between; gap: 16px; }
}

.ft-brand {
  display: inline-flex; align-items: center; gap: 12px;
  text-decoration: none; color: #fff;
}
.ft-logo { height: 28px; width: auto; display: block; }
.ft-brand-name {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.01em;
}

.ft-social {
  list-style: none;
  display: flex; gap: 10px;
  margin: 0; padding: 0;
}
.ft-social-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px;
  border-radius: 9999px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  transition: background 220ms ease, color 220ms ease, border-color 220ms ease, transform 200ms ease;
}
.ft-social-btn:hover {
  background: #fff;
  color: #000;
  border-color: #fff;
  transform: translateY(-2px);
}
.ft-social-btn svg { width: 18px; height: 18px; display: block; }

/* Bottom grid: copyright on the left, links on the right */
.ft-bottom {
  margin-top: 32px;
  padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex; flex-direction: column; gap: 24px;
}
@media (min-width: 1024px) {
  .ft-bottom {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
    grid-template-rows: auto auto;
    column-gap: 32px;
    row-gap: 12px;
    margin-top: 40px;
    padding-top: 40px;
  }
}

.ft-copyright {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.06em;
  line-height: 1.7;
  color: rgba(255,255,255,0.42);
  white-space: nowrap;
}
@media (min-width: 1024px) {
  .ft-copyright { grid-column: 1 / 2; grid-row: 1 / 3; align-self: center; }
}

.ft-main-nav {
  display: flex; flex-wrap: wrap;
  gap: 6px 16px;
}
@media (min-width: 1024px) {
  .ft-main-nav { grid-column: 2 / 3; grid-row: 1 / 2; justify-content: flex-end; }
}
.ft-main-link {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #fff;
  text-decoration: none;
  padding: 4px 8px;
  border-radius: 6px;
  transition: background 200ms ease;
}
.ft-main-link:hover { background: rgba(255,255,255,0.06); text-decoration: underline; text-underline-offset: 4px; }

.ft-legal {
  list-style: none;
  display: flex; flex-wrap: wrap;
  gap: 6px 20px;
  margin: 0; padding: 0;
}
@media (min-width: 1024px) {
  .ft-legal { grid-column: 2 / 3; grid-row: 2 / 3; justify-content: flex-end; }
}
.ft-legal-link {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px;
  letter-spacing: 0.06em;
  color: rgba(255,255,255,0.42);
  text-decoration: none;
  transition: color 200ms ease;
}
.ft-legal-link:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }

/* Hide the OLD .footer on subpages (which have no React render path) */
.footer { display: none !important; }

/* ── HeroSection-1 (Tailark-style spotlight hero + screenshot frame) ──────── */
.hs-main {
  position: relative; overflow: hidden;
  background: #000;
  padding-top: 0;
}
.hs-glow {
  position: absolute; inset: 0; z-index: 2;
  pointer-events: none; opacity: 0.55; contain: strict;
}
@media (max-width: 1024px) { .hs-glow { display: none; } }
.hs-glow-a {
  position: absolute; left: 0; top: 0;
  width: 35rem; height: 80rem;
  transform: translateY(-350px) rotate(-45deg);
  border-radius: 9999px;
  background: radial-gradient(68.54% 68.72% at 55.02% 31.46%, hsla(0,0%,85%,0.10) 0, hsla(0,0%,55%,0.025) 50%, hsla(0,0%,45%,0) 80%);
}
.hs-glow-b {
  position: absolute; left: 5%; top: -50%;
  width: 14rem; height: 80rem;
  transform: rotate(-45deg);
  border-radius: 9999px;
  background: radial-gradient(50% 50% at 50% 50%, hsla(0,0%,85%,0.07) 0, hsla(0,0%,45%,0.025) 80%, transparent 100%);
}
.hs-glow-c {
  position: absolute; left: 0; top: 0;
  width: 14rem; height: 80rem;
  transform: translateY(-350px) rotate(-45deg);
  background: radial-gradient(50% 50% at 50% 50%, hsla(0,0%,85%,0.05) 0, hsla(0,0%,45%,0.025) 80%, transparent 100%);
}
.hs-bg-radial {
  position: absolute; inset: 0; z-index: -20;
  pointer-events: none;
  background:
    radial-gradient(ellipse 60% 50% at 50% 0%, rgba(60,60,70,0.18) 0%, transparent 70%),
    radial-gradient(ellipse 80% 60% at 50% 100%, rgba(40,40,60,0.10) 0%, transparent 60%);
}
.hs-floor-mask {
  position: absolute; inset: 0; z-index: -10;
  pointer-events: none;
  background: radial-gradient(125% 125% at 50% 100%, transparent 0%, #000 75%);
}

.hs-section {
  position: relative;
  padding-top: 100px;
  z-index: 1;
}
@media (min-width: 768px) { .hs-section { padding-top: 140px; } }
.hs-content {
  max-width: 1280px; margin: 0 auto;
  padding: 0 24px;
  text-align: center;
}

/* Announcement pill */
.hs-pill {
  display: inline-flex; align-items: center; gap: 16px;
  padding: 5px 5px 5px 16px;
  margin: 0 auto;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.10);
  border-top-color: rgba(255,255,255,0.06);
  border-radius: 9999px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.4);
  color: #fff; text-decoration: none;
  font-family: 'Inter Tight', sans-serif;
  font-size: 13px;
  transition: background 300ms ease, border-color 300ms ease;
}
.hs-pill:hover { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.18); }
.hs-pill-text { white-space: nowrap; }
.hs-pill-divider {
  display: block; width: 1px; height: 14px;
  background: rgba(255,255,255,0.18);
}
.hs-pill-arr {
  display: inline-flex; align-items: center; justify-content: center;
  width: 24px; height: 24px;
  background: rgba(255,255,255,0.06);
  border-radius: 9999px;
  overflow: hidden;
  transition: background 300ms ease;
}
.hs-pill:hover .hs-pill-arr { background: rgba(255,255,255,0.14); }
.hs-pill-arr-inner {
  display: flex; width: 48px;
  transform: translateX(-50%);
  transition: transform 500ms ease;
}
.hs-pill:hover .hs-pill-arr-inner { transform: translateX(0); }
.hs-pill-arr svg {
  width: 12px; height: 12px;
  flex-shrink: 0;
  margin: auto;
  width: 24px; height: 24px;
  padding: 6px;
  stroke: #fff;
}

/* Headline */
.hs-h1 {
  margin: 32px auto 0;
  max-width: 56rem;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: clamp(48px, 9vw, 84px);
  line-height: 0.95;
  letter-spacing: -0.05em;
  color: #fff;
  text-wrap: balance;
}
@media (min-width: 1024px) { .hs-h1 { margin-top: 64px; font-size: clamp(56px, 7vw, 96px); } }
@media (min-width: 1280px) { .hs-h1 { font-size: 84px; } }
.hs-h1 em {
  display: block;
  font-family: 'Inter Tight', sans-serif;
  font-style: italic;
  font-weight: 300;
  color: rgba(255,255,255,0.45);
}

.hs-sub {
  margin: 32px auto 0;
  max-width: 42rem;
  font-family: 'Inter Tight', sans-serif;
  font-size: clamp(15px, 1.2vw, 18px);
  line-height: 1.55;
  color: rgba(255,255,255,0.65);
  text-wrap: balance;
}

.hs-actions {
  margin-top: 48px;
  display: flex; align-items: center; justify-content: center;
  gap: 12px; flex-wrap: wrap;
}
.hs-btn-ring {
  background: rgba(255,255,255,0.08);
  border-radius: 14px;
  padding: 2px;
  border: 1px solid rgba(255,255,255,0.05);
}
.hs-btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 44px; padding: 0 22px;
  border-radius: 12px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
  font-weight: 600;
  text-decoration: none;
  transition: background 220ms ease, color 220ms ease, transform 120ms ease;
}
.hs-btn-primary { background: #fff; color: #000; }
.hs-btn-primary:hover { background: rgba(255,255,255,0.88); }
.hs-btn-primary:active { transform: scale(0.97); }
.hs-btn-ghost {
  background: transparent; color: rgba(255,255,255,0.7);
}
.hs-btn-ghost:hover { color: #fff; background: rgba(255,255,255,0.05); }

/* Hero screenshot frame */
.hs-screen-wrap {
  position: relative;
  margin: 48px auto 0;
  padding: 0 16px;
}
@media (min-width: 768px) { .hs-screen-wrap { margin-top: 80px; } }
.hs-screen-fade {
  position: absolute; inset: 0;
  z-index: 10;
  pointer-events: none;
  background: linear-gradient(to bottom, transparent 0%, transparent 35%, #000 100%);
}

/* ════════════════════════════════════════════════════════════════════
   MAGIC UI 3D MARQUEE — official flagship component
   4 vertical columns in 3D perspective, alternating scroll directions
   ════════════════════════════════════════════════════════════════════ */
.hs-showcase {
  position: relative;
  max-width: 1240px;
  margin: 0 auto;
  height: clamp(480px, 60vw, 720px);
  overflow: hidden;
  border-radius: 24px;
  perspective: 1200px;
  perspective-origin: 50% 30%;
  mask-image: linear-gradient(180deg, transparent, #000 12%, #000 88%, transparent);
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 12%, #000 88%, transparent);
}

/* Aurora glow behind */
.hs-showcase::before {
  content: '';
  position: absolute;
  inset: -20%;
  background:
    radial-gradient(50% 40% at 30% 30%, rgba(124,43,227,0.28), transparent 65%),
    radial-gradient(45% 35% at 75% 70%, rgba(0,180,255,0.18), transparent 65%),
    radial-gradient(35% 25% at 50% 90%, rgba(207,255,4,0.12), transparent 65%);
  filter: blur(50px);
  z-index: 0;
  pointer-events: none;
  animation: hs-aurora 16s ease-in-out infinite alternate;
}
@keyframes hs-aurora {
  0% { transform: translate(0,0) scale(1); }
  100% { transform: translate(-4%, 3%) scale(1.08); }
}

/* The 3D stage that holds all columns */
.hs-marquee-3d {
  position: relative;
  width: 100%; height: 100%;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding: 0 8%;
  transform: rotateX(18deg) rotateY(-12deg) rotateZ(6deg) scale(1.08);
  transform-style: preserve-3d;
  z-index: 1;
}
@media (max-width: 900px) {
  .hs-marquee-3d { grid-template-columns: repeat(3, 1fr); padding: 0 4%; gap: 16px; transform: rotateX(14deg) rotateY(-8deg) rotateZ(4deg) scale(1.1); }
}
@media (max-width: 640px) {
  .hs-showcase { height: clamp(380px, 110vw, 560px); border-radius: 16px; }
  .hs-marquee-3d { grid-template-columns: repeat(2, 1fr); padding: 0 4%; gap: 12px; transform: rotateX(12deg) rotateY(-6deg) rotateZ(3deg) scale(1.12); }
}

/* Each column scrolls vertically */
.hs-marquee-col {
  position: relative;
  display: flex; flex-direction: column; gap: 18px;
  animation: hs-scroll-down 36s linear infinite;
  will-change: transform;
}
.hs-marquee-col:nth-child(2) { animation: hs-scroll-up 32s linear infinite; }
.hs-marquee-col:nth-child(3) { animation: hs-scroll-down 40s linear infinite; }
.hs-marquee-col:nth-child(4) { animation: hs-scroll-up 28s linear infinite; }
@media (max-width: 640px) { .hs-marquee-col { gap: 10px; } }

@keyframes hs-scroll-down {
  0%   { transform: translateY(-50%); }
  100% { transform: translateY(0%);   }
}
@keyframes hs-scroll-up {
  0%   { transform: translateY(0%);   }
  100% { transform: translateY(-50%); }
}
.hs-showcase:hover .hs-marquee-col { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) {
  .hs-marquee-col, .hs-showcase::before { animation: none !important; }
}

/* Each tile = a project screenshot card */
.hs-tile {
  position: relative;
  flex: 0 0 auto;
  background: #0a0a0a;
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  box-shadow: 0 12px 40px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.03) inset;
  transition: border-color 240ms ease, transform 320ms cubic-bezier(0.22,1,0.36,1);
}
.hs-tile img {
  display: block; width: 100%; height: 100%;
  object-fit: cover; object-position: top center;
}
.hs-tile::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(0,0,0,0.5));
  pointer-events: none;
}
.hs-tile:hover { border-color: rgba(255,255,255,0.28); transform: scale(1.03); }

/* Legacy hs-screen-frame fallback */
.hs-screen-frame {
  position: relative;
  max-width: 1100px;
  margin: 0 auto;
  background: #0a0a0a;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 18px;
  padding: 10px;
  box-shadow: 0 30px 100px -10px rgba(0,0,0,0.85), inset 0 0 0 1px rgba(255,255,255,0.04);
}
.hs-screen-frame img {
  display: block;
  width: 100%; height: auto;
  aspect-ratio: 15/8;
  object-fit: cover;
  object-position: top center;
  border-radius: 10px;
}

/* Stagger-in animations */
.hs-anim {
  opacity: 0;
  transform: translateY(12px);
  filter: blur(12px);
  transition:
    opacity 1.4s cubic-bezier(0.22,1,0.36,1),
    transform 1.4s cubic-bezier(0.22,1,0.36,1),
    filter 1.4s cubic-bezier(0.22,1,0.36,1);
}
.hs-anim.hs-in {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

/* ── Selected-work marquee below hero ─────────────────────────── */
.hs-work {
  padding: 80px 0 100px;
  position: relative; z-index: 1;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.hs-work-head {
  max-width: 1400px;
  margin: 0 auto 32px;
  padding: 0 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
@media (max-width: 767px) { .hs-work-head { padding: 0 24px; flex-direction: column; align-items: flex-start; gap: 16px; } }
.hs-work-eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  color: rgba(255,255,255,0.4);
}
.hs-work-cta {
  display: inline-flex; align-items: center; gap: 8px;
  text-decoration: none; color: #fff;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
  border-bottom: 1px solid rgba(255,255,255,0.2);
  padding-bottom: 4px;
  transition: border-color 200ms, color 200ms;
}
.hs-work-cta:hover { border-color: var(--accent-lime, #CFFF04); color: var(--accent-lime, #CFFF04); }
.hs-work-marquee {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  mask-image: linear-gradient(90deg, transparent 0, #000 5%, #000 95%, transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 5%, #000 95%, transparent 100%);
}
.hs-work-marquee::-webkit-scrollbar { display: none; }
.hs-work-track {
  display: flex;
  gap: 20px;
  padding: 4px 56px 24px;
  width: max-content;
}
@media (max-width: 767px) { .hs-work-track { padding: 4px 24px 24px; gap: 14px; } }
.hs-work-card {
  flex: 0 0 auto;
  width: 320px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-decoration: none;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  overflow: hidden;
  background: #0a0a0a;
  transition: transform 300ms ease, border-color 300ms ease;
}
@media (max-width: 767px) { .hs-work-card { width: 260px; } }
.hs-work-card:hover {
  transform: translateY(-4px);
  border-color: rgba(207,255,4,0.4);
}
.hs-work-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: center top;
  display: block;
  background: #050505;
}
.hs-work-name {
  padding: 12px 16px 16px;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 500;
  font-size: 15px;
  letter-spacing: -0.01em;
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
}
.hs-work-name small {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 400;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
}

/* ════════════════════════════════════════════════════════════════════
   WORK GRID — clean 4-column equal-size cards
   ════════════════════════════════════════════════════════════════════ */
.bento-grid {
  width: min(95vw, 1800px);
  margin: 0 auto;
  padding: 0 56px 24px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
@media (min-width: 2000px) {
  .bento-grid { width: min(78vw, 2400px); gap: 24px; padding: 0 24px 32px; }
}
@media (min-width: 3000px) {
  .bento-grid { width: 72vw; padding: 0 24px 32px; gap: 28px; }
}
@media (max-width: 1100px) {
  .bento-grid { grid-template-columns: repeat(3, 1fr); padding: 0 32px 24px; }
}
@media (max-width: 760px) {
  .bento-grid { grid-template-columns: repeat(2, 1fr); padding: 0 16px 16px; gap: 10px; }
}
@media (max-width: 420px) {
  .bento-grid { grid-template-columns: 1fr; }
}

/* All tiles same aspect ratio — no spans */
.bento-tile.span-2,
.bento-tile.span-row-2 { grid-column: auto; grid-row: auto; }

.bento-tile {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 14px;
  background: #0a0a0a;
  border: 1px solid rgba(255,255,255,0.08);
  text-decoration: none;
  color: #fff;
  aspect-ratio: 4 / 3;
  transition:
    border-color 320ms ease,
    transform 320ms ease,
    box-shadow 320ms ease;
}
.bento-tile:hover {
  border-color: rgba(207,255,4,0.45);
  transform: translateY(-3px);
  box-shadow: 0 14px 40px rgba(0,0,0,0.45), 0 0 0 1px rgba(207,255,4,0.25);
}

.bento-tile img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: top center;
  z-index: 0;
  transition: transform 700ms cubic-bezier(0.22,1,0.36,1);
}
.bento-tile:hover img { transform: scale(1.04); }

/* Gradient overlay for label legibility */
.bento-tile-overlay {
  position: absolute; inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,0.55) 75%, rgba(0,0,0,0.9) 100%);
  pointer-events: none;
}

.bento-label {
  position: absolute;
  left: 18px; right: 18px; bottom: 16px;
  z-index: 2;
  display: flex; flex-direction: column; gap: 5px;
}
.bento-name {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: clamp(16px, 1.4vw, 20px);
  letter-spacing: -0.01em;
  line-height: 1.15;
  color: #fff;
}
.bento-tile.span-2 .bento-name,
.bento-tile.span-row-2 .bento-name { font-size: clamp(20px, 1.9vw, 28px); }
.bento-sub {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.65);
}
html[lang="ar"] .bento-name { font-family: 'Cairo', sans-serif; font-weight: 800; letter-spacing: 0; }
html[lang="ar"] .bento-sub  { font-family: 'Cairo', sans-serif; font-weight: 600; letter-spacing: 0; font-size: 12px; text-transform: none; }

/* Status pill — top-right */
.bento-tag {
  position: absolute;
  top: 12px; right: 12px;
  z-index: 2;
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 9px;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 999px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
}
html[lang="ar"] .bento-tag {
  font-family: 'Cairo', sans-serif; font-weight: 700;
  font-size: 11px; letter-spacing: 0; text-transform: none;
}
html[dir="rtl"] .bento-tag { right: auto; left: 12px; }
.bento-tag::before {
  content: '';
  width: 5px; height: 5px;
  border-radius: 50%;
}
.bento-tag.live::before  { background: #2bd47d; box-shadow: 0 0 6px #2bd47d; }
.bento-tag.demo::before  { background: rgba(255,255,255,0.5); }

@media (prefers-reduced-motion: reduce) {
  .bento-tile, .bento-tile img { transition: none !important; }
  .bento-tile:hover img { transform: none; }
}

/* ── HoverSlider services (TextStaggerHover-style) ────────────────────────── */
.srv-wrap {
  padding: 120px 56px 140px;
  background: #050505;
  border-top: 1px solid rgba(255,255,255,0.06);
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 800ms cubic-bezier(0.22,1,0.36,1), transform 800ms cubic-bezier(0.22,1,0.36,1);
}
.srv-wrap.srv-in { opacity: 1; transform: translateY(0); }
@media (max-width: 767px) { .srv-wrap { padding: 80px 24px 100px; } }

.srv-head {
  max-width: 1280px; margin: 0 auto 72px;
}
.srv-eyebrow {
  display: block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: lowercase;
  color: rgba(255,255,255,0.4);
  margin-bottom: 24px;
}
.srv-title {
  margin: 0;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 500;
  font-size: clamp(36px, 5.5vw, 72px);
  line-height: 0.95;
  letter-spacing: -0.04em;
  color: #fff;
  max-width: 920px;
}
.srv-title em {
  font-family: 'Inter Tight', sans-serif;
  font-style: italic;
  font-weight: 300;
  color: rgba(255,255,255,0.42);
}

.srv-grid {
  max-width: 1280px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
@media (max-width: 900px) {
  .srv-grid { grid-template-columns: 1fr; gap: 48px; }
}

.srv-list {
  display: flex; flex-direction: column; gap: 14px;
}
.srv-item {
  background: transparent; border: none; padding: 0;
  cursor: pointer; text-align: left;
  display: inline-block;
  position: relative;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: clamp(26px, 3.8vw, 52px);
  line-height: 1;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  color: #fff;
}
.srv-item:focus-visible { outline: 2px solid #fff; outline-offset: 6px; }
.srv-item-text {
  display: inline-block; position: relative;
}
.srv-char {
  display: inline-block; position: relative; overflow: hidden;
  white-space: pre;
}
.srv-char-base, .srv-char-over {
  display: inline-block;
  transition: transform 300ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: transform;
}
.srv-char-base {
  opacity: 0.22;
  transform: translateY(0);
}
.srv-char-over {
  position: absolute; left: 0; top: 0;
  opacity: 1;
  transform: translateY(110%);
}
.srv-active .srv-char-base { transform: translateY(-110%); }
.srv-active .srv-char-over { transform: translateY(0); }

.srv-media {
  display: flex; flex-direction: column; gap: 28px;
}
.srv-image-stack {
  position: relative;
  width: 100%;
  aspect-ratio: 16/10;
  overflow: hidden;
  border-radius: 14px;
  background: #0a0a0a;
  border: 1px solid rgba(255,255,255,0.08);
}
.srv-image {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: top center;
  clip-path: polygon(0% 0%, 100% 0%, 100% 0%, 0% 0%);
  transition: clip-path 700ms cubic-bezier(0.33, 1, 0.68, 1);
}
.srv-image-active {
  clip-path: polygon(0% 0%, 100% 0%, 100% 100%, 0% 100%);
}
.srv-desc {
  margin: 0;
  font-family: 'Inter Tight', sans-serif;
  font-size: 15px;
  line-height: 1.65;
  color: rgba(255,255,255,0.6);
  max-width: 520px;
  min-height: 90px;
  transition: opacity 220ms ease;
}

/* ── HeroParallax (Aceternity-style scroll-driven 3D hero) ─────────────────── */
.hp-wrap {
  height: 300vh;
  padding: 160px 0;
  overflow: hidden;
  position: relative;
  perspective: 1000px;
  transform-style: preserve-3d;
  background: #000;
}
.hp-header {
  position: relative; z-index: 1;
  max-width: 1280px;
  margin: 0 auto;
  padding: 80px 32px 160px;
}
.hp-eyebrow {
  display: block;
  margin-bottom: 32px;
  color: rgba(255,255,255,0.55);
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.hp-h1 {
  margin: 0;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: clamp(56px, 11vw, 180px);
  line-height: 0.88;
  letter-spacing: -0.05em;
  color: #fff;
}
.hp-h1 .hp-em {
  display: block;
  font-family: 'Inter Tight', sans-serif;
  font-style: italic;
  font-weight: 300;
  color: rgba(255,255,255,0.45);
}
.hp-sub {
  max-width: 640px;
  margin: 32px 0 0;
  font-family: 'Inter Tight', sans-serif;
  font-size: clamp(15px, 1.2vw, 20px);
  line-height: 1.55;
  color: rgba(255,255,255,0.65);
}
.hp-actions {
  margin-top: 44px;
  display: flex; align-items: center; gap: 28px;
  flex-wrap: wrap;
}
.hp-cta {
  display: inline-flex; align-items: center; gap: 12px;
  background: #fff; color: #000;
  padding: 16px 28px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
  font-weight: 600; text-decoration: none;
  border-radius: 4px;
  transition: background 200ms ease, transform 120ms ease;
}
.hp-cta:hover { background: rgba(255,255,255,0.88); }
.hp-cta:active { transform: scale(0.97); }
.hp-cta-arr { transition: transform 240ms ease; }
.hp-cta:hover .hp-cta-arr { transform: translateX(4px); }
.hp-status {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
  color: rgba(255,255,255,0.5);
}
.hp-status-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: #3ddc84;
  box-shadow: 0 0 8px rgba(61,220,132,0.6);
  animation: hp-status-pulse 2s ease-in-out infinite;
}
@keyframes hp-status-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.45; }
}

.hp-3d { will-change: transform, opacity; }
.hp-row {
  display: flex;
  gap: 80px;
  margin-bottom: 80px;
  will-change: transform;
}
.hp-row-reverse { flex-direction: row-reverse; }
.hp-card {
  position: relative;
  height: 24rem;
  width: 30rem;
  flex-shrink: 0;
  overflow: hidden;
  border-radius: 8px;
  transition: transform 300ms cubic-bezier(0.22,1,0.36,1), box-shadow 300ms ease;
}
.hp-card:hover {
  transform: translateY(-20px);
  box-shadow: 0 24px 60px rgba(0,0,0,0.5);
}
.hp-card a {
  display: block;
  height: 100%; width: 100%;
  position: relative;
}
.hp-card img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: left top;
  display: block;
}
.hp-card-overlay {
  position: absolute; inset: 0;
  background: #000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 300ms ease;
}
.hp-card:hover .hp-card-overlay { opacity: 0.7; }
.hp-card-title {
  position: absolute;
  bottom: 18px; left: 22px; right: 22px;
  margin: 0;
  color: #fff;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 18px; font-weight: 500;
  letter-spacing: -0.01em;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 300ms ease, transform 300ms ease;
  z-index: 2;
  pointer-events: none;
}
.hp-card:hover .hp-card-title {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1100px) {
  .hp-card { width: 24rem; height: 20rem; }
  .hp-row { gap: 48px; margin-bottom: 48px; }
}
@media (max-width: 767px) {
  .hp-wrap { height: 220vh; padding: 80px 0; }
  .hp-header { padding: 40px 20px 100px; }
  .hp-card { width: 18rem; height: 14rem; }
  .hp-row { gap: 24px; margin-bottom: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  .hp-3d, .hp-row { transition: none !important; }
}

/* ═══════════════════════════════════════════════════════════════════════
   BILINGUAL — IBM Plex Sans Arabic + magic-dev pill toggle + RTL polish
   ═══════════════════════════════════════════════════════════════════════ */

/* Arabic typography — Cairo font, MAX thick weights (Cairo Black = 900). */
html[lang="ar"], html[lang="ar"] body {
  font-family: 'Cairo', 'Inter Tight', system-ui, sans-serif;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.7;
}
html[lang="ar"] p, html[lang="ar"] li, html[lang="ar"] span:not(.ital),
html[lang="ar"] .hs-sub, html[lang="ar"] .pg-sub, html[lang="ar"] .svc-copy p,
html[lang="ar"] .cs-prose p, html[lang="ar"] .legal-wrap p, html[lang="ar"] .legal-wrap li {
  font-weight: 700;
}
html[lang="ar"] .mono,
html[lang="ar"] [class*="mono"],
html[lang="ar"] .anim-nav-link,
html[lang="ar"] .hs-eyebrow,
html[lang="ar"] .pg-eyebrow,
html[lang="ar"] .label,
html[lang="ar"] .srv-eyebrow,
html[lang="ar"] .hs-work-eyebrow,
html[lang="ar"] .ft2-eyebrow,
html[lang="ar"] .cs-eyebrow,
html[lang="ar"] .cs-section-eyebrow,
html[lang="ar"] .legal-eyebrow,
html[lang="ar"] .ft2-col-title {
  font-family: 'Cairo', 'JetBrains Mono', monospace;
  font-weight: 800;
  letter-spacing: 0.02em;
}
html[lang="ar"] h1, html[lang="ar"] h2, html[lang="ar"] h3,
html[lang="ar"] .hs-h1, html[lang="ar"] .ttl, html[lang="ar"] .pg-title,
html[lang="ar"] .svc-name, html[lang="ar"] .ft2-wordmark,
html[lang="ar"] .cs-title, html[lang="ar"] .cs-section-title, html[lang="ar"] .legal-title,
html[lang="ar"] .contact-headline, html[lang="ar"] .srv-title,
html[lang="ar"] .headline {
  font-family: 'Cairo', 'Space Grotesk', sans-serif;
  font-weight: 700;        /* 900 caused streaky baseline overlap on Cairo */
  letter-spacing: 0;
  line-height: 1.35;       /* extra room for Arabic diacritics */
  -webkit-font-smoothing: antialiased;
}
html[lang="ar"] em, html[lang="ar"] i,
html[lang="ar"] .ital, html[lang="ar"] .pg-title em, html[lang="ar"] .ttl .ital,
html[lang="ar"] .cs-title em, html[lang="ar"] .legal-title em,
html[lang="ar"] .svc-name em, html[lang="ar"] .hs-h1 em,
html[lang="ar"] .srv-title em, html[lang="ar"] .headline em,
html[lang="ar"] .contact-headline em, html[lang="ar"] .cs-section-title em {
  font-style: normal;
  font-weight: 700;
  color: rgba(255,255,255,0.7);
}
html[lang="ar"] strong, html[lang="ar"] b { font-weight: 800; }
html[lang="ar"] .ft2-col-title { font-weight: 800; }
html[lang="ar"] .ft2-col-list a { font-weight: 700; }
html[lang="ar"] .ft2-tagline { font-weight: 700; }
html[lang="ar"] .anim-nav-link { font-weight: 800; }
html[lang="ar"] .hs-btn { font-weight: 800; }
html[lang="ar"] button { font-weight: 700; }

/* ─── ARABIC hover services — magic-dev word-stagger reveal + RTL slide ─── */
html[lang="ar"] .srv-list { gap: 22px; }

.srv-item-text-ar {
  display: inline-block !important;
  direction: rtl;
  unicode-bidi: isolate;
  position: relative;
  font-family: 'Cairo', sans-serif !important;
  font-weight: 900 !important;
  white-space: nowrap;
  color: rgba(255,255,255,0.32);
  transition: color 380ms cubic-bezier(0.22,1,0.36,1);
}
.srv-active .srv-item-text-ar { color: #fff; }

/* Word-by-word stagger reveal */
.srv-item-text-ar .srv-word {
  display: inline-block;
  opacity: 0.4;
  transform: translateX(8px);   /* slide in from right (RTL) */
  filter: blur(0.5px);
  transition:
    opacity 480ms cubic-bezier(0.22,1,0.36,1),
    transform 520ms cubic-bezier(0.22,1,0.36,1),
    filter 420ms ease;
  margin-inline: 0.18em;
}
.srv-item-text-ar .srv-word:first-child { margin-inline-start: 0; }
.srv-item-text-ar .srv-word:last-child  { margin-inline-end: 0; }

.srv-active .srv-item-text-ar .srv-word {
  opacity: 1;
  transform: translateX(0);
  filter: blur(0);
}

/* Sliding accent bar — appears on the right edge of the active item (RTL) */
.srv-item-text-ar::before {
  content: '';
  position: absolute;
  top: 50%;
  right: -22px;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #CFFF04);
  transform: translateY(-50%);
  transition: width 520ms cubic-bezier(0.22,1,0.36,1);
  pointer-events: none;
}
.srv-active .srv-item-text-ar::before { width: 28px; }

/* Defensive: hide any stray English-mode children if React leaves them */
.srv-item-text-ar .srv-char,
.srv-item-text-ar .srv-char-over,
.srv-item-text-ar .srv-char-base {
  display: inline !important;
  position: static !important;
  opacity: inherit !important;
  transform: none !important;
}
.srv-item-text-ar .srv-char-over { display: none !important; }

/* ─── NAV contrast (EN) ─── */
.anim-nav-link { color: rgba(255,255,255,0.78); }
.anim-nav-link:hover { color: #fff; }

/* ═══ ARABIC NAV — HARD OVERRIDE so text is readable ═══
   Base .anim-nav-link uses JetBrains Mono (no Arabic) at 10.5px with
   wide letter-spacing — completely invisible for Arabic. Override everything. */
html[lang="ar"] .anim-nav-link {
  font-family: 'Cairo', system-ui, sans-serif !important;
  font-size: 15px !important;
  font-weight: 800 !important;
  letter-spacing: 0 !important;          /* Arabic must NOT have letter-spacing */
  text-transform: none !important;        /* Arabic has no case */
  color: #ffffff !important;              /* full white, not faded */
  padding: 8px 14px !important;
  line-height: 1.4 !important;
}
html[lang="ar"] .anim-nav-link:hover { color: #fff !important; background: rgba(255,255,255,0.10) !important; }
html[lang="ar"] .anim-nav-link.active { color: #fff !important; background: rgba(255,255,255,0.12) !important; }
html[lang="ar"] .anim-nav-items { gap: 6px; }

/* Force consistent nav-pill alignment across LTR/RTL */
.anim-nav { display: flex; align-items: center; }
.anim-nav-items { align-items: center; }
html[dir="rtl"] .anim-nav { flex-direction: row-reverse; }
html[dir="rtl"] .anim-nav-items { flex-direction: row-reverse; }
html[lang="ar"] .srv-item { text-transform: none; line-height: 1.25; }

/* Force reading direction of inline-block character animations to LTR for English in RTL mode */
html[dir="rtl"] .srv-item-text:not(.srv-item-text-ar),
html[dir="rtl"] .hs-h1, html[dir="rtl"] .pg-title,
html[dir="rtl"] .cs-title, html[dir="rtl"] .legal-title,
html[dir="rtl"] .ttl, html[dir="rtl"] .contact-headline {
  direction: ltr;
}
/* But if the content IS Arabic, keep RTL */
html[lang="ar"] .srv-item-text-ar,
html[lang="ar"] .hs-h1, html[lang="ar"] .pg-title,
html[lang="ar"] .cs-title, html[lang="ar"] .legal-title,
html[lang="ar"] .ttl, html[lang="ar"] .contact-headline {
  direction: rtl;
}

/* RTL: flip arrows, mirror inline-flex order */
html[dir="rtl"] svg.flip-rtl, html[dir="rtl"] .flip-rtl svg { transform: scaleX(-1); }
html[dir="rtl"] .anim-nav-items { flex-direction: row-reverse; }
html[dir="rtl"] .ft2-cols { direction: rtl; }

/* ─── Magic-dev style EN/AR pill toggle ───────────────────────────────── */
.yms-lang-toggle {
  position: relative;
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding: 3px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 999px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  user-select: none;
  vertical-align: middle;
  isolation: isolate;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: border-color 200ms ease, background 200ms ease;
}
.yms-lang-toggle:hover {
  border-color: rgba(255,255,255,0.22);
  background: rgba(255,255,255,0.06);
}
.yms-lang-toggle::before {
  content: '';
  position: absolute;
  top: 3px; left: 3px;
  width: calc(50% - 3px);
  height: calc(100% - 6px);
  background: linear-gradient(180deg, rgba(255,255,255,0.95) 0%, rgba(235,235,235,0.92) 100%);
  border-radius: 999px;
  box-shadow: 0 1px 0 rgba(255,255,255,0.4) inset, 0 2px 10px rgba(0,0,0,0.35);
  transition: transform 360ms cubic-bezier(0.22, 1, 0.36, 1);
  z-index: 0;
}
.yms-lang-toggle[data-active="ar"]::before {
  transform: translateX(100%);
}
.yms-lang-toggle button {
  position: relative;
  z-index: 1;
  appearance: none;
  background: none;
  border: 0;
  margin: 0;
  padding: 0 13px;
  height: 100%;
  min-width: 38px;
  color: rgba(255,255,255,0.55);
  cursor: pointer;
  font: inherit;
  letter-spacing: inherit;
  transition: color 240ms ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.yms-lang-toggle button:hover { color: rgba(255,255,255,0.85); }
.yms-lang-toggle button[data-set-lang="ar"] {
  font-family: 'Cairo', sans-serif;
  font-size: 13px;
  letter-spacing: 0;
  padding: 0 12px;
}
.yms-lang-toggle[data-active="en"] button[data-set-lang="en"],
.yms-lang-toggle[data-active="ar"] button[data-set-lang="ar"] {
  color: #0a0a0a;
}
.yms-lang-toggle button:focus-visible {
  outline: 2px solid var(--accent-lime, #CFFF04);
  outline-offset: 2px;
  border-radius: 999px;
}

/* RTL: keep the pill order EN | AR visually consistent (don't flip) */
html[dir="rtl"] .yms-lang-toggle { direction: ltr; }

/* Smaller compact variant for tight nav slots */
.yms-lang-toggle.compact { height: 24px; font-size: 9.5px; }
.yms-lang-toggle.compact button { padding: 0 10px; min-width: 32px; }
.yms-lang-toggle.compact button[data-set-lang="ar"] { font-size: 12px; }

/* ─── Nav-embedded language toggle ─── */
.anim-nav-items .yms-lang-toggle { margin-left: 14px; }
html[dir="rtl"] .anim-nav-items .yms-lang-toggle { margin-left: 0; margin-right: 14px; }
.anim-nav-items .yms-lang-toggle button[data-set-lang="ar"] {
  font-family: 'Cairo', sans-serif;
  font-weight: 800;
  font-size: 14px;
}

/* ─── MOBILE NAV: hamburger pill + floating lang toggle, fullscreen menu overlay ─── */
@media (max-width: 767px) {
  /* Force the pill into a circle shape (hamburger only) */
  .anim-nav.expanded {
    width: 48px !important;
    min-width: 48px !important;
    padding: 0 !important;
    border-radius: 999px !important;
    justify-content: center !important;
  }
  /* Inline link list hidden in pill — shown only when overlay open */
  .anim-nav-items { display: none !important; }
  /* Show the hamburger icon */
  .anim-nav-menu {
    opacity: 1 !important;
    transform: scale(1) !important;
    pointer-events: auto !important;
  }
  /* Hide the inline logo in pill (doesn't fit in circle) */
  .anim-nav.expanded .anim-nav-logo { opacity: 0 !important; pointer-events: none !important; }
  /* Hamburger → X when menu is open */
  body.mobile-nav-open .anim-nav-menu svg { transform: rotate(90deg); transition: transform 260ms ease; }

  /* ─── Fullscreen overlay menu (opened by tapping hamburger) ─── */
  body.mobile-nav-open {
    overflow: hidden;
  }
  body.mobile-nav-open::before {
    content: '';
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.92);
    backdrop-filter: blur(28px);
    -webkit-backdrop-filter: blur(28px);
    z-index: 199;        /* below nav pill (200) but above page */
    animation: mob-overlay-in 240ms cubic-bezier(0.22,1,0.36,1) both;
  }
  @keyframes mob-overlay-in {
    from { opacity: 0; }
    to   { opacity: 1; }
  }
  body.mobile-nav-open .anim-nav-items {
    display: flex !important;
    position: fixed !important;
    top: 0; left: 0; right: 0; bottom: 0;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 28px !important;
    z-index: 199;
    padding: 0 !important;
    opacity: 1 !important;
    transform: none !important;
    pointer-events: auto !important;
  }
  body.mobile-nav-open .anim-nav-items .anim-nav-link {
    display: inline-flex !important;
    font-size: 22px !important;
    letter-spacing: 0.1em !important;
    padding: 14px 24px !important;
    color: rgba(255,255,255,0.95) !important;
    background: transparent !important;
    border: 1px solid rgba(255,255,255,0.08) !important;
    border-radius: 999px !important;
    animation: mob-link-in 340ms cubic-bezier(0.22,1,0.36,1) both;
  }
  body.mobile-nav-open .anim-nav-items .anim-nav-link:nth-child(1) { animation-delay: 50ms; }
  body.mobile-nav-open .anim-nav-items .anim-nav-link:nth-child(2) { animation-delay: 100ms; }
  body.mobile-nav-open .anim-nav-items .anim-nav-link:nth-child(3) { animation-delay: 150ms; }
  body.mobile-nav-open .anim-nav-items .anim-nav-link:nth-child(4) { animation-delay: 200ms; }
  @keyframes mob-link-in {
    from { opacity: 0; transform: translateY(14px); }
    to   { opacity: 1; transform: translateY(0); }
  }
  html[lang="ar"] body.mobile-nav-open .anim-nav-items .anim-nav-link {
    font-family: 'Cairo', sans-serif !important;
    font-size: 26px !important;
    font-weight: 700 !important;
    letter-spacing: 0 !important;
  }

  /* Floating lang pill — fixed top-right, beside the nav */
  .yms-lang-toggle {
    position: fixed !important;
    top: 14px !important;
    right: 70px !important;
    left: auto !important;
    transform: none !important;
    margin: 0 !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    z-index: 1000 !important;
    height: 30px !important;
    padding: 3px !important;
  }
  html[dir="rtl"] .yms-lang-toggle {
    right: auto !important;
    left: 70px !important;
  }
  .yms-lang-toggle button { padding: 0 10px !important; min-width: 30px !important; font-size: 10px !important; height: 24px !important; }
  .yms-lang-toggle button[data-set-lang="ar"] { font-size: 13px !important; padding: 0 9px !important; min-width: 28px !important; }
  .yms-lang-toggle::before {
    width: calc(50% - 3px) !important;
    height: calc(100% - 6px) !important;
  }
}

/* ─── AR meta labels — visibility bump (cs-meta etc.) ─── */
html[lang="ar"] .cs-meta-label,
html[lang="ar"] .hero-stat-lbl,
html[lang="ar"] .ft2-eyebrow,
html[lang="ar"] .legal-meta span,
html[lang="ar"] .pl-dot + span,
html[lang="ar"] .rv-role {
  color: rgba(255,255,255,0.7) !important;
  font-size: 12px !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  font-family: 'Cairo', sans-serif !important;
  font-weight: 700 !important;
  line-height: 1.6 !important;
}
html[lang="ar"] .cs-meta-val {
  font-family: 'Cairo', sans-serif !important;
  font-weight: 600 !important;
}

/* ─── AR-only case-study summary card ─── */
.cs-ar-summary { display: none; }
html[lang="ar"] .cs-ar-summary {
  display: block !important;
  max-width: 1180px;
  margin: 60px auto 20px;
  padding: 0 56px;
}
@media (max-width: 767px) {
  html[lang="ar"] .cs-ar-summary { padding: 0 24px; margin: 40px auto 16px; }
}
.cs-ar-summary-inner {
  background: linear-gradient(180deg, rgba(207,255,4,0.05), rgba(124,43,227,0.05));
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 20px;
  padding: 40px 44px;
  position: relative;
  overflow: hidden;
}
@media (max-width: 767px) {
  .cs-ar-summary-inner { padding: 28px 24px; border-radius: 16px; }
}
.cs-ar-summary-inner::before {
  content: '';
  position: absolute;
  top: -40%; right: -10%;
  width: 50%; height: 100%;
  background: radial-gradient(circle, rgba(207,255,4,0.16), transparent 60%);
  pointer-events: none;
}
.cs-ar-summary-eyebrow {
  font-family: 'Cairo', sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: var(--accent-lime, #CFFF04);
  display: block;
  margin-bottom: 14px;
  letter-spacing: 0;
}
.cs-ar-summary-title {
  font-family: 'Cairo', sans-serif;
  font-weight: 800;
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.3;
  margin: 0 0 22px;
  color: #fff;
}
.cs-ar-summary-p {
  font-family: 'Cairo', sans-serif;
  font-weight: 600;
  font-size: clamp(15px, 1.15vw, 17px);
  line-height: 1.85;
  color: rgba(255,255,255,0.82);
  margin: 0 0 16px;
}
.cs-ar-summary-p:last-of-type { margin-bottom: 28px; }
.cs-ar-summary-foot { margin-top: 24px; }
.cs-ar-read-en {
  display: inline-flex; align-items: center; gap: 10px;
  appearance: none; background: rgba(255,255,255,0.06);
  color: #fff; border: 1px solid rgba(255,255,255,0.18);
  font-family: 'Cairo', sans-serif; font-weight: 700;
  font-size: 14px; padding: 12px 22px; border-radius: 999px;
  cursor: pointer; transition: background 220ms ease, border-color 220ms ease;
}
.cs-ar-read-en:hover { background: rgba(207,255,4,0.12); border-color: var(--accent-lime, #CFFF04); color: var(--accent-lime, #CFFF04); }

/* In AR mode hide the English deep prose — the AR summary card replaces them. */
html[lang="ar"] .cs-section,
html[lang="ar"] .cs-prose,
html[lang="ar"] .cs-features,
html[lang="ar"] .cs-feature,
html[lang="ar"] .cs-stack-row,
html[lang="ar"] .cs-pull,
html[lang="ar"] .cs-figure,
html[lang="ar"] .cs-cta-section,
html[lang="ar"] .cs-shot-disclaimer,
html[lang="ar"] .cs-lede,
html[lang="ar"] .cs-live-cta,
html[lang="ar"] .cs-deeplinks,
html[lang="ar"] .cs-tldr,
html[lang="ar"] .cs-callout,
html[lang="ar"] .cs-quote-block,
html[lang="ar"] .cs-disclaimer,
html[lang="ar"] .cs-cta-end,
html[lang="ar"] .cs-footer {
  display: none !important;
}

/* ═══ ARABIC MOBILE: bigger sizes + breathing line-height so Cairo doesn't clip ═══ */
@media (max-width: 767px) {
  html[lang="ar"] body { font-size: 17px; line-height: 1.85; }
  html[lang="ar"] h1, html[lang="ar"] h2, html[lang="ar"] h3,
  html[lang="ar"] .hs-h1, html[lang="ar"] .ttl, html[lang="ar"] .pg-title,
  html[lang="ar"] .cs-title, html[lang="ar"] .legal-title,
  html[lang="ar"] .contact-headline, html[lang="ar"] .srv-title,
  html[lang="ar"] .svc-name, html[lang="ar"] .cs-section-title,
  html[lang="ar"] .headline {
    line-height: 1.4 !important;      /* prevent diacritic clipping */
    padding-block: 0.1em;             /* extra room for tashkeel */
  }
  html[lang="ar"] .hs-h1 { font-size: clamp(56px, 14vw, 88px) !important; }
  html[lang="ar"] .pg-title, html[lang="ar"] .cs-title { font-size: clamp(46px, 11vw, 72px) !important; }
  html[lang="ar"] .ttl { font-size: clamp(36px, 9vw, 56px) !important; }
  html[lang="ar"] .svc-name { font-size: clamp(46px, 11vw, 72px) !important; }
  html[lang="ar"] .cs-section-title { font-size: clamp(34px, 8.5vw, 52px) !important; }
  html[lang="ar"] .ft2-wordmark { line-height: 1.3 !important; padding-block: 0.15em; }
  html[lang="ar"] p, html[lang="ar"] li, html[lang="ar"] .hs-sub, html[lang="ar"] .pg-sub {
    font-size: 16.5px !important;
    line-height: 1.9 !important;
  }
  html[lang="ar"] .anim-nav-link { font-size: 12.5px !important; }
}

