/* ==========================================================
   SAHER NABIL — "Frame by Frame"
   ========================================================== */
:root {
  --ink: #0a0a0b;
  --ink-2: #111113;
  --ink-3: #18181b;
  --bone: #ede6da;
  --bone-dim: #a39d93;
  --bone-faint: rgba(237, 230, 218, 0.1);
  --line: rgba(237, 230, 218, 0.14);
  --ember: #ff5a1f;
  --ember-soft: rgba(255, 90, 31, 0.14);
  --sand: #c9a46a;
  --teal: #1fb5a8;
  --teal-soft: rgba(31, 181, 168, 0.14);

  --f-display: "Syne", "Helvetica Neue", Arial, sans-serif;
  --f-body: "Manrope", "Helvetica Neue", Arial, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, Menlo, monospace;

  --wrap: 1360px;
  --gutter: clamp(16px, 4vw, 56px);
  --r: 14px;
  --r-lg: 22px;
  --ease: cubic-bezier(.2, .7, .1, 1);
  --header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--bone);
  font-family: var(--f-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3 { margin: 0; font-weight: 700; }
p { margin: 0 0 1em; }
em { font-style: normal; color: var(--ember); }
::selection { background: var(--ember); color: var(--ink); }
:focus-visible { outline: 2px solid var(--ember); outline-offset: 4px; border-radius: 4px; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.mono { font-family: var(--f-mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.skip { position: absolute; left: 16px; top: -60px; z-index: 200; background: var(--ember); color: var(--ink); padding: 10px 16px; border-radius: 8px; }
.skip:focus { top: 16px; }

/* film grain */
.grain {
  position: fixed; inset: -50%; z-index: 100; pointer-events: none; opacity: .06;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1.2s steps(6) infinite;
}
@keyframes grain {
  0%, 100% { transform: translate(0, 0); } 20% { transform: translate(-3%, 2%); } 40% { transform: translate(2%, -3%); }
  60% { transform: translate(-2%, -1%); } 80% { transform: translate(3%, 3%); }
}

/* ---------- Buttons ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; gap: 12px;
  padding: 16px 28px; border-radius: 999px;
  font-weight: 600; font-size: 16px; white-space: nowrap;
  transition: background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease), transform .3s var(--ease);
  will-change: transform;
}
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .3s var(--ease); }
.btn svg.fill { fill: currentColor; stroke: none; }
.btn:hover svg:not(.fill) { transform: translateX(4px); }
.btn-solid { background: var(--ember); color: var(--ink); }
.btn-solid:hover { background: var(--bone); }
.btn-line { border: 1px solid rgba(237,230,218,.28); }
.btn-line:hover { border-color: var(--bone); background: rgba(237,230,218,.06); }
.btn-sm { padding: 10px 20px; font-size: 14px; }

/* ---------- Custom cursor (desktop) ---------- */
.cursor {
  position: fixed; left: 0; top: 0; z-index: 150; pointer-events: none;
  width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%;
  background: var(--ember); mix-blend-mode: normal;
  display: grid; place-items: center;
  transition: width .35s var(--ease), height .35s var(--ease), margin .35s var(--ease), background .35s var(--ease), opacity .3s;
  opacity: 0;
}
.cursor-label { font-family: var(--f-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink); opacity: 0; transition: opacity .2s; }
.has-cursor .cursor { opacity: 1; }
.cursor.is-play { width: 92px; height: 92px; margin: -46px 0 0 -46px; background: var(--bone); }
.cursor.is-play .cursor-label { opacity: 1; }
.cursor.is-link { width: 40px; height: 40px; margin: -20px 0 0 -20px; background: rgba(255,90,31,.25); }
@media (hover: none), (pointer: coarse) { .cursor { display: none; } }

/* ---------- Header ---------- */
.header {
  position: fixed; inset: 0 0 auto; z-index: 90; height: var(--header-h);
  transition: background .4s var(--ease), backdrop-filter .4s;
}
.header.is-solid { background: rgba(10,10,11,.78); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
.playhead { position: absolute; inset: auto 0 0; height: 1px; background: var(--bone-faint); }
.playhead span { position: absolute; inset: 0 auto 0 0; width: 0; background: var(--ember); }
.playhead span::after { content: ""; position: absolute; right: -4px; top: -3px; width: 7px; height: 7px; border-radius: 50%; background: var(--ember); }
.header-inner {
  height: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter);
  display: flex; align-items: center; gap: 32px;
}
.brand { display: flex; align-items: center; gap: 12px; margin-inline-end: auto; }
.brand-name { font-family: var(--f-display); font-weight: 700; font-size: 19px; letter-spacing: -.01em; }
.brand-tc { color: var(--bone-dim); font-size: 11px; }
.rec { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--ember); box-shadow: 0 0 0 0 rgba(255,90,31,.7); animation: rec 1.8s infinite; vertical-align: middle; }
@keyframes rec { 0% { box-shadow: 0 0 0 0 rgba(255,90,31,.6); } 70% { box-shadow: 0 0 0 8px rgba(255,90,31,0); } 100% { box-shadow: 0 0 0 0 rgba(255,90,31,0); } }
.nav { display: flex; gap: 28px; font-size: 15px; }
.nav a { position: relative; color: var(--bone-dim); transition: color .25s; padding-block: 6px; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--ember); transform: scaleX(0); transform-origin: right; transition: transform .4s var(--ease); }
.nav a:hover, .nav a.is-active { color: var(--bone); }
.nav a:hover::after, .nav a.is-active::after { transform: scaleX(1); transform-origin: left; }

.menu-toggle { display: none; width: 44px; height: 44px; position: relative; }
.menu-toggle span:not(.sr) { position: absolute; left: 11px; right: 11px; height: 2px; background: var(--bone); transition: transform .4s var(--ease), top .4s var(--ease); }
.menu-toggle span:nth-child(1) { top: 17px; }
.menu-toggle span:nth-child(2) { top: 25px; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { top: 21px; transform: rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 85; background: var(--ink);
  padding: calc(var(--header-h) + 24px) var(--gutter) 40px;
  display: flex; flex-direction: column; justify-content: center;
  opacity: 0; transition: opacity .4s var(--ease);
}
.mobile-menu.is-open { opacity: 1; }
.mobile-menu nav { display: flex; flex-direction: column; }
.mobile-menu a {
  display: flex; align-items: baseline; gap: 16px;
  font-family: var(--f-display); font-size: clamp(28px, 8vw, 44px); font-weight: 700; line-height: 1.25;
  padding: 6px 0; border-bottom: 1px solid var(--bone-faint);
  transform: translateY(20px); opacity: 0; transition: transform .6s var(--ease), opacity .6s var(--ease), color .2s;
}
.mobile-menu a .mono { color: var(--ember); font-size: 11px; }
.mobile-menu a:hover { color: var(--ember); }
.mobile-menu.is-open a { transform: none; opacity: 1; }
.mobile-menu.is-open a:nth-child(2) { transition-delay: .04s; } .mobile-menu.is-open a:nth-child(3) { transition-delay: .08s; }
.mobile-menu.is-open a:nth-child(4) { transition-delay: .12s; } .mobile-menu.is-open a:nth-child(5) { transition-delay: .16s; }
.mobile-menu.is-open a:nth-child(6) { transition-delay: .2s; }  .mobile-menu.is-open a:nth-child(7) { transition-delay: .24s; }
.mobile-menu.is-open a:nth-child(8) { transition-delay: .28s; }

/* ---------- Reveal + split ---------- */
[data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
[data-reveal].is-in { opacity: 1; transform: none; }
.line { display: block; overflow: hidden; padding-bottom: .04em; }
.word { display: inline-block; }
.char { display: inline-block; transform: translateY(105%); transition: transform 1.1s var(--ease); }
.is-in .char, .char.is-in { transform: none; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100vh; min-height: 100svh; padding: calc(var(--header-h) + 36px) 0 56px; display: flex; align-items: flex-start; overflow: hidden; }
.hero-bg {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(60% 50% at 85% 20%, rgba(255,90,31,.18), transparent 70%),
    radial-gradient(45% 45% at 5% 95%, rgba(31,181,168,.13), transparent 70%);
}
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(var(--bone-faint) 1px, transparent 1px);
  background-size: 100% 120px; opacity: .25;
  mask-image: linear-gradient(to bottom, transparent, #000 30%, #000 70%, transparent);
}
.hero-grid { position: relative; display: grid; gap: 28px; }
.hero-meta { display: flex; align-items: center; gap: 14px; color: var(--bone-dim); margin: 0; }
.hero-meta .dot { width: 4px; height: 4px; border-radius: 50%; background: var(--ember); }
.hero-title {
  font-family: var(--f-display); font-weight: 800;
  font-size: clamp(56px, 10.4vw, 190px); line-height: .88; letter-spacing: -.045em;
  text-transform: uppercase;
}
.hero-title .word, .contact-title .word { white-space: nowrap; }
.hero-title .char { transition-duration: 1.3s; }
.hero-title .line { will-change: transform; transition: transform .2s linear; }
.ci {
  display: inline-block; cursor: default;
  animation: letterWave 7s var(--ease) infinite; animation-delay: calc(2.4s + var(--i) * 90ms);
  transition: color .35s var(--ease);
}
.ci:hover { color: var(--ember); }
@keyframes letterWave { 0%, 9%, 100% { transform: none; } 4% { transform: translateY(-9%) rotate(-2deg); } }

/* section titles rise in a little further and slower than body copy */
.sec-title[data-reveal], .ai-title[data-reveal], .about-title[data-reveal] { transform: translateY(56px); transition-duration: 1.3s; }
.sec-title[data-reveal].is-in, .ai-title[data-reveal].is-in, .about-title[data-reveal].is-in { transform: none; }
.counter dt, .hero-stats dt { direction: ltr; unicode-bidi: isolate; }
[dir="rtl"] .counter dt, [dir="rtl"] .hero-stats dt { text-align: right; }

/* subtle 3D tilt on video tiles (desktop) */
.work .tile, .proj-media .tile { transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .5s var(--ease); }
.line-indent { padding-left: 8vw; display: flex; align-items: flex-start; gap: .1em; }
.hero-star { font-size: .28em; color: var(--ember); margin-top: .25em; animation: spin 12s linear infinite; display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

.hero-bottom { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .9fr); gap: clamp(24px, 5vw, 80px); align-items: end; margin-top: 12px; }
.lead { font-size: clamp(17px, 1.45vw, 21px); color: var(--bone-dim); max-width: 540px; line-height: 1.6; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

.hero-reel {
  position: relative; display: block; width: 100%; aspect-ratio: 16 / 9;
  border-radius: var(--r-lg); overflow: hidden; background: var(--ink-3);
  box-shadow: 0 40px 120px -30px rgba(255,90,31,.35), 0 0 0 1px var(--bone-faint);
  transform: perspective(1400px) rotateY(-6deg) rotateX(2deg);
  transition: transform .9s var(--ease), box-shadow .9s var(--ease);
}
.hero-reel:hover { transform: perspective(1400px) rotateY(0) rotateX(0) scale(1.01); }
.hero-reel video { width: 100%; height: 100%; object-fit: cover; }
.hero-reel-ui { position: absolute; inset: 16px 18px auto; display: flex; justify-content: space-between; align-items: center; color: var(--bone); }
.hero-reel-ui .mono { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; background: rgba(10,10,11,.55); backdrop-filter: blur(8px); font-size: 11px; }

.hero-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin: 20px 0 0; padding-top: 24px; border-top: 1px solid var(--bone-faint); }
.hero-stats dt { font-family: var(--f-display); font-size: clamp(30px, 3.2vw, 46px); font-weight: 700; line-height: 1; }
.hero-stats dd { margin: 8px 0 0; color: var(--bone-dim); font-size: 14px; }

.scroll-cue { position: absolute; right: var(--gutter); bottom: 28px; display: flex; align-items: center; gap: 12px; color: var(--bone-dim); writing-mode: vertical-rl; }
.scroll-cue span { width: 1px; height: 56px; background: linear-gradient(var(--ember), transparent); animation: cue 2.2s var(--ease) infinite; transform-origin: top; }
@keyframes cue { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }

/* ---------- Client strip ---------- */
.strip { overflow: hidden; border-block: 1px solid var(--bone-faint); padding: 26px 0; background: var(--ink-2); }
.strip-track { display: flex; width: max-content; gap: 64px; animation: strip 50s linear infinite; }
.strip:hover .strip-track { animation-play-state: paused; }
.strip-track span { font-family: var(--f-display); font-size: clamp(20px, 2.2vw, 30px); font-weight: 600; color: rgba(237,230,218,.38); white-space: nowrap; display: flex; align-items: center; gap: 64px; transition: color .3s; }
.strip-track span:hover { color: var(--bone); }
.strip-track span::after { content: "✦"; font-size: .5em; color: var(--ember); }
@keyframes strip { to { transform: translateX(-50%); } }

/* ---------- Section scaffolding ---------- */
.section { position: relative; padding: clamp(96px, 12vw, 168px) 0; border-top: 1px solid var(--line); }
/* a short accent mark sits on each section's top edge so every chapter has a clear start */
.section::before, .contact::before {
  content: ""; position: absolute; top: -1px; left: max(var(--gutter), calc((100% - var(--wrap)) / 2 + var(--gutter)));
  width: 72px; height: 3px; background: var(--ember);
}
.ai::before, .numbers::before { background: var(--teal); }
.tc {
  display: inline-flex; align-items: center; gap: 10px; color: var(--ember); margin: 0 0 26px;
  padding: 7px 14px; border: 1px solid var(--line); border-radius: 999px; background: rgba(237,230,218,.03);
}
.tc::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.tc span { color: var(--bone-dim); }
.ai .tc, .numbers .tc { color: var(--teal); }
.sec-title { font-family: var(--f-display); font-size: clamp(40px, 6.4vw, 96px); line-height: .98; letter-spacing: -.035em; font-weight: 700; text-wrap: balance; }
.sec-head { margin-bottom: clamp(40px, 6vw, 72px); }

/* Alternating grounds so neighbouring sections never blend */
.reel-section, .discipline, .ai, .contact { background-color: var(--ink-2); }
.numbers, .projects, .discipline-alt, .about { background-color: var(--ink); }

/* ---------- Showreel player ---------- */
.player { position: relative; aspect-ratio: 16 / 9; border-radius: var(--r-lg); overflow: hidden; background: #000; box-shadow: 0 0 0 1px var(--bone-faint), 0 60px 140px -40px rgba(0,0,0,.9); }
.player-video { width: 100%; height: 100%; object-fit: cover; }
.player-start {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px;
  background: radial-gradient(circle at center, rgba(10,10,11,.15), rgba(10,10,11,.65));
  transition: opacity .5s var(--ease), visibility .5s;
}
.player-start-btn {
  display: grid; place-items: center; width: clamp(84px, 9vw, 128px); aspect-ratio: 1; border-radius: 50%;
  background: var(--ember); color: var(--ink);
  transition: transform .5s var(--ease), background .3s;
  box-shadow: 0 0 0 0 rgba(255,90,31,.45); animation: pulse 2.4s infinite;
}
.player-start-btn svg { width: 34%; fill: currentColor; margin-left: 6%; }
.player-start:hover .player-start-btn { transform: scale(1.08); background: var(--bone); }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(255,90,31,.45); } 70% { box-shadow: 0 0 0 28px rgba(255,90,31,0); } 100% { box-shadow: 0 0 0 0 rgba(255,90,31,0); } }
.player.is-started .player-start { opacity: 0; visibility: hidden; }

.player-bar {
  position: absolute; inset: auto 0 0; display: flex; align-items: center; gap: 16px;
  padding: 18px 22px; background: linear-gradient(transparent, rgba(0,0,0,.75));
  opacity: 0; transform: translateY(10px); transition: opacity .4s var(--ease), transform .4s var(--ease);
}
.player.is-started:hover .player-bar, .player.is-paused.is-started .player-bar, .player:focus-within .player-bar { opacity: 1; transform: none; }
.pb-btn { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: rgba(237,230,218,.12); flex: none; transition: background .2s; }
.pb-btn:hover { background: rgba(237,230,218,.24); }
.pb-btn svg { width: 18px; height: 18px; fill: currentColor; }
[data-player-fs] svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
[data-player-mute] .wave { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.i-mute { display: none; }
.player.is-muted .i-vol { display: none; }
.player.is-muted .i-mute { display: block; }
.player-start .sound-note { color: var(--bone-dim); font-size: 10.5px; }
.i-pause { display: none; }
.player.is-playing .i-play { display: none; }
.player.is-playing .i-pause { display: block; }
.pb-time { color: var(--bone); font-size: 11px; flex: none; }
.pb-track { position: relative; flex: 1; height: 22px; cursor: pointer; display: flex; align-items: center; }
.pb-track::before { content: ""; position: absolute; inset: 10px 0; background: rgba(237,230,218,.22); border-radius: 2px; }
.pb-fill { position: absolute; left: 0; top: 10px; bottom: 10px; width: 0; background: var(--ember); border-radius: 2px; }
.pb-fill::after { content: ""; position: absolute; right: -6px; top: -4px; width: 10px; height: 10px; border-radius: 50%; background: var(--bone); }
.pb-marks i { position: absolute; top: 6px; width: 2px; height: 10px; background: var(--teal); }
.chapters li:nth-child(2) .mono { color: var(--teal); }
.chapters li:nth-child(2) button:hover, .chapters li:nth-child(2) button.is-current { border-color: rgba(31,181,168,.55); background: var(--teal-soft); }

.chapters { list-style: none; padding: 0; margin: 28px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.chapters button {
  width: 100%; text-align: left; display: grid; gap: 4px;
  padding: 22px 24px; border-radius: var(--r); border: 1px solid var(--bone-faint);
  transition: border-color .3s, background .3s;
}
.chapters button:hover, .chapters button.is-current { border-color: rgba(255,90,31,.5); background: var(--ember-soft); }
.chapters .mono { color: var(--ember); }
.chapters strong { font-family: var(--f-display); font-size: 22px; font-weight: 700; }
.chapters small { color: var(--bone-dim); font-size: 14px; }

/* ---------- Selected projects (vertical, alternating) ---------- */
.proj-list { display: grid; }
.proj {
  display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(32px, 6vw, 110px); align-items: center;
  padding-block: clamp(40px, 6vw, 80px); border-top: 1px solid var(--line);
}
.proj:last-child { border-bottom: 1px solid var(--line); }
.proj:nth-child(even) { grid-template-columns: minmax(0, 1fr) auto; }
.proj:nth-child(even) .proj-media { order: 2; }
.proj-media {
  position: relative; height: min(70vh, 620px); aspect-ratio: 9 / 16; max-width: 100%; border-radius: var(--r-lg); overflow: hidden;
  background: var(--ink-3); box-shadow: 0 0 0 1px var(--bone-faint), 0 50px 100px -40px rgba(0,0,0,.8);
}
.proj-info { position: relative; min-width: 0; }
.proj-num {
  display: block; font-family: var(--f-display); font-weight: 800; font-size: clamp(80px, 11vw, 180px); line-height: .8;
  color: transparent; -webkit-text-stroke: 1px rgba(237,230,218,.22); margin-bottom: 24px; letter-spacing: -.04em;
}
.proj-index { color: var(--ember); margin-bottom: 14px; display: block; }
.proj-client { color: var(--bone-dim); display: block; margin-bottom: 12px; }
.proj-title { font-family: var(--f-display); font-size: clamp(30px, 3.6vw, 56px); line-height: 1.02; letter-spacing: -.025em; margin-bottom: 18px; text-wrap: balance; }
.proj-desc { color: var(--bone-dim); font-size: 17px; max-width: 460px; }
.proj[data-reveal] { opacity: 1; transform: none; }
.proj[data-reveal] .proj-media { clip-path: inset(12% 12% 12% 12% round var(--r-lg)); transition: clip-path 1.2s var(--ease); }
.proj[data-reveal].is-in .proj-media { clip-path: inset(0 0 0 0 round var(--r-lg)); }
.proj[data-reveal] .proj-info { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease) .15s, transform 1s var(--ease) .15s; }
.proj[data-reveal].is-in .proj-info { opacity: 1; transform: none; }

/* ---------- Numbers ---------- */
.numbers-head { max-width: 860px; }
.numbers-head .lead { margin-top: 24px; }
.counters { display: grid; grid-template-columns: repeat(4, 1fr); margin: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.counter { padding: clamp(28px, 4vw, 48px) 24px clamp(28px, 4vw, 48px) 0; border-right: 1px solid var(--line); }
.counter + .counter { padding-left: clamp(16px, 2.4vw, 32px); }
.counter:last-child { border-right: 0; }
.counter dt { font-family: var(--f-display); font-weight: 800; font-size: clamp(56px, 7vw, 112px); line-height: .9; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.counter dt i { font-style: normal; color: var(--ember); }
.counter:nth-child(2) dt i { color: var(--teal); }
.counter dd { margin: 18px 0 0; display: grid; gap: 4px; }
.counter dd strong { font-size: 16px; font-weight: 600; }
.counter dd span { color: var(--bone-dim); font-size: 14px; line-height: 1.5; }

/* ---------- Kinetic type band ---------- */
.kinetic { overflow: hidden; padding: clamp(36px, 6vw, 72px) 0; background: var(--ink); border-top: 1px solid var(--line); }
.kinetic-row { display: flex; gap: .6em; white-space: nowrap; font-family: var(--f-display); font-weight: 800; font-size: clamp(48px, 9vw, 150px); line-height: 1; letter-spacing: -.035em; text-transform: uppercase; will-change: transform; margin-left: -20%; }
.kinetic-row span { display: inline-flex; align-items: center; gap: .6em; }
.kinetic-row span::after { content: "✦"; font-size: .3em; color: var(--ember); }
.kinetic-outline { color: transparent; -webkit-text-stroke: 1.5px rgba(237,230,218,.35); }
.kinetic-outline span::after { color: var(--teal); -webkit-text-stroke: 0; }

.sec-head-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.sec-note { color: var(--sand); margin: 20px 0 0; display: flex; align-items: center; gap: 10px; }
.sec-note::before { content: ""; width: 18px; height: 1px; background: currentColor; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.tags span { font-family: var(--f-mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--bone-faint); color: var(--bone); }
.tags .is-ai { background: var(--teal); border-color: var(--teal); color: var(--ink); }

/* ---------- Shared video tile ---------- */
.tile { position: relative; display: block; width: 100%; height: 100%; overflow: hidden; border-radius: inherit; isolation: isolate; text-align: left; }
.tile img, .tile video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease), opacity .5s var(--ease); }
.tile video { opacity: 0; }
.tile.is-playing video { opacity: 1; }
.tile:hover img, .tile:hover video { transform: scale(1.045); }
.tile::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(to top, rgba(10,10,11,.85), transparent 45%); transition: opacity .5s; }
.tile-play {
  position: absolute; z-index: 2; right: 14px; top: 14px; width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center; background: rgba(10,10,11,.5); backdrop-filter: blur(8px);
  transition: background .3s, transform .4s var(--ease);
}
.tile-play svg { width: 16px; fill: var(--bone); margin-left: 2px; }
.tile:hover .tile-play { background: var(--ember); transform: scale(1.1); }
.tile:hover .tile-play svg { fill: var(--ink); }
.tile-cap { position: absolute; z-index: 2; left: 16px; right: 16px; bottom: 16px; }
.tile-cap .mono { display: block; color: var(--sand); font-size: 10.5px; margin-bottom: 4px; }
.tile-cap strong { display: block; font-family: var(--f-display); font-size: 18px; line-height: 1.15; letter-spacing: -.01em; }
.tile-ai { position: absolute; z-index: 2; left: 14px; top: 14px; font-family: var(--f-mono); font-size: 10px; letter-spacing: .1em; padding: 4px 9px; border-radius: 999px; background: var(--teal); color: var(--ink); }

/* ---------- Discipline sections ---------- */
.disc-head { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px, 6vw, 96px); align-items: end; margin-bottom: clamp(48px, 6vw, 88px); }
.disc-copy p { color: var(--bone-dim); font-size: 18px; }
.caps { list-style: none; padding: 0; margin: 24px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.caps li { padding: 8px 14px; border: 1px solid var(--bone-faint); border-radius: 999px; color: var(--bone); font-size: 11px; }

.works { display: grid; gap: clamp(12px, 1.6vw, 22px); }
.works .work { aspect-ratio: 9 / 16; border-radius: var(--r); overflow: hidden; background: var(--ink-3); }
.works-stagger { grid-template-columns: repeat(4, 1fr); }
.works-stagger .work:nth-child(4n+2), .works-stagger .work:nth-child(4n+4) { transform: translateY(clamp(24px, 5vw, 80px)); }
.works-stagger { padding-bottom: clamp(24px, 5vw, 80px); }
.disc-split { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(40px, 6vw, 96px); align-items: start; }
.disc-split .disc-head { display: block; position: sticky; top: calc(var(--header-h) + 48px); margin: 0; }
.disc-split .disc-copy { margin-top: 32px; }
.works-wide { grid-template-columns: repeat(3, 1fr); padding-bottom: clamp(24px, 4vw, 64px); }
.works-wide .work:nth-child(3n+2) { transform: translateY(clamp(24px, 4vw, 64px)); }
.works-ai { grid-template-columns: repeat(6, 1fr); margin-top: clamp(56px, 7vw, 96px); }

/* ---------- AI section ---------- */
.ai { overflow: hidden; }
.ai-glow { position: absolute; inset: 10% -20% auto auto; width: 70vw; height: 70vw; max-width: 1000px; max-height: 1000px; background: radial-gradient(circle, rgba(31,181,168,.2), transparent 60%); pointer-events: none; filter: blur(20px); }
.ai em, .ai .tc { color: var(--teal); }
.ai .tile:hover .tile-play { background: var(--teal); }
.ai-head { position: relative; max-width: 980px; }
.ai-title { font-family: var(--f-display); font-size: clamp(44px, 7.6vw, 124px); line-height: .94; letter-spacing: -.04em; margin-bottom: 28px; }
.ai-steps { position: relative; list-style: none; padding: 0; margin: clamp(48px, 6vw, 80px) 0 0; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--bone-faint); }
.ai-steps li { padding: 28px 28px 0 0; }
.ai-steps li + li { padding-left: 28px; border-left: 1px solid var(--bone-faint); }
.ai-steps .mono { color: var(--teal); }
.ai-steps h3 { font-family: var(--f-display); font-size: 26px; margin: 10px 0 8px; }
.ai-steps p { color: var(--bone-dim); font-size: 16px; }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 1.35fr .65fr; gap: clamp(40px, 7vw, 120px); }
.about-title { font-family: var(--f-display); font-size: clamp(34px, 4.4vw, 68px); line-height: 1.04; letter-spacing: -.03em; margin-bottom: 36px; }
.about-copy p { font-size: clamp(17px, 1.35vw, 20px); color: var(--bone-dim); max-width: 680px; }
.about-block { padding: 24px 0; border-top: 1px solid var(--bone-faint); }
.about-block h3 { color: var(--ember); margin-bottom: 16px; font-weight: 500; }
.tools { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 16px; }
.tools li { display: flex; align-items: center; gap: 12px; font-size: 15px; }
.tools span { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; background: var(--ink-3); border: 1px solid var(--bone-faint); font-family: var(--f-mono); font-size: 12px; color: var(--sand); flex: none; }
.industries { color: var(--bone-dim); font-size: 15px; line-height: 1.8; margin: 0; }

/* ---------- Contact ---------- */
.contact { position: relative; padding: clamp(110px, 14vw, 200px) 0 clamp(80px, 10vw, 140px); background-image: radial-gradient(70% 60% at 50% 110%, rgba(255,90,31,.22), transparent 70%); overflow: hidden; border-top: 1px solid var(--line); }
.contact-title { font-family: var(--f-display); font-size: clamp(34px, 9.2vw, 168px); line-height: .9; letter-spacing: -.045em; text-transform: uppercase; font-weight: 800; }
.contact-title .accent { color: var(--ember); }
.contact-lead { margin-top: 32px; }
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 48px; }
.contact-card {
  position: relative; display: grid; gap: 10px; padding: 28px; border-radius: var(--r-lg);
  border: 1px solid var(--bone-faint); background: rgba(17,17,19,.7); backdrop-filter: blur(10px);
  transition: border-color .3s, transform .5s var(--ease), background .3s;
}
.contact-card .mono { color: var(--bone-dim); }
.contact-card strong { font-family: var(--f-display); font-size: clamp(18px, 1.7vw, 24px); font-weight: 600; word-break: break-word; }
.contact-card .arrow { position: absolute; top: 24px; right: 26px; font-size: 22px; color: var(--ember); transition: transform .4s var(--ease); }
a.contact-card[href]:hover { border-color: rgba(255,90,31,.55); background: var(--ember-soft); transform: translateY(-4px); }
a.contact-card[href]:hover .arrow { transform: translate(3px, -3px); }
.contact-card-primary[href] { background: var(--ember); border-color: var(--ember); color: var(--ink); }
.contact-card-primary[href] .mono, .contact-card-primary[href] .arrow { color: var(--ink); }
a.contact-card-primary[href]:hover { background: var(--bone); border-color: var(--bone); }
.contact-card.is-placeholder { cursor: default; border-style: dashed; }
.contact-card.is-placeholder .arrow { display: none; }
.placeholder-badge { display: inline-block; justify-self: start; font-family: var(--f-mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; padding: 3px 8px; border-radius: 6px; background: rgba(201,164,106,.16); color: var(--sand); }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--bone-faint); padding: 28px 0; color: var(--bone-dim); }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 16px 32px; flex-wrap: wrap; }
.footer-contact { display: flex; flex-wrap: wrap; gap: 8px 28px; text-transform: none; letter-spacing: .02em; }
.footer-contact a { color: var(--bone); transition: color .2s; }
.footer-contact a:hover { color: var(--teal); }
.footer a:hover { color: var(--ember); }

