@charset "utf-8";

/* ==========================================================================
   NEXT LEVEL — main stylesheet
   Brand shape language: the skewed rhombus ("المعين") from the print identity.
   ========================================================================== */

/* --------------------------------------------------------------- 01. Fonts */

/* The brand face. JF Flat ships Regular + Bold only, so 600–900 all map to
   Bold rather than being synthesised. */
@font-face {
  font-family: "JF Flat";
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url("../fonts/jf-flat-regular.woff2") format("woff2");
}

@font-face {
  font-family: "JF Flat";
  font-style: normal;
  font-weight: 600 900;
  font-display: swap;
  src: url("../fonts/jf-flat-bold.woff2") format("woff2");
}

/* Cairo stays behind JF Flat purely as a safety net for glyphs the brand face
   does not carry (typographic dashes and quotes). */
@font-face {
  font-family: "Cairo";
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url("../fonts/cairo-arabic.woff2") format("woff2");
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-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: "Cairo";
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url("../fonts/cairo-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+2000-206F, U+20AC, U+2122, U+2212, U+FEFF, U+FFFD;
}

/* --------------------------------------------------------------- 02. Tokens */

:root {
  --gold: #f0b212;
  --gold-bright: #ffd766;
  --gold-soft: #fff1b9;
  --ink: #000;
  --surface: #08080a;
  --surface-2: #101013;
  --surface-3: #17171c;
  --line: rgb(255 255 255 / 12%);
  --line-strong: rgb(240 178 18 / 45%);
  --text: #fff;
  --muted: #a3a3ad;
  /* #77777f measured 4.28:1 on --surface-2 and 4.02:1 on --surface-3, both
     below AA for body text. #808088 clears 4.5:1 on every surface here. */
  --muted-dim: #808088;

  --shell: min(92vw, 1480px);
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --section-y: clamp(4.5rem, 9vw, 8.5rem);

  /* the identity lean — one value drives every rhombus on the site */
  --cut: clamp(1.25rem, 3.2vw, 2.75rem);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --radius: 0;

  --step--1: clamp(0.8rem, 0.76rem + 0.2vw, 0.9rem);
  --step-0: clamp(0.95rem, 0.9rem + 0.25vw, 1.08rem);
  --step-1: clamp(1.1rem, 1rem + 0.5vw, 1.35rem);
  --step-2: clamp(1.4rem, 1.2rem + 1vw, 2rem);
  --step-3: clamp(1.9rem, 1.5rem + 2vw, 3rem);
  --step-4: clamp(2.4rem, 1.7rem + 3.4vw, 4.5rem);
  --step-5: clamp(3rem, 1.8rem + 5.5vw, 6.5rem);
}

/* Typed custom properties so the rhombus morph interpolates smoothly. */
@property --morph {
  syntax: "<number>";
  /* inherits, because .work-card__body reads it to pull its text clear of the
     sheared edge. With inherits:false the descendant silently saw the initial
     value and the padding never moved. */
  inherits: true;
  initial-value: 1;
}

@property --bleed {
  syntax: "<number>";
  /* Read only on .work-card itself (margin-inline), so it must not leak down. */
  inherits: false;
  initial-value: 0;
}

/* --------------------------------------------------------------- 03. Reset */

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

html {
  overflow-x: hidden;
  overflow-x: clip;
  scroll-behavior: smooth;
  /* Clears the fixed header when jumping to an anchor. Measured header height
     is 107px at desktop, so 6.5rem (104px) was 3px short. */
  scroll-padding-block-start: 7.5rem;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  overflow-x: hidden;
  overflow-x: clip;
  background: var(--ink);
  color: var(--text);
  font-family: "JF Flat", "Cairo", "Segoe UI", Tahoma, Arial, sans-serif;
  font-size: var(--step-0);
  font-optical-sizing: auto;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-weight: 800;
  line-height: 1.14;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

p {
  margin: 0;
  text-wrap: pretty;
}

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

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

/* The UA rule for [hidden] is `display: none` at the lowest precedence, so any
   component that sets display (grid/flex) silently defeats it. */
[hidden] {
  display: none !important;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
}

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

/* Every branded control is cut with clip-path, and clip-path shears away
   outlines and box-shadows — so those controls would have NO visible focus
   indicator. Draw the ring inside the clipped shape instead. */
@supports ((mask-composite: exclude) or (-webkit-mask-composite: xor)) {
  .btn:focus-visible,
  .filter:focus-visible,
  .work-card:focus-visible,
  .lang-switch a:focus-visible {
    outline: none;
  }

  .work-card:focus-visible::before,
  .lang-switch a:focus-visible::before {
    content: "";
    position: absolute;
    z-index: 9;
    inset: 0;
    padding: 3px;
    pointer-events: none;
    background: var(--ring, #fff);
    -webkit-mask: linear-gradient(#000 0 0) content-box,
      linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    mask-composite: exclude;
  }
}

/* Buttons and filters already draw a rim that follows the shear — thickening
   and whitening it is clip-safe, unlike a rectangular ring. */
.btn:focus-visible {
  --btn-line: var(--ring, #fff);
}

.btn:focus-visible::after {
  inset: 3.5px;
}

.filter:focus-visible {
  --f-line: var(--ring, #fff);
}

.filter:focus-visible::after {
  inset: 3px;
}

/* Windows high-contrast: masks and backgrounds are discarded, so put the
   plain outline back and let the OS colour it. */
@media (forced-colors: active) {
  /* Every background is forced to Canvas, so the rim and fill layers collapse
     into each other. Drop the shear and use real borders instead. */
  .btn,
  .filter,
  .lang-switch a,
  .work-card,
  .member,
  .gallery figure,
  .reach__list li {
    clip-path: none !important;
  }

  .btn,
  .filter,
  .lang-switch a {
    border: 1px solid ButtonBorder;
  }

  .btn::after,
  .filter::after {
    display: none;
  }

  .btn:focus-visible,
  .filter:focus-visible,
  .work-card:focus-visible,
  .lang-switch a:focus-visible {
    outline: 3px solid Highlight;
    outline-offset: 2px;
  }

  .work-card:focus-visible::before,
  .lang-switch a:focus-visible::before {
    content: none;
  }
}

@supports not selector(:focus-visible) {
  .btn:focus,
  .filter:focus,
  .work-card:focus,
  .lang-switch a:focus,
  a:focus,
  button:focus,
  input:focus,
  select:focus,
  textarea:focus {
    outline: 2px solid var(--gold);
    outline-offset: 3px;
  }
}

::selection {
  background: var(--gold);
  color: #000;
}

/* --------------------------------------------------------- 04. Helpers */

.shell {
  width: var(--shell);
  margin-inline: auto;
}

.section {
  position: relative;
  padding-block: var(--section-y);
}

.skip-link {
  position: fixed;
  z-index: 999;
  inset-block-start: 0.5rem;
  inset-inline-start: 0.5rem;
  padding: 0.7rem 1.2rem;
  background: var(--gold);
  color: #000;
  font-weight: 700;
  transform: translateY(-160%);
  transition: transform 0.2s var(--ease);
}

.skip-link:focus-visible {
  transform: translateY(0);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-block-end: 1rem;
  color: var(--gold);
  font-size: var(--step--1);
  font-weight: 700;
  letter-spacing: 0.14em;
}

.eyebrow::before {
  content: "";
  width: clamp(1.5rem, 4vw, 3rem);
  height: 2px;
  background: linear-gradient(to left, var(--gold), transparent);
}

html[dir="ltr"] .eyebrow::before {
  background: linear-gradient(to right, var(--gold), transparent);
}

.section-title {
  font-size: var(--step-4);
  max-width: 20ch;
}

.section-lede {
  max-width: 62ch;
  margin-block-start: 1.2rem;
  color: var(--muted);
  font-size: var(--step-1);
  line-height: 1.85;
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem clamp(1rem, 4vw, 3rem);
  margin-block-end: clamp(2.5rem, 5vw, 4rem);
}

/* The identity rhombus. --morph: 1 = full lean, 0 = plain rectangle. */
.rhombus {
  --morph: 1;
  clip-path: polygon(
    calc(var(--cut) * var(--morph)) 0,
    100% 0,
    calc(100% - var(--cut) * var(--morph)) 100%,
    0 100%
  );
}

/* --------------------------------------------------------- 05. Buttons */

/* The button is a parallelogram drawn as two stacked clipped layers: the
   outer element paints the outline colour, ::after insets to leave the rim.
   A plain CSS border cannot be used — the parent clip-path would shear the
   left and right edges off. */
.btn {
  --btn-line: var(--gold);
  --btn-fill: var(--ink);
  --btn-fg: var(--gold);
  --btn-lean: 0.85rem;
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.95rem clamp(1.5rem, 3vw, 2.3rem);
  border: 0;
  background: var(--btn-line);
  color: var(--btn-fg);
  font-size: var(--step-0);
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  cursor: pointer;
  clip-path: polygon(
    var(--btn-lean) 0,
    100% 0,
    calc(100% - var(--btn-lean)) 100%,
    0 100%
  );
  transition: color 0.25s var(--ease), background 0.25s var(--ease),
    transform 0.25s var(--ease);
}

.btn::after {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 1.5px;
  background: var(--btn-fill);
  clip-path: polygon(
    var(--btn-lean) 0,
    100% 0,
    calc(100% - var(--btn-lean)) 100%,
    0 100%
  );
  transition: background 0.25s var(--ease);
}

.btn > span,
.btn > svg {
  position: relative;
  z-index: 2;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn--solid {
  --btn-line: var(--gold);
  --btn-fill: var(--gold);
  --btn-fg: #000;
  /* the focus ring sits inside a gold field here — white would be 1.89:1 */
  --ring: #000;
}

.btn--solid:hover {
  --btn-line: var(--gold-bright);
  --btn-fill: var(--gold-bright);
}

.btn--ghost {
  --btn-line: rgb(255 255 255 / 55%);
  /* Opaque: ::after sits on top of the rim layer, so a translucent fill
     composites over white and turns the button into a grey slab. */
  --btn-fill: #0b0b0e;
  --btn-fg: #fff;
}

.btn--ghost:hover {
  --btn-line: var(--gold);
  --btn-fg: var(--gold);
}

.btn--lg {
  --btn-lean: 1rem;
  padding-block: 1.15rem;
  font-size: var(--step-1);
}

/* --------------------------------------------------------- 06. Header */

.site-header {
  position: fixed;
  z-index: 100;
  inset-block-start: 0;
  inset-inline: 0;
  /* transform lives here, not only on .is-hidden — otherwise the header snaps
     back into place with no animation when the class is removed. */
  transition: transform 0.35s var(--ease), background 0.3s var(--ease),
    border-color 0.3s var(--ease), backdrop-filter 0.3s var(--ease);
  border-block-end: 1px solid transparent;
}

.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgb(0 0 0 / 85%), transparent);
  pointer-events: none;
  transition: opacity 0.3s var(--ease);
}

.site-header.is-stuck {
  background: rgb(6 6 8 / 82%);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-block-end-color: var(--line);
}

.site-header.is-stuck::before {
  opacity: 0;
}

.site-header.is-hidden {
  transform: translateY(-100%);
}

.nav {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  width: var(--shell);
  margin-inline: auto;
  padding-block: 1rem;
}

.nav__logo img {
  width: clamp(96px, 11vw, 132px);
  height: auto;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.4vw, 2.2rem);
  font-size: var(--step--1);
  font-weight: 700;
  letter-spacing: 0.03em;
}

.nav__links a {
  position: relative;
  padding-block: 0.4rem;
  color: #e8e8ee;
  transition: color 0.2s var(--ease);
}

.nav__links a::after {
  content: "";
  position: absolute;
  inset-block-end: 0;
  inset-inline: 0;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  /* transform-origin takes no logical keywords, so it is selected per
     direction. RTL sweeps from the right, LTR from the left. */
  transform-origin: right center;
  transition: transform 0.28s var(--ease);
}

html[dir="ltr"] .nav__links a::after {
  transform-origin: left center;
}

.nav__links a:hover,
.nav__links a[aria-current="true"] {
  color: #fff;
}

.nav__links a:hover::after,
.nav__links a[aria-current="true"]::after {
  transform: scaleX(1);
}

.nav__actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nav__toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid var(--line);
  background: rgb(255 255 255 / 4%);
  cursor: pointer;
}

.nav__toggle span {
  position: relative;
  display: block;
  width: 20px;
  height: 2px;
  background: var(--gold);
  transition: background 0.2s var(--ease);
}

.nav__toggle span::before,
.nav__toggle span::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  height: 2px;
  background: var(--gold);
  transition: transform 0.28s var(--ease);
}

.nav__toggle span::before {
  inset-block-start: -6px;
}

.nav__toggle span::after {
  inset-block-start: 6px;
}

[aria-expanded="true"].nav__toggle span {
  background: transparent;
}

[aria-expanded="true"].nav__toggle span::before {
  transform: translateY(6px) rotate(45deg);
}

[aria-expanded="true"].nav__toggle span::after {
  transform: translateY(-6px) rotate(-45deg);
}

/* --------------------------------------------------------- 07. Hero */

.hero {
  position: relative;
  display: grid;
  align-content: end;
  min-block-size: 100vh;
  min-block-size: 100svh;
  padding-block: 9rem clamp(2.5rem, 6vh, 4.5rem);
  overflow: hidden;
  background: var(--ink);
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__media video,
.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
      to top,
      var(--ink) 2%,
      rgb(0 0 0 / 72%) 45%,
      rgb(0 0 0 / 80%) 100%
    ),
    /* side scrim follows the text, which sits inline-end in RTL and
       inline-start in LTR */
    linear-gradient(to var(--hero-scrim-side, left), rgb(0 0 0 / 55%),
      transparent 60%);
}

html[lang="en"] .hero__media::after {
  --hero-scrim-side: right;
}

.hero__inner {
  position: relative;
  z-index: 1;
  width: var(--shell);
  margin-inline: auto;
}

.hero__title {
  font-size: var(--step-5);
  font-weight: 900;
  max-width: 16ch;
  /* "unforgettable" is wider than a 320px viewport at --step-5 */
  overflow-wrap: break-word;
  hyphens: auto;
}

.hero__title .accent {
  color: var(--gold);
  text-shadow: 0 0 40px rgb(240 178 18 / 35%);
}

.hero__lede {
  max-width: 52ch;
  margin-block-start: 1.5rem;
  color: #d9d9e2;
  font-size: var(--step-1);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-block-start: clamp(1.8rem, 4vh, 2.8rem);
}

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 2.5rem;
  margin-block-start: clamp(2rem, 5vh, 3.5rem);
  padding-block-start: 1.5rem;
  border-block-start: 1px solid var(--line);
  color: var(--muted);
  font-size: var(--step--1);
}

