:root {
  --ink: #12151c;
  --ink-soft: #1c2230;
  --paper: #e6e8ee;
  --mist: #f1f2f6;
  --muted: #5c6370;
  --line: rgba(18, 21, 28, 0.1);
  --accent: #b8860b;
  --accent-mid: #d4a017;
  --accent-deep: #1a2744;
  --glow: rgba(184, 134, 11, 0.22);
  --radius: 4px;
  --max: 1140px;
  --font-ar: "IBM Plex Sans Arabic", "Segoe UI", Tahoma, sans-serif;
  --font-en: "Syne", "IBM Plex Sans Arabic", "Segoe UI", sans-serif;
  --font-num: "Space Grotesk", "IBM Plex Sans Arabic", "Segoe UI", sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --pad: clamp(1.25rem, 4.5vw, 3.25rem);
}

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

html {
  scroll-behavior: smooth;
  font-family: var(--font-ar);
}

html,
body,
button,
input,
textarea,
select,
option {
  font-family: var(--font-ar);
}

body {
  margin: 0;
  font-family: var(--font-ar);
  color: var(--ink);
  background:
    radial-gradient(900px 480px at 100% 12%, rgba(184, 134, 11, 0.1), transparent 60%),
    radial-gradient(700px 420px at 0% 55%, rgba(26, 39, 68, 0.06), transparent 55%),
    linear-gradient(180deg, var(--mist) 0%, var(--paper) 50%, #d8dbe3 100%);
  line-height: 1.75;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

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

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
  text-align: inherit;
}

::selection {
  background: rgba(184, 134, 11, 0.22);
}

.grain {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 60;
  opacity: 0.22;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
}

.cursor-glow {
  pointer-events: none;
  position: fixed;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(184, 134, 11, 0.14), transparent 68%);
  transform: translate(-50%, -50%);
  z-index: 0;
  opacity: 0;
  transition: opacity 0.4s ease;
}

body.is-ready .cursor-glow {
  opacity: 1;
}

/* Header */
.site-header {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.05rem var(--pad);
  backdrop-filter: blur(18px) saturate(1.2);
  background: rgba(242, 245, 239, 0.72);
  border-bottom: 1px solid transparent;
  transition: background 0.4s ease, border-color 0.4s ease, color 0.4s ease, padding 0.35s ease;
}

.site-header--hero {
  background: transparent;
  color: var(--mist);
}

.site-header--hero .nav {
  color: rgba(242, 245, 239, 0.72);
}

.site-header--hero .nav a:hover {
  color: #fff;
}

.site-header--hero .nav a::after {
  background: #e8c56a;
}

.site-header.is-scrolled,
.site-header:not(.site-header--hero) {
  background: rgba(242, 245, 239, 0.92);
  border-bottom-color: var(--line);
  color: var(--ink);
  padding-block: 0.8rem;
}

.site-header.is-scrolled .nav,
.site-header:not(.site-header--hero) .nav {
  color: var(--muted);
}

.logo {
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.nav {
  display: flex;
  gap: 1.35rem;
  font-size: 0.92rem;
  color: var(--muted);
}

.nav a {
  position: relative;
  transition: color 0.25s ease;
}

.nav a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -0.25rem;
  width: 0;
  height: 1.5px;
  background: var(--accent);
  transition: width 0.35s var(--ease);
}

.nav a:hover {
  color: var(--ink);
}

.nav a:hover::after {
  width: 100%;
}

/* Hero — clean title over film */
.hero {
  position: relative;
  min-height: 100svh;
  min-height: 100dvh;
  display: grid;
  align-items: end;
  overflow: hidden;
  isolation: isolate;
  color: var(--mist);
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.hero__video,
.hero__bg-fallback {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 28%;
  filter: saturate(0.88) contrast(1.1) brightness(0.85);
  opacity: 0;
  transition: opacity 0.9s var(--ease);
  pointer-events: none;
}

.hero__video.is-active,
.hero.is-static .hero__bg-fallback {
  opacity: 1;
  animation: heroKen 20s ease-in-out infinite alternate;
}

.hero.is-static .hero__video { opacity: 0; }

@keyframes heroKen {
  from { transform: scale(1); }
  to { transform: scale(1.08); }
}

.hero__veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(8, 10, 14, 0.42) 0%, rgba(8, 10, 14, 0.08) 28%, rgba(8, 10, 14, 0.55) 58%, rgba(8, 10, 14, 0.94) 100%),
    linear-gradient(90deg, rgba(8, 10, 14, 0.35) 0%, transparent 48%);
}

.hero__layout {
  position: relative;
  z-index: 2;
  width: min(100%, 1100px);
  margin-inline: auto;
  padding: clamp(6rem, 12vh, 8rem) var(--pad) clamp(5.5rem, 11vh, 7.5rem);
}

.hero__content {
  max-width: 40rem;
}

.hero__brand {
  margin: 0 0 1.05rem;
  font-size: clamp(3.6rem, 12vw, 7.4rem);
  font-weight: 700;
  line-height: 0.9;
  letter-spacing: -0.045em;
  text-shadow: 0 28px 70px rgba(0, 0, 0, 0.5);
}

.hero__headline {
  margin: 0;
  display: grid;
  gap: 0.7rem;
}

.hero__en {
  font-family: var(--font-en);
  font-size: clamp(1.25rem, 3vw, 1.95rem);
  font-weight: 800;
  letter-spacing: -0.045em;
  text-transform: lowercase;
  color: #e8c56a;
  direction: ltr;
  unicode-bidi: isolate;
  line-height: 1.15;
}

.hero__ar {
  font-size: clamp(1.1rem, 2.3vw, 1.4rem);
  font-weight: 400;
  max-width: 26ch;
  color: rgba(242, 245, 239, 0.92);
  line-height: 1.55;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.9rem;
}

.hero .btn--solid {
  background: #e8c56a;
  color: #12151c;
  box-shadow: 0 14px 36px rgba(184, 134, 11, 0.35);
}

.hero .btn--solid:hover {
  background: #f0d27a;
}

.hero .btn--ghost {
  border-color: rgba(242, 245, 239, 0.45);
}

.hero__reel {
  position: absolute;
  z-index: 4;
  inset-inline-start: var(--pad);
  bottom: calc(1.35rem + env(safe-area-inset-bottom, 0px));
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.55rem 0.75rem;
  background: rgba(8, 10, 14, 0.45);
  border: 1px solid rgba(242, 245, 239, 0.12);
  backdrop-filter: blur(12px);
}

.hero__dot {
  width: 0.55rem;
  height: 0.55rem;
  padding: 0;
  border-radius: 50%;
  border: 1px solid rgba(242, 245, 239, 0.45);
  background: transparent;
  transition: transform 0.3s var(--ease), background 0.3s ease, border-color 0.3s ease, width 0.3s var(--ease);
}

.hero__dot.is-active {
  width: 1.55rem;
  border-radius: 999px;
  background: #e8c56a;
  border-color: #e8c56a;
}

.hero__reel-bar {
  width: 3.5rem;
  height: 2px;
  margin-inline-start: 0.25rem;
  background: rgba(242, 245, 239, 0.15);
  overflow: hidden;
}