/* ---------- Lightbox ---------- */
.lightbox { width: 100vw; height: 100vh; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(6,6,7,.96); color: var(--bone); }
.lightbox::backdrop { background: rgba(0,0,0,.6); }
.lightbox[open] { animation: lbIn .45s var(--ease); }
@keyframes lbIn { from { opacity: 0; } }
.lb-inner { height: 100%; display: grid; grid-template-rows: auto 1fr auto; gap: 12px; padding: 18px var(--gutter) 22px; }
.lb-top { display: flex; justify-content: space-between; align-items: center; color: var(--bone-dim); }
.lb-stage { display: flex; align-items: center; justify-content: center; gap: clamp(12px, 3vw, 40px); min-height: 0; }
.lb-video { height: 100%; max-height: 100%; max-width: 100%; aspect-ratio: 9 / 16; border-radius: var(--r); background: #000; object-fit: contain; }
.lightbox.is-wide .lb-video { aspect-ratio: 16 / 9; height: auto; width: min(100%, 1400px); max-height: 100%; }
.lightbox.is-wide .lb-nav { display: none; }
.lb-btn { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--bone-faint); background: rgba(237,230,218,.04); flex: none; transition: background .25s, border-color .25s; }
.lb-btn:hover { background: var(--ember); border-color: var(--ember); color: var(--ink); }
.lb-btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.lb-caption { text-align: center; }
.lb-caption .mono { color: var(--sand); display: block; }
.lb-caption strong { font-family: var(--f-display); font-size: clamp(18px, 2vw, 26px); }