.hero__meta b {
  color: var(--gold);
  font-size: var(--step-1);
  font-weight: 800;
}

.hero__meta > div {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
}

.scroll-progress {
  position: fixed;
  z-index: 120;
  inset-block-start: 0;
  inset-inline: 0;
  height: 2px;
  background: rgb(255 255 255 / 8%);
  pointer-events: none;
}

.scroll-progress::after {
  content: "";
  display: block;
  height: 100%;
  background: var(--gold);
  box-shadow: 0 0 12px rgb(240 178 18 / 70%);
  transform: scaleX(var(--scroll-progress, 0));
  transform-origin: right center;
}

html[dir="ltr"] .scroll-progress::after {
  transform-origin: left center;
}

/* --------------------------------------------------------- 08. Stats */

.stats {
  border-block: 1px solid var(--line);
  background: var(--surface);
}

.stats__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
}

/* Dividers come from the grid gap, so a wrapped row cannot leave a rule
   dangling beside nothing. */
.stats__grid {
  gap: 1px;
  background: var(--line);
}

.stat {
  padding: clamp(1.6rem, 3.5vw, 2.6rem) clamp(1rem, 2vw, 1.6rem);
  background: var(--surface);
  text-align: center;
}

.stat__value {
  display: block;
  color: var(--gold);
  font-size: var(--step-3);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}

