/* Alexandria (OFL), self-hosted: the CSP allows fonts from this origin only */
@font-face { font-family: "Alexandria"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("/assets/fonts/alexandria-arabic.woff2") format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+0870-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: "Alexandria"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("/assets/fonts/alexandria-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* =========================================================
   RUMUZ — visual direction v1
   Dark stage · Rumuz red · glossy 3D mark · scroll-led motion
   ========================================================= */

:root {
  --red: #ed1c24;
  --red-hot: #ff3a40;
  --red-deep: #8e0710;
  --red-ink: #3a0306;
  --bg: #070405;
  --bg-2: #0e0708;
  --cream: #efe8e2;
  --cream-2: #e4dbd3;
  --white: #f6f1ec;
  --muted: rgba(246, 241, 236, 0.56);
  --line: rgba(246, 241, 236, 0.12);
  --blue: #2f5bff;
  --violet: #8f3dff;

  --font: "Alexandria", "Segoe UI", Tahoma, sans-serif;
  --gutter: clamp(16px, 4vw, 64px);
  --radius: clamp(18px, 2.2vw, 32px);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --header-h: 76px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  background: var(--bg);
}
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  margin: 0;
  font-family: var(--font);
  font-weight: 400;
  color: var(--white);
  background: var(--bg);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body.is-loading { overflow: hidden; }

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, p { margin: 0; }
em { font-style: normal; }
mark { background: none; color: inherit; }

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

.skip {
  position: fixed;
  top: 12px;
  right: 12px;
  z-index: 200;
  padding: 10px 16px;
  background: var(--red);
  color: #fff;
  border-radius: 999px;
  transform: translateY(-200%);
}
.skip:focus { transform: none; }

/* film grain — static, cheap */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 90;
  pointer-events: none;
  opacity: 0.07;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

/* ---------- shared bits ---------- */
.eyebrow,
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-size: 0.82rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  color: var(--muted);
}
.index {
  font-feature-settings: "tnum";
  direction: ltr;
  display: inline-grid;
  place-items: center;
  min-width: 2.6em;
  height: 1.9em;
  padding: 0 0.6em;
  border: 1px solid currentColor;
  border-radius: 999px;
  font-size: 0.75rem;
}

.section-title {
  font-size: clamp(2.4rem, 7vw, 6.5rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

/* split words (Arabic: split by word only, never by letter) */
.w {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  padding: 0.12em 0.04em 0.22em;
  margin: -0.12em -0.04em -0.22em;
}
.wi { display: inline-block; will-change: transform; }
.is-in .w { overflow: visible; }

/* ---------- pill button (glossy red, from the booking post) ---------- */
.pill {
  --mx: 0px;
  --my: 0px;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  padding: 1.05em 2.4em;
  border-radius: 999px;
  font-weight: 700;
  font-size: clamp(1rem, 1.3vw, 1.2rem);
  color: #fff;
  background: var(--red);
  transition: background-color 0.3s var(--ease), transform 0.3s var(--ease);
  white-space: nowrap;
}
.pill span { position: relative; }
.pill:hover { background: #c8121a; }
.pill:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.pill--small { padding: 0.75em 1.5em; font-size: 0.9rem; }
.pill--glass {
  font-size: clamp(1rem, 1.4vw, 1.25rem);
  padding: 1em 2.4em;
}

/* ---------- design-tool selection box (from post #1) ---------- */
.select-box {
  position: relative;
  isolation: isolate;
  display: inline-block;
  color: var(--red);
  padding: 0 0.12em;
  /* the hero video is red too: a dark halo keeps the red word legible over it */
  text-shadow: 0 0 0.18em rgba(7, 4, 5, 0.9), 0 0.04em 0.5em rgba(7, 4, 5, 0.75);
}
.select-box::before {
  content: "";
  position: absolute;
  inset: 0.05em -0.08em -0.02em;
  z-index: -1;
  border: 1.5px solid rgba(237, 28, 36, 0.9);
  background: rgba(7, 4, 5, 0.72);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  transform-origin: right center;
  transform: scaleX(var(--box, 0));
  pointer-events: none;
}
.select-box i {
  position: absolute;
  width: 0.13em;
  height: 0.13em;
  min-width: 7px;
  min-height: 7px;
  background: var(--white);
  border: 1.5px solid var(--red);
  opacity: var(--box, 0);
  pointer-events: none;
}
.select-box i:nth-of-type(1) { top: 0.05em; right: -0.08em; transform: translate(50%, -50%); }
.select-box i:nth-of-type(2) { top: 0.05em; left: -0.08em; transform: translate(-50%, -50%); }
.select-box i:nth-of-type(3) { bottom: -0.02em; right: -0.08em; transform: translate(50%, 50%); }
.select-box i:nth-of-type(4) { bottom: -0.02em; left: -0.08em; transform: translate(-50%, 50%); }

/* ---------- lens-flare colour accents (blue/violet as in the social posts) ---------- */
.flare {
  position: absolute;
  width: 42vmax;
  height: 42vmax;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.38;
  mix-blend-mode: screen;
  pointer-events: none;
  z-index: 0;
  animation: drift 18s ease-in-out infinite alternate;
}
.flare--blue {
  background: radial-gradient(circle, var(--blue), transparent 65%);
  bottom: -18vmax;
  left: -16vmax;
}
.flare--violet {
  background: radial-gradient(circle, var(--violet), transparent 65%);
  top: -20vmax;
  right: -14vmax;
  opacity: 0.26;
  animation-duration: 24s;
}

.stage .flare { position: absolute; opacity: calc(0.38 * var(--atmo, 1)); }
.stage .flare--violet { opacity: calc(0.26 * var(--atmo, 1)); }
@keyframes drift {
  to { transform: translate3d(6vmax, -4vmax, 0) scale(1.15); }
}

/* =========================================================
   LOADER
   ========================================================= */
.loader {
  position: fixed;
  inset: 0;
  z-index: 150;
  display: grid;
  place-items: center;
  background: var(--bg);
  clip-path: inset(0 0 0 0);
}
.loader__inner {
  display: grid;
  gap: 22px;
  justify-items: center;
}
.loader__mark {
  width: clamp(120px, 16vw, 200px);
  overflow: visible;
}
.loader__outline path {
  fill: none;
  stroke: rgba(246, 241, 236, 0.22);
  stroke-width: 2;
  vector-effect: non-scaling-stroke;
}
.loader__fill {
  fill: var(--red);
  transform-origin: 50% 100%;
  transform: scaleY(0);
  filter: drop-shadow(0 0 18px rgba(237, 28, 36, 0.8));
}
.loader__meta {
  display: flex;
  justify-content: space-between;
  width: clamp(120px, 16vw, 200px);
  font-size: 0.72rem;
  color: var(--muted);
  direction: ltr;
  letter-spacing: 0.04em;
}
.loader__count { color: var(--white); font-feature-settings: "tnum"; }

/* =========================================================
   3D STAGE
   ========================================================= */
.stage {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.stage::before {
  /* base red atmosphere behind the 3D mark */
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60% 55% at var(--glow-x, 50%) 40%, rgba(237, 28, 36, 0.28), rgba(237, 28, 36, 0) 70%),
    radial-gradient(120% 80% at 50% 120%, rgba(142, 7, 16, 0.35), rgba(0, 0, 0, 0) 60%);
  opacity: var(--atmo, 1);
}
@media (min-width: 901px) { .stage { --glow-x: 32%; } }
.stage__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}
.stage__fallback {
  position: absolute;
  top: 40%;
  left: 50%;
  width: min(56vw, 440px);
  transform: translate(-50%, -50%);
  filter: drop-shadow(0 0 60px rgba(237, 28, 36, 0.7));
  display: none;
}
.no-webgl .stage__canvas { display: none; }
.no-webgl .stage__fallback { display: block; }

/* =========================================================
   CURSOR (fine pointers only)
   ========================================================= */
.cursor {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 120;
  pointer-events: none;
  display: none;
}
.has-cursor .cursor { display: block; }
.cursor__dot {
  position: absolute;
  width: 12px;
  height: 12px;
  margin: -6px 0 0 -6px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 18px rgba(237, 28, 36, 0.9);
  transition: transform 0.35s var(--ease), background 0.35s var(--ease);
}
.cursor__label {
  position: absolute;
  transform: translate(-50%, -50%) scale(0.4);
  font-size: 0.85rem;
  font-weight: 700;
  color: #fff;
  opacity: 0;
  transition: opacity 0.25s, transform 0.35s var(--ease);
  white-space: nowrap;
}
.cursor.is-hover .cursor__dot { transform: scale(3.2); background: rgba(237, 28, 36, 0.35); }
.cursor.is-label .cursor__dot { transform: scale(7); background: var(--red); }
.cursor.is-label .cursor__label { opacity: 1; transform: translate(-50%, -50%) scale(1); }

/* =========================================================
   HEADER
   ========================================================= */
.header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--header-h);
  padding: 0 var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  transition: transform 0.6s var(--ease), background 0.4s, backdrop-filter 0.4s;
}
.header.is-hidden { transform: translateY(-190%); }
.header.is-solid {
  background: rgba(7, 4, 5, 0.55);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
}
.header.on-light { color: var(--bg); }
.header.on-light.is-solid { background: rgba(239, 232, 226, 0.7); }
.header__logo svg {
  display: block;
  height: 26px;
  width: auto;
  direction: ltr;
}
.logo-mark path { fill: var(--red); }
.logo-word path { fill: currentColor; }
.header__nav {
  display: flex;
  gap: clamp(18px, 3vw, 44px);
  font-size: 0.95rem;
}
.header__nav a {
  position: relative;
  padding: 6px 0;
}
.header__nav a::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 1.5px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s var(--ease);
}
.header__nav a:hover::after { transform: scaleX(1); transform-origin: right; }