.hero__reel-bar i {
  display: block;
  height: 100%;
  width: 0%;
  background: #e8c56a;
}

.hero__reel-bar i.is-running {
  animation: heroProgress 7s linear;
}

@keyframes heroProgress {
  from { width: 0%; }
  to { width: 100%; }
}

.marquee {
  overflow: hidden;
  border-block: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.55);
  padding: 0.85rem 0;
  margin: 0;
  position: relative;
  z-index: 2;
}

.marquee__track {
  display: flex;
  gap: 1.25rem;
  width: max-content;
  font-family: var(--font-num);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--muted);
  animation: marquee 32s linear infinite;
  direction: ltr;
}

.marquee__track span:nth-child(odd) {
  color: var(--ink-soft);
}

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.92rem 1.45rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.3s var(--ease), background 0.3s ease, color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

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

.btn--solid {
  background: var(--mist);
  color: var(--ink);
}

.btn--solid:hover {
  background: #fff;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.28);
}

.hero .btn--ghost {
  border: 1px solid rgba(242, 245, 239, 0.5);
  color: var(--mist);
  background: rgba(242, 245, 239, 0.04);
  backdrop-filter: blur(8px);
}

.hero .btn--ghost:hover {
  background: rgba(242, 245, 239, 0.14);
  border-color: var(--mist);
}

.btn--ghost {
  border: 1px solid var(--ink);
  background: transparent;
}

.btn--ghost:hover {
  background: var(--ink);
  color: var(--mist);
}

/* Reveals */
[data-reveal],
[data-case] {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
  transition-delay: calc(var(--d, 0) * 0.1s);
}

[data-reveal].is-visible,
[data-case].is-visible {
  opacity: 1;
  transform: none;
}

.hero [data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.85s var(--ease), transform 0.85s var(--ease);
}

.hero.is-ready [data-reveal] {
  opacity: 1;
  transform: none;
}

.hero.is-ready .hero__brand { transition-delay: 0.08s; }
.hero.is-ready .hero__en { transition-delay: 0.2s; }
.hero.is-ready .hero__ar { transition-delay: 0.32s; }
.hero.is-ready .hero__cta { transition-delay: 0.44s; }
.hero.is-ready .hero__reel { transition-delay: 0.55s; }

/* Strip */
.strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  max-width: var(--max);
  margin: 1.75rem auto 5rem;
  position: relative;
  z-index: 1;
  padding: 0 var(--pad);
}

.strip__item {
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(12px);
  padding: 1.75rem 1.35rem;
  text-align: center;
  border: 1px solid var(--line);
  border-inline-start: 0;
  transition: transform 0.35s var(--ease), background 0.35s ease;
}

.strip__item:first-child {
  border-inline-start: 1px solid var(--line);
}

.strip__item:hover {
  transform: translateY(-4px);
  background: #fff;
}

.strip__item strong {
  display: block;
  font-family: var(--font-num);
  font-size: clamp(1.9rem, 4vw, 2.7rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  direction: ltr;
  unicode-bidi: isolate;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
  color: var(--accent-deep);
}

.strip__item span {
  display: block;
  margin-top: 0.4rem;
  color: var(--muted);
  font-size: 0.88rem;
}

.section-head {
  max-width: var(--max);
  margin: 0 auto 2.75rem;
  padding: 0 var(--pad);
}

.section-head__lead {
  margin: 0.9rem 0 0;
  max-width: 44ch;
  color: var(--muted);
  font-size: 1.02rem;
}

.eyebrow {
  margin: 0 0 0.45rem;
  color: var(--accent);
  font-weight: 600;
  font-size: 0.88rem;
  letter-spacing: 0.02em;
}

.section-head h2 {
  margin: 0;
  font-size: clamp(1.75rem, 3.6vw, 2.65rem);
  line-height: 1.22;
  letter-spacing: -0.025em;
  max-width: 14ch;
}

/* Stack / Method */
.stack {
  padding: 1rem 0 5.5rem;
}

.stack__stage {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad);
}

.stack__steps {
  list-style: none;
  margin: 0 0 2rem;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  position: relative;
}

.stack__steps::before {
  content: "";
  position: absolute;
  top: 0.55rem;
  inset-inline: 8%;
  height: 1px;
  background: var(--line);
  z-index: 0;
}

.stack__tab {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: 0 0.4rem;
  display: grid;
  justify-items: center;
  gap: 0.55rem;
  color: var(--muted);
  transition: color 0.3s ease;
}

.stack__dot {
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 50%;
  border: 1.5px solid var(--muted);
  background: var(--mist);
  transition: background 0.3s ease, border-color 0.3s ease, transform 0.3s var(--ease), box-shadow 0.3s ease;
}

.stack__step.is-active .stack__tab,
.stack__tab:hover {
  color: var(--ink);
}

.stack__step.is-active .stack__dot {
  background: var(--accent);
  border-color: var(--accent);
  transform: scale(1.2);
  box-shadow: 0 0 0 5px rgba(184, 134, 11, 0.12);
}

.stack__index {
  display: block;
  font-family: var(--font-num);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--accent);
  direction: ltr;
  unicode-bidi: isolate;
  opacity: 0.7;
}

.stack__step.is-active .stack__index {
  opacity: 1;
}

.stack__label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.35;
  text-align: center;
}

.stack__panels {
  position: relative;
  min-height: 140px;
  max-width: 40rem;
  margin-inline: auto;
  text-align: center;
}

.stack__panel {
  display: none;
  animation: panelIn 0.45s var(--ease);
}

.stack__panel.is-active {
  display: block;
}

.stack__kicker {
  margin: 0 0 0.4rem;
  font-family: var(--font-en);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

.stack__panel h3 {
  margin: 0 0 0.55rem;
  font-size: clamp(1.35rem, 2.4vw, 1.8rem);
  letter-spacing: -0.02em;
}

.stack__panel p {
  margin: 0 auto;
  max-width: 42ch;
  color: var(--muted);
  font-size: 1.02rem;
}

@keyframes panelIn {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

/* Services */
.services {
  padding: 0.5rem 0 5.5rem;
}

.services__list {
  list-style: none;
  margin: 0 auto;
  padding: 0 var(--pad);
  max-width: var(--max);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.services__list li {
  padding: 1.6rem 1.35rem 1.5rem;
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid var(--line);
  border-top: 2px solid var(--ink);
  transition: transform 0.4s var(--ease), border-color 0.3s ease, background 0.3s ease, box-shadow 0.4s ease;
}

.services__list li:hover {
  transform: translateY(-6px);
  border-top-color: var(--accent);
  background: #fff;
  box-shadow: 0 18px 40px rgba(11, 14, 12, 0.08);
}

.services__list .num {
  font-family: var(--font-num);
  font-weight: 700;
  color: var(--accent);
  font-size: 0.95rem;
  direction: ltr;
  unicode-bidi: isolate;
}

.services__list h3 {
  margin: 0.75rem 0 0.5rem;
  font-size: 1.22rem;
  letter-spacing: -0.015em;
}

.services__list p {
  margin: 0;
  color: var(--muted);
  font-size: 0.96rem;
}

/* Work */
.work {
  padding: 0.5rem 0 4rem;
}

.case {
  max-width: var(--max);
  margin: 0 auto 4.5rem;
  padding: 0 var(--pad);
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(1.75rem, 4vw, 3.25rem);
  align-items: center;
}

.case.scene {
  grid-template-columns: 1.05fr 0.95fr;
  grid-template-areas:
    "meta meta"
    "media body";
}

.case.scene .scene__meta { grid-area: meta; }
.case.scene .case__media { grid-area: media; }
.case.scene .case__body { grid-area: body; }

.case.scene.case--flip {
  grid-template-areas:
    "meta meta"
    "body media";
}

.case__media {
  position: relative;
  display: grid;
  place-items: center;
  overflow: visible;
  min-height: 0;
}

.case__media::before {
  content: "";
  position: absolute;
  width: 70%;
  height: 55%;
  bottom: 5%;
  background: radial-gradient(ellipse at center, var(--glow), transparent 70%);
  filter: blur(12px);
  z-index: -1;
  opacity: 0.85;
}

.case__media img {
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: min(640px, 72vh);
  object-fit: contain;
  object-position: center;
  filter: drop-shadow(0 22px 36px rgba(11, 14, 12, 0.16));
  transition: transform 0.9s var(--ease);
}

.case__media--duo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  align-items: stretch;
}

.case__media--duo img {
  width: 100%;
  height: 100%;
  max-height: min(420px, 55vh);
  object-fit: cover;
  object-position: center;
  aspect-ratio: 4 / 5;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.65);
}

.case__media--awards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 0.75rem;
  align-items: stretch;
}

