@font-face { font-family: "Thmanyah Sans"; src: url("/fonts/thmanyah-sans-Medium.otf") format("opentype"); font-weight: 400 600; font-display: swap; }
@font-face { font-family: "Thmanyah Sans"; src: url("/fonts/thmanyah-sans-Bold.otf") format("opentype"); font-weight: 700 799; font-display: swap; }
@font-face { font-family: "Thmanyah Sans"; src: url("/fonts/thmanyah-sans-Black.otf") format("opentype"); font-weight: 800 900; font-display: swap; }
:root {
  --ink: #070707;
  --ink2: #111110;
  --line: rgba(242, 237, 228, .12);
  --line2: rgba(242, 237, 228, .24);
  --bone: #f2ede4;
  --mute: #a19b8f;
  --dim: #5f5a52;
  --gold: #e9b44c;
  --gold-ink: #1a1306;
  --rec: #ff4a3d;
  --v1: #3d6fb6;   /* timeline: video clip blue */
  --a1: #3f9a6b;   /* timeline: audio green */
  --display: "Thmanyah Sans", "Segoe UI", Tahoma, sans-serif;
  --body: "IBM Plex Sans Arabic", "Segoe UI", Tahoma, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, Consolas, monospace;
  /* Brand Latin face. The brand font is Delirium NCV, but its free version is personal-use only.
     Bebas Neue (open licence) stands in until a commercial Delirium licence + webfont is bought:
     then add @font-face "Delirium" and put it first here. */
  --latin: "Bebas Neue", "Oswald", Impact, sans-serif;
  --gut: 28px;
  --ease: cubic-bezier(.2, .7, .1, 1);
  color-scheme: dark;
}
html[lang="en"] { --body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif; }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--ink); color: var(--bone); font-family: var(--body); font-size: 18px; line-height: 1.7; overflow-x: hidden; -webkit-font-smoothing: antialiased; }
img, video { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
[hidden] { display: none !important; }
.display { font-family: var(--display); font-weight: 800; line-height: 1.05; letter-spacing: -.02em; }
html[lang="ar"] .display { letter-spacing: 0; line-height: 1.35; }
html[lang="en"] .display { font-family: var(--latin); font-weight: 400; letter-spacing: .005em; line-height: .9; }
.display em { font-style: normal; color: var(--gold); }
.mono { font-family: var(--mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; }
.wrap { width: min(1440px, 100% - var(--gut) * 2); margin-inline: auto; }
.skip { position: absolute; inset-inline-start: 12px; top: -60px; z-index: 120; background: var(--gold); color: var(--gold-ink); padding: 10px 16px; border-radius: 8px; font-weight: 700; text-decoration: none; }
.skip:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 54px; padding: 0 30px; border-radius: 2px; background: var(--bone); color: var(--ink); font-weight: 600; font-size: 16px; text-decoration: none; border: 1px solid var(--bone); transition: background .25s, color .25s, border-color .25s; white-space: nowrap; cursor: pointer; font-family: inherit; }
.btn:hover { background: var(--gold); border-color: var(--gold); color: var(--gold-ink); }
.btn.ghost { background: rgba(7, 7, 7, .2); color: var(--bone); border-color: var(--line2); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.btn.ghost:hover { border-color: var(--bone); background: rgba(242, 237, 228, .08); color: var(--bone); }
.btn.sm { min-height: 42px; padding: 0 20px; font-size: 14px; }
.btn.lg { min-height: 64px; padding: 0 40px; font-size: 18px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }
.cta-row.center { justify-content: center; }
.center-row { display: flex; justify-content: center; margin-top: 64px; }

/* kicker */
.kicker { color: var(--gold); margin-bottom: 22px; display: flex; align-items: center; gap: 14px; font-family: var(--mono); font-size: 12px; letter-spacing: .16em; text-transform: uppercase; }
html[lang="ar"] .kicker { font-family: var(--body); letter-spacing: 0; font-size: 16px; font-weight: 600; text-transform: none; }
.kicker::before { content: ""; width: 12px; height: 16px; flex: none; background: var(--gold); clip-path: polygon(0 0, 100% 0, 100% 70%, 50% 100%, 0 70%); }
.kicker::after { content: ""; width: 36px; height: 1px; background: linear-gradient(90deg, var(--gold), transparent); }
html[dir="rtl"] .kicker::after { background: linear-gradient(270deg, var(--gold), transparent); }

/* ===== intro ===== */
.intro { position: fixed; inset: 0; z-index: 200; pointer-events: none; }
.intro-half { position: absolute; left: 0; right: 0; height: 50%; background: #000; overflow: hidden; transition: transform .9s cubic-bezier(.7, 0, .2, 1); }
.intro-half.top { top: 0; } .intro-half.bottom { bottom: 0; }
.intro-half img { position: absolute; left: 50%; width: min(64vw, 560px); height: auto; transform: translateX(-50%); animation: logoIn .7s var(--ease) both; }
.intro-half.top img { bottom: 0; transform: translate(-50%, 50%); }
.intro-half.bottom img { top: 0; transform: translate(-50%, -50%); }
@keyframes logoIn { from { opacity: 0; filter: blur(8px); } to { opacity: 1; filter: none; } }
.razor { position: absolute; top: 50%; left: 0; height: 2px; width: 100%; margin-top: -1px; background: var(--gold); box-shadow: 0 0 18px var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .38s cubic-bezier(.8, 0, .2, 1), opacity .3s .5s; z-index: 2; }
html[dir="rtl"] .razor { transform-origin: right; }
.intro-tc { position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%); color: rgba(242, 237, 228, .5); z-index: 2; transition: opacity .3s; }
.intro.cut .razor { transform: scaleX(1); }
.intro.open .intro-half.top { transform: translateY(-101%); }
.intro.open .intro-half.bottom { transform: translateY(101%); }
.intro.open .razor, .intro.open .intro-tc { opacity: 0; }

/* ===== nav ===== */
.nav { position: fixed; inset: 0 0 auto; z-index: 60; transition: background .35s, border-color .35s; border-bottom: 1px solid transparent; }
.nav.scrolled { background: rgba(7, 7, 7, .8); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-bottom-color: var(--line); }
.nav .wrap { display: flex; align-items: center; gap: 28px; height: 84px; }
.lock { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; direction: ltr; }
.lock .logo { height: 50px; width: auto; filter: drop-shadow(0 2px 14px rgba(0, 0, 0, .6)); }
.word { font-family: var(--latin); font-weight: 400; font-size: 44px; letter-spacing: .02em; line-height: 1; padding-top: 4px; }
.word i { color: var(--gold); font-style: normal; }
.links { display: flex; gap: 32px; margin-inline-start: auto; }
.links a { text-decoration: none; color: rgba(242, 237, 228, .75); font-size: 15px; transition: color .2s; position: relative; }
.links a::after { content: ""; position: absolute; inset: auto 0 -6px; height: 1px; background: var(--gold); transform: scaleX(0); transition: transform .3s var(--ease); }
.links a:hover, .links a.on { color: var(--bone); }
.links a:hover::after, .links a.on::after { transform: scaleX(1); }
.nav-end { display: flex; align-items: center; gap: 10px; }
.lang { font-family: var(--mono); font-size: 12px; font-weight: 600; color: var(--bone); background: transparent; border: 1px solid var(--line2); border-radius: 2px; height: 42px; min-width: 48px; cursor: pointer; }
.lang:hover { border-color: var(--bone); }
.burger { display: none; width: 46px; height: 42px; border: 1px solid var(--line2); background: transparent; border-radius: 2px; cursor: pointer; padding: 0; flex-direction: column; align-items: center; justify-content: center; gap: 6px; }
.burger span { width: 18px; height: 1.5px; background: var(--bone); transition: transform .25s; }
.burger[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }

/* ===== film helpers ===== */
.scene { position: absolute; inset: 0; overflow: hidden; }
.scene span { position: absolute; display: block; }
.scene-dusk { background: linear-gradient(180deg, #0c2a33 0%, #1f5559 30%, #c98a52 54%, #e8a866 58%, #5a3220 62%, #24140c 80%, #0d0806 100%); }
.scene-dusk .sun { width: 24%; height: auto; aspect-ratio: 1; left: 58%; top: 34%; border-radius: 50%; background: radial-gradient(circle, #fff1d0 0 22%, rgba(255, 205, 140, .7) 34%, rgba(255, 170, 90, .18) 55%, transparent 70%); transform: translate(-50%, -50%); }
.scene-dusk .ridge { left: -5%; right: -5%; bottom: 0; }
.scene-dusk .r1 { height: 46%; background: #3b2316; clip-path: polygon(0 32%, 10% 22%, 18% 30%, 30% 12%, 42% 26%, 52% 18%, 63% 30%, 75% 14%, 86% 28%, 100% 20%, 100% 100%, 0 100%); opacity: .85; }
.scene-dusk .r2 { height: 36%; background: linear-gradient(180deg, #160d08, #080504); clip-path: polygon(0 40%, 14% 26%, 26% 38%, 40% 22%, 55% 36%, 68% 24%, 82% 40%, 100% 28%, 100% 100%, 0 100%); }
.grain { position: absolute; inset: -50%; pointer-events: none; opacity: .13; mix-blend-mode: overlay; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); animation: grain 1s steps(6) infinite; z-index: 1; }
@keyframes grain { 0% { transform: translate(0, 0); } 20% { transform: translate(-3%, 2%); } 40% { transform: translate(2%, -3%); } 60% { transform: translate(-2%, -1%); } 80% { transform: translate(3%, 3%); } 100% { transform: translate(0, 0); } }
.vignette, .shade { position: absolute; inset: 0; pointer-events: none; z-index: 1; }
.vignette { background: radial-gradient(ellipse at center, transparent 45%, rgba(0, 0, 0, .7)); }
.full-media { position: absolute; inset: 0; overflow: hidden; background: #000; }
.full-media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* ===== hero ===== */
.hero { position: relative; height: 100vh; height: 100svh; min-height: 700px; overflow: hidden; display: flex; align-items: flex-end; }
.hero-media { position: absolute; inset: 0; background: #000; }
.hero-media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: saturate(.95); }
.hero-media::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(7, 7, 7, .55), transparent 28%, transparent 45%, rgba(7, 7, 7, .92) 94%); }
.hero-media::before { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(var(--scrim-dir, 90deg), rgba(7, 7, 7, .78), rgba(7, 7, 7, .3) 55%, rgba(7, 7, 7, .05)); }
html[dir="rtl"] .hero-media::before { --scrim-dir: 270deg; }
.cutflash { position: absolute; inset: 0; z-index: 2; background: #fff; opacity: 0; pointer-events: none; }
.cutflash.go { animation: cutflash .22s ease-out; }
@keyframes cutflash { 0% { opacity: .16; } 100% { opacity: 0; } }
.bar { position: absolute; left: 0; right: 0; height: 6vh; background: #000; z-index: 3; transform: scaleY(0); animation: bars 1.4s .2s var(--ease) forwards; }
.bar.top { top: 0; transform-origin: top; } .bar.bottom { bottom: 0; transform-origin: bottom; }
@keyframes bars { to { transform: scaleY(1); } }
.hud { position: absolute; inset: calc(6vh + 92px) var(--gut) calc(6vh + 18px); z-index: 3; pointer-events: none; direction: ltr; opacity: 0; animation: fade 1s 1s forwards; }
@keyframes fade { to { opacity: 1; } }
.hud .c { position: absolute; width: 28px; height: 28px; border: 1.5px solid rgba(242, 237, 228, .55); }
.hud .tl { top: 0; left: 0; border-right: 0; border-bottom: 0; } .hud .tr { top: 0; right: 0; border-left: 0; border-bottom: 0; }
.hud .bl { bottom: 0; left: 0; border-right: 0; border-top: 0; } .hud .br { bottom: 0; right: 0; border-left: 0; border-top: 0; }
.hud-t, .hud-b { position: absolute; font-size: 11px; color: rgba(242, 237, 228, .78); }
.hud-t { top: 7px; } .hud-b { bottom: 7px; }
.hud .l { left: 42px; } .hud .r { right: 42px; }
.hud-b b { color: var(--gold); font-weight: 600; }
.rec { color: var(--rec); font-weight: 600; animation: blink 1.4s steps(2) infinite; }
@keyframes blink { 50% { opacity: .2; } }
.hero-copy { position: relative; z-index: 4; padding-bottom: calc(6vh + 70px); }
.eyebrow { color: rgba(242, 237, 228, .85); margin-bottom: 24px; font-size: 16px; font-weight: 500; }
html[lang="en"] .eyebrow { font-family: var(--mono); font-size: 12px; letter-spacing: .16em; text-transform: uppercase; }
.hero h1 { font-size: clamp(56px, min(9vw, 13vh), 168px); font-weight: 900; max-width: 11ch; }
html[lang="ar"] .hero h1 { line-height: 1.25; }
html[lang="en"] .hero h1 { font-size: clamp(76px, min(12vw, 17vh), 230px); }
.hero-foot { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; margin-top: 36px; flex-wrap: wrap; }
.lead { font-size: clamp(17px, 1.5vw, 21px); color: rgba(242, 237, 228, .85); max-width: 32em; }
.hero .eyebrow, .hero h1, .hero-foot { opacity: 0; transform: translateY(28px); }
.ready .hero .eyebrow, .ready .hero h1, .ready .hero-foot { animation: rise 1.1s var(--ease) forwards; }
.ready .hero h1 { animation-delay: .25s; } .ready .hero-foot { animation-delay: .5s; } .ready .hero .eyebrow { animation-delay: .1s; }
@keyframes rise { to { opacity: 1; transform: none; } }

/* ===== fields marquee ===== */
.marquee { border-block: 1px solid var(--line); overflow: hidden; padding: 30px 0; direction: ltr; background: var(--ink); }
.track { display: flex; width: max-content; gap: 34px; align-items: center; animation: marq 46s linear infinite; }
.track span { font-family: var(--display); font-weight: 800; font-size: clamp(34px, 4.4vw, 64px); line-height: 1.2; white-space: nowrap; color: transparent; -webkit-text-stroke: 1px rgba(242, 237, 228, .5); }
.track span:nth-of-type(2n+1) { color: var(--bone); -webkit-text-stroke: 0; }
html[lang="en"] .track span { font-family: var(--latin); font-weight: 400; font-size: clamp(44px, 6vw, 88px); }
.track i { width: 14px; height: 2px; background: var(--gold); transform: rotate(-60deg); }
@keyframes marq { to { transform: translateX(-50%); } }

/* ===== numbers ===== */
.numbers { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: center; overflow: hidden; }
.numbers .shade { background: linear-gradient(180deg, rgba(7, 7, 7, .9), rgba(7, 7, 7, .55) 40%, rgba(7, 7, 7, .6) 60%, rgba(7, 7, 7, .95)); }
.numbers-in { position: relative; z-index: 2; padding: 140px 0; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line2); }
.stat { padding: 34px 28px 10px 0; border-inline-start: 1px solid var(--line2); padding-inline: 28px; }
.stat .num { display: flex; align-items: baseline; }
.stat:first-child { border-inline-start: 0; padding-inline-start: 0; }
.stat b { font-family: var(--latin); font-weight: 400; font-size: clamp(80px, 10vw, 176px); line-height: .9; color: var(--bone); }
html[lang="ar"] .stat b { font-family: var(--display); font-weight: 900; line-height: 1.1; font-size: clamp(64px, 8vw, 140px); }
.stat i { font-style: normal; font-family: var(--latin); color: var(--gold); font-size: clamp(48px, 5vw, 90px); line-height: 1; margin-inline-start: 4px; }
.stat .lbl { display: block; color: rgba(242, 237, 228, .82); font-size: 18px; margin-top: 10px; }
.stat b { transition: color .6s; font-variant-numeric: tabular-nums; }
.stat .rolling b { color: var(--gold); text-shadow: 0 0 28px rgba(233, 180, 76, .35); }
.stat .word-stat { color: var(--gold); }
.countries-old { list-style: none; padding: 0; margin: 64px 0 0; display: flex; flex-wrap: wrap; gap: 10px; }
.countries li { padding: 8px 18px; border: 1px solid var(--line2); border-radius: 999px; font-size: 16px; color: rgba(242, 237, 228, .9); background: rgba(7, 7, 7, .35); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.countries li.more { border-style: dashed; color: var(--gold); }

/* ===== sections ===== */
.sec-head { margin-bottom: 64px; }
.sec-head.split { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; flex-wrap: wrap; }
h2.display { font-size: clamp(52px, 7.6vw, 128px); }
html[lang="en"] h2.display { font-size: clamp(66px, 10vw, 170px); }
.sub { color: var(--mute); max-width: 26em; font-size: 18px; }

.manifesto { padding: 180px 0 170px; }
.big-words { font-family: var(--display); font-weight: 700; font-size: clamp(32px, 4.4vw, 68px); line-height: 1.4; max-width: 22em; }
html[lang="en"] .big-words { font-family: var(--latin); font-weight: 400; font-size: clamp(44px, 6vw, 96px); line-height: 1.02; }
.big-words .w { color: rgba(242, 237, 228, .15); transition: color .5s; }
.big-words .w.lit { color: var(--bone); }

/* ===== services: stacked full-screen chapters ===== */
.services { padding-top: 40px; }
.services > .sec-head { margin-bottom: 72px; }
.chapter { position: sticky; top: 0; height: 100vh; height: 100svh; min-height: 640px; overflow: hidden; display: flex; align-items: flex-end; box-shadow: 0 -30px 60px rgba(0, 0, 0, .55); }
.chapter .shade { background: linear-gradient(180deg, rgba(7, 7, 7, .5), transparent 30%, rgba(7, 7, 7, .25) 50%, rgba(7, 7, 7, .92) 92%), linear-gradient(var(--scrim-dir, 90deg), rgba(7, 7, 7, .6), transparent 70%); }
html[dir="rtl"] .chapter .shade { --scrim-dir: 270deg; }
.chapter-in { position: relative; z-index: 2; padding-bottom: 96px; }
.slate { display: flex; flex-wrap: wrap; gap: 0; margin-bottom: 26px; direction: ltr; width: fit-content; border: 1px solid var(--line2); background: rgba(7, 7, 7, .45); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
html[dir="rtl"] .slate { margin-inline-start: 0; }
.slate span { padding: 9px 14px; border-inline-start: 1px solid var(--line2); color: rgba(242, 237, 228, .85); }
.slate span:first-child { border-inline-start: 0; color: var(--gold); }
.chapter h3 { font-size: clamp(64px, 10vw, 184px); font-weight: 900; }
html[lang="en"] .chapter h3 { font-size: clamp(84px, 13vw, 240px); }
.ch-lead { font-size: clamp(18px, 1.6vw, 23px); color: rgba(242, 237, 228, .9); max-width: 34em; margin-top: 10px; }
.chips { list-style: none; padding: 0; margin: 26px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { font-size: 15px; color: rgba(242, 237, 228, .92); border: 1px solid var(--line2); padding: 6px 14px; border-radius: 999px; background: rgba(7, 7, 7, .35); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }

/* ===== work tiles ===== */
.work { padding: 150px 0 140px; position: relative; z-index: 2; background: var(--ink); }
.work-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.work-grid.feature .wk:first-child { grid-column: span 2; grid-row: span 2; }
.wk { position: relative; display: block; overflow: hidden; aspect-ratio: 16 / 9; text-decoration: none; background: var(--ink2); }
.work-grid.feature .wk:first-child { aspect-ratio: auto; }
.wk img, .wk video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.wk img { transition: transform 1.2s var(--ease); }
.wk:hover img { transform: scale(1.05); }
.wk video { opacity: 0; transition: opacity .35s var(--ease); }
.wk.playing video { opacity: 1; }
.wk::after { content: ""; position: absolute; inset: 0; border: 1px solid rgba(242, 237, 228, 0); transition: border-color .3s; pointer-events: none; z-index: 2; }
.wk:hover::after { border-color: rgba(233, 180, 76, .7); }
.wk-cap { position: absolute; inset: auto 0 0; padding: 22px; z-index: 1; background: linear-gradient(180deg, transparent, rgba(0, 0, 0, .88)); }
.wk-cap b { display: block; font-family: var(--display); font-size: 21px; font-weight: 700; line-height: 1.35; }
.work-grid.feature .wk:first-child .wk-cap b { font-size: clamp(24px, 2.4vw, 36px); }
.wk-cap span { font-size: 13px; color: var(--gold); font-weight: 600; }
html[lang="en"] .wk-cap span { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; }
.wk-tc { position: absolute; top: 14px; inset-inline-start: 14px; z-index: 1; font-style: normal; font-size: 10px; padding: 4px 8px; background: rgba(0, 0, 0, .55); color: rgba(242, 237, 228, .8); opacity: 0; transition: opacity .3s; }
.wk:hover .wk-tc, .wk.playing .wk-tc { opacity: 1; }
.wk.vert { aspect-ratio: 9 / 16; }

/* ===== process as an edit timeline ===== */
.process { padding: 150px 0 140px; position: relative; z-index: 2; background: var(--ink); }
.tl { position: relative; direction: ltr; border: 1px solid var(--line); background: #0d0d0c; padding: 0 0 14px; margin-bottom: 56px; overflow: hidden; }
.tl-ruler { display: flex; justify-content: space-between; padding: 8px 14px 8px 64px; font-size: 10px; color: var(--dim); border-bottom: 1px solid var(--line); background: repeating-linear-gradient(90deg, transparent 0 23px, rgba(242, 237, 228, .1) 23px 24px) 64px 100% / auto 6px no-repeat; }
.tl-track { position: relative; height: 54px; margin: 12px 14px 0 64px; display: flex; gap: 3px; }
.tl-track b { position: absolute; left: -50px; top: 50%; transform: translateY(-50%); font-size: 11px; color: var(--mute); font-weight: 600; }
.cl { flex: 1; border-radius: 3px; background: linear-gradient(180deg, rgba(61, 111, 182, .95), rgba(41, 80, 140, .95)); border: 1px solid rgba(160, 196, 255, .35); transform: scaleX(0); transform-origin: left; transition: transform .7s var(--ease); }
.cl.c1 { flex: .7; } .cl.c2 { flex: 1.4; } .cl.c3 { flex: 1.6; } .cl.c4 { flex: 1.1; background: linear-gradient(180deg, #b98a2e, #8a6420); border-color: rgba(255, 220, 150, .4); } .cl.c5 { flex: .6; }
.tl.play .cl { transform: none; }
.tl.play .c2 { transition-delay: .15s; } .tl.play .c3 { transition-delay: .3s; } .tl.play .c4 { transition-delay: .45s; } .tl.play .c5 { transition-delay: .6s; }
.tl-track.a { height: 34px; }
.wave { flex: 1; border-radius: 3px; background: rgba(63, 154, 107, .25); border: 1px solid rgba(120, 220, 160, .3); -webkit-mask: repeating-linear-gradient(90deg, #000 0 2px, transparent 2px 4px); mask: repeating-linear-gradient(90deg, #000 0 2px, transparent 2px 4px); }
.wave { background: linear-gradient(180deg, transparent 20%, rgba(90, 200, 140, .8) 20% 80%, transparent 80%); }
.tl-head { position: absolute; top: 0; bottom: 0; left: 64px; width: 2px; background: var(--rec); z-index: 2; box-shadow: 0 0 10px rgba(255, 74, 61, .6); }
.tl-head::before { content: ""; position: absolute; top: 0; left: -6px; border: 7px solid transparent; border-top: 9px solid var(--rec); }
.tl.play .tl-head { animation: headrun 6s 1s linear infinite; }
@keyframes headrun { from { left: 64px; } to { left: calc(100% - 14px); } }
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(5, 1fr); }
/* steps follow the timeline above, which always runs left to right like an NLE */
.steps { direction: ltr; }
.steps li { direction: rtl; text-align: start; }
html[lang="en"] .steps li { direction: ltr; }
.steps li { border-inline-start: 0 !important; border-left: 1px solid var(--line); padding: 0 22px; }
.steps li:first-child { border-left: 0; padding-left: 0; }
.steps li { padding-inline: 22px; border-inline-start: 1px solid var(--line); }
.steps li:first-child { padding-inline-start: 0; border-inline-start: 0; }
.steps span { color: var(--gold); }
.steps h3 { font-family: var(--display); font-weight: 800; font-size: 28px; margin: 14px 0 8px; }
html[lang="en"] .steps h3 { font-family: var(--latin); font-weight: 400; font-size: 36px; letter-spacing: .01em; }
.steps p { color: var(--mute); font-size: 16px; }

/* plugin band */
.plugin { border-block: 1px solid var(--line); padding: 36px 0; position: relative; z-index: 2; background: var(--ink); }
.plugin-in { display: flex; align-items: center; gap: 24px; }
.plugin-in img { border-radius: 12px; flex: none; background: #000; }
.plugin-in > div { flex: 1; }
.plugin .kicker { margin-bottom: 6px; }
.plugin .kicker::before { display: none; }
.plugin-t { color: var(--mute); }
.plugin-t b { color: var(--bone); font-weight: 600; }

/* faq */
.faq-sec { padding: 150px 0; position: relative; z-index: 2; background: var(--ink); }
.faq-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 60px; align-items: start; }
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 28px 0; font-family: var(--display); font-weight: 600; font-size: 23px; display: flex; justify-content: space-between; gap: 16px; align-items: center; }
html[lang="en"] .faq summary { font-family: var(--latin); font-weight: 400; font-size: 34px; letter-spacing: .01em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 14px; height: 14px; background: linear-gradient(var(--gold), var(--gold)) center / 100% 1.5px no-repeat, linear-gradient(var(--gold), var(--gold)) center / 1.5px 100% no-repeat; transition: transform .3s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 28px; color: var(--mute); max-width: 40em; }

/* contact */
.contact { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: center; overflow: hidden; text-align: center; }
.contact .shade { background: radial-gradient(ellipse at center, rgba(7, 7, 7, .45), rgba(7, 7, 7, .92) 78%); }
.contact-in { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; }
.contact-mark { width: clamp(160px, 18vw, 280px); height: auto; margin-bottom: 36px; }
.huge { font-size: clamp(56px, 9vw, 150px); font-weight: 900; margin-bottom: 48px; }
html[lang="en"] .huge { font-size: clamp(72px, 12vw, 210px); }

/* footer */
.foot { border-top: 1px solid var(--line); padding: 40px 0 40px; position: relative; z-index: 2; background: var(--ink); }
.foot-in { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.foot nav { display: flex; gap: 26px; flex-wrap: wrap; }
.foot nav a { color: var(--mute); text-decoration: none; font-size: 15px; }
.foot nav a:hover { color: var(--bone); }
.small { color: var(--dim); }
.foot .word { font-size: 34px; }
.foot .logo { height: 34px; width: auto; }

/* ===== the page as a sequence (fixed edit timeline) ===== */
.seq { position: fixed; left: 0; right: 0; bottom: 0; z-index: 55; height: 40px; display: flex; align-items: stretch; direction: ltr; background: rgba(10, 10, 10, .9); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-top: 1px solid var(--line); transform: translateY(100%); transition: transform .45s var(--ease); }
.seq.show { transform: none; }
.seq-tc { flex: none; display: flex; align-items: center; padding: 0 16px; font-size: 11px; color: var(--gold); border-right: 1px solid var(--line); width: 133px; }
.seq-track { position: relative; flex: 1; display: flex; gap: 2px; padding: 6px 8px; }
.seq-clip { min-width: 0; border: 1px solid rgba(160, 196, 255, .25); border-radius: 3px; background: rgba(61, 111, 182, .35); color: rgba(242, 237, 228, .75); font: 500 11px/1 var(--body); padding: 0 8px; text-align: start; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: pointer; transition: background .25s, color .25s; }
.seq-clip:hover { background: rgba(61, 111, 182, .6); color: var(--bone); }
.seq-clip.on { background: rgba(233, 180, 76, .85); border-color: var(--gold); color: var(--gold-ink); font-weight: 700; }
.seq { --tcw: 133px; }
.seq-head { position: absolute; top: 0; bottom: 0; width: 2px; left: calc(var(--tcw) + 8px + (100% - var(--tcw) - 16px) * var(--p, 0)); background: var(--rec); pointer-events: none; box-shadow: 0 0 8px rgba(255, 74, 61, .7); }

/* ===== portfolio page ===== */
.pf-hero { position: relative; height: 78vh; height: 78svh; min-height: 560px; display: flex; align-items: flex-end; overflow: hidden; }
.pf-hero .shade { background: linear-gradient(180deg, rgba(7, 7, 7, .55), transparent 35%, rgba(7, 7, 7, .95)); }
.pf-head { position: relative; z-index: 2; padding-bottom: 64px; }
.pf-head h1 { font-size: clamp(64px, 10vw, 180px); font-weight: 900; }
html[lang="en"] .pf-head h1 { font-size: clamp(90px, 14vw, 250px); }
.pf-head p:not(.kicker) { color: rgba(242, 237, 228, .85); font-size: clamp(17px, 1.5vw, 21px); max-width: 34em; margin-top: 8px; }
.pf-body { padding: 56px 0 140px; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 40px; position: sticky; top: 84px; z-index: 5; padding: 14px 0; background: linear-gradient(180deg, var(--ink) 75%, transparent); }
.flt { font: 600 15px/1 var(--body); color: rgba(242, 237, 228, .8); background: transparent; border: 1px solid var(--line2); border-radius: 999px; padding: 11px 18px; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; transition: background .2s, color .2s, border-color .2s; }
.flt sup { font-family: var(--mono); font-size: 10px; color: var(--mute); }
.flt:hover { border-color: var(--bone); color: var(--bone); }
.flt.on { background: var(--bone); border-color: var(--bone); color: var(--ink); }
.flt.on sup { color: var(--dim); }
.reels-sec { margin-top: 110px; }
.reels-sec h2 { margin-bottom: 40px; }
.reel-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.reel-grid .wk-cap b { font-size: 17px; }
.pf-cta { text-align: center; padding: 130px 0; border-top: 1px solid var(--line); }
.pf-cta h2 { margin-bottom: 40px; }


/* ===== editing identity ===== */
/* title-safe / action-safe guides on the program monitor */
.safe { position: absolute; inset: 10% 6%; z-index: 2; pointer-events: none; border: 1px dashed rgba(242, 237, 228, .14); }
.safe::before { content: ""; position: absolute; inset: 6% 4%; border: 1px dashed rgba(242, 237, 228, .08); }
.safe::after { content: ""; position: absolute; left: 50%; top: 50%; width: 22px; height: 22px; margin: -11px 0 0 -11px; background: linear-gradient(rgba(242, 237, 228, .25), rgba(242, 237, 228, .25)) center / 100% 1px no-repeat, linear-gradient(rgba(242, 237, 228, .25), rgba(242, 237, 228, .25)) center / 1px 100% no-repeat; }
/* transport controls */
.transport { position: absolute; z-index: 5; left: 50%; bottom: calc(6vh + 14px); transform: translateX(-50%); display: flex; align-items: center; gap: 4px; direction: ltr; padding: 4px; border: 1px solid var(--line2); background: rgba(7, 7, 7, .55); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-radius: 4px; opacity: 0; }
.ready .transport { animation: fade .8s 1.2s forwards; }
.tp { width: 38px; height: 34px; display: grid; place-items: center; background: transparent; border: 0; border-radius: 3px; color: var(--bone); cursor: pointer; }
.tp:hover { background: rgba(242, 237, 228, .1); }
.tp svg { width: 16px; height: 16px; fill: currentColor; }
.tp.play { width: 46px; background: var(--bone); color: var(--ink); }
.tp.play:hover { background: var(--gold); }
.tp .i-play { display: none; } .tp.is-paused .i-play { display: block; } .tp.is-paused .i-pause { display: none; }
.tp-hint { font-size: 9px; color: var(--dim); padding: 0 8px 0 6px; }
/* rulers between scenes */
.ruler { position: relative; z-index: 2; height: 34px; background: #0b0b0a; border-block: 1px solid var(--line); direction: ltr; overflow: hidden;
  background-image: repeating-linear-gradient(90deg, rgba(242, 237, 228, .22) 0 1px, transparent 1px 120px), repeating-linear-gradient(90deg, rgba(242, 237, 228, .1) 0 1px, transparent 1px 24px);
  background-size: auto 12px, auto 6px; background-position: 0 100%, 0 100%; background-repeat: repeat-x; }
.ruler span { position: absolute; left: var(--gut); top: 7px; font-size: 10px; color: var(--mute); letter-spacing: .16em; }
.ruler::after { content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 2px; background: var(--rec); box-shadow: 0 0 8px rgba(255, 74, 61, .6); transform: translateX(-4px); }
.ruler.in::after { animation: rulerRun 1.6s var(--ease) forwards; }
@keyframes rulerRun { to { transform: translateX(calc(100vw + 4px)); } }
.ruler.reveal { transform: none; }
/* section headings enter like a clip being trimmed open */
.sec-head.reveal h2 { clip-path: inset(0 0 0 100%); transition: clip-path 1.1s var(--ease); }
html[dir="rtl"] .sec-head.reveal h2 { clip-path: inset(0 100% 0 0); }
html[dir] .sec-head.reveal.in h2 { clip-path: inset(0 0 0 0); }
/* razor tool over clips */
.wk { cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='28' viewBox='0 0 28 28'%3E%3Cpath d='M6 22 20 8l2 2L8 24z' fill='%23f2ede4' stroke='%23070707' stroke-width='1.2'/%3E%3Cpath d='M18 6l4 4 2-2-4-4z' fill='%23e9b44c' stroke='%23070707' stroke-width='1.2'/%3E%3C/svg%3E") 4 24, crosshair; }
.cutmark { position: absolute; top: 0; bottom: 0; width: 2px; margin-left: -1px; z-index: 3; background: var(--bone); box-shadow: 0 0 14px rgba(242, 237, 228, .9); animation: cutmark .9s ease-out forwards; pointer-events: none; }
@keyframes cutmark { 0% { opacity: 1; transform: scaleY(0); } 25% { transform: scaleY(1); } 100% { opacity: 0; transform: scaleY(1); } }
/* flags */
.flags { list-style: none; padding: 0; margin: 56px 0 0; display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.flags li { position: relative; line-height: 0; }
.flags img { width: 36px; height: 24px; border-radius: 4px; box-shadow: 0 0 0 1px rgba(242, 237, 228, .22), 0 6px 18px rgba(0, 0, 0, .45); transition: transform .3s var(--ease), box-shadow .3s; }
.flags li:hover img { transform: translateY(-3px); box-shadow: 0 0 0 1px var(--gold), 0 10px 22px rgba(0, 0, 0, .5); }
.flags li[data-tip]::after { content: attr(data-tip); position: absolute; bottom: calc(100% + 10px); left: 50%; transform: translate(-50%, 4px); white-space: nowrap; font: 500 12px/1 var(--body); padding: 6px 9px; border-radius: 3px; background: var(--bone); color: var(--ink); opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; }
.flags li[data-tip]:hover::after { opacity: 1; transform: translate(-50%, 0); }
.flags li.more { line-height: 1; font-size: 13px; color: var(--gold); padding: 5px 11px; border: 1px dashed rgba(233, 180, 76, .6); border-radius: 4px; }
/* client delivery band */
.deliver { position: relative; z-index: 2; background: linear-gradient(180deg, var(--ink), #0d0c0a); padding: 140px 0; border-top: 1px solid var(--line); }
.deliver-in { display: grid; grid-template-columns: 1.1fr .9fr; gap: 60px; align-items: end; }
.deliver .sub { margin-top: 18px; }
.code-form label { display: block; font-size: 14px; color: var(--mute); margin-bottom: 10px; }
.code-row { display: flex; gap: 10px; }
.code-row input { flex: 1; min-width: 0; height: 64px; padding: 0 20px; background: #0f0f0e; border: 1px solid var(--line2); border-radius: 2px; color: var(--bone); font: 600 18px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; }
.code-row input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(233, 180, 76, .18); }
.code-row .btn { height: 64px; }
/* portfolio: one grid, vertical reels span two rows */
.work-grid { grid-auto-flow: dense; }
.work-grid .wk.vert { grid-row: span 2; aspect-ratio: auto; }
@media (max-width: 900px) { .deliver-in { grid-template-columns: 1fr; gap: 36px; } }
@media (max-width: 640px) {
  .transport { bottom: calc(6vh + 8px); } .tp-hint { display: none; } .safe { display: none; }
  .flags img { width: 32px; height: 21px; }
  .work-grid .wk.vert { grid-row: auto; aspect-ratio: 4 / 5; }
}

/* reveal */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* responsive */
@media (max-width: 1100px) {
  .links { gap: 20px; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(3) { border-inline-start: 0; padding-inline-start: 0; }
  .stat { padding-bottom: 30px; border-bottom: 1px solid var(--line); }
  .steps { grid-template-columns: 1fr 1fr 1fr; row-gap: 34px; }
  .steps li:nth-child(4) { padding-inline-start: 0; border-inline-start: 0; }
  .reel-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 900px) {
  .burger { display: flex; }
  .links { position: fixed; inset: 84px 0 auto; flex-direction: column; gap: 0; margin: 0; padding: 8px var(--gut) 24px; background: #070707; border-bottom: 1px solid var(--line); opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .2s, transform .2s, visibility .2s; }
  .links.open { opacity: 1; visibility: visible; transform: none; }
  .links a { padding: 16px 0; font-size: 19px; color: var(--bone); border-bottom: 1px solid var(--line); }
  .links a::after { display: none; }
  .nav { background: rgba(7, 7, 7, .6); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
  .nav-end { margin-inline-start: auto; }
  .nav-end .btn { display: none; }
  .faq-grid { grid-template-columns: 1fr; gap: 10px; }
  .work-grid { grid-template-columns: 1fr 1fr; }
  .seq { display: none; }
  .reel-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 640px) {
  :root { --gut: 18px; }
  body { font-size: 17px; }
  .nav .wrap { height: 72px; }
  .links { inset: 72px 0 auto; }
  .lock .logo { height: 36px; }
  .word { font-size: 38px; }
  .hero { min-height: 640px; }
  .hud .hud-b, .hud .seqname { display: none; }
  html[lang="ar"] .stat b { font-size: 54px; }
  .stat i { font-size: 40px; }
  .stat b { font-size: 76px; }
  .hud .l { left: 36px; } .hud .r { right: 36px; }
  .hero-foot .cta-row { width: 100%; }
  .hero-foot .btn { flex: 1; padding: 0 14px; }
  .manifesto { padding: 110px 0 100px; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat { padding-inline: 14px; }
  .stat .lbl { font-size: 15px; }
  .countries li { font-size: 14px; padding: 6px 13px; }
  .chapter-in { padding-bottom: 64px; }
  .slate .tcr { display: none; }
  .work-grid { grid-template-columns: 1fr; }
  .work-grid.feature .wk:first-child { grid-column: auto; grid-row: auto; aspect-ratio: 4 / 5; }
  .steps { grid-template-columns: 1fr; row-gap: 0; }
  .steps li, .steps li:nth-child(4) { padding: 24px 0; border-inline-start: 0; border-bottom: 1px solid var(--line); }
  .tl-ruler span:nth-child(even) { visibility: hidden; }
  .plugin-in { flex-wrap: wrap; }
  .plugin-in .btn { width: 100%; }
  .contact .btn { width: 100%; }
  .cta-row.center { width: 100%; }
  .foot-in { flex-direction: column; align-items: flex-start; }
  .reel-grid { grid-template-columns: 1fr 1fr; }
  .filters { top: 72px; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: calc(var(--gut) * -1); padding-inline: var(--gut); }
  .filters::-webkit-scrollbar { display: none; }
  .flt { flex: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition: none !important; }
  .reveal, .hero .eyebrow, .hero h1, .hero-foot { opacity: 1; transform: none; }
  .bar { transform: scaleY(1); } .hud { opacity: 1; } .cl { transform: none; }
  html { scroll-behavior: auto; }
}

/* ===== app pages: admin + client delivery ===== */
.app { padding-bottom: 80px; }
.app-bar { position: sticky; top: 0; z-index: 30; background: rgba(7, 7, 7, .85); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.app-bar-in { display: flex; align-items: center; gap: 16px; height: 76px; }
.app-bar .logo { height: 40px; width: auto; }
.app-title { color: var(--gold); margin-inline-end: auto; padding: 4px 8px; border: 1px solid rgba(233, 180, 76, .4); font-size: 10px; }
.app-main { padding-top: 56px; }
.panel { background: #0e0e0d; border: 1px solid var(--line); border-radius: 4px; padding: 28px; }
.panel h2 { font-family: var(--display); font-size: 24px; margin-bottom: 18px; }
.login { max-width: 560px; margin: 6vh auto 0; }
.login h1 { font-size: clamp(44px, 6vw, 76px); margin-bottom: 28px; }
html[lang="en"] .login h1 { font-size: clamp(60px, 8vw, 110px); }
.app label { display: block; font-size: 14px; color: var(--mute); }
.app input:not([type="checkbox"]):not([type="file"]), .app textarea { display: block; width: 100%; margin-top: 8px; padding: 13px 14px; background: #070707; border: 1px solid var(--line2); border-radius: 2px; color: var(--bone); font: 16px/1.5 var(--body); }
.app input:focus, .app textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(233, 180, 76, .16); }
.app input[type="file"] { display: block; margin-top: 8px; color: var(--mute); font: 14px var(--body); }
.app .login .btn { margin-top: 18px; }
.app .code-row input { margin-top: 0; }
.msg { margin-top: 14px; min-height: 1.6em; color: var(--gold); font-size: 15px; }
.notice { padding: 18px 22px; border: 1px dashed var(--line2); border-radius: 4px; color: var(--mute); }
.notice code { color: var(--bone); }
.muted { color: var(--mute); }
.tabs { display: flex; gap: 6px; margin-bottom: 24px; border-bottom: 1px solid var(--line); }
.tab { background: none; border: 0; border-bottom: 2px solid transparent; color: var(--mute); font: 600 16px var(--body); padding: 14px 16px; cursor: pointer; }
.tab.on { color: var(--bone); border-bottom-color: var(--gold); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 20px; align-items: end; margin-bottom: 28px; }
.form-grid h2, .form-grid .full, .form-grid .msg, .form-grid .prog { grid-column: 1 / -1; }
.form-grid .btn { justify-self: start; }
.check { display: flex !important; align-items: center; gap: 10px; color: var(--bone) !important; }
.list { display: grid; gap: 16px; }
.dcard-head { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; }
.dcard h3 { font-family: var(--display); font-size: 22px; }
.code { font-size: 14px; color: var(--gold); padding: 6px 10px; border: 1px solid rgba(233, 180, 76, .35); border-radius: 3px; direction: ltr; white-space: nowrap; }
.row-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0; }
.btn.danger:hover { border-color: var(--rec); color: var(--rec); background: transparent; }
.files { list-style: none; padding: 0; margin: 0 0 16px; border-top: 1px solid var(--line); }
.files li { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.fname { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; direction: ltr; text-align: start; }
.x { width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line2); background: none; color: var(--mute); cursor: pointer; font-size: 18px; line-height: 1; }
.x:hover { color: var(--rec); border-color: var(--rec); }
.uploader { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.uploader input[type="file"] { position: absolute; width: 1px; height: 1px; opacity: 0; }
.uploader input[type="url"] { flex: 1; min-width: 220px; margin-top: 0 !important; padding: 9px 12px !important; font-size: 14px !important; }
.queue { display: grid; gap: 8px; margin-top: 12px; }
.qrow { display: grid; grid-template-columns: 1fr 160px 44px; gap: 12px; align-items: center; font-size: 14px; }
.qrow.bad .fname { color: var(--rec); }
.prog { height: 6px; background: rgba(242, 237, 228, .1); border-radius: 3px; overflow: hidden; }
.prog span { display: block; height: 100%; width: 0; background: var(--gold); transition: width .2s; }
.work-admin { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.wcard { margin: 0; background: #0e0e0d; border: 1px solid var(--line); border-radius: 4px; overflow: hidden; }
.wcard img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.wcard figcaption { display: flex; align-items: center; gap: 8px; padding: 10px 12px; font-size: 14px; }
.wcard figcaption b { flex: 1; }
/* delivery page */
.delivery .app-bar .lang { margin-inline-start: 0; }
.dl-head { margin-bottom: 40px; }
.dl-head h1 { font-size: clamp(48px, 7vw, 110px); font-weight: 900; margin: 6px 0 10px; }
html[lang="en"] .dl-head h1 { font-size: clamp(64px, 9vw, 150px); }
.dl-client { font-size: 20px; color: var(--mute); } .dl-client b { color: var(--bone); }
.dl-note { margin-top: 18px; max-width: 40em; padding: 16px 20px; border-inline-start: 2px solid var(--gold); background: #0e0e0d; color: rgba(242, 237, 228, .9); white-space: pre-line; }
.dl-files { display: grid; grid-template-columns: repeat(auto-fill, minmax(360px, 1fr)); gap: 18px; }
.dl-file { background: #0e0e0d; border: 1px solid var(--line); border-radius: 4px; overflow: hidden; }
.dl-media { position: relative; aspect-ratio: 16 / 9; background: #000 linear-gradient(135deg, #111, #050505); }
.dl-media img, .dl-media iframe { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border: 0; }
.dl-play { position: absolute; inset: 0; margin: auto; width: 76px; height: 76px; border-radius: 50%; border: 1px solid rgba(242, 237, 228, .7); background: rgba(7, 7, 7, .45); cursor: pointer; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.dl-play::after { content: ""; position: absolute; left: 31px; top: 25px; border: 13px solid transparent; border-left: 19px solid var(--bone); border-right: 0; }
.dl-play:hover { background: rgba(233, 180, 76, .85); }
.dl-info { display: flex; align-items: center; gap: 12px; padding: 14px 16px; }
.dl-foot { margin-top: 48px; font-size: 14px; }
@media (max-width: 640px) {
  .form-grid { grid-template-columns: 1fr; }
  .dl-files { grid-template-columns: 1fr; }
  .qrow { grid-template-columns: 1fr 90px 40px; }
  .app-bar .logo { height: 32px; }
}

/* ===== service scenes in 21:9 (same look, cinemascope frame) ===== */
.chapter { height: auto; min-height: 0; aspect-ratio: 21 / 9; max-height: calc(100vh - 110px); top: max(90px, calc(50vh - 21.43vw)); }
.chapter-in { padding-bottom: clamp(36px, 4vw, 72px); }
.chapter h3 { font-size: clamp(52px, 7.4vw, 140px); }
html[lang="en"] .chapter h3 { font-size: clamp(70px, 9.6vw, 184px); }
.services { padding-bottom: 12vh; }
@media (max-width: 900px) {
  .chapter h3 { font-size: clamp(40px, 7vw, 64px); }
  .ch-lead { font-size: 16px; }
  .slate .tcr { display: none; }
}
@media (max-width: 640px) {
  /* phones: the 21:9 frame on top, the words under it */
  .chapter { position: relative; top: auto; aspect-ratio: auto; max-height: none; display: block; box-shadow: none; background: var(--ink); }
  .chapter .full-media { position: relative; inset: auto; aspect-ratio: 21 / 9; }
  .chapter .shade { background: linear-gradient(180deg, transparent 55%, rgba(7, 7, 7, .85)); }
  .chapter-in { padding: 18px 0 44px; }
  .chapter h3 { font-size: 44px; }
  html[lang="en"] .chapter h3 { font-size: 60px; }
  .slate { margin-bottom: 14px; }
  .services { padding-bottom: 20px; }
}

/* ===== breathing room between lines ===== */
html[lang="ar"] .display { line-height: 1.6; }
html[lang="ar"] .hero h1 { line-height: 1.5; }
html[lang="ar"] .chapter h3, html[lang="ar"] .huge, html[lang="ar"] .pf-head h1, html[lang="ar"] .dl-head h1, html[lang="ar"] .login h1 { line-height: 1.55; }
html[lang="en"] .display { line-height: 1.02; }
html[lang="ar"] .big-words { line-height: 1.8; }
html[lang="en"] .big-words { line-height: 1.12; }
.lead, .ch-lead, .sub, .pf-head p:not(.kicker) { line-height: 1.9; }
.eyebrow { margin-bottom: 30px; }
.hero-foot { margin-top: 44px; }
.ch-lead { margin-top: 18px; }
.huge { margin-bottom: 56px; }
.faq summary { line-height: 1.6; }
.steps p, .faq details p { line-height: 1.85; }
.stat .lbl { line-height: 1.6; }
.wk-cap b { line-height: 1.55; }

/* launch offer bar on top of the header (HE. Cut for Premiere) */
.promo { display: block; text-align: center; text-decoration: none; background: var(--gold); color: var(--gold-ink); font-size: 13.5px; line-height: 1.4; padding: 8px 16px; font-weight: 500; position: relative; overflow: hidden; }
.promo b { font-weight: 700; }
.promo span { display: inline-block; margin-inline-start: 6px; transition: transform .3s var(--ease); }
.promo:hover span { transform: translateX(-4px); }
html[lang="en"] .promo:hover span { transform: translateX(4px); }
.promo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 35%, rgba(255, 255, 255, .45) 50%, transparent 65%); transform: translateX(-120%); animation: promoShine 4s 1.5s infinite; pointer-events: none; }
@keyframes promoShine { 0%, 60% { transform: translateX(-120%); } 100% { transform: translateX(120%); } }
.nav.has-promo ~ main .hero-copy, .nav.has-promo ~ main .ap-hero, .nav.has-promo ~ main .pf-head { }
html:has(.nav.has-promo) { scroll-padding-top: 122px; }
.links a.nav-pr { color: var(--gold); }
.links a.nav-pr::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); margin-inline-end: 7px; vertical-align: middle; box-shadow: 0 0 8px var(--gold); animation: blink 1.6s steps(2) infinite; }
@media (max-width: 760px) { .promo { font-size: 12px; padding: 7px 12px; } }
@media (prefers-reduced-motion: reduce) { .promo::after, .links a.nav-pr::before { animation: none; } }

/* legal links + trademark note under the footer */
.foot-legal { padding: 0 0 26px; font-size: 12.5px; color: var(--mute); }
.foot-legal a { color: var(--mute); text-decoration: underline; text-underline-offset: 3px; }
.foot-legal a:hover { color: var(--bone); }
.foot-legal p { margin: 8px 0 0; max-width: 60em; line-height: 1.7; }

/* ---- request a quote (js/quote.js) ---- */
.quote { padding: 110px 0; border-top: 1px solid var(--line); }
.q-form { max-width: 760px; margin-top: 34px; position: relative; }
.q-steps { list-style: none; display: flex; gap: 8px; padding: 0; margin: 0 0 22px; counter-reset: q; }
.q-steps li { flex: 1; font: 600 13px var(--body); color: var(--dim); padding-top: 10px; border-top: 3px solid var(--line2); counter-increment: q; }
.q-steps li::before { content: counter(q) " · "; font-family: var(--mono); }
.q-steps li.on { color: var(--bone); border-top-color: var(--gold); }
.q-step { display: none; border: 0; padding: 0; margin: 0; }
.q-step.on { display: block; animation: qIn .35s var(--ease); }
@keyframes qIn { from { opacity: 0; transform: translateY(8px); } }
.q-step legend { font: 600 22px var(--display); color: var(--bone); margin-bottom: 16px; padding: 0; }
.q-chips { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.q-chips label { cursor: pointer; }
.q-chips input { position: absolute; opacity: 0; pointer-events: none; }
.q-chips span { display: block; padding: 18px 16px; border: 1px solid var(--line2); border-radius: 14px; font: 500 16px var(--body); color: var(--bone); transition: border-color .2s, background .2s; }
.q-chips label:hover span { border-color: var(--gold); }
.q-chips input:checked + span { border-color: var(--gold); background: rgba(233, 180, 76, .1); color: var(--gold); }
.q-chips input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 2px; }
.q-field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 14px; font: 500 14px var(--body); color: var(--mute); }
.q-field input, .q-field select, .q-field textarea { width: 100%; background: var(--ink2); border: 1px solid var(--line2); border-radius: 12px; color: var(--bone); font: 16px var(--body); padding: 13px 14px; }
.q-field input:focus, .q-field select:focus, .q-field textarea:focus { outline: none; border-color: var(--gold); }
.q-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.q-nav { display: flex; gap: 10px; margin-top: 20px; }
.q-msg { min-height: 22px; margin: 12px 0 0; font-size: 14px; color: var(--mute); }
.q-msg.bad { color: #ff8f86; }
.q-done { padding: 28px; border: 1px solid var(--gold); border-radius: 16px; background: rgba(233, 180, 76, .06); display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.q-done b { font: 600 22px var(--display); color: var(--gold); }
.q-done p { margin: 0; color: var(--bone); }
@media (max-width: 700px) { .q-chips { grid-template-columns: 1fr 1fr; } .quote { padding: 80px 0; } }

/* ---- floating WhatsApp button ---- */
.wa-float { position: fixed; z-index: 80; bottom: 22px; inset-inline-start: 22px; width: 56px; height: 56px; border-radius: 50%; background: #25d366; color: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 10px 30px rgba(0, 0, 0, .45); transition: transform .2s; }
.wa-float:hover { transform: scale(1.07); }
.wa-float svg { width: 30px; height: 30px; }
@media (max-width: 700px) { .wa-float { bottom: 16px; inset-inline-start: 16px; width: 52px; height: 52px; } }

/* work page header: the title stays readable over any frame of the reel */
.pf-hero .shade { background: linear-gradient(180deg, rgba(7, 7, 7, .5) 0%, rgba(7, 7, 7, .15) 30%, rgba(7, 7, 7, .7) 62%, rgba(7, 7, 7, .97) 100%) !important; }
.pf-head { position: relative; z-index: 2; padding-bottom: 56px; }
.pf-head .display, .pf-head p { text-shadow: 0 2px 24px rgba(0, 0, 0, .65); }
.pf-head .display { color: var(--bone); opacity: 1 !important; }
.contact-note { margin: 18px auto 0; max-width: 34em; color: rgba(242, 237, 228, .8); font-size: 16px; text-align: center; }

/* ===== clients (logo rows, opposite directions) ===== */
.clients { padding: 120px 0 110px; background: var(--ink); border-bottom: 1px solid var(--line); overflow: hidden; }
.clients h2 { margin: 10px 0 54px; }
.cl-rows { display: grid; gap: 34px; direction: ltr;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent); mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent); }
.cl-row { overflow: hidden; }
.cl-track, .cl-dup { display: flex; align-items: center; gap: 64px; width: max-content; }
.cl-track { animation: marq 70s linear infinite; padding-inline-end: 64px; }
.cl-dup { padding-inline-start: 0; }
.cl-row:nth-child(2) .cl-track { animation-direction: reverse; animation-duration: 64s; }
.cl-rows:hover .cl-track { animation-play-state: paused; }
.cl-track img { height: 46px; width: auto; max-width: 170px; object-fit: contain; opacity: .62; transition: opacity .3s; }
.cl-track img:hover { opacity: 1; }
@media (max-width: 700px) {
  .clients { padding: 80px 0 72px; } .clients h2 { margin-bottom: 36px; }
  .cl-rows { gap: 24px; } .cl-track, .cl-dup { gap: 40px; } .cl-track { padding-inline-end: 40px; }
  .cl-track img { height: 34px; max-width: 120px; }
}
@media (prefers-reduced-motion: reduce) {
  .cl-track { animation: none; flex-wrap: wrap; justify-content: center; width: auto; padding: 0 var(--gut); }
  .cl-dup { display: none; }
}