/* =========================================================
   MAIN / SECTIONS
   ========================================================= */
main { position: relative; z-index: 1; }

/* ---------- HERO ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  padding: calc(var(--header-h) + 12px) var(--gutter) clamp(24px, 4vw, 48px);
  display: grid;
  grid-template-rows: auto 1fr auto auto;
  overflow: hidden;
}
/* cinematic loop (Seedance) behind the hero copy; the live 3D mark takes over on scroll */
.hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: var(--bg) url("/assets/hero/hero-poster.webp") 22% 50% / cover no-repeat;
}
.hero__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 22% 50%;
  display: block;
}
.hero__media::after {
  /* keep the copy readable and melt the bottom edge into the page */
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, var(--bg) 0%, rgba(7, 4, 5, 0) 26%),
    linear-gradient(to left, rgba(7, 4, 5, 0.55) 0%, rgba(7, 4, 5, 0) 45%);
}
.hero__top {
  display: flex;
  justify-content: space-between;
  position: relative;
  z-index: 1;
}
.hero__top .eyebrow:first-child { direction: ltr; }
.hero__title {
  grid-row: 3;
  position: relative;
  z-index: 1;
  font-weight: 400;
  line-height: 1.2;
  font-size: clamp(2.5rem, 5.9vw, 7.2rem);
  letter-spacing: -0.015em;
}
.hero__line { display: block; }
.hero__line--thin { font-weight: 200; }
.hero__line--bold { font-weight: 800; }
.hero__line--thin,
.hero__line--bold { display: block; }
.hero__bottom {
  grid-row: 4;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-top: clamp(18px, 3vw, 40px);
  position: relative;
  z-index: 1;
}
.hero__brand {
  font-size: 0.9rem;
  color: var(--muted);
}
.scroll-cue {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 0.8rem;
  color: var(--muted);
}
.scroll-cue i {
  position: relative;
  width: 1px;
  height: 44px;
  background: var(--line);
  overflow: hidden;
}
.scroll-cue i::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--red);
  animation: cue 2s var(--ease) infinite;
}
@keyframes cue {
  0% { transform: translateY(-100%); }
  60%, 100% { transform: translateY(100%); }
}