/* ==========================================================
   Responsive
   ========================================================== */
@media (max-width: 1180px) {
  .nav { gap: 20px; font-size: 14px; }
  .works-ai { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 1024px) {
  .nav, .header-cta { display: none; }
  .menu-toggle { display: block; }
  .hero-bottom { grid-template-columns: 1fr; }
  .hero-reel { transform: none; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .disc-head { grid-template-columns: 1fr; align-items: start; }
  .disc-split { grid-template-columns: 1fr; }
  .disc-split .disc-head { position: static; margin-bottom: 48px; }
  .works-stagger { grid-template-columns: repeat(3, 1fr); }
  .works-stagger .work:nth-child(n) { transform: none; }
  .works-stagger .work:nth-child(3n+2) { transform: translateY(40px); }
  .works-stagger .work:last-child:nth-child(3n+1) { grid-column: 2; }
  .about-grid { grid-template-columns: 1fr; }
  .scroll-cue { display: none; }
}

/* Selected projects stack on small screens */
@media (max-width: 820px) {
  .proj, .proj:nth-child(even) { grid-template-columns: 1fr; gap: 24px; padding-block: 40px; }
  .proj:nth-child(even) .proj-media { order: 0; }
  .proj-media { height: auto; width: min(100%, 360px); }
  .proj-num { font-size: 72px; }
  .counters { grid-template-columns: 1fr 1fr; }
  .counter:nth-child(2) { border-right: 0; }
  .counter:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}
@media (max-width: 480px) {
  .counter dt { font-size: 52px; }
  .counter { padding: 24px 14px 24px 0; }
  .counter + .counter { padding-left: 14px; }
  .counter:nth-child(3) { padding-left: 0; }
}

@media (max-width: 720px) {
  :root { --header-h: 64px; }
  body { font-size: 16px; }
  .brand-tc { display: none; }
  .hero { padding-top: calc(var(--header-h) + 28px); }
  .hero-meta { flex-wrap: wrap; gap: 6px 10px; font-size: 10.5px; }
  .hero-title { font-size: 14.2vw; }
  .line-indent { padding-left: 6vw; }
  .hero-actions .btn { flex: 1 1 auto; justify-content: center; }
  .chapters { grid-template-columns: 1fr; }
  .works-stagger, .works-wide, .works-ai { grid-template-columns: repeat(2, 1fr); }
  .works-stagger .work:nth-child(n) { transform: none; }
  .works-stagger .work:nth-child(2n) { transform: translateY(32px); }
  .works-stagger .work:last-child:nth-child(odd) { grid-column: 1 / -1; justify-self: center; width: calc(50% - 6px); }
  .works-wide .work:nth-child(n) { transform: none; }
  .works-wide .work:nth-child(2n) { transform: translateY(32px); }
  .ai-steps { grid-template-columns: 1fr; }
  .ai-steps li, .ai-steps li + li { padding: 22px 0; border-left: 0; border-bottom: 1px solid var(--bone-faint); }
  .tools { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .player { border-radius: var(--r); }
  .player-bar { padding: 10px 12px; gap: 10px; opacity: 1; transform: none; }
  .pb-time { display: none; }
  .tile-cap strong { font-size: 15px; }
  .lb-nav { position: absolute; bottom: 22px; }
  .lb-stage { position: static; }
  [data-lb-prev] { left: var(--gutter); }
  [data-lb-next] { right: var(--gutter); }
  .lb-inner { padding-bottom: 90px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  [data-reveal], .char, .proj-info { opacity: 1 !important; transform: none !important; }
  .proj-media { clip-path: none !important; }
}

/* ==========================================================
   Language toggle + Arabic (RTL)
   ========================================================== */
.lang-toggle {
  display: inline-grid; place-items: center; min-width: 52px; height: 38px; padding: 0 14px;
  border: 1px solid var(--line); border-radius: 999px; background: rgba(237,230,218,.04);
  font-family: "IBM Plex Sans Arabic", var(--f-body); font-size: 14px; font-weight: 600; color: var(--bone);
  transition: border-color .25s, background .25s, color .25s;
}
.lang-toggle:hover { border-color: var(--teal); background: var(--teal-soft); color: var(--bone); }
.lang-toggle:lang(en) { font-family: var(--f-mono); font-size: 12px; letter-spacing: .1em; }

html[lang="ar"] {
  --f-display: "Alexandria", "IBM Plex Sans Arabic", Tahoma, sans-serif;
  --f-body: "IBM Plex Sans Arabic", Tahoma, sans-serif;
}
html[lang="ar"] body { line-height: 1.85; }
html[lang="ar"] .mono { font-family: var(--f-body); text-transform: none; letter-spacing: 0; font-size: 13px; font-weight: 500; }
html[lang="ar"] .brand-tc, html[lang="ar"] .pb-time, html[lang="ar"] .proj-num { font-family: var(--f-mono); }
html[lang="ar"] h1, html[lang="ar"] h2, html[lang="ar"] h3,
html[lang="ar"] .hero-title, html[lang="ar"] .contact-title, html[lang="ar"] .kinetic-row,
html[lang="ar"] .brand-name, html[lang="ar"] .proj-title { letter-spacing: 0; }
html[lang="ar"] .hero-title { line-height: 1.12; font-size: clamp(64px, 11vw, 196px); }
html[lang="ar"] .sec-title, html[lang="ar"] .ai-title, html[lang="ar"] .about-title { line-height: 1.25; }
html[lang="ar"] .contact-title { line-height: 1.2; }
html[lang="ar"] .proj-title { line-height: 1.3; }
html[lang="ar"] .counter dt, html[lang="ar"] .hero-stats dt { font-family: "Syne", var(--f-display); }

/* Mirror layout details */
[dir="rtl"] .line-indent { padding-left: 0; padding-right: 8vw; }
[dir="rtl"] .scroll-cue { right: auto; left: var(--gutter); }
[dir="rtl"] .tile-play { right: auto; left: 14px; }
[dir="rtl"] .tile-ai { left: auto; right: 14px; }
[dir="rtl"] .contact-card .arrow { right: auto; left: 26px; transform: scaleX(-1); }
[dir="rtl"] a.contact-card[href]:hover .arrow { transform: scaleX(-1) translate(3px, -3px); }
[dir="rtl"] .chapters button { text-align: right; }
[dir="rtl"] .ai-steps li { padding: 28px 0 0 28px; }
[dir="rtl"] .ai-steps li + li { padding-left: 28px; padding-right: 28px; border-left: 0; border-right: 1px solid var(--bone-faint); }
[dir="rtl"] .counter { padding-right: 0; padding-left: 24px; border-right: 0; border-left: 1px solid var(--line); }
[dir="rtl"] .counter + .counter { padding-left: 24px; padding-right: clamp(16px, 2.4vw, 32px); }
[dir="rtl"] .counter:last-child { border-left: 0; }
[dir="rtl"] .section::before, [dir="rtl"] .contact::before { left: auto; right: max(var(--gutter), calc((100% - var(--wrap)) / 2 + var(--gutter))); }
[dir="rtl"] .hero-reel { transform: perspective(1400px) rotateY(6deg) rotateX(2deg); }
[dir="rtl"] .hero-reel:hover { transform: perspective(1400px) rotateY(0) rotateX(0) scale(1.01); }
[dir="rtl"] svg.dir { transform: scaleX(-1); }
[dir="rtl"] .btn:hover svg.dir { transform: scaleX(-1) translateX(4px); }
[dir="rtl"] .playhead span { left: auto; right: 0; }
[dir="rtl"] .playhead span::after { right: auto; left: -4px; }
[dir="rtl"] .tile-cap, [dir="rtl"] .tile { text-align: right; }
/* tracks that animate with transforms keep LTR math */
.strip-track, .kinetic-row, .player-bar { direction: ltr; }
[dir="rtl"] .strip-track span, [dir="rtl"] .kinetic-row span { direction: rtl; }

@media (max-width: 1024px) {
  [dir="rtl"] .hero-reel { transform: none; }
}
@media (max-width: 820px) {
  [dir="rtl"] .counter:nth-child(2) { border-left: 0; }
}
@media (max-width: 720px) {
  [dir="rtl"] .line-indent { padding-right: 6vw; }
  [dir="rtl"] .ai-steps li, [dir="rtl"] .ai-steps li + li { padding: 22px 0; border-right: 0; }
  [dir="rtl"] [data-lb-prev] { left: auto; right: var(--gutter); }
  [dir="rtl"] [data-lb-next] { right: auto; left: var(--gutter); }
  .lang-toggle { min-width: 46px; height: 36px; padding: 0 10px; }
  html[lang="ar"] .hero-title { font-size: 17vw; }
}
@media (max-width: 480px) {
  [dir="rtl"] .counter { padding: 24px 0 24px 14px; }
  [dir="rtl"] .counter + .counter { padding-right: 14px; }
  [dir="rtl"] .counter:nth-child(3) { padding-right: 0; }
}

/* ==========================================================
   Three services: navigation band + a distinct identity each
   ========================================================== */
#motion  { --sec: var(--ember); --sec-soft: var(--ember-soft); }
#editing { --sec: var(--sand);  --sec-soft: rgba(201,164,106,.14); }
#ai      { --sec: var(--teal);  --sec-soft: var(--teal-soft); }
#motion::before, #editing::before, #ai::before { background: var(--sec); width: 120px; }
#motion .tc, #editing .tc, #ai .tc { color: var(--sec); border-color: color-mix(in srgb, var(--sec) 40%, transparent); }
#motion em, #editing em, #ai em { color: var(--sec); }
#motion .sec-note, #editing .sec-note, #ai .sec-note { color: var(--sec); }
#motion .caps li, #editing .caps li { border-color: color-mix(in srgb, var(--sec) 35%, transparent); }
#motion .tile-cap .mono, #editing .tile-cap .mono, #ai .tile-cap .mono { color: var(--sec); }
#motion .tile:hover .tile-play, #editing .tile:hover .tile-play, #ai .tile:hover .tile-play { background: var(--sec); }
#editing .tile:hover .tile-play svg, #ai .tile:hover .tile-play svg { fill: var(--ink); }
.disc-num {
  display: block; font-family: "Syne", var(--f-display); font-weight: 800; line-height: .8;
  font-size: clamp(90px, 13vw, 210px); letter-spacing: -.05em; margin-bottom: 18px;
  color: transparent; -webkit-text-stroke: 1.5px var(--sec, var(--ember)); opacity: .9;
}

/* Services band */
.services { background: var(--ink); border-top: 1px solid var(--line); padding: clamp(56px, 7vw, 96px) 0; }
.services-label { color: var(--bone-dim); margin: 0 0 22px; }
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.svc {
  --c: var(--ember);
  position: relative; display: grid; gap: 8px; align-content: start; min-height: 220px;
  padding: 28px 28px 30px; border-radius: var(--r-lg); border: 1px solid var(--line);
  background: linear-gradient(180deg, color-mix(in srgb, var(--c) 10%, transparent), transparent 70%);
  overflow: hidden; transition: border-color .35s var(--ease), transform .5s var(--ease), background .35s;
}
.svc::before { content: ""; position: absolute; inset: 0 0 auto; height: 3px; background: var(--c); }
.svc-editing { --c: var(--sand); }
.svc-ai { --c: var(--teal); }
.svc:hover { border-color: color-mix(in srgb, var(--c) 60%, transparent); transform: translateY(-6px); background: linear-gradient(180deg, color-mix(in srgb, var(--c) 20%, transparent), transparent 80%); }
.svc-num { font-family: "Syne", var(--f-display); font-weight: 800; font-size: 56px; line-height: 1; color: var(--c); margin-bottom: 10px; }
.svc-name { font-family: var(--f-display); font-size: clamp(22px, 2vw, 30px); font-weight: 700; line-height: 1.15; }
.svc-desc { color: var(--bone-dim); font-size: 15px; }
.svc-count { color: var(--c); margin-top: 10px; }
.svc-arrow { position: absolute; top: 28px; right: 26px; width: 26px; height: 26px; fill: none; stroke: var(--c); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .4s var(--ease); }
.svc:hover .svc-arrow { transform: translateY(5px); }
[dir="rtl"] .svc-arrow { right: auto; left: 26px; }

/* Motion: 3-column staggered grid */
.works-stagger { grid-template-columns: repeat(3, 1fr); }
.works-stagger .work:nth-child(n) { transform: none; }
.works-stagger .work:nth-child(3n+2) { transform: translateY(clamp(24px, 5vw, 80px)); }

/* Editing: one featured film + supporting cuts */
.works-wide .work:nth-child(n) { transform: none; }
.works-wide .work:first-child { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }
.works-wide { padding-bottom: 0; }

/* AI: one wide cinematic row */
.works-ai .work { border-radius: var(--r); box-shadow: 0 0 0 1px rgba(31,181,168,.18); transition: box-shadow .4s var(--ease); }
.works-ai .work:hover { box-shadow: 0 0 0 1px var(--teal), 0 30px 60px -30px rgba(31,181,168,.5); }

@media (max-width: 1024px) {
  .works-stagger .work:nth-child(n) { transform: none; }
  .works-stagger .work:nth-child(3n+2) { transform: translateY(40px); }
}
@media (max-width: 820px) {
  .svc-grid { grid-template-columns: 1fr; }
  .svc { min-height: 0; }
}
@media (max-width: 720px) {
  .works-stagger .work:nth-child(n) { transform: none; }
  .works-stagger .work:nth-child(2n) { transform: translateY(32px); }
  .works-wide .work:nth-child(n) { transform: none; }
  .works-wide .work:first-child { grid-column: span 2; grid-row: auto; aspect-ratio: 4 / 5; }
  .disc-num { font-size: 96px; }
}

/* ==========================================================
   Compact pass — shorter page, tighter rhythm
   ========================================================== */
.section { padding: clamp(72px, 8vw, 124px) 0; }
.sec-title { font-size: clamp(36px, 5.2vw, 80px); }
.ai-title { font-size: clamp(40px, 6vw, 96px); margin-bottom: 20px; }
.sec-head, .disc-head { margin-bottom: clamp(32px, 4vw, 56px); }
.disc-num { font-size: clamp(64px, 8vw, 128px); margin-bottom: 8px; }
.disc-copy p:first-child { margin-bottom: 0; }
.numbers { padding: clamp(36px, 4.5vw, 64px) 0; }
.numbers .counters { border-top: 0; border-bottom: 0; }
.kinetic { padding: clamp(24px, 3.5vw, 44px) 0; }
.kinetic-row { font-size: clamp(40px, 7vw, 116px); }
.services { padding: clamp(56px, 6vw, 88px) 0 clamp(40px, 4vw, 56px); }
.services .tc { margin-bottom: 20px; }
.svc { min-height: 180px; }
.works-ai { margin-top: clamp(32px, 4vw, 56px); }
.hero { min-height: 92vh; min-height: 92svh; }
.about-title { margin-bottom: 24px; }
.contact { padding: clamp(80px, 10vw, 150px) 0 clamp(64px, 8vw, 110px); }
/* captionless tiles: lighter shade, the film is the content */
.tile::after { background: linear-gradient(to top, rgba(10,10,11,.45), transparent 35%); }
.tile:hover::after { opacity: 0; }
/* motion tiles a little shorter so the section stays compact */
.works-stagger .work { aspect-ratio: 3 / 4; }
.works-stagger { padding-bottom: clamp(16px, 3vw, 48px); }
.works-stagger .work:nth-child(3n+2) { transform: translateY(clamp(16px, 3vw, 48px)); }
@media (max-width: 720px) { .works-stagger .work:nth-child(n) { transform: none; } .works-stagger { padding-bottom: 0; } }

/* ==========================================================
   Horizontal rails — each section's films sit in one row the
   visitor scrolls sideways (arrows, drag, trackpad or swipe).
   The page itself keeps normal vertical scrolling.
   ========================================================== */
.disc-split { display: block; }
.disc-split .disc-head { position: static; }
.works {
  display: flex !important; gap: clamp(12px, 1.4vw, 20px);
  overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  margin-inline: calc(var(--gutter) * -1); padding: 6px var(--gutter) 10px; scroll-padding-inline: var(--gutter);
  scrollbar-width: none; overscroll-behavior-x: contain; cursor: grab; outline: none;
}
.works::-webkit-scrollbar { display: none; }
.works.is-dragging { cursor: grabbing; scroll-snap-type: none; scroll-behavior: auto; }
.works.is-dragging .tile { pointer-events: none; }
.works .work {
  flex: 0 0 clamp(200px, 21vw, 290px); aspect-ratio: 9 / 16 !important;
  grid-column: auto !important; grid-row: auto !important; transform: none !important; scroll-snap-align: start;
}
.works-stagger, .works-wide { padding-bottom: 10px; }
.works-ai { margin-top: clamp(28px, 3vw, 44px); }
.works:focus-visible { box-shadow: inset 0 0 0 2px var(--sec, var(--ember)); border-radius: var(--r); }

.rail-ctrl { display: flex; align-items: center; gap: 12px; margin-top: 18px; }
.rail-btn {
  display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; flex: none;
  border: 1px solid var(--line); background: rgba(237,230,218,.04); color: var(--bone);
  transition: background .25s, border-color .25s, color .25s, opacity .25s;
}
.rail-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.rail-btn:hover:not(:disabled) { background: var(--sec, var(--ember)); border-color: var(--sec, var(--ember)); color: var(--ink); }
.rail-btn:disabled { opacity: .3; cursor: default; }
.rail-bar { position: relative; flex: 1; height: 2px; background: var(--line); border-radius: 2px; overflow: hidden; }
.rail-bar span { position: absolute; inset: 0 auto 0 0; width: 0; background: var(--sec, var(--ember)); border-radius: 2px; transition: width .15s linear; }
.rail-count { color: var(--bone-dim); min-width: 56px; text-align: right; }
.rail-hint { color: var(--bone-dim); }
@media (hover: none) { .rail-hint-mouse { display: none; } }
@media (max-width: 720px) {
  .works .work { flex-basis: 62vw; }
  .rail-btn { width: 40px; height: 40px; }
}
/* editing head back to two columns now that its films sit in a rail */
.disc-split .disc-head { display: grid; }
@media (max-width: 1024px) { .disc-split .disc-head { display: block; } }
/* AI head: title left, copy right, like the other two services */
@media (min-width: 1025px) {
  .ai-head { max-width: none; display: grid; grid-template-columns: 1.1fr .9fr; column-gap: clamp(32px, 6vw, 96px); align-items: end; }
  .ai-head .disc-num, .ai-head .tc, .ai-head .ai-title { grid-column: 1; }
  .ai-head .lead, .ai-head .sec-note { grid-column: 2; }
  .ai-head .lead { grid-row: 3; align-self: end; margin: 0; }
  .ai-head .sec-note { grid-row: 4; }
}
.ai-head .tc, .disc-head .tc { justify-self: start; }