.case__media--awards img {
  width: 100%;
  height: 100%;
  max-height: min(280px, 38vh);
  object-fit: contain;
  object-position: center;
  background: rgba(255, 255, 255, 0.72);
  padding: 0.85rem;
  border-radius: 2px;
}

.case__media--awards img:last-child {
  grid-column: 1 / -1;
  max-height: min(320px, 42vh);
}

.case.is-visible .case__media img {
  transform: scale(1);
}

.case:not(.is-visible) .case__media img {
  transform: scale(1.05);
}

.case__body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.4rem;
  min-width: 0;
}

.case__tag {
  margin: 0;
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 600;
}

.case__body h3 {
  margin: 0;
  font-size: clamp(1.4rem, 2.5vw, 1.85rem);
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.case__body > p {
  margin: 0.4rem 0 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.75;
  max-width: 38ch;
}

.metrics {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 1.2rem 0 0;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
}

.metrics li {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 0.65rem 0.75rem;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid var(--line);
  transition: border-color 0.3s ease, background 0.3s ease;
}

.metrics li:hover {
  border-color: rgba(184, 134, 11, 0.35);
  background: #fff;
}

.metrics__value {
  display: block;
  direction: ltr;
  unicode-bidi: isolate;
  font-family: var(--font-num);
  font-size: clamp(1.4rem, 2.6vw, 1.9rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.15;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  color: var(--accent-deep);
}

.metrics__label {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.4;
}

/* Career path / timeline */
.path {
  padding: 1rem 0 5.5rem;
  position: relative;
  overflow: clip;
}

.path::before {
  content: "";
  position: absolute;
  inset-inline-end: max(0px, calc(8vw - 2rem));
  top: 18%;
  bottom: 12%;
  width: min(42vw, 380px);
  background:
    radial-gradient(ellipse at 70% 20%, rgba(184, 134, 11, 0.14), transparent 55%),
    radial-gradient(ellipse at 40% 80%, rgba(26, 39, 68, 0.08), transparent 50%);
  pointer-events: none;
  z-index: 0;
}

.path > * {
  position: relative;
  z-index: 1;
}

.path__head h2 {
  margin-bottom: 0.55rem;
}

.path__lead {
  margin: 0;
  max-width: 36ch;
  color: var(--muted);
  font-size: 1.05rem;
}

.path__span {
  max-width: var(--max);
  margin: 0 auto 2.25rem;
  padding: 0 var(--pad);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.85rem 1rem;
}

.path__span-from {
  font-family: var(--font-num);
  font-size: clamp(1.5rem, 3.5vw, 2.35rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--accent-deep);
  direction: ltr;
  unicode-bidi: isolate;
  line-height: 1;
}

.path__span-to {
  font-family: var(--font-ar);
  font-size: clamp(1.5rem, 3.5vw, 2.35rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--accent);
  line-height: 1;
}

.path__span-rail {
  height: 2px;
  background: linear-gradient(90deg, var(--accent-deep), var(--accent), rgba(184, 134, 11, 0.2));
  position: relative;
  border-radius: 2px;
  overflow: hidden;
}

.path__span-rail::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.75), transparent);
  width: 35%;
  animation: pathShimmer 3.2s ease-in-out infinite;
}

@keyframes pathShimmer {
  from { transform: translateX(-120%); }
  to { transform: translateX(320%); }
}

.path__span-note {
  grid-column: 1 / -1;
  font-family: var(--font-ar);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.02em;
}

.path__span-note .num {
  font-family: var(--font-num);
  letter-spacing: 0.04em;
  margin-inline-end: 0.25rem;
}

.path__list {
  list-style: none;
  margin: 0 auto;
  padding: 0 var(--pad);
  max-width: var(--max);
  display: grid;
  gap: 0;
  position: relative;
}

.path__list::before {
  content: "";
  position: absolute;
  inset-inline-start: calc(var(--pad) + 0.55rem);
  top: 0.35rem;
  bottom: 0.35rem;
  width: 2px;
  background: linear-gradient(180deg, var(--accent), rgba(184, 134, 11, 0.35), rgba(26, 39, 68, 0.2));
  border-radius: 2px;
}

.path__item {
  display: grid;
  grid-template-columns: 1.4rem 9.5rem minmax(0, 1fr);
  gap: 0.85rem 1.35rem;
  padding: 1.55rem 0 1.55rem 0.15rem;
  align-items: start;
  border-bottom: 1px solid var(--line);
  transition: background 0.35s ease;
}

.path__item:last-child {
  border-bottom: 0;
}

.path__item:hover .path__content h3 {
  color: var(--accent-deep);
}

.path__marker {
  display: grid;
  place-items: center;
  padding-top: 0.35rem;
  position: relative;
  z-index: 1;
}

.path__dot {
  width: 0.85rem;
  height: 0.85rem;
  border-radius: 50%;
  background: var(--mist);
  border: 2px solid var(--accent);
  box-shadow: 0 0 0 4px rgba(230, 232, 238, 0.95);
  transition: transform 0.35s var(--ease), background 0.35s ease, box-shadow 0.35s ease;
}

.path__item:hover .path__dot,
.path__item--now .path__dot {
  background: var(--accent);
  transform: scale(1.15);
}

.path__item--now .path__dot {
  box-shadow:
    0 0 0 4px rgba(230, 232, 238, 0.95),
    0 0 0 8px rgba(184, 134, 11, 0.18);
  animation: pathPulse 2.4s ease-out infinite;
}

@keyframes pathPulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(230, 232, 238, 0.95), 0 0 0 8px rgba(184, 134, 11, 0.18); }
  50% { box-shadow: 0 0 0 4px rgba(230, 232, 238, 0.95), 0 0 0 14px rgba(184, 134, 11, 0.08); }
}

.path__time {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.4rem;
  padding-top: 0.15rem;
}