/* ---------- MANIFESTO ---------- */
.manifesto {
  position: relative;
  min-height: 120vh;
  padding: 22vh var(--gutter) 22vh;
  display: grid;
  grid-template-columns: minmax(140px, 1fr) 3.2fr;
  align-content: center;
  gap: 32px;
}
.manifesto__label {
  display: flex;
  align-items: center;
  gap: 14px;
  align-self: start;
  font-size: 0.85rem;
  color: var(--muted);
  padding-top: 1.1em;
}
.manifesto__text {
  font-size: clamp(1.7rem, 4.3vw, 4.4rem);
  font-weight: 500;
  line-height: 1.45;
  max-width: 15em;
}
.manifesto__text .mw {
  color: rgba(246, 241, 236, 0.14);
}

/* ---------- SERVICES (light — echoes the cream folder post) ---------- */
.services {
  position: relative;
  background:
    radial-gradient(70% 60% at 85% 0%, #fff 0%, rgba(255, 255, 255, 0) 60%),
    linear-gradient(180deg, var(--cream), var(--cream-2));
  color: var(--bg);
  border-radius: var(--radius) var(--radius) 0 0;
  padding: clamp(84px, 13vh, 130px) var(--gutter) clamp(24px, 4vh, 40px);
  overflow: hidden;
}
.services .section-label { color: rgba(7, 4, 5, 0.55); }
.services__head {
  display: grid;
  gap: 18px;
  margin-bottom: clamp(32px, 6vh, 64px);
}
.stack {
  position: relative;
  height: clamp(380px, calc(100svh - 330px), 640px);
  max-width: 1180px;
  margin-inline: auto;
}
.folder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  will-change: transform;
  transform-origin: 50% 0%;
}
.folder__tab {
  align-self: flex-start;
  width: clamp(140px, 28%, 300px);
  height: clamp(44px, 6vh, 60px);
  display: flex;
  align-items: center;
  padding-inline: 24px;
  border-radius: 22px 22px 0 0;
  background: linear-gradient(180deg, #ff2e35, #e5141c);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 500;
  direction: ltr;
  justify-content: flex-end;
  position: relative;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55);
}
.folder:not(:first-child) .folder__body { border-top-right-radius: var(--radius); }
.folder:not(:first-child) .folder__tab::before {
  content: "";
  position: absolute;
  bottom: 0;
  right: -28px;
  width: 30px;
  height: 30px;
  background: radial-gradient(circle at 100% 0, transparent 29px, #e5141c 30px);
}
.folder:nth-child(2) .folder__tab { margin-right: 22%; }
.folder:nth-child(3) .folder__tab { margin-right: 44%; }
.folder:nth-child(4) .folder__tab { margin-right: 66%; }
.folder__tab::after {
  /* soft shoulder joining tab and body */
  content: "";
  position: absolute;
  bottom: 0;
  left: -28px;
  width: 30px;
  height: 30px;
  background: radial-gradient(circle at 0 0, transparent 29px, #e5141c 30px);
}
.folder__body {
  position: relative;
  flex: 1;
  border-radius: 0 0 var(--radius) var(--radius);
  border-top-left-radius: var(--radius);
  padding: clamp(28px, 4vw, 60px);
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  grid-template-rows: 1fr auto;
  column-gap: clamp(32px, 6vw, 96px);
  row-gap: 24px;
  color: #fff;
  overflow: hidden;
  background:
    radial-gradient(120% 90% at 90% -10%, rgba(255, 255, 255, 0.32), rgba(255, 255, 255, 0) 45%),
    linear-gradient(170deg, #e5141c 0%, #c70a12 45%, #7b040b 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.35),
    inset 0 -40px 80px rgba(40, 0, 3, 0.35),
    0 1px 0 #ff5b60,
    0 30px 80px rgba(130, 6, 14, 0.35);
}
.folder__body::before {
  /* glossy edge highlight */
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1px solid rgba(255, 255, 255, 0.22);
  pointer-events: none;
}
.folder__main { display: grid; align-content: start; gap: clamp(14px, 2.2vh, 24px); }
.folder h3 {
  font-size: clamp(2.1rem, 4.6vw, 4.8rem);
  font-weight: 800;
  line-height: 1.12;
}
.folder__lede {
  font-size: clamp(1rem, 1.3vw, 1.2rem);
  font-weight: 300;
  line-height: 1.72;
  max-width: 30em;
  color: rgba(255, 255, 255, 0.88);
}
.folder__side { display: grid; align-content: start; gap: 10px; padding-top: 0.6em; }
.folder__kicker {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.62);
}
.folder__list { counter-reset: deliv; }
.folder__list li {
  counter-increment: deliv;
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 0.8em 0;
  border-top: 1px solid rgba(255, 255, 255, 0.22);
  font-size: clamp(0.95rem, 1.15vw, 1.08rem);
  font-weight: 500;
}
.folder__list li:last-child { border-bottom: 1px solid rgba(255, 255, 255, 0.22); }
.folder__list li::before {
  content: counter(deliv, decimal-leading-zero);
  font-size: 0.72rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.55);
  font-feature-settings: "tnum";
  flex: none;
}
.folder__body > .tags { grid-column: 1 / -1; align-self: end; }
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.tags li {
  padding: 0.45em 1.1em;
  border-radius: 999px;
  font-size: 0.85rem;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(6px);
}

/* ---------- MARQUEE ---------- */
.marquee {
  position: relative;
  overflow: hidden;
  background: var(--cream-2);
  color: var(--bg);
  padding: clamp(40px, 8vh, 90px) 0 clamp(50px, 9vh, 110px);
  border-radius: 0 0 var(--radius) var(--radius);
}
.marquee__track {
  display: flex;
  align-items: center;
  gap: clamp(24px, 3vw, 56px);
  width: max-content;
  animation: marquee 28s linear infinite;
  font-size: clamp(3rem, 10vw, 10rem);
  font-weight: 900;
  line-height: 1.2;
}
.marquee__track b {
  width: 0.5em;
  height: 0.28em;
  background: var(--red);
  border-radius: 0.06em;
  transform: skewY(-12deg);
  flex: none;
}
/* words are outlined SVG (merged in one shape), so the stroked ones have no inner glyph seams */
.mq-word {
  --h: 1.25em;
  flex: none;
  display: block;
  height: var(--h);
  width: calc(var(--h) * var(--ar));
  fill: var(--bg);
  overflow: visible;
}
.mq-word--line {
  fill: none;
  stroke: var(--bg);
  stroke-width: 1.5px;
}
@keyframes marquee {
  to { transform: translateX(50%); }
}

/* ---------- WORK ---------- */
.work {
  position: relative;
  background: var(--bg);
  margin-top: calc(var(--radius) * -1);
  padding-top: var(--radius);
}
.work__pin {
  min-height: 100vh;
  padding: clamp(80px, 11vh, 120px) 0 clamp(32px, 6vh, 64px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
}
.work__head {
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 18px 24px;
  margin-bottom: clamp(28px, 4vh, 48px);
}
.work__head .section-title { font-size: clamp(2.2rem, 5.4vw, 5.4rem); }
.work__head .section-label { grid-column: 1 / -1; }
.work__progress {
  width: clamp(120px, 18vw, 260px);
  height: 2px;
  background: var(--line);
  margin-bottom: 1.4em;
  overflow: hidden;
}
.work__progress i {
  display: block;
  height: 100%;
  background: var(--red);
  transform-origin: right;
  transform: scaleX(0);
}
.work__track {
  display: flex;
  gap: clamp(18px, 2.4vw, 40px);
  padding: 0 var(--gutter);
  width: max-content;
  will-change: transform;
}
.card {
  /* every card shares one height; width follows the design's own ratio (3:4 portrait or 1:1) */
  --card-h: clamp(300px, calc(100svh - 410px), 600px);
  margin: 0;
  width: max-content;
  flex: none;
}
.card__media {
  position: relative;
  height: var(--card-h);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-2);
  /* the stacked red lip from the social frame */
  box-shadow:
    0 7px 0 var(--red),
    0 14px 0 rgba(237, 28, 36, 0.4),
    0 30px 60px rgba(237, 28, 36, 0.12);
  transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform 0.6s var(--ease), box-shadow 0.6s var(--ease);
}
.card__media img {
  /* show the full design, never cropped */
  height: 100%;
  width: auto;
  max-width: none;
}
.card:hover .card__media {
  box-shadow:
    0 9px 0 var(--red),
    0 18px 0 rgba(237, 28, 36, 0.45),
    0 40px 90px rgba(237, 28, 36, 0.3);
}
.card figcaption { max-width: calc(var(--card-h) * 0.75); }
.card figcaption {
  display: flex;
  gap: 14px;
  align-items: baseline;
  margin-top: 30px;
}
.card__num {
  font-size: 0.75rem;
  color: var(--red);
  direction: ltr;
  font-feature-settings: "tnum";
}
.card__title {
  font-size: clamp(1rem, 1.35vw, 1.25rem);
  font-weight: 500;
  line-height: 1.5;
}

/* ---------- CONTACT ---------- */
.contact {
  position: relative;
  min-height: 110vh;
  padding: 36vh var(--gutter) 14vh;
  display: grid;
  align-content: center;
  justify-items: center;
  text-align: center;
  gap: clamp(28px, 5vh, 56px);
  overflow: hidden;
}
.contact .section-label { position: relative; z-index: 1; }
.contact__title {
  position: relative;
  z-index: 1;
  font-size: clamp(2.4rem, 7vw, 7.4rem);
  line-height: 1.2;
  font-weight: 400;
}
.contact__title > span { display: block; }
.contact .pill { position: relative; z-index: 1; }

/* ---------- FOOTER ---------- */
.footer {
  position: relative;
  z-index: 1;
  background: var(--bg);
  border-top: 1px solid var(--line);
  padding: clamp(28px, 5vh, 48px) var(--gutter) 24px;
  display: grid;
  gap: clamp(28px, 6vh, 64px);
}
.footer__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.footer__handle { direction: ltr; font-size: 0.95rem; }
.socials { display: flex; gap: 10px; }
.socials a {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line);
  transition: background 0.3s, border-color 0.3s;
}
.socials a:hover { background: var(--red); border-color: var(--red); }
.socials svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.socials svg .fill { fill: currentColor; stroke: none; }
.footer__word {
  direction: ltr;
  overflow: hidden;
}
.footer__word img {
  width: 100%;
  transform-origin: 50% 100%;
}
.footer__legal {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px 40px;
  padding-top: clamp(22px, 4vh, 36px);
  border-top: 1px solid var(--line);
  font-size: 0.88rem;
  color: var(--muted);
}
.footer__id { display: grid; gap: 12px; justify-items: start; }
.footer__id p { margin: 0; }
.footer__logo { height: 26px; width: auto; }
.footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 32px;
  padding-top: 4px;
}
.footer__links a { transition: color 0.25s; }
.footer__links a:hover { color: var(--white); }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 900px) {
  .folder__body {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto 1fr;
    align-content: start;
    row-gap: 18px;
  }
  .folder__side { padding-top: 0; }
  .manifesto { grid-template-columns: 1fr; min-height: auto; padding: 18vh var(--gutter); }
  .manifesto__label { padding-top: 0; }
  .work__track {
    width: auto;
    flex-direction: column;
    gap: 64px;
  }
  .card { width: 100%; max-width: 560px; margin-inline: auto; }
  .card__media { height: auto; }
  .card__media img { width: 100%; height: auto; }
  .card figcaption { max-width: none; }
  .work__progress { display: none; }
  .work__head { grid-template-columns: 1fr; }
}