.stat__label {
  display: block;
  margin-block-start: 0.35rem;
  color: var(--muted);
  font-size: var(--step--1);
}

/* --------------------------------------------------------- 09. Services */

.services {
  background: var(--ink);
}

/* Always three across on desktop — never four. */
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 2vw, 1.5rem);
}

@media (max-width: 1080px) {
  .service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .service-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

.service {
  position: relative;
  isolation: isolate;
  padding: clamp(1.8rem, 3vw, 2.6rem) clamp(2.2rem, 4vw, 3.2rem);
  background: var(--surface-2);
  transition: background 0.35s var(--ease), transform 0.35s var(--ease);
}

.service::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  padding: 1px;
  background: linear-gradient(150deg, var(--line-strong), transparent 55%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  clip-path: inherit;
}

.service:hover {
  background: var(--surface-3);
  transform: translateY(-4px);
}

.service__no {
  display: block;
  color: var(--gold);
  font-size: var(--step--1);
  font-weight: 700;
  letter-spacing: 0.16em;
}

.service__title {
  margin-block: 0.9rem 0.7rem;
  font-size: var(--step-2);
}

.service__desc {
  color: var(--muted);
  font-size: var(--step-0);
}

.service__list {
  display: grid;
  gap: 0.45rem;
  margin-block-start: 1.4rem;
  padding-block-start: 1.3rem;
  border-block-start: 1px solid var(--line);
  color: var(--muted-dim);
  font-size: var(--step--1);
}

.service__list li {
  position: relative;
  padding-inline-start: 1.1rem;
}

.service__list li::before {
  content: "";
  position: absolute;
  inset-block-start: 0.72em;
  inset-inline-start: 0;
  width: 6px;
  height: 6px;
  background: var(--gold);
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
}

/* --------------------------------------------------------- 10. Work */

.work {
  background: var(--surface);
  border-block-start: 1px solid var(--line);
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-block-end: clamp(2rem, 4vw, 3rem);
}

/* Same lean as the cards. The rim is drawn as two stacked clipped layers —
   a real border would be sheared off by the clip-path. */
.filter {
  --f-line: rgb(255 255 255 / 22%);
  --f-fill: var(--surface);
  position: relative;
  isolation: isolate;
  padding: 0.6rem 1.35rem;
  border: 0;
  background: var(--f-line);
  color: var(--muted);
  font-size: var(--step--1);
  font-weight: 600;
  line-height: 1.4;
  cursor: pointer;
  clip-path: polygon(0.62rem 0, 100% 0, calc(100% - 0.62rem) 100%, 0 100%);
  transition: color 0.2s var(--ease), background 0.2s var(--ease);
}

.filter::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 1px;
  background: var(--f-fill);
  clip-path: polygon(0.62rem 0, 100% 0, calc(100% - 0.62rem) 100%, 0 100%);
  transition: background 0.2s var(--ease);
}