.path__year {
  font-family: var(--font-num);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--accent);
  direction: ltr;
  unicode-bidi: isolate;
  letter-spacing: -0.02em;
}

.path__badge {
  font-family: var(--font-ar);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--accent-deep);
  background: rgba(184, 134, 11, 0.16);
  border: 1px solid rgba(184, 134, 11, 0.35);
  padding: 0.2rem 0.45rem;
}

.path__content {
  min-width: 0;
  padding-inline-end: 0.5rem;
}

.path__org {
  margin: 0 0 0.25rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.01em;
}

.path__content h3 {
  margin: 0 0 0.45rem;
  font-size: clamp(1.12rem, 2vw, 1.35rem);
  letter-spacing: -0.02em;
  line-height: 1.35;
  color: var(--ink);
  transition: color 0.3s ease;
  direction: ltr;
  unicode-bidi: isolate;
}

.path__content > p {
  margin: 0;
  color: var(--muted);
  max-width: 52ch;
  font-size: 0.98rem;
  line-height: 1.7;
}

.path__tags {
  list-style: none;
  margin: 0.85rem 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.path__tags li {
  font-family: var(--font-num);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--accent-deep);
  border-bottom: 1px solid rgba(26, 39, 68, 0.28);
  padding: 0.15rem 0;
  direction: ltr;
  unicode-bidi: isolate;
}

.path__item.is-visible .path__dot {
  animation: pathDotIn 0.55s var(--ease) both;
}

@keyframes pathDotIn {
  from { transform: scale(0.4); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.path__item--now.is-visible .path__dot {
  animation: pathDotIn 0.55s var(--ease) both, pathPulse 2.4s ease-out 0.55s infinite;
}

.quote {
  max-width: var(--max);
  margin: 3rem auto 0;
  padding: 2.5rem var(--pad) 0;
  border-top: 1px solid var(--line);
  position: relative;
}

.quote__mark {
  display: block;
  font-family: var(--font-en);
  font-size: clamp(4rem, 10vw, 7rem);
  line-height: 0.7;
  color: var(--accent);
  opacity: 0.55;
  margin-bottom: 0.5rem;
  direction: ltr;
}

.quote__text {
  margin: 0;
  font-size: clamp(1.45rem, 3.2vw, 2.15rem);
  font-weight: 500;
  line-height: 1.4;
  max-width: 18ch;
  letter-spacing: -0.025em;
  color: var(--ink);
}

.quote__by {
  margin: 1.1rem 0 0;
  font-family: var(--font-ar);
  font-size: 0.92rem;
  color: var(--accent);
  font-weight: 600;
}

/* About */
.about {
  padding: 1rem var(--pad) 5.5rem;
  position: relative;
  overflow: clip;
}

.about::before {
  content: "";
  position: absolute;
  inset-inline-start: -8%;
  top: 28%;
  width: min(48vw, 420px);
  height: min(48vw, 420px);
  background: radial-gradient(circle, rgba(184, 134, 11, 0.12), transparent 68%);
  pointer-events: none;
  z-index: 0;
}

.about > * {
  position: relative;
  z-index: 1;
}

.about__intro {
  max-width: var(--max);
  margin: 0 auto 2.5rem;
  padding-top: 0.5rem;
  border-top: 1px solid var(--line);
}

.about__intro h2 {
  margin: 0 0 1rem;
  font-size: clamp(1.85rem, 4.2vw, 3rem);
  max-width: 14ch;
  line-height: 1.18;
  letter-spacing: -0.03em;
}

.about__years {
  font-family: var(--font-num);
  color: var(--accent);
  font-weight: 700;
  display: inline-block;
  animation: aboutCountPulse 3s ease-in-out infinite;
}

@keyframes aboutCountPulse {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-2px); }
}

.about__lede {
  margin: 0;
  color: var(--muted);
  max-width: 46ch;
  font-size: 1.08rem;
  line-height: 1.75;
}

.about__grid {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.35fr 0.85fr;
  gap: 1.25rem;
  align-items: stretch;
}

.about__lens {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

.about__lens li {
  display: grid;
  grid-template-columns: 3.25rem 1fr;
  gap: 1rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--line);
  align-items: start;
  transition: padding-inline-start 0.35s var(--ease);
}

.about__lens li:hover {
  padding-inline-start: 0.45rem;
}

.about__lens-num {
  font-family: var(--font-num);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent);
  padding-top: 0.2rem;
  letter-spacing: -0.02em;
}

.about__lens h3 {
  margin: 0 0 0.3rem;
  font-size: 1.12rem;
  letter-spacing: -0.015em;
  color: var(--ink);
}

.about__lens p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  max-width: 36ch;
}

