/* =========================================================
   LAQTA — STYLES
   Minimal, typographic, built around the logo: black / white,
   one red (the twin diamonds) and the camera-frame corners.
   Dark by default, light when the visitor's system asks for it
   or they flip the toggle. Mobile-first. RTL by default.
   ========================================================= */

/* ---------- Tokens ---------- */
:root {
  color-scheme: dark;
  /* dark mode = logo black */
  --bg: #0c0c0c;
  --bg-2: #131313;
  --bg-3: #1a1a1a;
  --ink: #f5f5f4;
  --ink-2: #b4b4b1;
  --ink-3: #7d7d7a;
  --line: rgba(245, 245, 244, 0.09);
  --line-2: rgba(245, 245, 244, 0.18);
  --accent: #e8202b;        /* logo red — fills, big type */
  --accent-text: #ff4a54;   /* same red, lifted so small text stays readable */
  --on-accent: #ffffff;
  --on-ink: #0c0c0c;        /* text on an ink-coloured (solid) button */
  --nav-bg: rgba(12, 12, 12, 0.82);
  --glow: rgba(232, 32, 43, 0.12);
  --shadow: rgba(0, 0, 0, 0.9);
  --backdrop: rgba(6, 6, 6, 0.88);
  --grain: 0.045;
  /* text that sits on photos/video stays light in both modes */
  --media-ink: #ffffff;
  --media-ink-2: rgba(255, 255, 255, 0.74);
  /* which logo file is visible */
  --show-on-dark: block;
  --show-on-light: none;

  /* Arabic: Changa — the closest match to the logo lettering (heavy, wide, Kufi-cut) */
  --font-ar: "Changa", "Segoe UI", Tahoma, sans-serif;
  --font-en: "Space Grotesk", "Changa", sans-serif;
  --font-display: var(--font-ar);

  --container: 1640px;
  --gutter: 20px;
  --radius: 4px;
  --radius-lg: 8px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --dur: 0.6s;
}

/* light mode = logo on white. Same values twice: once for the system
   setting, once for the manual toggle. */
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    color-scheme: light;
    --bg: #f7f7f5;
    --bg-2: #efefec;
    --bg-3: #e5e5e1;
    --ink: #0c0c0c;
    --ink-2: #474744;
    --ink-3: #6b6b67;
    --line: rgba(12, 12, 12, 0.1);
    --line-2: rgba(12, 12, 12, 0.22);
    --accent-text: #cc1520;
    --on-ink: #f7f7f5;
    --nav-bg: rgba(247, 247, 245, 0.86);
    --glow: rgba(232, 32, 43, 0.05);
    --shadow: rgba(12, 12, 12, 0.35);
    --backdrop: rgba(20, 20, 20, 0.55);
    --grain: 0.03;
    --show-on-dark: none;
    --show-on-light: block;
  }
}
:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f7f7f5;
  --bg-2: #efefec;
  --bg-3: #e5e5e1;
  --ink: #0c0c0c;
  --ink-2: #474744;
  --ink-3: #6b6b67;
  --line: rgba(12, 12, 12, 0.1);
  --line-2: rgba(12, 12, 12, 0.22);
  --accent-text: #cc1520;
  --on-ink: #f7f7f5;
  --nav-bg: rgba(247, 247, 245, 0.86);
  --glow: rgba(232, 32, 43, 0.05);
  --shadow: rgba(12, 12, 12, 0.35);
  --backdrop: rgba(20, 20, 20, 0.55);
  --grain: 0.03;
  --show-on-dark: none;
  --show-on-light: block;
}

@media (min-width: 768px) { :root { --gutter: 40px; } }
@media (min-width: 1200px) { :root { --gutter: 56px; } }

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  transition: background-color 0.4s var(--ease), color 0.4s var(--ease);
  color: var(--ink);
  font-family: var(--font-ar);
  font-weight: 400;
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.is-locked { overflow: hidden; }
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p { margin: 0; }
::selection { background: var(--accent); color: var(--on-accent); }

/* Subtle grain over everything — premium film feel */
body::after {
  content: "";
  position: fixed; inset: 0; z-index: 9999; pointer-events: none;
  opacity: var(--grain);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.section { padding-block: clamp(80px, 12vw, 160px); }

/* ---------- Brand marks (from the logo) ---------- */
/* Logo: two files, CSS shows the one that fits the current mode */
.logo { height: auto; }
.logo--on-dark { display: var(--show-on-dark); }
.logo--on-light { display: var(--show-on-light); }

/* The twin red diamonds above the قـ */
.diamonds {
  display: inline-block; flex: none;
  width: 16px; height: 8px; background: var(--accent);
  clip-path: polygon(0 50%, 26% 0, 50% 39%, 74% 0, 100% 50%, 74% 100%, 50% 61%, 26% 100%);
}

/* The camera-frame corners around the logo. Put .vf on an absolutely
   positioned element; tune with --vf-color / --vf-len / --vf-w. */
.vf, .card__media::before {
  --vf-color: var(--ink); --vf-len: 22px; --vf-w: 2px;
  pointer-events: none;
  background:
    linear-gradient(var(--vf-color) 0 0) 0 0 / var(--vf-len) var(--vf-w),
    linear-gradient(var(--vf-color) 0 0) 0 0 / var(--vf-w) var(--vf-len),
    linear-gradient(var(--vf-color) 0 0) 100% 0 / var(--vf-len) var(--vf-w),
    linear-gradient(var(--vf-color) 0 0) 100% 0 / var(--vf-w) var(--vf-len),
    linear-gradient(var(--vf-color) 0 0) 0 100% / var(--vf-len) var(--vf-w),
    linear-gradient(var(--vf-color) 0 0) 0 100% / var(--vf-w) var(--vf-len),
    linear-gradient(var(--vf-color) 0 0) 100% 100% / var(--vf-len) var(--vf-w),
    linear-gradient(var(--vf-color) 0 0) 100% 100% / var(--vf-w) var(--vf-len);
  background-repeat: no-repeat;
}

/* ---------- Type ---------- */
.eyebrow {
  font-family: var(--font-en);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-3);
  display: inline-flex; align-items: center; gap: 10px;
  direction: ltr;
}
.eyebrow::before {
  content: ""; width: 14px; height: 7px; background: var(--accent); flex: none;
  clip-path: polygon(0 50%, 26% 0, 50% 39%, 74% 0, 100% 50%, 74% 100%, 50% 61%, 26% 100%);
}
.section__head { margin-bottom: clamp(40px, 6vw, 72px); }
.section__head--split {
  display: flex; flex-direction: column; gap: 16px;
}
@media (min-width: 900px) {
  .section__head--split { flex-direction: row; align-items: flex-end; justify-content: space-between; }
}
.section__title {
  font-size: clamp(36px, 6vw, 72px);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin-top: 14px;
}
.section__note { color: var(--ink-2); max-width: 420px; font-size: 15px; }

/* ---------- Buttons ---------- */
.btn {
  --pad: 16px 28px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: var(--pad);
  border-radius: 999px;
  font-weight: 500;
  font-size: 15px;
  line-height: 1;
  border: 1px solid transparent;
  transition: transform 0.3s var(--ease), background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
  white-space: nowrap;
}
.btn:active { transform: scale(0.97); }
.btn--solid { background: var(--ink); color: var(--on-ink); }
.btn--solid:hover { background: var(--accent); color: var(--on-accent); }
.btn--ghost { border-color: var(--line-2); color: var(--ink); }
.btn--ghost:hover { border-color: var(--ink); }
.btn--sm { --pad: 11px 20px; font-size: 14px; }
.btn--lg { --pad: 20px 36px; font-size: 16px; }
.btn--block { width: 100%; }