.filter:hover {
  --f-line: var(--line-strong);
  color: #fff;
}

.filter[aria-pressed="true"] {
  --f-line: var(--gold);
  --f-fill: var(--gold);
  color: #000;
  --ring: #000;
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(0.9rem, 1.8vw, 1.6rem);
}

.work-card {
  --morph: 1;
  --bleed: 0;
  position: relative;
  isolation: isolate;
  display: block;
  overflow: hidden;
  background: var(--surface-2);
  transition: transform 0.4s var(--ease);
  clip-path: polygon(
    calc(var(--cut) * var(--morph)) 0,
    100% 0,
    calc(100% - var(--cut) * var(--morph)) 100%,
    0 100%
  );
}

.work-card[hidden] {
  display: none;
}

.work-card__media {
  position: relative;
  aspect-ratio: 1.55;
  overflow: hidden;
}

.work-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease), filter 0.4s var(--ease);
}

.work-card__media::after {
  content: "";
  position: absolute;
  inset: 0;
  /* The body box starts ~40% up the media, where the old ramp was only ~21%
     black — the gold label measured 1.0:1. Hold near-opaque black through the
     whole text band. */
  background: linear-gradient(to top, rgb(0 0 0 / 95%) 0%, rgb(0 0 0 / 88%) 38%,
      rgb(0 0 0 / 40%) 62%, transparent);
}