@media (max-width: 767px) {
  :root { --header-h: 64px; }
  .header__nav { display: none; }
  .header__logo svg { height: 22px; }
  .hero__title { font-size: clamp(2.1rem, 10.2vw, 4.2rem); }
  /* portrait: the 16:9 loop sits in the upper part, framed on the mark */
  .hero__media { bottom: auto; height: 64svh; background-position: 14% 50%; }
  .hero__video { object-position: 14% 50%; }
  .hero__media::after { background: linear-gradient(to top, var(--bg) 0%, rgba(7, 4, 5, 0) 45%); }
  .contact__title { font-size: clamp(1.9rem, 8.4vw, 3.4rem); }
  .stack { height: clamp(380px, calc(100svh - 240px), 600px); }
  .folder:nth-child(2) .folder__tab { margin-right: 20%; }
  .folder:nth-child(3) .folder__tab { margin-right: 38%; }
  .folder:nth-child(4) .folder__tab { margin-right: 56%; }
  .folder h3 { font-size: clamp(1.8rem, 8.4vw, 2.6rem); }
  .folder__body { row-gap: 14px; padding: 24px 22px; }
  .folder__lede { font-size: 0.88rem; line-height: 1.6; }
  .folder__list li { padding: 0.42em 0; font-size: 0.86rem; line-height: 1.5; }
  .folder__body > .tags { display: none; }
  .folder__tab { width: 34%; padding-inline: 16px; }
  .footer__row { flex-direction: column; align-items: flex-start; }
  .footer__legal { flex-direction: column; }
  .footer__links { gap: 12px 24px; padding-top: 0; }
}