/* ---------- Nav ---------- */
.nav {
  position: fixed; inset-inline: 0; top: 0; z-index: 100;
  padding-block: 18px;
  transition: background var(--dur), padding var(--dur), border-color var(--dur);
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: var(--nav-bg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-color: var(--line);
  padding-block: 12px;
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.nav__brand { display: inline-flex; align-items: center; position: relative; z-index: 1; }
.nav__brand .logo { width: 92px; transition: width var(--dur) var(--ease); }
@media (min-width: 900px) { .nav__brand .logo { width: 108px; } }
.nav.is-scrolled .nav__brand .logo { width: 84px; }
/* light/dark switch */
.theme-toggle {
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid var(--line-2); color: var(--ink);
  transition: border-color 0.3s, background 0.3s, transform 0.5s var(--ease);
}
.theme-toggle:hover { border-color: var(--ink); }
.theme-toggle:active { transform: rotate(-30deg) scale(0.94); }
.theme-toggle__sun { display: var(--show-on-dark); }
.theme-toggle__moon { display: var(--show-on-light); }
.nav__links { display: none; gap: 32px; }
.nav__links a { font-size: 15px; color: var(--ink-2); position: relative; transition: color 0.3s; }
.nav__links a::after {
  content: ""; position: absolute; inset-inline-start: 0; bottom: -6px;
  width: 0; height: 1px; background: var(--accent); transition: width 0.4s var(--ease);
}
.nav__links a:hover, .nav__links a.is-active { color: var(--ink); }
.nav__links a:hover::after, .nav__links a.is-active::after { width: 100%; }
.nav__actions { display: flex; align-items: center; gap: 14px; }
.nav__actions .btn { display: none; }
.nav__burger {
  width: 44px; height: 44px; display: grid; place-items: center; gap: 0;
  position: relative;
}
.nav__burger span {
  position: absolute; width: 22px; height: 1.5px; background: var(--ink);
  transition: transform 0.4s var(--ease), top 0.4s var(--ease);
}
.nav__burger span:first-child { top: 18px; }
.nav__burger span:last-child { top: 25px; }
.nav__burger.is-open span:first-child { top: 21px; transform: rotate(45deg); }
.nav__burger.is-open span:last-child { top: 21px; transform: rotate(-45deg); }

@media (min-width: 900px) {
  .nav__links { display: flex; }
  .nav__actions .btn { display: inline-flex; }
  .nav__burger { display: none; }
}

/* Mobile menu */
.mobile-menu {
  position: fixed; inset: 0; z-index: 90;
  background: var(--bg);
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 110px var(--gutter) 40px;
  clip-path: inset(0 0 100% 0);
  transition: clip-path 0.6s var(--ease);
  visibility: hidden;
}
.mobile-menu.is-open { clip-path: inset(0 0 0 0); visibility: visible; }
.mobile-menu__links { display: flex; flex-direction: column; }
.mobile-menu__links a {
  font-family: var(--font-display);
  font-size: clamp(24px, 6.4vw, 32px); font-weight: 700; line-height: 1.3;
  padding-block: 14px; border-bottom: 1px solid var(--line);
  display: flex; align-items: baseline; gap: 14px;
  opacity: 0; transform: translateY(20px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}
.mobile-menu.is-open .mobile-menu__links a { opacity: 1; transform: none; }
.mobile-menu.is-open .mobile-menu__links a:nth-child(1) { transition-delay: 0.15s; }
.mobile-menu.is-open .mobile-menu__links a:nth-child(2) { transition-delay: 0.2s; }
.mobile-menu.is-open .mobile-menu__links a:nth-child(3) { transition-delay: 0.25s; }
.mobile-menu.is-open .mobile-menu__links a:nth-child(4) { transition-delay: 0.3s; }
.mobile-menu.is-open .mobile-menu__links a:nth-child(5) { transition-delay: 0.35s; }
.mobile-menu__links small { font-family: var(--font-en); font-size: 12px; color: var(--accent-text); letter-spacing: 0.1em; }
.mobile-menu__foot { display: flex; flex-direction: column; gap: 24px; }
.mobile-menu__social { display: flex; gap: 20px; font-family: var(--font-en); font-size: 13px; letter-spacing: 0.08em; color: var(--ink-2); direction: ltr; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: min(100svh, 980px); /* tall portrait tablets: no empty bands */
  display: flex; align-items: center;
  padding-top: 110px; padding-bottom: 60px;
  overflow: hidden;
}
.hero::before {
  /* one soft light source — not a gradient wash */
  content: ""; position: absolute; width: 60vw; height: 60vw; max-width: 720px; max-height: 720px;
  inset-inline-end: -20vw; top: -10vw; border-radius: 50%;
  background: radial-gradient(closest-side, var(--glow), transparent 70%);
  pointer-events: none;
}
/* on phones the glow lands in the corner behind the menu and reads as a smudge */
@media (max-width: 899px) { .hero::before { display: none; } }
.hero__grid { display: grid; gap: 48px; align-items: center; position: relative; }
/* tablets and up: copy and reel side by side */
@media (min-width: 720px) {
  .hero__grid { grid-template-columns: 1.15fr 0.85fr; gap: 32px; }
}
.hero__title {
  font-size: clamp(44px, 9vw, 104px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin-top: 22px;
}
.hero__title em { font-style: normal; color: var(--accent); }
.hero__title .line { display: block; overflow: hidden; padding-bottom: 0.08em; }
.hero__title .line > span { display: block; transform: translateY(110%); animation: heroLine 1.2s var(--ease) forwards; }
.hero__title .line:nth-child(1) > span { animation-delay: 0.15s; }
.hero__title .line:nth-child(2) > span { animation-delay: 0.27s; }
@keyframes heroLine { to { transform: translateY(0); } }
.hero__visual { opacity: 0; transform: translateY(40px); animation: heroVisual 1.4s var(--ease) 0.4s forwards; }
@keyframes heroVisual { to { opacity: 1; transform: none; } }
.hero__sub {
  margin-top: 26px; max-width: 480px;
  font-size: clamp(17px, 2vw, 20px); color: var(--ink-2); font-weight: 300;
}
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.hero__tags {
  display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 44px;
  font-family: var(--font-en); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3);
  direction: ltr; justify-content: flex-end;
}
/* phones: the marquee right below says the same thing */
@media (max-width: 639px) { .hero__tags { display: none; } }
.hero__tags li { position: relative; }
.hero__tags li + li::before { content: ""; position: absolute; inset-inline-start: -11px; top: 50%; width: 3px; height: 3px; border-radius: 50%; background: var(--ink-3); }
.hero__scroll {
  position: absolute; bottom: 28px; inset-inline-start: var(--gutter);
  width: 1px; height: 56px; overflow: hidden; display: none;
}
.hero__scroll span { display: block; width: 100%; height: 100%; background: var(--ink-2); transform-origin: top; animation: scrollLine 2.2s var(--ease) infinite; }
@keyframes scrollLine { 0% { transform: scaleY(0); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }
@media (min-width: 900px) { .hero__scroll { display: block; } }

/* Hero reel: the React Bits Carousel, its stylesheet below is copied verbatim
   (reactbits.dev/components/carousel); main.js builds the same markup. */
.hero__visual { display: flex; justify-content: center; }
.reel { position: relative; width: min(330px, 100%); }
.reel .carousel-container { direction: ltr; font-family: var(--font-ar); }

.carousel-container {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  max-width: 100%;
  box-sizing: border-box;
  outline: none;
  -webkit-tap-highlight-color: transparent;
}

.carousel-container.has-frame {
  gap: 16px;
}

.carousel-stage {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  align-self: stretch;
  gap: 12px;
  box-sizing: border-box;
  border-radius: var(--carousel-radius);
}

.carousel-container:focus-visible .carousel-stage {
  outline: 2px solid var(--carousel-ink);
  outline-offset: 4px;
}

.carousel-container.has-frame .carousel-stage {
  padding: 10px;
  border-radius: calc(var(--carousel-radius) + 10px);
  background: var(--carousel-frame);
  box-shadow: var(--carousel-frame-shadow);
  overflow: hidden;
  -webkit-backdrop-filter: blur(20px) saturate(1.6);
  backdrop-filter: blur(20px) saturate(1.6);
}

.carousel-container.has-frame.is-round .carousel-stage {
  border-radius: 50%;
}

.carousel-frame-rim {
  position: absolute;
  inset: 0;
  z-index: 30;
  border-radius: inherit;
  box-shadow:
    inset 0 0 0 1px var(--carousel-frame-edge),
    inset 0 1px 0 var(--carousel-frame-highlight);
  pointer-events: none;
}

.carousel-viewport {
  position: relative;
  align-self: stretch;
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
}

.carousel-viewport[data-draggable='true'] {
  cursor: grab;
}

.carousel-viewport[data-dragging='true'] {
  cursor: grabbing;
}

.carousel-slide {
  position: absolute;
  top: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  will-change: transform, opacity;
}

.carousel-slide:not([data-current]) {
  cursor: pointer;
}

.carousel-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  height: 100%;
  padding: calc(20px * var(--carousel-scale, 1));
  box-sizing: border-box;
  border-radius: var(--carousel-radius);
  background: var(--carousel-tile);
  box-shadow: var(--carousel-tile-shadow);
  color: var(--carousel-ink);
  overflow: hidden;
  transition: filter 0.25s ease;
}

.carousel-card-rim {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow:
    inset 0 0 0 1px var(--carousel-tile-edge),
    inset 0 1px 0 var(--carousel-tile-highlight);
  pointer-events: none;
}

.carousel-card.is-custom {
  display: block;
  padding: 0;
}

.carousel-card.is-round {
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 14%;
  text-align: center;
}

.carousel-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.carousel-scrim {
  position: absolute;
  inset: 0;
  opacity: var(--carousel-focus, 1);
  pointer-events: none;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.62) 0%,
    rgba(0, 0, 0, 0.6) 8%,
    rgba(0, 0, 0, 0.54) 17%,
    rgba(0, 0, 0, 0.45) 26%,
    rgba(0, 0, 0, 0.34) 36%,
    rgba(0, 0, 0, 0.22) 46%,
    rgba(0, 0, 0, 0.11) 56%,
    rgba(0, 0, 0, 0.04) 64%,
    rgba(0, 0, 0, 0) 72%
  );
}

.carousel-card.is-round .carousel-scrim {
  background: rgba(0, 0, 0, 0.3);
}

.carousel-icon {
  position: relative;
  display: grid;
  place-items: center;
  flex: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--carousel-badge);
  color: var(--carousel-ink);
}