.work-card__body {
  position: absolute;
  z-index: 2;
  inset-block-end: 0;
  inset-inline: 0;
  padding: clamp(1.1rem, 2.2vw, 1.6rem) clamp(2.2rem, 4.5vw, 3.4rem);
}

.work-card__cat {
  display: inline-block;
  margin-block-end: 0.35rem;
  color: var(--gold);
  font-size: var(--step--1);
  font-weight: 700;
  letter-spacing: 0.06em;
}

.work-card__title {
  font-size: var(--step-1);
  line-height: 1.3;
}

.work-card__client {
  margin-block-start: 0.3rem;
  color: var(--muted);
  font-size: var(--step--1);
  line-height: 1.5;
}

.work-card__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.4rem;
  margin-block-start: 0.8rem;
  padding-block-start: 0.8rem;
  border-block-start: 1px solid rgb(255 255 255 / 14%);
  font-size: var(--step--1);
  color: var(--muted);
}

.work-card__stats b {
  color: #fff;
  font-weight: 800;
}

@media (hover: hover) {
  .work-card:hover {
    transform: translateY(-6px);
  }

  .work-card:hover .work-card__media img {
    transform: scale(1.06);
  }
}

.work__more {
  display: flex;
  justify-content: center;
  margin-block-start: clamp(2rem, 4vw, 3rem);
}

/* --------------------------------------------------------- 11. Reach */

.reach {
  position: relative;
  overflow: hidden;
  background: var(--ink);
}

.reach__glow {
  position: absolute;
  /* Physical on purpose: `inset-inline-start` flips in RTL but `translate` does
     not, so the two composed instead of cancelling and pushed the glow off the
     canvas on the Arabic pages. The shape is symmetrical, so left/50% is right. */
  top: 50%;
  left: 50%;
  width: min(120vw, 1200px);
  aspect-ratio: 1;
  translate: -50% -50%;
  background: radial-gradient(
    circle,
    rgb(240 178 18 / 22%) 0%,
    rgb(240 178 18 / 8%) 32%,
    transparent 65%
  );
  pointer-events: none;
}

.reach__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(2rem, 5vw, 4.5rem);
}

.reach__globe {
  display: block;
  --globe-size: min(46vw, 520px);
  width: var(--globe-size);
  height: var(--globe-size);
  margin-inline: auto;
  background: transparent;
  --poster-color: transparent;
  filter: drop-shadow(0 25px 60px rgb(240 178 18 / 30%));
}

.reach__map {
  display: grid;
  gap: 1.6rem;
  margin-block-start: 2rem;
}

.reach__group h3 {
  margin-block-end: 0.6rem;
  color: var(--gold);
  font-size: var(--step--1);
  font-weight: 700;
  letter-spacing: 0.12em;
}

.reach__list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.reach__list li {
  padding: 0.4rem 0.9rem;
  border: 1px solid var(--line);
  background: rgb(255 255 255 / 3%);
  font-size: var(--step--1);
  clip-path: polygon(0.5rem 0, 100% 0, calc(100% - 0.5rem) 100%, 0 100%);
}

.reach__list li[data-hq] {
  border-color: var(--gold);
  background: rgb(240 178 18 / 12%);
  color: var(--gold-soft);
}

/* --------------------------------------------------------- 12. About */

.about {
  background: var(--surface);
  border-block: 1px solid var(--line);
}

.about__inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: clamp(2rem, 5vw, 4.5rem);
}

.about__media {
  position: relative;
  padding: 2px;
  background: linear-gradient(150deg, var(--gold), rgb(240 178 18 / 15%) 60%);
  clip-path: polygon(var(--cut) 0, 100% 0, calc(100% - var(--cut)) 100%, 0 100%);
}

.about__media-inner {
  position: relative;
  aspect-ratio: 1.3;
  overflow: hidden;
  background: #000;
  clip-path: polygon(var(--cut) 0, 100% 0, calc(100% - var(--cut)) 100%, 0 100%);
}

.about__media-inner video,
.about__media-inner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about__points {
  display: grid;
  gap: 1rem;
  margin-block-start: 2rem;
}

.about__points li {
  position: relative;
  padding-inline-start: 1.6rem;
  color: var(--muted);
}

.about__points li::before {
  content: "";
  position: absolute;
  inset-block-start: 0.75em;
  inset-inline-start: 0;
  width: 9px;
  height: 9px;
  background: var(--gold);
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
}

.about__points b {
  color: #fff;
}

/* --------------------------------------------------------- 13. Clients */

.clients {
  background: var(--ink);
  overflow: hidden;
}

/* Seamless, never-stopping loop: two identical tracks sit flush against each
   other (no gap on the wrapper — the trailing padding IS the gap), so shifting
   by exactly one track width lands copy 2 where copy 1 began. */