/* =========================================================
   REDUCED MOTION — content first, no pinning, no smoothing
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  .flare, .marquee__track, .scroll-cue i::after { animation: none; }
  .manifesto__text .mw { color: inherit; }
  .stack { height: auto; display: grid; gap: 28px; }
  .folder { position: relative; inset: auto; min-height: 60vh; }
  .select-box { --box: 1; }
}

/* =========================================================
   LEGAL PAGES (/privacy/, /terms/) — same dark stage, red accent,
   the design-tool selection box on the title, numbered clauses
   ========================================================= */
.legal {
  position: relative;
  overflow: clip; /* not hidden: hidden would make this a scroll box and break the sticky contents */
  padding: calc(var(--header-h) + clamp(56px, 11vh, 130px)) var(--gutter) clamp(80px, 12vh, 140px);
}
.legal::before {
  /* the red glow behind the title, like the light leaking in the social posts */
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 90vh;
  background: radial-gradient(60% 70% at 78% 0%, rgba(237, 28, 36, 0.22), rgba(237, 28, 36, 0) 70%);
  pointer-events: none;
}
.legal > * { position: relative; z-index: 1; max-width: 1320px; margin-inline: auto; }
.legal > .flare { position: absolute; z-index: 0; max-width: none; }
.legal__hero {
  display: grid;
  gap: clamp(20px, 3.4vh, 34px);
  padding-bottom: clamp(48px, 8vh, 96px);
  border-bottom: 1px solid var(--line);
}
.legal__meta {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px 24px;
}
.legal__date { font-size: 0.82rem; color: var(--muted); }
.legal__date b { color: var(--white); font-weight: 500; font-feature-settings: "tnum"; margin-inline-start: 0.4em; }
.legal__title {
  font-size: clamp(2.8rem, 7.4vw, 7.6rem);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.015em;
}
.legal__title span { display: block; }
.legal__lede {
  max-width: 34em;
  font-size: clamp(1.05rem, 1.6vw, 1.4rem);
  font-weight: 300;
  line-height: 1.8;
  color: rgba(246, 241, 236, 0.78);
}
.legal__body {
  display: grid;
  grid-template-columns: minmax(200px, 0.85fr) minmax(0, 2.2fr);
  gap: clamp(32px, 6vw, 110px);
  align-items: start;
  margin-top: clamp(48px, 8vh, 96px);
}
.legal__toc {
  position: sticky;
  top: calc(var(--header-h) + 32px);
  display: grid;
}
.legal__kicker { font-size: 0.8rem; font-weight: 500; color: var(--red); margin-bottom: 12px; }
.legal__toc a {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 0.75em 0;
  border-top: 1px solid var(--line);
  font-size: 0.95rem;
  color: var(--muted);
  transition: color 0.3s;
}
.legal__toc a:last-child { border-bottom: 1px solid var(--line); }
.legal__toc a i { font-style: normal; font-size: 0.72rem; font-feature-settings: "tnum"; color: rgba(246, 241, 236, 0.4); transition: color 0.3s; }
.legal__toc a:hover { color: var(--white); }
.legal__toc a:hover i { color: var(--red); }
.legal__toc a:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.clause {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  column-gap: clamp(16px, 2.4vw, 32px);
  padding: clamp(28px, 4.5vh, 46px) 0;
  border-top: 1px solid var(--line);
  scroll-margin-top: calc(var(--header-h) + 24px);
}
.clause:first-child { border-top: 0; padding-top: 0; }
.clause .index { grid-row: span 2; align-self: start; margin-top: 0.55em; color: var(--red); }
.clause h2 {
  font-size: clamp(1.5rem, 2.6vw, 2.4rem);
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 0.55em;
}
.clause__body { display: grid; gap: 0.6em; max-width: 40em; }
.clause__body p,
.clause__body li {
  font-size: clamp(1rem, 1.15vw, 1.1rem);
  font-weight: 300;
  line-height: 1.95;
  color: rgba(246, 241, 236, 0.8);
}
.clause__body ul { display: grid; gap: 0.5em; }
.clause__body li { position: relative; padding-inline-start: 1.5em; }
.clause__body li::before {
  /* the skewed red tab from the marquee */
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 0.82em;
  width: 0.6em;
  height: 0.32em;
  background: var(--red);
  border-radius: 0.06em;
  transform: skewY(-12deg);
}
.clause__body a { color: var(--white); border-bottom: 1px solid var(--red); transition: color 0.3s; }
.clause__body a:hover { color: var(--red); }
.next-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: clamp(64px, 10vh, 120px);
  padding: clamp(28px, 4vw, 56px);
  border-radius: var(--radius);
  color: #fff;
  background:
    radial-gradient(120% 90% at 90% -10%, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0) 45%),
    linear-gradient(170deg, #e5141c 0%, #c70a12 45%, #7b040b 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 30px 80px rgba(130, 6, 14, 0.35);
}
.next-card small { display: block; margin-bottom: 0.4em; font-size: 0.85rem; opacity: 0.75; }
.next-card strong { display: block; font-size: clamp(1.9rem, 4.6vw, 4.4rem); font-weight: 800; line-height: 1.1; }
.next-card i { font-style: normal; font-size: clamp(1.8rem, 4vw, 3.6rem); transition: transform 0.6s var(--ease); }
.next-card:hover i { transform: translateX(-12px); }
.next-card:focus-visible { outline: 2px solid #fff; outline-offset: 4px; }

@media (max-width: 900px) {
  .legal__body { grid-template-columns: 1fr; }
  .legal__toc { position: static; }
}
@media (max-width: 767px) {
  .legal__meta { flex-direction: column; }
  .clause { grid-template-columns: 1fr; }
  .clause .index { grid-row: auto; margin: 0 0 12px; justify-self: start; }
}

/* =========================================================
   ENGLISH (/en/) — same design, mirrored where direction matters.
   The hero keeps the Arabic composition (logo left, words right),
   so the video never sits behind the headline.
   ========================================================= */
html[dir="ltr"] .skip { right: auto; left: 12px; }
html[dir="ltr"] .select-box::before { transform-origin: left center; }
html[dir="ltr"] .header__nav a::after { transform-origin: right; }
html[dir="ltr"] .header__nav a:hover::after { transform-origin: left; }
/* English lines run longer than the Arabic, so the headline steps down a size to stay on two lines */
html[dir="ltr"] .hero__title { letter-spacing: -0.03em; font-size: clamp(2.3rem, 4.6vw, 6rem); line-height: 1.12; }
@media (min-width: 768px) {
  html[dir="ltr"] .hero__title { text-align: right; }
}
/* folder tabs keep their right-hand stepping; only the content reads LTR */
html[dir="ltr"] .folder { direction: rtl; }
html[dir="ltr"] .folder__body { direction: ltr; }
html[dir="ltr"] .work__progress i { transform-origin: left; }
html[dir="ltr"] .marquee__track { animation-name: marquee-ltr; }
@keyframes marquee-ltr { to { transform: translateX(-50%); } }
.mq-text { flex: none; white-space: nowrap; letter-spacing: -0.035em; }
.mq-text--line { color: transparent; -webkit-text-stroke: 1.5px var(--bg); }
html[dir="ltr"] .next-card:hover i { transform: translateX(12px); }

/* ---------- header actions: language switch + booking pill ---------- */
.header__actions { display: flex; align-items: center; gap: 10px; }
.lang-switch {
  /* stretches to the booking pill's height so the two read as one group */
  align-self: stretch;
  display: inline-grid;
  place-items: center;
  min-width: 3.4em;
  padding: 0 1em;
  border-radius: 999px;
  border: 1px solid rgba(246, 241, 236, 0.3);
  background: rgba(255, 255, 255, 0.05);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1;
  transition: border-color 0.3s, background 0.3s;
}
.lang-switch:hover { border-color: var(--red); background: rgba(237, 28, 36, 0.16); }
.lang-switch:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.header.on-light .lang-switch { border-color: rgba(7, 4, 5, 0.3); background: rgba(7, 4, 5, 0.04); }