.carousel-card.has-image .carousel-icon {
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.carousel-icon svg {
  width: 16px;
  height: 16px;
}

.carousel-text {
  position: relative;
  margin-top: auto;
  opacity: var(--carousel-focus, 1);
}

.carousel-card.is-round .carousel-text {
  margin-top: 0;
}

.carousel-title {
  font-size: calc(18px * var(--carousel-scale, 1));
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.carousel-description {
  margin: 4px 0 0;
  font-size: calc(14px * var(--carousel-scale, 1));
  line-height: 1.45;
  color: var(--carousel-muted);
}

.carousel-card.has-image .carousel-title {
  color: #ffffff;
}

.carousel-card.has-image .carousel-description {
  color: rgba(255, 255, 255, 0.78);
}

.carousel-shade {
  position: absolute;
  inset: 0;
  border-radius: var(--carousel-radius);
  background: #000000;
  pointer-events: none;
}

.carousel-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  max-width: 100%;
}

.carousel-arrow {
  display: grid;
  place-items: center;
  flex: none;
  width: 32px;
  height: 32px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: var(--carousel-tile);
  box-shadow:
    inset 0 0 0 1px var(--carousel-tile-edge),
    inset 0 1px 0 var(--carousel-tile-highlight),
    var(--carousel-tile-shadow);
  color: var(--carousel-ink);
  cursor: pointer;
  transition:
    opacity 0.2s ease,
    filter 0.2s ease,
    transform 0.2s ease;
}

.carousel-arrow:disabled {
  opacity: 0.35;
  cursor: default;
}

.carousel-arrow:not(:disabled):active {
  filter: var(--carousel-press);
  transform: scale(0.92);
  transition-duration: 0s;
}

.carousel-arrow:focus-visible,
.carousel-dot:focus-visible,
.carousel-bar:focus-visible {
  outline: 2px solid var(--carousel-ink);
  outline-offset: 2px;
}

.carousel-dots {
  display: flex;
  align-items: center;
}

.carousel-dot {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: none;
  cursor: pointer;
}

.carousel-dot-mark {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--carousel-faint);
  transition:
    background-color 0.2s ease,
    transform 0.2s ease;
}

.carousel-dot.is-active .carousel-dot-mark {
  background: var(--carousel-ink);
  transform: scale(1.2);
}

.carousel-bars {
  display: flex;
  flex: 1;
  gap: 6px;
  min-width: 0;
}

.carousel-bar {
  display: flex;
  align-items: center;
  flex: 1;
  height: 20px;
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
}

.carousel-bar-track {
  position: relative;
  width: 100%;
  height: 3px;
  border-radius: 3px;
  background: var(--carousel-faint);
  overflow: hidden;
  transition: background-color 0.2s ease;
}

.carousel-bar-fill {
  position: absolute;
  inset: 0;
  background: var(--carousel-ink);
  transform-origin: left center;
}

.carousel-counter {
  display: flex;
  align-items: baseline;
  gap: 6px;
  overflow: hidden;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  color: var(--carousel-muted);
}

.carousel-counter-current {
  display: inline-block;
  color: var(--carousel-ink);
}

@media (hover: hover) {
  .carousel-slide:hover .carousel-card {
    filter: var(--carousel-hover);
  }

  .carousel-arrow:not(:disabled):hover {
    filter: var(--carousel-hover);
  }

  .carousel-arrow:not(:disabled):hover:active {
    filter: var(--carousel-press);
  }

  .carousel-dot:not(.is-active):hover .carousel-dot-mark,
  .carousel-bar:hover .carousel-bar-track {
    background: var(--carousel-soft);
  }
}

/* viewfinder corners framing the reel, breathing like a camera finding focus */
.reel__vf {
  position: absolute; inset: -6% -16%; z-index: 0;
  --vf-len: 34px; --vf-w: 3px;
  animation: vfFocus 3.6s var(--ease) infinite;
}
@keyframes vfFocus { 0%, 100% { inset: -6% -16%; } 50% { inset: -4% -13%; } }