.marquee {
  --marquee-gap: clamp(2rem, 5vw, 4rem);
  position: relative;
  display: flex;
  flex-wrap: nowrap;
  overflow: hidden;
  /* Pinned to LTR on purpose: under RTL the flex row starts at the right edge
     and grows leftwards, so translateX(-100%) drags both copies off-screen.
     The strip is images only, so reading direction is irrelevant here. */
  direction: ltr;
  mask-image: linear-gradient(
    to left,
    transparent,
    #000 8%,
    #000 92%,
    transparent
  );
}

.marquee__track {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  gap: var(--marquee-gap);
  padding-inline-end: var(--marquee-gap);
  will-change: transform;
  animation: marquee 64s linear infinite;
}

.marquee__track img {
  width: clamp(88px, 10vw, 130px);
  height: clamp(40px, 5vw, 58px);
  object-fit: contain;
  opacity: 0.55;
  filter: grayscale(1);
  transition: opacity 0.3s var(--ease), filter 0.3s var(--ease);
}

.marquee__track img:hover {
  opacity: 1;
  filter: none;
}

@keyframes marquee {
  from {
    transform: translateX(0);
  }
  to {
    /* RTL-safe: the track is duplicated, so shift by exactly one copy */
    transform: translateX(-100%);
  }
}

.marquee + .marquee {
  margin-block-start: clamp(1.5rem, 3vw, 2.5rem);
}

.marquee--reverse .marquee__track {
  animation-direction: reverse;
}

/* --------------------------------------------------------- 14. Contact */

.contact {
  position: relative;
  background: var(--surface);
  border-block-start: 1px solid var(--line);
}

.contact__inner {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(2.5rem, 6vw, 5rem);
}

.contact__title {
  font-size: var(--step-4);
}

.contact__details {
  display: grid;
  gap: 1.6rem;
  margin-block-start: 2.5rem;
}

.contact__block h3 {
  margin-block-end: 0.5rem;
  color: var(--gold);
  font-size: var(--step--1);
  font-weight: 700;
  letter-spacing: 0.12em;
}

.contact__block a {
  color: #e9e9f0;
  transition: color 0.2s var(--ease);
}

.contact__block a:hover {
  color: var(--gold);
}

/* Only the numbers need LTR; flipping the whole block also left-aligned it
   inside the RTL column. */
.contact__block--ltr a {
  unicode-bidi: isolate;
  direction: ltr;
}

.form {
  display: grid;
  gap: 1.1rem;
  padding: clamp(1.6rem, 3.5vw, 2.6rem);
  background: var(--surface-2);
  border: 1px solid var(--line);
}

.form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.1rem;
}

.field {
  display: grid;
  gap: 0.45rem;
}

.field > span {
  font-size: var(--step--1);
  font-weight: 600;
  color: var(--muted);
}

.field .req {
  color: var(--gold);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1px solid var(--line);
  background: rgb(0 0 0 / 45%);
  color: #fff;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--gold);
  background: rgb(0 0 0 / 70%);
}

.field textarea {
  min-height: 130px;
  resize: vertical;
}

.field select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--gold) 50%),
    linear-gradient(135deg, var(--gold) 50%, transparent 50%);
  background-position: calc(0% + 1.1rem) 1.35rem, calc(0% + 1.45rem) 1.35rem;
  background-size: 6px 6px;
  background-repeat: no-repeat;
}

html[lang="en"] .field select {
  background-position: calc(100% - 1.45rem) 1.35rem,
    calc(100% - 1.1rem) 1.35rem;
  padding-inline-end: 2.4rem;
}

.field option {
  background: #101013;
}

.form__note {
  color: var(--muted-dim);
  font-size: var(--step--1);
}

.form__status {
  /* Stays rendered so the live region already exists when the message is
     written — a display:none region is not in the accessibility tree. */
  visibility: hidden;
  height: 0;
  padding-block: 0;
  border-width: 0;
  overflow: hidden;
  padding: 0.9rem 1.1rem;
  border: 1px solid var(--line-strong);
  background: rgb(240 178 18 / 10%);
  color: var(--gold-soft);
  font-size: var(--step--1);
}

.form__status.is-visible {
  visibility: visible;
  height: auto;
  padding-block: 0.9rem;
  border-width: 1px;
}

/* --------------------------------------------------------- 15. Footer */

.site-footer {
  padding-block: 2.5rem;
  background: var(--ink);
  border-block-start: 1px solid var(--line);
  color: var(--muted-dim);
  font-size: var(--step--1);
}

.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
}

.social {
  display: flex;
  gap: 0.6rem;
}

.social a {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  color: #fff;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease),
    color 0.2s var(--ease);
}

.social a:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: #000;
}

.social svg {
  width: 17px;
  height: 17px;
  fill: currentColor;
}

/* --------------------------------------------------------- 16. Reveal */

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.is-in {
  opacity: 1;
  transform: none;
}

.reveal:nth-child(2) {
  transition-delay: 0.07s;
}

.reveal:nth-child(3) {
  transition-delay: 0.14s;
}

.reveal:nth-child(4) {
  transition-delay: 0.21s;
}

/* --------------------------------------------------------- 17. Responsive */