.about__place {
  padding: 2.25rem;
  background:
    radial-gradient(420px 240px at 100% 0%, rgba(184, 134, 11, 0.28), transparent 58%),
    linear-gradient(155deg, var(--accent-deep), #0d121a 70%, var(--ink));
  color: var(--mist);
  min-height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: end;
  position: relative;
  overflow: hidden;
}

.about__place::before {
  content: "RIYADH";
  position: absolute;
  inset-inline-start: 8%;
  top: 12%;
  font-family: var(--font-en);
  font-size: clamp(2.8rem, 6vw, 4.2rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  color: rgba(242, 245, 239, 0.06);
  pointer-events: none;
  direction: ltr;
  line-height: 1;
}

.about__place::after {
  content: "";
  position: absolute;
  inset-inline-end: -18%;
  bottom: -28%;
  width: 75%;
  height: 75%;
  border: 1px solid rgba(232, 197, 106, 0.18);
  border-radius: 50%;
  pointer-events: none;
  animation: aboutOrbit 14s linear infinite;
}

@keyframes aboutOrbit {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.about__eyebrow-en {
  margin: 0 0 0.5rem;
  font-family: var(--font-en);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: lowercase;
  color: #e8c56a;
}

.about__city {
  margin: 0;
  font-size: clamp(2.6rem, 5.5vw, 4rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.03em;
}

.about__country {
  margin: 0.45rem 0 0;
  color: rgba(242, 245, 239, 0.62);
  font-size: 0.95rem;
}

.about__place-note {
  margin: 1.35rem 0 0;
  font-family: var(--font-num);
  font-size: 0.78rem;
  font-weight: 600;
  color: rgba(232, 197, 106, 0.85);
  letter-spacing: 0.04em;
}

.about__creds,
.about__stack {
  max-width: var(--max);
  margin: 2.85rem auto 0;
}

.about__block-head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.1rem;
}

.about__block-index {
  font-family: var(--font-en);
  font-size: 0.78rem;
  font-weight: 800;
  width: 1.55rem;
  height: 1.55rem;
  display: grid;
  place-items: center;
  color: var(--mist);
  background: var(--accent-deep);
  letter-spacing: 0;
}

.about__creds-label,
.about__stack-label {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: 0.01em;
}

.about__roles {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

.about__roles li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.9rem;
  align-items: start;
  padding: 1.15rem 1.1rem;
  border: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0.18));
  transition: transform 0.35s var(--ease), border-color 0.3s ease, box-shadow 0.35s ease;
}

.about__roles li:hover {
  transform: translateY(-3px);
  border-color: rgba(184, 134, 11, 0.45);
  box-shadow: 0 14px 28px rgba(18, 21, 28, 0.07);
}

.about__cred-icon {
  width: 2.6rem;
  height: 2.6rem;
  display: grid;
  place-items: center;
  color: var(--accent);
  background: rgba(184, 134, 11, 0.1);
  border: 1px solid rgba(184, 134, 11, 0.28);
  flex-shrink: 0;
  transition: background 0.3s ease, color 0.3s ease;
}

.about__roles li:hover .about__cred-icon {
  background: var(--accent);
  color: #fff8e8;
}

.about__cred-copy {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
}

.about__cred-code {
  font-family: var(--font-num);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.about__cred-name {
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink);
  direction: ltr;
  unicode-bidi: isolate;
  line-height: 1.35;
}

.about__cred-hint {
  font-size: 0.84rem;
  color: var(--muted);
}

.about__tools {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}

.about__tools li {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  column-gap: 0.75rem;
  row-gap: 0.15rem;
  align-items: center;
  padding: 0.95rem 1rem;
  border-block: 1px solid var(--line);
  border-inline: 0;
  background: transparent;
  direction: ltr;
  unicode-bidi: isolate;
  transition: background 0.3s ease, border-color 0.3s ease, transform 0.35s var(--ease);
}

.about__tools li:hover {
  background: rgba(255, 255, 255, 0.55);
  border-color: rgba(184, 134, 11, 0.35);
  transform: translateY(-2px);
}

.about__tool-icon {
  grid-row: span 2;
  width: 2.25rem;
  height: 2.25rem;
  display: grid;
  place-items: center;
  color: var(--accent-deep);
  border: 1px solid rgba(26, 39, 68, 0.18);
  background: rgba(26, 39, 68, 0.04);
  transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.about__tools li:hover .about__tool-icon {
  background: var(--accent-deep);
  border-color: var(--accent-deep);
  color: #e8c56a;
}

.about__tool-name {
  font-family: var(--font-num);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--accent-deep);
}

.about__tool-tag {
  font-family: var(--font-num);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
}

/* Contact */
.contact {
  padding: 0 var(--pad) 5.5rem;
}

.contact__shell {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(2.25rem, 5vw, 3.25rem);
  background:
    radial-gradient(500px 260px at 0% 0%, rgba(157, 207, 181, 0.14), transparent 55%),
    linear-gradient(145deg, #101512, var(--ink));
  color: var(--mist);
}

.contact__intro .eyebrow {
  color: #e8c56a;
}

.contact__intro h2 {
  margin: 0.2rem 0 0.65rem;
  font-size: clamp(1.7rem, 3.4vw, 2.5rem);
  letter-spacing: -0.02em;
}

.contact__lead {
  margin: 0 0 1.75rem;
  color: rgba(242, 245, 239, 0.65);
  max-width: 40ch;
}

.connect {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
}

.connect__tile {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  grid-template-rows: auto auto;
  column-gap: 1rem;
  row-gap: 0.15rem;
  align-items: center;
  padding: 1.45rem 1.3rem;
  overflow: hidden;
  min-width: 0;
  border: 1px solid rgba(242, 245, 239, 0.14);
  transition: transform 0.4s var(--ease), border-color 0.3s ease, background 0.3s ease;
}

.connect__tile::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(500px 180px at var(--mx, 70%) var(--my, 30%), rgba(157, 207, 181, 0.16), transparent 55%);
  opacity: 0;
  transition: opacity 0.35s ease;
}

.connect__tile:hover {
  transform: translateY(-5px);
  border-color: rgba(157, 207, 181, 0.45);
}

.connect__tile:hover::before {
  opacity: 1;
}

.connect__tile--in {
  background: rgba(242, 245, 239, 0.06);
}

.connect__tile--mail {
  background: rgba(242, 245, 239, 0.95);
  color: var(--ink);
  border-color: transparent;
}

.connect__tile--mail.is-open {
  border-color: var(--accent);
}

.connect__icon {
  grid-row: span 2;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 1px solid currentColor;
  opacity: 0.9;
  position: relative;
}

.connect__label {
  position: relative;
  font-size: 1.2rem;
  font-weight: 700;
}

.connect__hint {
  position: relative;
  font-size: 0.86rem;
  opacity: 0.68;
  font-family: var(--font-num);
  direction: ltr;
  unicode-bidi: isolate;
  min-width: 0;
  overflow-wrap: anywhere;
}

.connect__arrow {
  position: relative;
  grid-row: span 2;
  font-size: 1.3rem;
  transition: transform 0.35s var(--ease);
}

.connect__tile:hover .connect__arrow {
  transform: translate(-4px, -4px);
}

.site-footer {
  padding: 2.75rem var(--pad) 3.25rem;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.site-footer .en {
  margin: 0;
  font-family: var(--font-en);
  font-weight: 800;
  font-size: 1.7rem;
  color: var(--ink);
  letter-spacing: -0.04em;
  text-transform: lowercase;
}

.site-footer__links {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.site-footer__links p {
  margin: 0;
}

.site-footer__links a {
  transition: color 0.25s ease;
}

.site-footer__links a:hover {
  color: var(--accent);
}

/* Tablet */
@media (max-width: 1100px) {
  :root {
    --pad: clamp(1.1rem, 3.5vw, 2rem);
  }

  .hero__brand {
    font-size: clamp(3rem, 8vw, 5.5rem);
  }

  .case.scene {
    margin-bottom: 4.25rem;
  }

  .path__item {
    grid-template-columns: 1.25rem 8rem minmax(0, 1fr);
  }

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

/* Tablet portrait / small laptop */
@media (max-width: 960px) {
  body {
    padding-bottom: calc(4.5rem + env(safe-area-inset-bottom, 0px));
  }

  .site-header {
    padding: 0.85rem var(--pad);
    gap: 0.75rem;
  }

  .logo {
    font-size: 0.98rem;
    flex-shrink: 0;
  }

  .nav {
    gap: 0.15rem;
    overflow-x: auto;
    max-width: min(66vw, 26rem);
    padding: 0.15rem;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .nav::-webkit-scrollbar {
    display: none;
  }

  .nav a {
    flex: 0 0 auto;
    padding: 0.45rem 0.65rem;
    border: 0;
    background: transparent;
    font-size: 0.8rem;
    font-weight: 600;
    white-space: nowrap;
    color: inherit;
    opacity: 0.72;
    position: relative;
  }

  .nav a::after {
    display: block;
    right: 0.65rem;
    left: 0.65rem;
    bottom: 0.15rem;
    width: auto;
    height: 2px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.3s var(--ease);
  }

  .nav a:hover,
  .site-header--hero .nav a:hover {
    opacity: 1;
    color: inherit;
  }

  .nav a:hover::after {
    transform: scaleX(1);
    width: auto;
  }

  .site-header--hero .nav a {
    color: rgba(242, 245, 239, 0.9);
  }

  .site-header--hero .nav a::after {
    background: #e8c56a;
  }

  .site-header.is-scrolled .nav a,
  .site-header:not(.site-header--hero) .nav a {
    color: var(--ink-soft);
  }

  .hero {
    min-height: 100svh;
    min-height: 100dvh;
  }

  .hero__layout {
    width: 100%;
    padding-top: clamp(5.5rem, 14vh, 7rem);
    padding-bottom: calc(5.5rem + env(safe-area-inset-bottom, 0px));
  }

  .hero__content {
    max-width: 100%;
  }

  .hero__brand {
    font-size: clamp(3rem, 14vw, 4.25rem);
    margin-bottom: 0.75rem;
  }

  .hero__en {
    font-size: clamp(1.15rem, 5.2vw, 1.45rem);
  }

  .hero__ar {
    max-width: none;
    font-size: 1.05rem;
  }

  .hero__cta {
    width: 100%;
    margin-top: 1.35rem;
  }

  .hero__cta .btn {
    flex: 1;
    justify-content: center;
    text-align: center;
    padding: 0.85rem 1rem;
  }

  .hero__reel {
    inset-inline-start: var(--pad);
    bottom: calc(4.35rem + env(safe-area-inset-bottom, 0px));
  }

  .marquee {
    padding: 0.7rem 0;
  }

  .marquee__track {
    font-size: 0.82rem;
    gap: 0.95rem;
  }

  .strip {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.55rem;
    margin: 1.25rem var(--pad) 3.25rem;
    padding: 0;
    max-width: none;
  }

  .strip__item {
    border: 1px solid var(--line);
    border-inline-start: 1px solid var(--line);
    padding: 1.25rem 0.85rem;
    background: rgba(255, 255, 255, 0.82);
  }

  .strip__item strong {
    font-size: clamp(1.55rem, 4vw, 2.1rem);
  }

  .strip__item span {
    font-size: 0.78rem;
  }

  .story-bridge__num {
    font-size: clamp(2rem, 7vw, 2.8rem);
  }

  .story-bridge__text {
    max-width: 28ch;
    font-size: clamp(1.05rem, 2.8vw, 1.3rem);
  }

  .section-head h2 {
    font-size: clamp(1.55rem, 4.5vw, 2.2rem);
  }

  .stack {
    padding-bottom: 4rem;
  }

  .stack__stage {
    padding: 0;
  }

  .stack__steps {
    display: flex;
    grid-template-columns: none;
    gap: 0.45rem;
    overflow-x: auto;
    margin: 0 0 1.35rem;
    padding: 0.15rem var(--pad) 0.65rem;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .stack__steps::-webkit-scrollbar {
    display: none;
  }

  .stack__steps::before {
    display: none;
  }

  .stack__step {
    flex: 0 0 auto;
    scroll-snap-align: start;
  }

  .stack__tab {
    min-width: auto;
    width: auto;
    padding: 0.7rem 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.55rem;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.55);
    justify-items: start;
  }

  .stack__dot {
    width: 0.55rem;
    height: 0.55rem;
    flex-shrink: 0;
  }

  .stack__index {
    font-size: 0.7rem;
  }

  .stack__label {
    font-size: 0.84rem;
    text-align: start;
    white-space: nowrap;
  }

  .stack__step.is-active .stack__tab {
    background: var(--accent-deep);
    border-color: var(--accent-deep);
    color: #f2f5ef;
    box-shadow: 0 12px 28px rgba(26, 39, 68, 0.18);
  }

  .stack__step.is-active .stack__index {
    color: #e8c56a;
  }

  .stack__step.is-active .stack__dot {
    background: #e8c56a;
    border-color: #e8c56a;
    box-shadow: none;
    transform: none;
  }

  .stack__panels {
    text-align: start;
    margin: 0 var(--pad);
    max-width: none;
    min-height: 0;
    padding: 1.35rem 1.2rem 1.45rem;
    border: 1px solid var(--line);
    border-inline-start: 3px solid var(--accent);
    background:
      linear-gradient(160deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.28));
  }

  .stack__panel h3 {
    font-size: clamp(1.25rem, 5vw, 1.55rem);
    max-width: 16ch;
  }

  .stack__panel p {
    margin: 0;
    max-width: none;
    font-size: 0.98rem;
  }

  .services__list,
  .case,
  .case--flip,
  .case.scene,
  .case.scene.case--flip,
  .about__grid,
  .connect,
  .about__roles {
    grid-template-columns: 1fr;
  }

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

  .about__place {
    min-height: 220px;
    order: -1;
  }

  .about__intro h2 {
    max-width: 12ch;
  }

  .quote__text {
    max-width: 18ch;
    font-size: clamp(1.35rem, 5vw, 1.85rem);
  }

  .path__span {
    grid-template-columns: auto 1fr auto;
    gap: 0.55rem;
    margin-bottom: 1.5rem;
  }

  .path__span-from,
  .path__span-to {
    font-size: clamp(1.35rem, 5vw, 1.85rem);
  }

  .path__list::before {
    inset-inline-start: calc(var(--pad) + 0.4rem);
  }

  .path__item {
    grid-template-columns: 1.1rem 1fr;
    grid-template-areas:
      "marker time"
      "marker content";
    gap: 0.35rem 0.9rem;
    padding-block: 1.2rem;
  }

  .path__marker { grid-area: marker; }
  .path__time {
    grid-area: time;
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
  }
  .path__content { grid-area: content; }


  .work {
    padding-bottom: 5rem;
  }

  .case,
  .case--flip,
  .case.scene,
  .case.scene.case--flip {
    width: 100%;
    max-width: 100%;
    grid-template-columns: minmax(0, 1fr);
  }

  .case.scene,
  .case.scene.case--flip {
    grid-template-areas:
      "meta"
      "media"
      "body";
    margin-bottom: 3.25rem;
    gap: 1.1rem;
  }

  .case--flip .case__media,
  .case--flip .case__body {
    order: initial;
  }

  .scene__meta {
    margin-bottom: 0.25rem;
    width: 100%;
  }

  .case__media,
  .case__body {
    width: 100%;
    max-width: 100%;
  }

  .case__body h3 {
    font-size: clamp(1.4rem, 5.5vw, 1.85rem);
    max-width: none;
    line-height: 1.25;
  }

  .case__body > p {
    font-size: 0.96rem;
    max-width: none;
    width: 100%;
  }

  .scene__hook {
    font-size: 1rem !important;
    max-width: none !important;
    width: 100% !important;
  }

  .case__tag {
    max-width: none;
  }

  .metrics {
    width: 100%;
  }

  .metrics {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.45rem;
    overflow: visible;
    margin-top: 1.25rem;
    padding: 1rem 0 0;
    border-top: 1px solid var(--line);
  }

  .metrics li {
    flex-direction: row;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.75rem 1rem;
    width: 100%;
    min-width: 0;
    padding: 0.85rem 0.95rem;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.6);
  }

  .metrics__value {
    font-size: 1.2rem;
    white-space: nowrap;
  }

  .metrics__label {
    font-size: 0.8rem;
    text-align: end;
  }

  .contact__shell {
    padding: 1.85rem 1.15rem;
    overflow: hidden;
  }

  .contact__intro h2 {
    max-width: 14ch;
  }

  .connect {
    grid-template-columns: 1fr;
    gap: 0.65rem;
  }

  .connect__tile {
    grid-template-columns: auto minmax(0, 1fr) auto;
    column-gap: 0.75rem;
    padding: 1.15rem 1rem;
    min-width: 0;
  }

  .connect__icon {
    width: 40px;
    height: 40px;
  }

  .connect__hint {
    min-width: 0;
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: break-word;
    white-space: normal;
    font-size: 0.8rem;
    line-height: 1.35;
  }

  .connect__arrow {
    align-self: start;
    margin-top: 0.15rem;
  }
}

/* Phone */
@media (max-width: 560px) {
  .site-header {
    padding-top: calc(0.7rem + env(safe-area-inset-top, 0px));
  }

  .nav {
    max-width: 58vw;
    gap: 0.3rem;
  }

  .nav a {
    padding: 0.35rem 0.55rem;
    font-size: 0.74rem;
  }

  .hero__layout {
    gap: 0.85rem;
    padding-bottom: calc(8.1rem + env(safe-area-inset-bottom, 0px));
  }

  .hero__brand {
    font-size: clamp(2.75rem, 13vw, 3.6rem);
  }

  .hero__reel {
    bottom: calc(4.2rem + env(safe-area-inset-bottom, 0px));
  }

  .strip {
    grid-template-columns: 1fr;
    gap: 0.45rem;
  }

  .strip__item {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 1rem;
    text-align: start;
    padding: 1rem 1.1rem;
  }

  .strip__item strong {
    margin: 0;
    min-width: 3.5rem;
  }

  .strip__item span {
    margin: 0;
  }

  .nav {
    max-width: 56vw;
  }

  .case.scene {
    padding-bottom: 0.5rem;
  }

  .stack__panels {
    margin-bottom: 0.5rem;
  }

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

  .about__roles li {
    padding: 1rem 0.85rem;
  }

  .path__tags {
    gap: 0.55rem 0.85rem;
  }

  .quote {
    padding-top: 1.75rem;
  }

  .quote__mark {
    font-size: 3.5rem;
  }

  .site-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
    padding-bottom: calc(5.5rem + env(safe-area-inset-bottom, 0px));
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero__video,
  .hero__scroll span,
  .hero__brand::after,
  .hero__progress span {
    animation: none;
  }

  .hero__video {
    transition: none;
  }

  .hero__progress span {
    width: 100%;
  }
  [data-reveal],
  [data-case],
  .hero [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ——— Story mode ——— */
.story-mode {
  --rail-w: 3rem;
  --rail-space: calc(var(--rail-w) + 1.75rem);
}

.story-rail {
  position: fixed;
  top: 50%;
  inset-inline-start: auto;
  inset-inline-end: 0.85rem;
  transform: translateY(-50%);
  z-index: 35;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  width: var(--rail-w);
  pointer-events: none;
}

.story-mode .hero__layout {
  padding-inline-end: max(var(--pad), var(--rail-space));
}

.story-mode .hero__content {
  padding-inline-start: 0;
  max-width: min(34rem, 100%);
}

.story-mode .section-head,
.story-mode .story-bridge,
.story-mode .stack__stage,
.story-mode .case,
.story-mode .about,
.story-mode .contact,
.story-mode .site-footer {
  padding-inline-end: max(var(--pad), var(--rail-space));
}

.story-mode .strip {
  margin-inline-end: max(0px, calc(var(--rail-space) - var(--pad)));
}

.story-rail__track {
  position: relative;
  width: 2px;
  height: min(42vh, 280px);
  background: rgba(11, 14, 12, 0.12);
  border-radius: 2px;
  overflow: hidden;
}

.story-rail__fill {
  position: absolute;
  inset-inline: 0;
  top: 0;
  height: 0%;
  background: linear-gradient(180deg, var(--accent), var(--accent-mid));
  transition: height 0.25s linear;
}

.story-rail__chapters {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.45rem;
  pointer-events: auto;
}

.story-rail__chapters a {
  width: 1.55rem;
  height: 1.55rem;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  background: rgba(242, 245, 239, 0.92);
  backdrop-filter: blur(8px);
  font-family: var(--font-num);
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--muted);
  transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease, transform 0.3s var(--ease);
}

.story-rail__chapters a:hover,
.story-rail__chapters a.is-active {
  background: var(--ink);
  color: var(--mist);
  border-color: var(--ink);
  transform: scale(1.08);
}

.story-rail__label {
  margin: 0;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.04em;
  max-height: 8rem;
  overflow: hidden;
  transition: color 0.3s ease;
}

.story-kicker {
  margin: 0 0 0.75rem;
  font-family: var(--font-num);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #e8c56a;
}

.story-bridge {
  max-width: var(--max);
  margin: 0 auto 2.5rem;
  padding: 0 var(--pad);
  display: flex;
  align-items: baseline;
  gap: 1.25rem;
}

.story-bridge__num {
  font-family: var(--font-num);
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--accent);
  direction: ltr;
  unicode-bidi: isolate;
}

.story-bridge__text {
  margin: 0;
  max-width: 28ch;
  font-size: clamp(1.15rem, 2.2vw, 1.45rem);
  font-weight: 500;
  line-height: 1.45;
  letter-spacing: -0.015em;
  color: var(--ink);
}

.scene {
  position: relative;
}

.scene__meta {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.25rem;
}

.case.scene .scene__meta {
  grid-column: 1 / -1;
}

.scene__id {
  font-family: var(--font-ar);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.story-bridge__num,
.stack__index,
.story-rail__chapters a span,
.metrics__value,
.strip__item strong {
  direction: ltr;
  unicode-bidi: isolate;
  font-variant-numeric: tabular-nums;
}

.scene__line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--line), transparent);
}

.scene__hook {
  margin: 0.15rem 0 0 !important;
  color: var(--ink-soft) !important;
  font-weight: 500 !important;
  font-size: 1.05rem !important;
  max-width: 34ch;
}

.case.scene {
  padding-top: 0.5rem;
  margin-bottom: 5.5rem;
  border-top: 0;
}

body.story-mode .work {
  padding-top: 2rem;
}

body.story-mode .stack,
body.story-mode .about {
  scroll-margin-top: 5rem;
}

body.story-mode .chapter {
  scroll-margin-top: 4.5rem;
}

@media (max-width: 960px) {
  body.story-mode .work,
  body.story-mode .stack,
  body.story-mode .path,
  body.story-mode .about,
  body.story-mode .contact {
    padding-bottom: calc(5.5rem + env(safe-area-inset-bottom, 0px));
  }

  body.story-mode .chapter {
    scroll-margin-top: 5.5rem;
    scroll-margin-bottom: 5rem;
  }

  .case.scene:last-child {
    margin-bottom: 1rem;
    padding-bottom: 1rem;
  }
}

@media (max-width: 960px) {
  .story-mode .hero__layout,
  .story-mode .section-head,
  .story-mode .story-bridge,
  .story-mode .stack__stage,
  .story-mode .case,
  .story-mode .about,
  .story-mode .contact,
  .story-mode .site-footer {
    padding-inline-end: var(--pad);
  }

  .story-mode .strip {
    margin-inline-end: 0;
  }

  .story-rail {
    top: auto;
    bottom: calc(0.75rem + env(safe-area-inset-bottom, 0px));
    inset-inline: 0;
    transform: none;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 0.45rem;
    padding: 0.45rem 0.55rem;
    margin-inline: auto;
    width: max-content;
    max-width: calc(100% - 1.25rem);
    background:
      linear-gradient(135deg, rgba(26, 39, 68, 0.94), rgba(18, 21, 28, 0.92));
    border: 1px solid rgba(232, 197, 106, 0.28);
    box-shadow: 0 16px 40px rgba(11, 14, 12, 0.28);
    backdrop-filter: blur(16px);
    pointer-events: auto;
    border-radius: 999px;
  }

  .story-rail__track,
  .story-rail__label {
    display: none;
  }

  .story-rail__chapters {
    grid-auto-flow: column;
    gap: 0.28rem;
  }

  .story-rail__chapters a {
    width: 2rem;
    height: 2rem;
    background: rgba(242, 245, 239, 0.08);
    border-color: rgba(242, 245, 239, 0.18);
    color: rgba(242, 245, 239, 0.75);
    border-radius: 50%;
  }

  .story-rail__chapters a.is-active,
  .story-rail__chapters a:hover {
    background: #e8c56a;
    color: #12151c;
    border-color: #e8c56a;
    transform: scale(1.08);
  }

  .story-bridge {
    flex-direction: column;
    gap: 0.35rem;
    margin-bottom: 1.75rem;
  }

  .case.scene {
    scroll-margin-top: 5rem;
  }
}

@media (max-width: 560px) {
  .story-rail {
    padding: 0.4rem 0.45rem;
    gap: 0.3rem;
  }

  .story-rail__chapters a {
    width: 1.85rem;
    height: 1.85rem;
    font-size: 0.64rem;
  }
}

/* Final mobile layout lock — keep last so nothing overrides full-width */
@media (max-width: 960px) {
  .case.scene,
  .case.scene.case--flip {
    display: grid;
    grid-template-columns: minmax(0, 1fr) !important;
    grid-template-areas:
      "meta"
      "body"
      "media" !important;
    width: 100%;
    gap: 1rem;
  }

  .case.scene .scene__meta,
  .case.scene .case__media,
  .case.scene .case__body {
    grid-column: 1 / -1;
    width: 100%;
    max-width: 100%;
  }

  .case__body > p,
  .scene__hook,
  .case__body h3,
  .story-bridge__text,
  .section-head__lead {
    max-width: none !important;
  }

  .metrics {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    width: 100%;
  }

  .metrics li {
    width: 100%;
    min-width: 0;
  }

  /* Creative compact media — collage / film strip */
  .case__media {
    justify-self: stretch;
    min-height: 0;
    margin-top: 0.35rem;
  }

  .case__media::before {
    width: 55%;
    height: 70%;
    opacity: 0.55;
  }

  .case__media:not(.case__media--duo):not(.case__media--awards) {
    display: grid;
    place-items: stretch;
    height: clamp(160px, 28vw, 200px);
    overflow: hidden;
    border: 1px solid var(--line);
    background: rgba(26, 39, 68, 0.04);
  }

  .case__media:not(.case__media--duo):not(.case__media--awards) img {
    width: 100%;
    height: 100%;
    max-height: none;
    object-fit: cover;
    object-position: center 30%;
    filter: none;
    border-radius: 0;
  }

  .case__media:not(.case__media--duo):not(.case__media--awards)::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    border-inline-start: 3px solid var(--accent);
    background: linear-gradient(90deg, rgba(18, 21, 28, 0.12), transparent 42%);
  }

  .case__media--duo {
    display: grid !important;
    grid-template-columns: 1.35fr 0.9fr;
    grid-template-rows: 1fr 0.72fr;
    gap: 0.45rem;
    height: clamp(190px, 42vw, 240px);
    align-items: stretch;
    padding: 0.15rem 0.15rem 0.15rem 0;
  }

  .case__media--duo img {
    width: 100%;
    height: 100%;
    max-height: none;
    aspect-ratio: auto;
    object-fit: cover;
    border-radius: 2px;
    filter: none;
    box-shadow: 0 10px 24px rgba(18, 21, 28, 0.12);
  }

  .case__media--duo img:first-child {
    grid-row: 1 / -1;
    transform: none;
  }

  .case__media--duo img:last-child {
    align-self: end;
    transform: rotate(-3deg) translate(-4%, 2%);
    border: 2px solid rgba(255, 255, 255, 0.95);
    box-shadow: 0 14px 28px rgba(18, 21, 28, 0.18);
    z-index: 2;
  }

  .case.is-visible .case__media--duo img:last-child {
    transform: rotate(-3deg) translate(-4%, 2%);
  }

  .case:not(.is-visible) .case__media--duo img:last-child {
    transform: rotate(-6deg) translate(-2%, 6%) scale(1.02);
  }

  .case__media--awards {
    display: flex !important;
    grid-template-columns: none;
    gap: 0.55rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    height: auto;
    padding: 0.35rem 0.15rem 0.65rem;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .case__media--awards::-webkit-scrollbar {
    display: none;
  }

  .case__media--awards img {
    flex: 0 0 42%;
    width: 42%;
    height: 150px;
    max-height: none;
    object-fit: contain;
    scroll-snap-align: start;
    padding: 0.55rem;
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid var(--line);
  }

  .case__media--awards img:last-child {
    grid-column: auto;
    flex-basis: 48%;
    width: 48%;
  }

  .case:not(.is-visible) .case__media:not(.case__media--duo) img {
    transform: scale(1.04);
  }

  .case.is-visible .case__media:not(.case__media--duo) img {
    transform: scale(1);
  }
}

@media (max-width: 560px) {
  .case__media--duo {
    height: 200px;
  }

  .case__media:not(.case__media--duo):not(.case__media--awards) {
    height: 150px;
  }

  .case__media--awards img {
    flex-basis: 48%;
    width: 48%;
    height: 132px;
  }
}

/* Font lock — Arabic body, Space Grotesk numbers, Syne English */
.logo,
.eyebrow,
.section-head h2,
.story-bridge__text,
.case__tag,
.case__body h3,
.case__body > p,
.scene__hook,
.scene__id,
.path__lead,
.path__org,
.path__content > p,
.path__badge,
.path__span-to,
.path__span-note,
.about__lede,
.about__lens h3,
.about__lens p,
.about__city,
.about__country,
.about__creds-label,
.about__stack-label,
.about__cred-hint,
.quote__text,
.quote__by,
.contact__intro h2,
.contact__lead,
.connect__label,
.hero__brand,
.hero__ar,
.story-rail__label,
.stack__label,
.stack__panel h3,
.stack__panel p,
.nav a,
.btn {
  font-family: var(--font-ar);
}

.num,
.metrics__value,
.strip__item strong,
.stack__index,
.story-bridge__num,
.story-rail__chapters a,
.path__year,
.path__span-from,
.path__span-note .num,
.about__years,
.about__cred-code,
.about__tool-name,
.about__tool-tag,
.about__place-note,
.connect__hint,
.services__list .num {
  font-family: var(--font-num);
  font-variant-numeric: tabular-nums;
}

.en,
.hero__en,
.stack__kicker,
.about__eyebrow-en,
.story-kicker,
.site-footer .en,
.path__content h3,
.about__cred-name {
  font-family: var(--font-en);
}

.path__content h3,
.about__cred-name {
  direction: ltr;
  unicode-bidi: isolate;
}