/* ---------- Marquee ---------- */
.marquee { overflow: hidden; border-block: 1px solid var(--line); padding-block: 18px; direction: ltr; }
.marquee__track {
  display: flex; align-items: center; gap: 40px; width: max-content;
  font-family: var(--font-en); font-size: 13px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-3);
  animation: marquee 40s linear infinite;
}
.marquee__track i {
  width: 14px; height: 7px; background: var(--accent); flex: none;
  clip-path: polygon(0 50%, 26% 0, 50% 39%, 74% 0, 100% 50%, 74% 100%, 50% 61%, 26% 100%);
}
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Intro ---------- */
.intro { text-align: center; }
.intro__title {
  font-size: clamp(30px, 5.4vw, 64px); font-weight: 600; line-height: 1.3; letter-spacing: -0.01em;
  margin: 24px auto 0; max-width: 900px;
}
.intro__title em { font-style: normal; color: var(--accent); }
.intro__text { margin: 28px auto 0; max-width: 560px; color: var(--ink-2); font-weight: 300; font-size: 17px; }

/* ---------- Services ---------- */
/* An index of what we make: big type rows, real work as the visual. */
.services { background: var(--bg-2); border-block: 1px solid var(--line); }
.svc-list { border-bottom: 1px solid var(--line); counter-reset: svc; }
.svc {
  position: relative;
  display: grid; align-items: start;
  grid-template-columns: 1fr;
  grid-template-areas: "meta" "title" "desc";
  column-gap: 20px;
  padding-block: 28px;
  border-top: 1px solid var(--line);
}
.svc__num {
  grid-area: meta;
  font-family: var(--font-en); font-size: 12px; letter-spacing: 0.1em; color: var(--ink-3);
}
.svc__title {
  grid-area: title;
  font-size: clamp(28px, 7vw, 40px); font-weight: 700; line-height: 1.2; letter-spacing: -0.01em;
  margin-top: 10px;
}
.svc__desc { grid-area: desc; color: var(--ink-2); font-weight: 300; font-size: 15px; margin-top: 8px; max-width: 440px; }

/* Live motion panel (js/lakta-motion.js). It stays dark in light mode too, like a screen.
   Touch / narrow screens: it docks under the nav while the rows scroll beneath it,
   and the row passing under it becomes active (main.js). */