@media (max-width: 1080px) {
  .work-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .reach__inner,
  .about__inner,
  .contact__inner {
    grid-template-columns: 1fr;
  }

  .reach__globe {
    --globe-size: min(70vw, 420px);
  }
}

@media (max-width: 860px) {
  .nav__links {
    position: absolute;
    z-index: 5;
    inset-block-start: calc(100% + 0.5rem);
    inset-inline-end: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    min-width: 240px;
    padding: 0.5rem;
    background: rgb(8 8 10 / 96%);
    border: 1px solid var(--line);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.25s var(--ease), transform 0.25s var(--ease),
      visibility 0.25s;
  }

  .nav__links a {
    padding: 0.85rem 1rem;
    font-size: var(--step-0);
  }

  .nav__links a::after {
    display: none;
  }

  .site-header.is-open .nav__links {
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .nav__toggle {
    display: flex;
  }

  .nav__actions .btn {
    display: none;
  }

  .form__row {
    grid-template-columns: 1fr;
  }
}

/* ---- Mobile: the rhombus resolves into a full-bleed rectangle on scroll ---- */

@media (max-width: 720px) {
  .work-grid {
    grid-template-columns: 1fr;
    gap: clamp(1.5rem, 5vw, 2.5rem);
  }

  .work-card {
    /* --morph and --bleed are driven by the scroll observer in main.js */
    margin-inline: calc(((100vw - var(--shell)) / -2) * var(--bleed));
    transition: none;
  }

  /* Height is pinned to the viewport, not to the card's own width, so the
     full-bleed morph changes width only — the document height never moves and
     the scroll produces no layout shift. */
  .work-card__media {
    aspect-ratio: auto;
    height: min(66vw, 330px);
  }

  .work-card__body {
    padding-inline: calc(
      clamp(1.1rem, 4vw, 1.8rem) + (var(--cut) * var(--morph))
    );
  }

  .stat {
    border-inline-start: 0;
    border-block-start: 1px solid var(--line);
    text-align: start;
  }

  .stats__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stat:nth-child(odd) {
    border-inline-end: 1px solid var(--line);
  }
}

/* --------------------------------------------------------- 18. Motion */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  /* No auto-scroll, but every logo must still be reachable — so the strip
     becomes user-scrollable and the duplicate copy is dropped. */
  .marquee {
    overflow-x: auto;
  }

  .marquee__track {
    animation: none;
  }

  .marquee__track[aria-hidden="true"] {
    display: none;
  }
}

@media print {
  .site-header,
  .hero__media,
  .marquee,
  .form,
  .scroll-progress {
    display: none !important;
  }

  /* Reveals never fire for unscrolled sections, and printers drop backgrounds —
     without this most of the page prints blank or white-on-white. */
  .reveal {
    opacity: 1 !important;
    transform: none !important;
  }

  body,
  .stats,
  .services,
  .work,
  .about,
  .team,
  .clients,
  .contact,
  .site-footer,
  .service,
  .work-card,
  .member,
  .project-facts > div {
    background: #fff !important;
    color: #000 !important;
  }

  h1,
  h2,
  h3,
  h4,
  p,
  li,
  dd,
  dt {
    color: #000 !important;
  }

  .work-card,
  .service,
  .member,
  .gallery figure,
  .btn,
  .filter {
    clip-path: none !important;
  }

  .work-card__body {
    position: static;
  }
}

/* --------------------------------------------------------- 19. Language */

/* Carries the same lean as the buttons, cards and filters. */
.lang-switch {
  display: inline-flex;
  align-items: stretch;
  gap: 2px;
  padding: 2px;
  background: rgb(255 255 255 / 20%);
  font-size: var(--step--1);
  font-weight: 700;
  line-height: 1;
  clip-path: polygon(0.62rem 0, 100% 0, calc(100% - 0.62rem) 100%, 0 100%);
}

.lang-switch a {
  position: relative;
  display: grid;
  place-items: center;
  min-width: 2.6rem;
  padding: 0.5rem 0.7rem;
  background: var(--surface);
  color: var(--muted);
  clip-path: polygon(0.5rem 0, 100% 0, calc(100% - 0.5rem) 100%, 0 100%);
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}

.lang-switch a:hover {
  background: var(--surface-3);
  color: #fff;
}

.lang-switch a[aria-current="page"] {
  background: var(--gold);
  color: #000;
}

/* Latin copy inside the Arabic page, and the whole English site. */
[lang="en"],
html[lang="en"] body {
  letter-spacing: 0;
}

html[lang="en"] .eyebrow {
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

html[lang="en"] .section-title,
html[lang="en"] .hero__title,
html[lang="en"] .contact__title {
  letter-spacing: -0.03em;
}

/* --------------------------------------------------------- 20. Team */

.team {
  background: var(--surface);
  border-block-start: 1px solid var(--line);
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 2vw, 1.6rem);
}

.member {
  position: relative;
  overflow: hidden;
  background: var(--surface-2);
  clip-path: polygon(
    calc(var(--cut) * 0.6) 0,
    100% 0,
    calc(100% - var(--cut) * 0.6) 100%,
    0 100%
  );
}