:root { --scene-bg: #141416; }
.svc-stage {
  position: sticky; top: 60px; z-index: 5;
  margin-inline: calc(var(--gutter) * -1); padding: 10px var(--gutter) 16px;
  background: linear-gradient(var(--bg-2) 85%, transparent);
}
.svc-stage__panel {
  width: min(100%, 44svh); margin-inline: auto; border-radius: 18px; overflow: hidden;
  --lm-bg: var(--scene-bg); --lm-font: var(--font-ar); --lm-mono: var(--font-en);
  box-shadow: 0 24px 60px -30px var(--shadow);
}
.svc { transition: border-color 0.3s var(--ease); }
.svc__num { transition: color 0.3s; }
.svc.is-active { border-top-color: var(--accent); }
.svc.is-active .svc__num { color: var(--accent-text); }

/* mouse + wide screen: a calm list beside the sticky panel; hovering a row morphs it */
@media (min-width: 900px) and (hover: hover) {
  .svc-layout {
    display: grid; align-items: start;
    grid-template-columns: minmax(0, 1fr) clamp(360px, 38vw, 540px);
    column-gap: clamp(48px, 6vw, 96px);
  }
  .svc-stage {
    order: 2; top: max(100px, calc(50vh - 270px));
    margin: 0; padding: 0; background: none;
  }
  .svc-stage__panel { width: 100%; border-radius: 22px; box-shadow: 0 30px 80px -30px var(--shadow); }
  .svc {
    grid-template-columns: 52px minmax(0, 1fr);
    grid-template-areas: "num title" "num desc";
    column-gap: 20px; align-items: baseline;
    padding-block: 26px;
  }
  .svc__num { grid-area: num; }
  .svc__title {
    grid-area: title; margin-top: 0;
    font-size: clamp(26px, 2.5vw, 36px); color: var(--ink-2);
    transition: color 0.3s, transform 0.5s var(--ease);
  }
  .svc__desc { grid-area: desc; margin-top: 6px; color: var(--ink-3); max-width: 600px; transition: color 0.3s; }
  .svc.is-active .svc__title { color: var(--ink); transform: translateX(-8px); }
  .svc.is-active .svc__desc { color: var(--ink-2); }

  /* pinned (main.js): heading, list and panel stay on screen; the list pans inside
     .svc-clip as scroll steps through the services */
  .svc-layout.is-pinned .svc-stage { position: relative; top: auto; }
  .svc-layout.is-pinned .svc { cursor: pointer; }
  .svc-clip {
    overflow: hidden;
    -webkit-mask-image: linear-gradient(transparent, #000 5%, #000 95%, transparent);
    mask-image: linear-gradient(transparent, #000 5%, #000 95%, transparent);
  }
  .svc-clip .svc-list { will-change: transform; }
}

/* ---------- Work ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 36px; }
/* phones: one swipeable row instead of three wrapped rows */
@media (max-width: 899px) {
  .filters {
    flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none;
    margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter);
    scroll-snap-type: x proximity; scroll-padding-inline: var(--gutter);
  }
  .filters::-webkit-scrollbar { display: none; }
}
.filter {
  font-family: var(--font-en); font-size: 11px; letter-spacing: 0.16em;
  padding: 10px 16px; border-radius: 999px; border: 1px solid var(--line);
  color: var(--ink-2); transition: all 0.4s var(--ease);
  display: inline-flex; gap: 8px; align-items: center;
  direction: ltr; flex: none; scroll-snap-align: start;
}
.filter small { font-family: var(--font-ar); font-size: 12px; letter-spacing: 0; color: var(--ink-3); }
.filter:hover { border-color: var(--line-2); color: var(--ink); }
.filter.is-active { background: var(--ink); color: var(--on-ink); border-color: var(--ink); }
.filter.is-active small { color: var(--on-ink); opacity: 0.7; }

.work__grid {
  display: grid; gap: 40px 24px;
  grid-template-columns: repeat(3, 1fr);
}
/* phones: a swipeable reel row, one ad and a peek of the next */
@media (max-width: 639px) {
  .work__grid {
    display: flex; gap: 12px;
    overflow-x: auto; overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory; scrollbar-width: none;
    margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter);
    scroll-padding-inline: var(--gutter);
  }
  .work__grid::-webkit-scrollbar { display: none; }
  .work__grid .card { flex: 0 0 72%; scroll-snap-align: start; }
}
@media (min-width: 640px) and (max-width: 899px) { .work__grid { gap: 32px 14px; } }

.card {
  position: relative; display: block; width: 100%;
  cursor: pointer; text-align: start; color: var(--ink);
}
/* the ad keeps its real 9:16 shape, nothing printed on top of it */
.card__media {
  position: relative; display: block; overflow: hidden; isolation: isolate;
  aspect-ratio: 9 / 16; border-radius: var(--radius-lg);
  background: var(--bg-3);
}
/* hover: the logo's frame corners close in on the shot */
.card__media::before {
  content: ""; position: absolute; inset: 18px; z-index: 3;
  --vf-color: var(--media-ink); --vf-len: 18px; --vf-w: 2px;
  opacity: 0; transition: opacity 0.4s var(--ease), inset 0.6s var(--ease);
}
.card:hover .card__media::before, .card:focus-visible .card__media::before { opacity: 1; inset: 10px; }
.card__media img, .card__media video {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transition: transform 1.2s var(--ease), opacity 0.5s var(--ease);
}
.card__media video { opacity: 0; }
.card.is-previewing .card__media video { opacity: 1; }
.card:hover .card__media img, .card:hover .card__media video { transform: scale(1.03); }
.card__play {
  position: absolute; bottom: 14px; inset-inline-start: 14px; z-index: 2;
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(10,10,11,0.55); border: 1px solid rgba(255,255,255,0.18);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  display: grid; place-items: center;
  transition: background 0.3s var(--ease), transform 0.4s var(--ease);
}
.card__play::after { content: ""; border-left: 11px solid var(--media-ink); border-block: 6px solid transparent; margin-left: 3px; }
.card:hover .card__play { background: var(--accent); border-color: var(--accent); transform: scale(1.08); }
.card__body { display: flex; flex-direction: column; gap: 4px; padding: 16px 2px 0; }
.card__brand {
  font-family: var(--font-en); font-weight: 700; letter-spacing: -0.02em; line-height: 1;
  font-size: clamp(18px, 2vw, 24px); direction: ltr; text-align: right;
}
.card__title { font-size: 14px; color: var(--ink-2); }
.card__type { font-family: var(--font-en); font-size: 12px; color: var(--ink-3); direction: ltr; text-align: right; }
@media (max-width: 899px) {
  .card__play { width: 34px; height: 34px; bottom: 10px; inset-inline-start: 10px; }
  .card__title { font-size: 13px; }
}
.card.is-hidden { display: none; }
.work__empty { grid-column: 1 / -1; padding: 60px; text-align: center; color: var(--ink-3); }

/* Work grid, 3 x 2: Aceternity UI Focus Cards ported to plain CSS. Phones keep the swipe row. */
@media (min-width: 640px) {
  .work__grid[data-style] { grid-template-columns: repeat(3, 1fr); gap: 40px; }
  .work__grid[data-style="focus"] { max-width: 1040px; margin-inline: auto; gap: 28px; }
  .work__grid[data-style] .card.is-inview { transition-delay: 0s !important; }   /* hover effects react instantly */

  /* Focus Cards: hovering one blurs and shrinks the rest; its name fades in over a dark veil */
  /* 4:5 so the 9:16 ads lose little, cropped from their top third */
  .work__grid[data-style="focus"] .card { aspect-ratio: 4 / 5; border-radius: 8px; overflow: hidden; background: var(--bg-3); transition: all 0.3s ease-out; }
  .work__grid[data-style="focus"] .card__media img, .work__grid[data-style="focus"] .card__media video { object-position: 50% 30%; }
  .work__grid[data-style="focus"] .card__play, .work__grid[data-style="focus"] .card__type { display: none; }
  .work__grid[data-style="focus"] .card__media { position: absolute; inset: 0; aspect-ratio: auto; border-radius: 0; }
  .work__grid[data-style="focus"] .card__media::before { display: none; }
  .work__grid[data-style="focus"] .card:hover .card__media img, .work__grid[data-style="focus"] .card:hover .card__media video { transform: none; }
  .work__grid[data-style="focus"] .card__body {
    position: absolute; inset: 0; z-index: 4; justify-content: flex-end; padding: 32px 16px;
    background: rgba(0, 0, 0, 0.5); opacity: 0; transition: opacity 0.3s;
  }
  .work__grid[data-style="focus"] .card:hover .card__body, .work__grid[data-style="focus"] .card:focus-visible .card__body { opacity: 1; }
  .work__grid[data-style="focus"] .card__brand {
    font-size: 24px; font-weight: 500;
    background: linear-gradient(to bottom, #fafafa, #e5e5e5); -webkit-background-clip: text; background-clip: text; color: transparent;
  }
  .work__grid[data-style="focus"] .card__title { color: rgba(255, 255, 255, 0.85); font-size: 17px; margin-top: 4px; }
  .work__grid[data-style="focus"] .card__type { color: rgba(255, 255, 255, 0.55); }
  .work__grid[data-style="focus"]:has(.card:hover) .card.card:not(:hover) { filter: blur(4px); transform: scale(0.98); }

}

/* ---------- Process ---------- */
.process { border-top: 1px solid var(--line); }
.steps { position: relative; display: grid; gap: 0; counter-reset: step; }
.steps::before {
  content: ""; position: absolute; inset-inline-start: 30px; top: 0; bottom: 0; width: 1px;
  background: var(--line);
}
.steps::after {
  content: ""; position: absolute; inset-inline-start: 30px; top: 0; width: 1px; height: 100%;
  background: var(--accent); transform: scaleY(var(--progress, 0)); transform-origin: top;
}
.step {
  position: relative; display: grid; grid-template-columns: 60px 1fr; gap: 20px; align-items: start;
  padding-block: 32px;
}
.step__num {
  font-family: var(--font-en); font-size: 13px; letter-spacing: 0.1em;
  width: 60px; text-align: center; position: relative; z-index: 1;
}
.step__num::before {
  content: ""; position: absolute; inset-inline-start: 25px; top: 9px; width: 11px; height: 11px; border-radius: 1px;
  transform: rotate(45deg);
  background: var(--bg); border: 1px solid var(--line-2); transition: background 0.5s, border-color 0.5s;
}
.step.is-active .step__num::before { background: var(--accent); border-color: var(--accent); }
.step__num { color: transparent; }
.step h3 { font-size: clamp(28px, 5vw, 44px); font-weight: 600; line-height: 1.2; }
.step p { color: var(--ink-2); font-weight: 300; max-width: 380px; margin-top: 8px; }

/* tablets: 2 × 2, no rail */
@media (min-width: 640px) and (max-width: 899px) {
  .steps { grid-template-columns: repeat(2, 1fr); column-gap: 32px; }
  .steps::before, .steps::after { display: none; }
}
@media (min-width: 900px) {
  .steps { grid-template-columns: repeat(4, 1fr); gap: 32px; }
  .steps::before, .steps::after { inset-inline: 0; top: 0; height: 1px; width: auto; bottom: auto; }
  .steps::after { transform: scaleX(var(--progress, 0)); transform-origin: right; }
  .step { grid-template-columns: 1fr; gap: 0; padding-top: 48px; }
  .step__num {
    color: var(--ink-3); width: auto; text-align: start; font-size: clamp(48px, 5vw, 72px); font-weight: 500; letter-spacing: -0.02em; line-height: 1;
    transition: color 0.5s;
  }
  .step.is-active .step__num { color: var(--accent); }
  .step__num::before { top: -49px; inset-inline-start: 0; }
  .step__body { margin-top: 20px; }
}

/* ---------- Packages ---------- */
.packages { background: var(--bg-2); border-block: 1px solid var(--line); }
.packages__grid { display: grid; gap: 16px; }
@media (min-width: 760px) { .packages__grid { grid-template-columns: repeat(3, 1fr); gap: 14px; align-items: stretch; } }
@media (min-width: 760px) and (max-width: 1099px) {
  .pkg { padding: 30px 20px 22px; }
  .pkg__price b { font-size: 42px; }
  .pkg__list li { font-size: 14px; }
}
@media (min-width: 1100px) { .packages__grid { gap: 20px; } }
.pkg {
  position: relative;
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 36px 30px 30px;
  display: flex; flex-direction: column;
  background: var(--bg-2);
  transition: border-color 0.5s var(--ease), transform 0.6s var(--ease);
}
.pkg:hover { border-color: var(--line-2); }
.pkg--featured { border-color: rgba(232, 32, 43, 0.5); background: var(--bg-3); }
@media (min-width: 760px) { .pkg--featured { transform: translateY(-12px); } .pkg--featured:hover { transform: translateY(-16px); } }
.pkg__badge {
  position: absolute; top: -12px; inset-inline-start: 30px;
  font-size: 12px; padding: 5px 12px; border-radius: 999px;
  background: var(--accent); color: var(--on-accent); font-weight: 500;
}
.pkg__en { font-family: var(--font-en); font-size: 11px; letter-spacing: 0.24em; color: var(--accent-text); direction: ltr; display: block; text-align: right; }
.pkg h3 { font-size: 28px; font-weight: 600; margin-top: 8px; }
.pkg__price { display: flex; align-items: baseline; gap: 8px; margin-top: 22px; padding-bottom: 26px; border-bottom: 1px solid var(--line); }
.pkg__price small { font-size: 13px; color: var(--ink-3); }
.pkg__price b { font-family: var(--font-en); font-size: 52px; font-weight: 500; letter-spacing: -0.03em; line-height: 1; }
.pkg__price span { font-size: 15px; color: var(--ink-2); }
.pkg__list { display: flex; flex-direction: column; gap: 12px; padding-block: 26px; flex: 1; }
.pkg__list li { position: relative; padding-inline-start: 22px; font-size: 15px; color: var(--ink-2); }
.pkg__list li::before { content: ""; position: absolute; inset-inline-start: 0; top: 11px; width: 10px; height: 1px; background: var(--accent); }

/* Price + small WhatsApp "ask" button, divider below both */
.pkg__pricebox {
  display: flex; flex-direction: column; align-items: flex-start; gap: 14px;
  margin-top: 22px; padding-bottom: 26px; border-bottom: 1px solid var(--line);
}
.pkg__pricebox .pkg__price { margin-top: 0; padding-bottom: 0; border-bottom: 0; }
.pkg__ask {
  position: relative; z-index: 1;
  display: inline-flex; align-items: center; gap: 7px;
  padding: 7px 14px; border-radius: 999px; white-space: nowrap;
  font-size: 13px; font-weight: 600;
  background: var(--bg); color: var(--ink);
  border: 1px solid rgba(232, 32, 43, 0.55);
  box-shadow: 0 10px 30px -12px var(--shadow);
  transition: background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease), transform 0.3s var(--ease);
}
.pkg__ask svg { color: var(--accent-text); transition: color 0.25s; }
.pkg__ask:hover { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.pkg__ask:hover svg { color: var(--on-accent); }
.pkg__ask:active { transform: scale(0.96); }

/* promo banner: one big link card ("not sure which package?", "try your logo") */
.promo {
  position: relative; margin-top: 28px;
  display: flex; flex-direction: column; align-items: flex-start; gap: 20px;
  padding: 28px 24px; border-radius: 12px;
  border: 1px solid rgba(232, 32, 43, 0.5);
  background: linear-gradient(135deg, rgba(232, 32, 43, 0.12), rgba(232, 32, 43, 0.03) 60%);
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease), transform 0.3s var(--ease);
}
@media (min-width: 760px) { .promo { flex-direction: row; align-items: center; padding: 32px 40px; gap: 28px; } }
.promo__vf { position: absolute; inset: 10px; --vf-color: var(--accent); --vf-len: 16px; --vf-w: 2px; opacity: 0.8; }
.promo__mark {
  flex: none; width: 34px; height: 17px; background: var(--accent);
  clip-path: polygon(0 50%, 26% 0, 50% 39%, 74% 0, 100% 50%, 74% 100%, 50% 61%, 26% 100%);
  animation: helpBeat 2.4s var(--ease) infinite;
}
@keyframes helpBeat { 0%, 70%, 100% { transform: scale(1); } 80% { transform: scale(1.25); } 90% { transform: scale(0.95); } }
.promo__text { display: flex; flex-direction: column; gap: 6px; flex: 1; }
.promo__text strong { font-size: clamp(22px, 3vw, 30px); font-weight: 700; line-height: 1.25; color: var(--ink); }
.promo__text > span { color: var(--ink-2); font-size: 15px; max-width: 560px; }
.promo__btn {
  flex: none; display: inline-flex; align-items: center; gap: 10px;
  padding: 16px 28px; border-radius: 999px;
  background: var(--accent); color: var(--on-accent); font-weight: 700; font-size: 16px;
  box-shadow: 0 14px 34px -12px rgba(232, 32, 43, 0.6);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.promo__btn span { transition: transform 0.3s var(--ease); }
@media (hover: hover) {
  .promo:hover { border-color: var(--accent); background: linear-gradient(135deg, rgba(232, 32, 43, 0.18), rgba(232, 32, 43, 0.05) 60%); }
  .promo:hover .promo__btn { transform: translateY(-2px); box-shadow: 0 18px 40px -12px rgba(232, 32, 43, 0.75); }
  .promo:hover .promo__btn span { transform: translateX(-4px); }
}
.promo:active { transform: scale(0.99); }
@media (max-width: 759px) { .promo__btn { width: 100%; justify-content: center; } }

/* App user guides: full-width card, price quoted per app */
.pkg__price--quote b { font-family: var(--font-ar); font-size: clamp(26px, 3vw, 34px); font-weight: 700; letter-spacing: 0; color: var(--accent); }
.pkg__note { color: var(--ink-2); font-size: 15px; font-weight: 300; margin-top: 22px; max-width: 420px; }
.pkg--custom .pkg__price { padding-bottom: 0; border-bottom: 0; }
.pkg__cta { width: 100%; }
@media (min-width: 760px) {
  .pkg--custom {
    grid-column: 1 / -1; margin-top: 8px;
    display: grid; grid-template-columns: 1fr 1.2fr; column-gap: 48px;
    grid-template-areas: "head list" "cta list";
  }
  .pkg--custom .pkg__head { grid-area: head; }
  .pkg--custom .pkg__list { grid-area: list; display: grid; grid-template-columns: 1fr 1fr; column-gap: 28px; align-content: center; padding-block: 0; }
  .pkg--custom .pkg__cta { grid-area: cta; margin-top: 28px; width: auto; justify-self: start; }
}

/* ---------- Why ---------- */
.why__grid { display: grid; gap: 48px; }
@media (min-width: 1024px) { .why__grid { grid-template-columns: 1fr 1.4fr; gap: 80px; align-items: start; } .why__head { position: sticky; top: 120px; } }
.why__text { color: var(--ink-2); margin-top: 20px; font-size: 18px; font-weight: 300; }
.why__list { display: grid; gap: 0; }
@media (min-width: 640px) { .why__list { grid-template-columns: repeat(2, 1fr); column-gap: 40px; } }
.why__item { padding-block: 28px; border-top: 1px solid var(--line); }
.why__item span { font-family: var(--font-en); font-size: 12px; color: var(--accent-text); letter-spacing: 0.1em; }
.why__item h3 { font-size: 20px; font-weight: 600; margin-top: 10px; }
.why__item p { color: var(--ink-2); font-size: 15px; margin-top: 8px; font-weight: 300; }

/* ---------- CTA ---------- */
.cta {
  position: relative; overflow: hidden; text-align: center;
  padding-block: clamp(120px, 18vw, 240px);
  border-top: 1px solid var(--line);
}
.cta__bg {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; pointer-events: none;
  padding: 8% var(--gutter); /* the whole logo, frame corners included, always fits */
}
.cta__bg .logo {
  width: 100%; height: 100%; max-width: 1000px;
  object-fit: contain; opacity: 0.06;
}
.cta__inner { position: relative; }
.cta__title { font-size: clamp(36px, 7vw, 88px); font-weight: 700; line-height: 1.15; letter-spacing: -0.02em; }
.cta__sub { font-size: clamp(22px, 3.5vw, 40px); color: var(--accent); margin-top: 12px; font-weight: 400; }
.cta__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 44px; }

/* ---------- Footer + contact ---------- */
.footer { border-top: 1px solid var(--line); padding-block: clamp(64px, 9vw, 112px) 96px; }
@media (min-width: 900px) { .footer { padding-bottom: 32px; } }
/* 1. contact band: copy on the start side, WhatsApp on the end side */
.footer__contact { display: grid; gap: 28px; }
@media (min-width: 900px) { .footer__contact { grid-template-columns: 1fr auto; gap: 48px; align-items: end; } }
/* the SVG stretches its letter-spacing to fill this width exactly */
.footer__latin { display: block; width: 96px; height: auto; margin: 8px auto 0; overflow: visible; color: var(--ink-3); }
.footer__latin text { font-family: var(--font-en); font-size: 10px; fill: currentColor; direction: ltr; unicode-bidi: plaintext; }
.footer__brand p { color: var(--ink-2); font-size: 13px; font-weight: 300; }

.footer__title { font-size: clamp(34px, 5vw, 56px); font-weight: 700; line-height: 1.15; margin-top: 12px; }
.footer__text { color: var(--ink-2); margin-top: 14px; font-weight: 300; max-width: 440px; }
.footer__wa {
  display: inline-flex; align-items: center; gap: 14px; justify-self: start; padding: 10px 10px 10px 26px; border-radius: 999px;
  background: #25d366; color: #052e16;
  box-shadow: 0 16px 40px -14px rgba(37, 211, 102, 0.55);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.footer__wa-icon { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: rgba(5, 46, 22, 0.12); flex: none; }
.footer__wa-body { display: flex; flex-direction: column; line-height: 1.3; }
.footer__wa strong { font-size: 17px; font-weight: 700; }
.footer__wa-body span { font-family: var(--font-en); font-size: 13px; opacity: 0.75; text-align: right; }
@media (hover: hover) { .footer__wa:hover { transform: translateY(-2px); box-shadow: 0 20px 50px -14px rgba(37, 211, 102, 0.7); } }

.footer__ctas { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.footer__brief { font-size: 14px; color: var(--ink-2); transition: color 0.25s; }
.footer__brief:hover { color: var(--accent-text); }

/* compact channel row */
.footer__channels { margin-top: 40px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (min-width: 900px) { .footer__channels { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.fchan {
  display: flex; align-items: center; gap: 12px; height: 100%;
  padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius-lg);
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease), transform 0.3s var(--ease);
}
@media (hover: hover) { .fchan:hover { border-color: var(--line-2); background: var(--bg-2); } .fchan:hover .fchan__icon { border-color: var(--accent); color: var(--accent-text); } }
.fchan__icon {
  width: 40px; height: 40px; border-radius: 50%; flex: none; display: grid; place-items: center;
  border: 1px solid var(--line-2); color: var(--ink); transition: border-color 0.3s, color 0.3s;
}
.fchan__body { display: flex; flex-direction: column; min-width: 0; line-height: 1.4; }
.fchan__body small { font-family: var(--font-en); font-size: 10px; letter-spacing: 0.2em; color: var(--ink-3); direction: ltr; text-align: right; }
.fchan__body b { font-family: var(--font-en); font-weight: 500; font-size: 13px; color: var(--ink-2); direction: ltr; text-align: right; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* phones: icon on top so the full handle fits the half-width tile */
@media (max-width: 599px) {
  .fchan { flex-direction: column; align-items: flex-start; gap: 10px; padding: 14px; }
  .fchan__icon { width: 36px; height: 36px; }
  .fchan__body { width: 100%; }
}

/* 3. sign-off: brand | page links | legal */
.footer__base {
  margin-top: 64px; padding-top: 40px; border-top: 1px solid var(--line);
  display: grid; gap: 28px;
}
/* phones: everything centred and stacked; desktop: links | motto | legal */
.footer__base { justify-items: center; text-align: center; }
.footer__brand { order: -1; }
/* medium: motto on its own centred row, links + legal under it */
@media (min-width: 720px) {
  .footer__base { grid-template-columns: 1fr 1fr; grid-template-areas: "brand brand" "nav legal"; align-items: center; }
  .footer__brand { grid-area: brand; }
  .footer__nav { grid-area: nav; justify-self: start; flex-wrap: nowrap; }
  .footer__legal { grid-area: legal; justify-self: end; }
}
/* wide: links | motto | legal on one line */
@media (min-width: 1200px) {
  .footer__base { grid-template-columns: 1fr auto 1fr; grid-template-areas: "nav brand legal"; gap: 48px; }
}
/* motto: rotating subject + a camera "snap" on لقطة */
.motto__rot {
  display: inline-grid; justify-items: start; vertical-align: bottom;
  overflow: hidden; transition: width 0.55s var(--ease);
}
.motto__word {
  grid-area: 1 / 1; white-space: nowrap;
  transform: translateY(100%); opacity: 0;
  transition: transform 0.6s var(--ease), opacity 0.45s var(--ease);
}
.motto__word.is-on { transform: none; opacity: 1; }
.motto__word.is-out { transform: translateY(-100%); opacity: 0; }
.motto__shot { position: relative; display: inline-block; vertical-align: -0.28em; margin-inline-start: 2px; }
/* the logo's own lettering instead of typed text (cropped from the logo, no frame) */
.motto__mark { height: 1.35em; width: auto; }
/* words sized and weighted to sit level with the logo lettering */
.footer__brand .motto { font-size: 20px; font-weight: 700; color: var(--ink); line-height: 1.6; }
.motto__shot::after { /* shutter flash */
  content: ""; position: absolute; inset: -3px -5px; border-radius: 2px;
  background: var(--ink); opacity: 0; pointer-events: none;
}
.motto__vf { position: absolute; inset: -4px -6px; --vf-color: var(--ink); /* white in dark, black in light */ --vf-len: 5px; --vf-w: 1.5px; opacity: 0; }
.motto.is-snap .motto__shot::after { animation: shutterFlash 0.5s ease-out; }
.motto.is-snap .motto__vf { animation: snapFrame 0.9s var(--ease); }
@keyframes shutterFlash { 12% { opacity: 0.55; } 100% { opacity: 0; } }
@keyframes snapFrame { 0% { opacity: 0; inset: -10px -12px; } 30% { opacity: 1; inset: -4px -6px; } 75% { opacity: 1; } 100% { opacity: 0; inset: -4px -6px; } }

.footer__nav { display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: 15px; }
.footer__nav { justify-content: center; }
.footer__nav a { color: var(--ink-2); transition: color 0.25s; }
.footer__nav a:hover { color: var(--accent-text); }
.footer__legal { display: flex; gap: 16px; font-size: 13px; color: var(--ink-3); }
@media (min-width: 900px) { .footer__legal { flex-direction: column; gap: 2px; align-items: flex-end; } }

/* touch: instant press feedback instead of hover */
@media (hover: none) {
  .fchan:active { background: var(--bg-2); border-color: var(--line-2); transform: scale(0.97); }
  .footer__wa:active { transform: scale(0.97); }
  .card.is-inview:active { transform: scale(0.975); transition-duration: 0.15s; transition-delay: 0s; }
  .filter:active, .theme-toggle:active, .nav__burger:active { transform: scale(0.94); }
  .card:hover .card__media img, .card:hover .card__media video { transform: none; }
}

/* ---------- Sub-page top bar (brief/, logo/) ---------- */
.bnav { position: sticky; top: 0; z-index: 50; padding-block: 14px; background: var(--nav-bg); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.bnav__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.bnav__brand .logo { width: 84px; }
.bnav__actions { display: flex; align-items: center; gap: 14px; }
.bnav__back { font-size: 14px; color: var(--ink-2); transition: color 0.25s; }
.bnav__back:hover { color: var(--ink); }


/* Floating WhatsApp */
.wa-float {
  position: fixed; bottom: 22px; inset-inline-start: 22px; z-index: 80;
  width: 54px; height: 54px; border-radius: 50%;
  background: #25d366; color: #052e16; display: grid; place-items: center;
  box-shadow: 0 16px 40px -10px rgba(37,211,102,0.5);
  transform: translateY(20px); opacity: 0; visibility: hidden;
  transition: transform 0.6s var(--ease), opacity 0.6s var(--ease), visibility 0.6s;
}
.wa-float.is-visible { transform: none; opacity: 1; visibility: visible; }
.wa-float:hover { transform: scale(1.06); }

/* ---------- Modal ---------- */
.modal { position: fixed; inset: 0; z-index: 200; visibility: hidden; }
.modal.is-open { visibility: visible; }
.modal__backdrop {
  position: absolute; inset: 0; background: var(--backdrop);
  opacity: 0; transition: opacity 0.5s var(--ease);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.modal.is-open .modal__backdrop { opacity: 1; }
.modal__panel {
  position: absolute; inset: 0;
  overflow-y: auto; -webkit-overflow-scrolling: touch;
  background: var(--bg);
  transform: translateY(40px); opacity: 0;
  transition: transform 0.6s var(--ease), opacity 0.5s var(--ease);
}
.modal.is-open .modal__panel { transform: none; opacity: 1; }
.modal__media, .modal__body { transition: opacity 0.22s ease; }
.modal.is-switching .modal__media, .modal.is-switching .modal__body { opacity: 0; }
@media (min-width: 1024px) {
  /* a centred dialog rather than a full-screen sheet */
  .modal__panel {
    inset: 0; margin: auto;
    width: min(1040px, calc(100% - 64px)); height: min(680px, calc(100% - 64px));
    border-radius: 16px; border: 1px solid var(--line);
    display: grid; grid-template-columns: 1fr 1fr; overflow: hidden;
  }
}
.modal__close {
  position: fixed; top: 18px; inset-inline-start: 18px; z-index: 5;
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--nav-bg); border: 1px solid var(--line-2);
  backdrop-filter: blur(8px);
}
@media (min-width: 1024px) { .modal__close { position: absolute; } }
.modal__close span { position: absolute; top: 50%; left: 50%; width: 18px; height: 1.5px; background: var(--ink); }
.modal__close span:first-child { transform: translate(-50%, -50%) rotate(45deg); }
.modal__close span:last-child { transform: translate(-50%, -50%) rotate(-45deg); }
/* stage: the whole 9:16 ad, controls visible, on a blurred wash of its own poster */
.modal__media {
  position: relative; overflow: hidden; isolation: isolate;
  display: flex; align-items: center; justify-content: center;
  padding: 76px 16px 20px;
  background: #000;
}
.modal__media::before {
  content: ""; position: absolute; inset: -60px; z-index: -1;
  background: var(--poster) center / cover no-repeat;
  filter: blur(48px) saturate(1.4); opacity: 0.55;
}
.modal__media video, .modal__media img {
  display: block; aspect-ratio: 9 / 16;
  width: min(100%, calc(72svh * 9 / 16)); height: auto;
  object-fit: cover; border-radius: 14px; background: #000;
  box-shadow: 0 30px 80px -20px rgba(0,0,0,0.7);
}
/* full screen: show the whole 9:16 ad letterboxed, not cropped to the screen's shape */
.modal__media video:fullscreen { width: 100%; height: 100%; max-width: none; aspect-ratio: auto; object-fit: contain; border-radius: 0; box-shadow: none; }
.modal__media video:-webkit-full-screen { width: 100%; height: 100%; max-width: none; aspect-ratio: auto; object-fit: contain; border-radius: 0; box-shadow: none; }
@media (min-width: 1024px) {
  .modal__media { height: 100%; min-height: 0; padding: 32px; }
  .modal__media video, .modal__media img { width: auto; height: 100%; max-width: 100%; }
}
.modal__body { padding: 32px var(--gutter) 60px; }
.modal__en { font-family: var(--font-en); font-size: 12px; letter-spacing: 0.24em; color: var(--accent-text); direction: ltr; display: block; text-align: right; }
.modal__body h3 { font-size: clamp(28px, 4vw, 44px); font-weight: 600; line-height: 1.2; margin-top: 10px; }
.modal__meta { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 28px 0; padding-block: 20px; border-block: 1px solid var(--line); }
.modal__meta dt { font-size: 12px; color: var(--ink-3); }
.modal__meta dd { margin: 4px 0 0; font-size: 14px; }
.modal__body > p { color: var(--ink-2); font-weight: 300; font-size: 17px; }
.modal__body h4 { font-size: 14px; color: var(--ink-3); margin-top: 32px; font-weight: 500; }
#modalDeliverables { margin-top: 12px; display: flex; flex-direction: column; gap: 8px; }
#modalDeliverables li { position: relative; padding-inline-start: 20px; font-size: 15px; }
#modalDeliverables li::before { content: ""; position: absolute; inset-inline-start: 0; top: 12px; width: 10px; height: 1px; background: var(--accent); }
.modal__actions { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 40px; flex-wrap: wrap; }
.modal__nav { display: flex; gap: 8px; }
.modal__nav button {
  width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line-2);
  font-size: 18px; transition: border-color 0.3s, background 0.3s;
}
.modal__nav button:hover { border-color: var(--ink); background: var(--bg-2); }
@media (min-width: 1024px) {
  /* everything fits the dialog, no scrolling: compact spacing, deliverables in two columns,
     the actions pinned to the bottom */
  .modal__body { padding: 32px 32px 28px; overflow: hidden; height: 100%; display: flex; flex-direction: column; }
  .modal__body h4 { margin-top: 18px; }
  #modalDeliverables { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 16px; margin-top: 10px; }
  #modalDeliverables li { font-size: 14px; }
  .modal__actions { margin-top: auto; padding-top: 20px; }
  .modal__body h3 { font-size: clamp(24px, 2.4vw, 32px); }
  .modal__meta { margin: 20px 0; padding-block: 14px; }
  .modal__body > p { font-size: 15px; }
}

/* ---------- Reveal animation defaults ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.reveal.is-inview { opacity: 1; transform: none; }
.js .split { opacity: 0; transform: translateY(12px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.split.is-inview { opacity: 1; transform: none; }
/* cards: keep hover transitions separate from the reveal transition */
.card.reveal { transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .js .reveal, .js .split, .hero__title .line > span { opacity: 1; transform: none; }
  .marquee__track { animation: none; }
}

/* Focus */
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