.member__photo {
  aspect-ratio: 0.86;
  overflow: hidden;
  background: #16161b;
}

.member__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  filter: grayscale(1) contrast(1.05);
  transition: filter 0.4s var(--ease), transform 0.6s var(--ease);
}

.member:hover .member__photo img {
  filter: none;
  transform: scale(1.04);
}

.member__body {
  padding: 1.1rem clamp(1.6rem, 3vw, 2.4rem) 1.4rem;
}

.member__name {
  font-size: var(--step-1);
}

.member__role {
  margin-block-start: 0.25rem;
  color: var(--gold);
  font-size: var(--step--1);
  font-weight: 600;
}

.member--lead {
  grid-column: span 3;
  display: grid;
  grid-template-columns: minmax(0, 0.42fr) minmax(0, 1fr);
  align-items: stretch;
}

.member--lead .member__photo {
  aspect-ratio: auto;
  min-height: 100%;
}

.member--lead .member__body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(1.6rem, 4vw, 3rem);
}

.member__bio {
  margin-block-start: 1rem;
  color: var(--muted);
  font-size: var(--step-0);
}

.member__bio p + p {
  margin-block-start: 0.9rem;
}

@media (max-width: 1080px) {
  .team-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .member--lead {
    grid-column: span 2;
  }
}

@media (max-width: 700px) {
  .team-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .member--lead {
    grid-column: span 1;
    grid-template-columns: minmax(0, 1fr);
  }
}

/* --------------------------------------------------------- 21. Project page */

.page-hero {
  position: relative;
  display: grid;
  align-content: end;
  min-block-size: min(78vh, 720px);
  min-block-size: min(78svh, 720px);
  padding-block: 10rem clamp(2.5rem, 5vw, 4rem);
  overflow: hidden;
  background: var(--ink);
}

.page-hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.page-hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, var(--ink) 3%, rgb(0 0 0 / 45%) 55%, rgb(0 0 0 / 70%));
}

.page-hero__inner {
  position: relative;
  z-index: 1;
  width: var(--shell);
  margin-inline: auto;
}

.page-hero__title {
  font-size: var(--step-4);
  max-width: 24ch;
}

.page-hero__client {
  margin-block-start: 0.8rem;
  color: var(--muted);
  font-size: var(--step-1);
}

.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-block-end: 1.2rem;
  color: var(--muted-dim);
  font-size: var(--step--1);
}

.crumbs a:hover {
  color: var(--gold);
}

/* Over the project hero photo --muted-dim only reaches 2.14:1; white gives
   8.19:1 against the same composited backdrop. */
.page-hero .crumbs {
  color: #fff;
}

.crumbs span {
  opacity: 0.5;
}

.project-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.42fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.project-prose p {
  color: #cfcfd8;
  font-size: var(--step-1);
  line-height: 1.95;
}

.project-prose p + p {
  margin-block-start: 1.2rem;
}

.project-facts {
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.project-facts > div {
  padding: 1.1rem 1.4rem;
  background: var(--surface-2);
}

.project-facts dt {
  color: var(--gold);
  font-size: var(--step--1);
  font-weight: 700;
  letter-spacing: 0.1em;
}

.project-facts dd {
  margin: 0.3rem 0 0;
  font-size: var(--step-1);
  font-weight: 700;
}

.project-facts .fact-note {
  color: var(--muted);
  font-size: var(--step-0);
  font-weight: 400;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(0.7rem, 1.4vw, 1.2rem);
  margin-block-start: clamp(2.5rem, 5vw, 4rem);
}

.gallery figure {
  margin: 0;
  overflow: hidden;
  background: var(--surface-2);
  clip-path: polygon(
    calc(var(--cut) * 0.5) 0,
    100% 0,
    calc(100% - var(--cut) * 0.5) 100%,
    0 100%
  );
}

.gallery img {
  width: 100%;
  aspect-ratio: 1.5;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}

.gallery figure:hover img {
  transform: scale(1.05);
}

.gallery figure:first-child {
  grid-column: span 2;
}

.gallery figure:first-child img {
  aspect-ratio: 2.02;
}

@media (max-width: 900px) {
  .project-body {
    grid-template-columns: minmax(0, 1fr);
  }

  .gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gallery figure:first-child {
    grid-column: span 2;
  }
}

@media (max-width: 600px) {
  .gallery {
    grid-template-columns: minmax(0, 1fr);
  }

  .gallery figure:first-child {
    grid-column: span 1;
  }
}

.project-nav .btn:only-child {
  margin-inline-start: auto;
}

.project-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  margin-block-start: clamp(2.5rem, 5vw, 4rem);
  padding-block-start: 2rem;
  border-block-start: 1px solid var(--line);
}

/* --------------------------------------------------------- 22. Index page */

.index-head {
  padding-block: 9rem clamp(2rem, 4vw, 3rem);
  background: var(--ink);
}

.count-note {
  margin-block-start: 1rem;
  color: var(--muted-dim);
  font-size: var(--step--1);
}

.empty-note {
  display: none;
  padding: 3rem 1rem;
  color: var(--muted);
  text-align: center;
}

.empty-note.is-visible {
  display: block;
}
