/* IROVAST "cine" theme — dark cinematic look: REC intro, big portrait hero, 3D showreel, mono micro-labels.
   Turned on by settings.theme = 'cine'. Colours still come from settings (bg / ink / accent). */
.theme-cine {
  --card: color-mix(in srgb, var(--ink) 5%, var(--bg));
  --line: color-mix(in srgb, var(--ink) 11%, var(--bg));
  --muted: color-mix(in srgb, var(--ink) 58%, var(--bg));
  --font-head: 'Archivo', 'Tajawal', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;
  --radius: 14px;
  background: var(--bg);
}
.theme-cine h1, .theme-cine h2, .theme-cine h3 { font-family: var(--font-head); font-stretch: 112%; font-weight: 800; letter-spacing: -0.01em; }
[dir="rtl"] .theme-cine h1, [dir="rtl"] .theme-cine h2, [dir="rtl"] .theme-cine h3 { font-family: 'Noto Kufi Arabic', 'Tajawal', sans-serif; font-weight: 800; font-stretch: normal; letter-spacing: 0; }
[data-timecode], .cr-count, .ci-meta b { direction: ltr; unicode-bidi: isolate; }
.theme-cine .mono { font-family: var(--font-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; }
[dir="rtl"] .theme-cine .mono { font-family: 'Tajawal', var(--font-mono); letter-spacing: 0; font-size: 13px; font-weight: 700; }
[dir="rtl"] .flip-rtl { display: inline-block; transform: scaleX(-1); }
.theme-cine ::selection { background: var(--accent); color: #fff; }

/* ---------- header ---------- */
.theme-cine .site-header.scrolled { background: color-mix(in srgb, var(--bg) 78%, transparent); }
.theme-cine .nav-pills { background: transparent; border-color: transparent; }
.theme-cine .nav-pills a { font-family: var(--font-head); font-weight: 700; font-stretch: 110%; text-transform: uppercase; font-size: 13px; letter-spacing: .02em; }
[dir="rtl"] .theme-cine .nav-pills a { font-family: 'Tajawal'; font-size: 15px; }
.theme-cine .nav-pills a:hover, .theme-cine .nav-pills a.active { background: transparent; color: var(--accent); box-shadow: inset 0 -2px 0 var(--accent); border-radius: 0; }
.hdr-status { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); white-space: nowrap; }
.hdr-status b { width: 7px; height: 7px; border-radius: 50%; background: #2bd576; box-shadow: 0 0 10px #2bd576; }
.hdr-sound { display: inline-flex; align-items: center; gap: 8px; background: none; border: 0; color: var(--muted); cursor: pointer; white-space: nowrap; }
.hdr-sound i { display: inline-flex; align-items: flex-end; gap: 2px; height: 12px; }
.hdr-sound i b { width: 2px; height: 3px; background: currentColor; }
.hdr-sound[aria-pressed="true"] { color: var(--ink); }
.hdr-sound[aria-pressed="true"] i b { animation: eq .9s ease-in-out infinite alternate; }
.hdr-sound i b:nth-child(2) { animation-delay: -.3s; } .hdr-sound i b:nth-child(3) { animation-delay: -.6s; } .hdr-sound i b:nth-child(4) { animation-delay: -.15s; }
@keyframes eq { from { height: 3px; } to { height: 12px; } }
.theme-cine .lang-switch { background: transparent; border-color: var(--line); }
@media (max-width: 1560px) { .hdr-status { display: none; } }
@media (max-width: 1280px) { .theme-cine .nav-pills a { padding: 7px 10px; font-size: 12px; } }
@media (max-width: 760px) { .hdr-sound span { display: none; } }

/* ---------- REC intro ---------- */
.cine-intro { position: fixed; inset: 0; z-index: 200; background: #050505; color: var(--ink); display: grid; place-items: center; transition: opacity .9s ease, visibility .9s; }
.cine-intro.gone { opacity: 0; visibility: hidden; }
.cine-intro.skip { display: none; }
.ci-blur { position: absolute; inset: 0; overflow: hidden; }
.ci-blur video { width: 100%; height: 100%; object-fit: cover; filter: blur(28px) brightness(.35) saturate(1.2); transform: scale(1.15); }
.ci-c { position: absolute; width: 26px; height: 26px; border: 1.5px solid color-mix(in srgb, var(--ink) 40%, transparent); }
.ci-c.tl { top: 40px; left: 40px; border-right: 0; border-bottom: 0; } .ci-c.tr { top: 40px; right: 40px; border-left: 0; border-bottom: 0; }
.ci-c.bl { bottom: 40px; left: 40px; border-right: 0; border-top: 0; } .ci-c.br { bottom: 40px; right: 40px; border-left: 0; border-top: 0; }
.ci-top, .ci-bot { position: absolute; left: 40px; right: 40px; display: flex; justify-content: space-between; color: var(--muted); }
.ci-top { top: 16px; } .ci-bot { bottom: 16px; }
.rec-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #ff2d2d; vertical-align: 1px; margin-inline-end: 4px; animation: blink 1.2s steps(2) infinite; }
@keyframes blink { 50% { opacity: .15; } }
.ci-mid { position: relative; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 16px; padding: 0 20px; }
.ci-name { font-size: clamp(44px, 8.4vw, 128px); line-height: .9; text-transform: uppercase; letter-spacing: -.01em; }
.ci-tag { color: var(--muted); }
.ci-bar { width: min(420px, 70vw); height: 1px; background: color-mix(in srgb, var(--ink) 15%, transparent); margin-top: 10px; }
.ci-bar i { display: block; height: 100%; width: 0; background: var(--accent); box-shadow: 0 0 12px var(--accent); transition: width .2s linear; }
.ci-meta { width: min(420px, 70vw); display: flex; justify-content: space-between; color: var(--muted); font-size: 10px; }
.ci-open { margin-top: 14px; padding: 13px 52px; border-radius: 999px; background: transparent; color: var(--ink); border: 1px solid var(--accent); cursor: pointer; opacity: .25; pointer-events: none; transition: opacity .4s, background .3s; }
.ci-open.ready { opacity: 1; pointer-events: auto; }
.ci-open:hover { background: var(--accent); color: #fff; }
@media (max-width: 640px) { .ci-c { display: none; } .ci-top, .ci-bot { left: 18px; right: 18px; font-size: 9px; } }

/* ---------- hero ---------- */
.cine-hero { position: relative; min-height: 100svh; display: flex; align-items: flex-end; overflow: hidden; isolation: isolate; padding: calc(var(--header-h) + 40px) clamp(18px, 5vw, 64px) clamp(70px, 10vh, 110px); }
.ch-bg { position: absolute; inset: 0; z-index: -3; }
.ch-bg video, .ch-bg img { width: 100%; height: 100%; object-fit: cover; filter: blur(14px) brightness(.32) saturate(1.1); transform: scale(1.08); }
.ch-portrait { position: absolute; z-index: -2; inset-block: 0; inset-inline-end: 0; width: min(62vw, 980px); }
.ch-portrait img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 34%, #000 82%, transparent 100%), linear-gradient(to bottom, #000 70%, transparent 100%);
  -webkit-mask-composite: source-in; mask-image: linear-gradient(to right, transparent 0%, #000 34%, #000 82%, transparent 100%), linear-gradient(to bottom, #000 70%, transparent 100%); mask-composite: intersect; }
[dir="rtl"] .ch-portrait img { -webkit-mask-image: linear-gradient(to left, transparent 0%, #000 34%, #000 82%, transparent 100%), linear-gradient(to bottom, #000 70%, transparent 100%); mask-image: linear-gradient(to left, transparent 0%, #000 34%, #000 82%, transparent 100%), linear-gradient(to bottom, #000 70%, transparent 100%); }
.cine-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(to top, var(--bg) 0%, transparent 28%), radial-gradient(120% 90% at 0% 100%, color-mix(in srgb, var(--bg) 85%, transparent) 0%, transparent 60%); }
[dir="rtl"] .cine-hero::after { background: linear-gradient(to top, var(--bg) 0%, transparent 28%), radial-gradient(120% 90% at 100% 100%, color-mix(in srgb, var(--bg) 85%, transparent) 0%, transparent 60%); }
.ch-grain { position: absolute; inset: -50%; z-index: -1; pointer-events: none; opacity: .07; animation: grain 1s steps(6) infinite;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
@keyframes grain { 0% { transform: translate(0, 0); } 33% { transform: translate(-3%, 2%); } 66% { transform: translate(2%, -3%); } 100% { transform: translate(0, 0); } }
.ch-content { max-width: 760px; display: flex; flex-direction: column; gap: 18px; }
.ch-label { color: var(--accent); }
.ch-title { font-size: clamp(48px, 7.6vw, 118px); line-height: .9; text-transform: uppercase; display: flex; flex-direction: column; }
[dir="rtl"] .ch-title { line-height: 1.12; font-size: clamp(46px, 7vw, 104px); }
.ch-line { display: block; overflow: hidden; padding-bottom: .04em; }
.ch-line > span { display: inline-block; transform: translateY(105%); transition: transform 1s cubic-bezier(.2,.8,.2,1); }
.ch-line:nth-child(2) > span { transition-delay: .12s; } .ch-line:nth-child(3) > span { transition-delay: .24s; }
.cine-ready .ch-line > span { transform: none; }
.ch-line.accent > span { color: var(--accent); }
.ch-rotate { color: var(--ink); height: 1.4em; overflow: hidden; }
.ch-rotate span { display: inline-block; animation: rot-in .5s ease both; }
@keyframes rot-in { from { transform: translateY(100%); opacity: 0; } to { transform: none; opacity: 1; } }
.ch-sub { color: color-mix(in srgb, var(--ink) 78%, var(--bg)); font-size: clamp(15px, 1.3vw, 18px); max-width: 46ch; }
.ch-ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 6px; }
.theme-cine .btn { border-radius: 999px; font-weight: 600; }
.theme-cine .btn-accent:hover { box-shadow: 0 0 0 1px var(--accent), 0 12px 40px -8px color-mix(in srgb, var(--accent) 70%, transparent); }
.ch-reel { display: inline-flex; align-items: center; gap: 12px; padding: 8px 20px 8px 8px; border-radius: 999px; background: color-mix(in srgb, var(--ink) 8%, transparent); border: 1px solid var(--line); color: var(--ink); font: 600 15px var(--font-body); cursor: pointer; backdrop-filter: blur(8px); }
[dir="rtl"] .ch-reel { padding: 8px 8px 8px 20px; font-family: 'Tajawal'; }
.ch-reel i { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: #fff; font-style: normal; font-size: 12px; }
.ch-reel:hover { border-color: var(--accent); }
.ch-hud { position: absolute; inset-inline-end: clamp(18px, 5vw, 64px); bottom: clamp(24px, 4vh, 40px); display: flex; gap: 22px; color: var(--muted); }
.ch-scroll { position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); color: var(--muted); animation: bob 2s ease-in-out infinite; }
@keyframes bob { 50% { transform: translate(-50%, 5px); } }
@media (max-width: 860px) {
  .cine-hero { align-items: flex-end; padding-bottom: 90px; }
  .ch-portrait { width: 100%; inset-inline-end: 0; opacity: .75; }
  .ch-portrait img { object-position: 50% 15%; -webkit-mask-image: linear-gradient(to bottom, #000 45%, transparent 85%); mask-image: linear-gradient(to bottom, #000 45%, transparent 85%); }
  .ch-hud span:last-child { display: none; }
  .ch-hud { inset-inline-start: 18px; justify-content: space-between; bottom: 52px; }
  .ch-scroll { display: none; }
}

/* ---------- showreel cover-flow ---------- */
.cine-reel { position: relative; padding: clamp(60px, 8vw, 110px) clamp(18px, 4vw, 48px) 40px; overflow: hidden;
  background: radial-gradient(70% 60% at 50% 55%, color-mix(in srgb, var(--accent) 7%, var(--bg)) 0%, var(--bg) 70%); }
.cine-reel::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .35;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(60% 55% at 50% 60%, #000, transparent); mask-image: radial-gradient(60% 55% at 50% 60%, #000, transparent); }
.cr-head { position: relative; display: flex; justify-content: space-between; align-items: flex-start; max-width: 1400px; margin: 0 auto; }
.cr-title { font-size: clamp(30px, 4vw, 54px); text-transform: uppercase; color: var(--accent); line-height: 1; }
.cr-sub { color: var(--muted); display: block; margin-top: 8px; }
.cr-count { font: 800 clamp(40px, 6vw, 84px)/1 var(--font-head); font-stretch: 112%; display: flex; align-items: flex-start; }
.cr-count span { font-size: .3em; color: var(--muted); margin-top: .3em; margin-inline-start: 4px; }
.cr-body { position: relative; display: grid; grid-template-columns: minmax(240px, 320px) 1fr; gap: 24px; align-items: center; max-width: 1400px; margin: 10px auto 0; }
.cr-info { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; z-index: 5; }
.cr-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.cr-chips .chip { background: transparent; border: 1px solid var(--line); color: var(--muted); padding: 6px 10px; border-radius: 999px; }
.cr-chips .chip:first-child { border-color: color-mix(in srgb, var(--accent) 60%, transparent); color: var(--accent); }
.cr-name { font-size: clamp(26px, 3vw, 40px); text-transform: uppercase; line-height: 1; }
[dir="rtl"] .cr-name { line-height: 1.25; }
.cr-desc { color: var(--muted); font-size: 15px; min-height: 1.6em; }
.cr-stage { position: relative; height: clamp(360px, 62vh, 620px); perspective: 1600px; outline: none; touch-action: pan-y; cursor: grab; }
.cr-stage:active { cursor: grabbing; }
.cr-card { position: absolute; top: 50%; left: 50%; height: 88%; border-radius: 12px; overflow: hidden; background: #000;
  border: 1px solid color-mix(in srgb, var(--ink) 16%, transparent); box-shadow: 0 40px 80px -30px #000;
  transition: transform .8s cubic-bezier(.2,.7,.2,1), opacity .8s, filter .8s; will-change: transform; cursor: pointer; }
.cr-card.v { aspect-ratio: 9 / 16; }
.cr-card.h { aspect-ratio: 16 / 9; height: auto; width: min(64%, 760px); }
.cr-card video { width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; }
.cr-card.on { border-color: color-mix(in srgb, var(--accent) 70%, transparent); box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent) 40%, transparent), 0 40px 90px -30px color-mix(in srgb, var(--accent) 45%, #000); }
.cr-hint { position: relative; text-align: center; color: var(--muted); margin: 18px 0 14px; }
.cr-bar { position: relative; display: flex; align-items: center; gap: 14px; max-width: 1400px; margin: 0 auto; }
.cr-arrow { flex: none; width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line); background: transparent; color: var(--ink); cursor: pointer; font-size: 16px; }
.cr-arrow:hover { border-color: var(--accent); color: var(--accent); }
.cr-thumbs { flex: 1; display: flex; gap: 8px; justify-content: center; overflow-x: auto; scrollbar-width: none; padding: 4px; }
.cr-thumb { position: relative; flex: none; height: 54px; border-radius: 6px; overflow: hidden; border: 1px solid var(--line); background: #111; padding: 0; cursor: pointer; opacity: .55; transition: opacity .3s, border-color .3s; }
.cr-thumb.v { aspect-ratio: 9 / 16; } .cr-thumb.h { aspect-ratio: 16 / 9; }
.cr-thumb img { width: 100%; height: 100%; object-fit: cover; }
.cr-thumb i { position: absolute; left: 0; bottom: 0; height: 2px; width: 0; background: var(--accent); }
.cr-thumb.on { opacity: 1; border-color: var(--accent); }
.cr-thumb.on i { animation: fillbar var(--dur, 8s) linear forwards; }
.cr-paused .cr-thumb.on i { animation-play-state: paused; }
@keyframes fillbar { to { width: 100%; } }
@media (max-width: 860px) {
  .cr-body { grid-template-columns: 1fr; }
  .cr-info { order: 2; align-items: center; text-align: center; }
  .cr-stage { height: 58vh; }
  .cr-card.h { width: 86%; }
  .cr-thumbs { justify-content: flex-start; }
}

/* ---------- shared section heads ---------- */
.cine-head { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 10px; margin-bottom: 44px; }
.cine-head .kicker { color: var(--accent); }
.cine-head h2 { font-size: clamp(34px, 5.4vw, 72px); text-transform: uppercase; line-height: .95; }
.cine-head .rule { width: 46px; height: 2px; background: var(--accent); }
.theme-cine .section-head h2 { text-transform: uppercase; font-size: clamp(34px, 5.4vw, 72px); line-height: .95; }
[dir="rtl"] .theme-cine .section-head h2, [dir="rtl"] .cine-head h2 { line-height: 1.2; }
.theme-cine .section-index { font-family: var(--font-mono); font-weight: 600; letter-spacing: .2em; }

/* ---------- clients ---------- */
.cl-grid { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.cl-cell { display: grid; place-items: center; min-height: 110px; padding: 18px; border-inline-end: 1px solid var(--line); border-bottom: 1px solid var(--line); text-align: center; transition: background .3s; }
.cl-cell span { font: 800 clamp(15px, 1.5vw, 20px)/1.15 var(--font-head); font-stretch: 108%; text-transform: uppercase; color: color-mix(in srgb, var(--ink) 55%, var(--bg)); transition: color .3s; }
.cl-cell:hover { background: color-mix(in srgb, var(--accent) 6%, transparent); }
.cl-cell:hover span { color: var(--ink); }
.cl-grid .cl-cell:nth-child(4n) { border-inline-end: 0; }
@media (max-width: 760px) { .cl-grid { grid-template-columns: repeat(2, 1fr); } .cl-grid .cl-cell:nth-child(4n) { border-inline-end: 1px solid var(--line); } .cl-grid .cl-cell:nth-child(2n) { border-inline-end: 0; } }

/* ---------- existing sections in the dark theme ---------- */
.theme-cine .about-grid { align-items: center; }
.theme-cine .about-img { border-radius: var(--radius); aspect-ratio: 4 / 5; object-fit: cover; width: 100%; box-shadow: -30px 30px 80px -30px color-mix(in srgb, var(--accent) 55%, transparent); }
.theme-cine .stat-value { font-family: var(--font-head); font-stretch: 112%; font-weight: 800; }
.theme-cine .service-card, .theme-cine .pack-card { background: var(--card); border-color: var(--line); }
.theme-cine .service-card:hover { border-color: color-mix(in srgb, var(--accent) 50%, transparent); }
.theme-cine .sc-device { border-color: #1d1d1f; background: #1d1d1f; }
.theme-cine .sc-name { color: var(--ink); text-transform: uppercase; }
.theme-cine .work-wall .work-card { box-shadow: 0 0 0 1px var(--line); }
.theme-cine .filter-pills .pill { background: transparent; border-color: var(--line); color: var(--muted); }
.theme-cine .filter-pills .pill.on { background: var(--accent); border-color: var(--accent); color: #fff; }
.theme-cine .contact { text-align: start; }
.theme-cine .contact-title { text-transform: uppercase; font-size: clamp(40px, 6.4vw, 92px); line-height: .92; }
.theme-cine .contact-form input, .theme-cine .contact-form textarea { background: var(--card); border-color: var(--line); color: var(--ink); }
.theme-cine .site-footer { border-top: 1px solid var(--line); }
.theme-cine .lightbox { background: rgba(0, 0, 0, .92); }
.theme-cine .skill-bar { background: var(--line); }
.theme-cine .skill-bar i { background: var(--accent); }

/* ---------- hero: one wide cinematic picture / loop ---------- */
.ch-wide { position: absolute; inset: 0; z-index: -3; overflow: hidden; }
.ch-wide img, .ch-wide video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 62% 50%; }
.ch-wide video { opacity: 0; transition: opacity 1.2s; }
.ch-wide video.playing { opacity: 1; }
[dir="rtl"] .ch-wide img, [dir="rtl"] .ch-wide video { transform: scaleX(-1); }
.cine-hero.wide { align-items: center; }
.cine-hero.wide .ch-content { margin-top: 4vh; }
.cine-hero.wide::after { background: linear-gradient(to top, var(--bg) 0%, transparent 22%), linear-gradient(to right, color-mix(in srgb, var(--bg) 70%, transparent) 0%, transparent 46%); }
[dir="rtl"] .cine-hero.wide::after { background: linear-gradient(to top, var(--bg) 0%, transparent 22%), linear-gradient(to left, color-mix(in srgb, var(--bg) 70%, transparent) 0%, transparent 46%); }
.cine-ready .ch-wide img, .cine-ready .ch-wide video { animation: heroPush 18s ease-out both; }
[dir="rtl"] .cine-ready .ch-wide img, [dir="rtl"] .cine-ready .ch-wide video { animation-name: heroPushRtl; }
@keyframes heroPush { from { transform: scale(1.08); } to { transform: scale(1); } }
@keyframes heroPushRtl { from { transform: scaleX(-1) scale(1.08); } to { transform: scaleX(-1) scale(1); } }
@media (max-width: 860px) {
  .cine-hero.wide { align-items: flex-end; }
  .ch-wide img, .ch-wide video { object-position: 66% 50%; height: 62%; }
  .cine-hero.wide::after { background: linear-gradient(to top, var(--bg) 0%, var(--bg) 38%, transparent 64%); }
  [dir="rtl"] .cine-hero.wide::after { background: linear-gradient(to top, var(--bg) 0%, var(--bg) 38%, transparent 64%); }
}

/* ---------- phones: the vertical cut fills the whole hero, text sits on its dark floor ---------- */
.ch-wide picture { position: absolute; inset: 0; }
@media (max-width: 860px) and (orientation: portrait) {
  .cine-hero.has-v .ch-wide img, .cine-hero.has-v .ch-wide video { height: 100%; object-position: 50% 0%; }
  .cine-hero.has-v::after, [dir="rtl"] .cine-hero.has-v::after { background: linear-gradient(to top, var(--bg) 0%, color-mix(in srgb, var(--bg) 92%, transparent) 34%, color-mix(in srgb, var(--bg) 55%, transparent) 50%, transparent 66%); }
  .cine-hero.has-v .ch-wide img, .cine-hero.has-v .ch-wide video { height: 78%; }
  .cine-hero.has-v .ch-title { font-size: clamp(40px, 12vw, 64px); }
}

/* ---------- editorial serif for film titles ---------- */
.theme-cine { --font-serif: 'Instrument Serif', 'Noto Kufi Arabic', serif; }
.serif { font-family: var(--font-serif); font-weight: 400; font-style: italic; letter-spacing: -0.01em; font-stretch: normal; text-transform: none; }
[dir="rtl"] .serif { font-family: 'Noto Kufi Arabic', serif; font-style: normal; font-weight: 600; }
.theme-cine .cr-name, .theme-cine .work-wall .work-info h3 { font-family: var(--font-serif); font-style: italic; font-weight: 400; text-transform: none; letter-spacing: 0; }
.theme-cine .cr-name { font-size: clamp(34px, 3.6vw, 54px); }
.theme-cine .work-wall .work-info h3 { font-size: 21px; }
[dir="rtl"] .theme-cine .cr-name, [dir="rtl"] .theme-cine .work-wall .work-info h3 { font-family: 'Noto Kufi Arabic', serif; font-style: normal; font-weight: 700; }

/* ---------- PLAY cursor ---------- */
.cine-cursor { position: fixed; left: 0; top: 0; z-index: 300; pointer-events: none; opacity: 0; transition: opacity .3s; }
.cine-cursor.on { opacity: 1; }
.cine-cursor span { position: absolute; left: 0; top: 0; translate: -50% -50%; display: grid; place-items: center; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); color: transparent; font: 600 11px/1 var(--font-mono); letter-spacing: .12em; white-space: nowrap; overflow: hidden; transition: width .35s cubic-bezier(.2,.8,.2,1), height .35s cubic-bezier(.2,.8,.2,1), color .2s; }
.cine-cursor.play span { width: 84px; height: 84px; color: #fff; }
.has-cine-cursor .cr-card, .has-cine-cursor .work-card, .has-cine-cursor .wl-row, .has-cine-cursor .fs-view { cursor: none; }

/* ---------- logo wipe between pages ---------- */
.cine-wipe { position: fixed; inset: 0; z-index: 400; pointer-events: none; display: grid; place-items: center; background: var(--accent); clip-path: circle(0 at var(--x, 50%) var(--y, 50%)); }
.cine-wipe b { font: 800 clamp(48px, 12vw, 180px)/1 var(--font-head); font-stretch: 112%; color: #0a0a0b; transform: scale(.6); opacity: 0; transition: transform .6s cubic-bezier(.2,.8,.2,1), opacity .3s; }
.cine-wipe b i { font-style: normal; color: #fff; }
.cine-wipe.in { clip-path: circle(150% at var(--x, 50%) var(--y, 50%)); transition: clip-path .65s cubic-bezier(.7,0,.3,1); pointer-events: auto; }
.cine-wipe.in b, .cine-wipe.cover b { transform: scale(1); opacity: 1; }
.cine-wipe.cover { clip-path: inset(0); }
.cine-wipe.out { clip-path: inset(0 0 100% 0); transition: clip-path .8s cubic-bezier(.7,0,.3,1); }
.cine-wipe.out b { transform: translateY(-30px); opacity: 0; transition: all .5s; }

/* ---------- idle showreel ---------- */
.cine-idle { position: fixed; inset: 0; z-index: 250; background: #000; opacity: 0; visibility: hidden; transition: opacity 1.2s, visibility 1.2s; }
.cine-idle.on { opacity: 1; visibility: visible; }
.cine-idle video { width: 100%; height: 100%; object-fit: cover; }
.cine-idle .ci-top, .cine-idle .ci-bot { color: #fff; text-shadow: 0 1px 8px #000; }

/* ---------- film-strip work scroll ---------- */
.cine-strip { position: relative; height: calc(var(--n) * 85vh + 100vh); --vw: min(26vw, 340px); --vh: calc(var(--vw) * 4 / 3); --gap: 26px; }
.fs-sticky { position: sticky; top: 0; height: 100vh; overflow: hidden; isolation: isolate; }
.fs-bgs, .fs-bg { position: absolute; inset: 0; }
.fs-bgs { z-index: -2; }
.fs-bg { opacity: 0; transition: opacity .8s; }
.fs-bg.on { opacity: 1; }
.fs-bg img { width: 100%; height: 100%; object-fit: cover; filter: blur(30px) brightness(.38) saturate(1.2); transform: scale(1.15); }
.fs-sticky::after { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(70% 70% at 50% 50%, transparent, var(--bg) 95%), linear-gradient(var(--bg), transparent 18%, transparent 82%, var(--bg)); }
.fs-head { position: absolute; top: calc(var(--header-h) + 14px); inset-inline-start: clamp(18px, 4vw, 48px); z-index: 3; }
.fs-head .kicker { color: var(--accent); }
.fs-head h2 { font-size: clamp(26px, 3vw, 40px); text-transform: uppercase; line-height: 1; }
.fs-track { position: absolute; inset: 0 auto 0 50%; width: var(--vw); translate: -50% 0; z-index: 0;
  background: repeating-linear-gradient(to bottom, transparent 0 10px, color-mix(in srgb, var(--ink) 22%, transparent) 10px 16px) left 6px top/5px 100% no-repeat,
              repeating-linear-gradient(to bottom, transparent 0 10px, color-mix(in srgb, var(--ink) 22%, transparent) 10px 16px) right 6px top/5px 100% no-repeat; padding-inline: 18px; }
.fs-reel { position: absolute; left: 18px; right: 18px; top: 50%; will-change: transform; }
.fs-frame { height: calc(var(--vh) * .86); margin-bottom: calc(var(--gap) + var(--vh) * .14); border-radius: 4px; overflow: hidden; opacity: .45; filter: grayscale(.4); }
.fs-frame img { width: 100%; height: 100%; object-fit: cover; }
.fs-view { position: absolute; left: 50%; top: 50%; width: var(--vw); height: var(--vh); translate: -50% -50%; z-index: 2; padding: 0; border: 1px solid color-mix(in srgb, var(--ink) 35%, transparent); border-radius: 6px; overflow: hidden; background: #000; box-shadow: 0 40px 100px -30px #000; }
.fs-view video { width: 100%; height: 100%; object-fit: cover; display: block; transition: opacity .4s; }
.fs-view.swap video { opacity: 0; }
.fs-corner { position: absolute; width: 16px; height: 16px; border: 2px solid var(--accent); }
.fs-corner.tl { top: 8px; left: 8px; border-right: 0; border-bottom: 0; } .fs-corner.tr { top: 8px; right: 8px; border-left: 0; border-bottom: 0; }
.fs-corner.bl { bottom: 8px; left: 8px; border-right: 0; border-top: 0; } .fs-corner.br { bottom: 8px; right: 8px; border-left: 0; border-top: 0; }
.fs-item { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.fs-title { position: absolute; inset: 0; display: grid; grid-template-columns: 1fr calc(var(--vw) + 48px) 1fr; align-items: center; font-size: clamp(36px, 5.2vw, 88px); line-height: .95; color: var(--ink); }
.fs-a { grid-column: 1; text-align: end; padding-inline: 4vw 0; }
.fs-b { grid-column: 3; text-align: start; padding-inline: 0 4vw; }
.fs-a, .fs-b { opacity: 0; transform: translateY(30px); transition: opacity .5s, transform .7s cubic-bezier(.2,.8,.2,1); }
.fs-item.on .fs-a, .fs-item.on .fs-b { opacity: 1; transform: none; }
.fs-item.on .fs-b { transition-delay: .06s; }
.fs-top, .fs-bot { position: absolute; left: 50%; width: calc(var(--vw) + 120px); translate: -50% 0; display: flex; justify-content: space-between; gap: 12px; color: var(--muted); opacity: 0; transition: opacity .4s; }
.fs-top { top: calc(50% - var(--vh) / 2 - 30px); }
.fs-bot { top: calc(50% + var(--vh) / 2 + 14px); }
.fs-desc { flex: 1; text-align: center; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fs-item.on .fs-top, .fs-item.on .fs-bot { opacity: 1; }
.fs-hud { position: absolute; bottom: 22px; inset-inline-start: clamp(18px, 4vw, 48px); display: flex; gap: 22px; color: var(--muted); z-index: 3; }
.fs-all { position: absolute; bottom: 18px; inset-inline-end: clamp(18px, 4vw, 48px); z-index: 4; padding: 10px 18px; border: 1px solid var(--line); border-radius: 999px; color: var(--ink); }
.fs-all:hover { border-color: var(--accent); color: var(--accent); }
@media (max-width: 860px) {
  .cine-strip { --vw: min(58vw, 280px); }
  .fs-title { grid-template-columns: 1fr; grid-template-rows: 1fr calc(var(--vh) + 90px) 1fr; text-align: center; font-size: clamp(30px, 9vw, 44px); }
  .fs-a { grid-row: 1; grid-column: 1; align-self: end; text-align: center; padding: 0 16px 6px; }
  .fs-b { grid-row: 3; grid-column: 1; align-self: start; text-align: center; padding: 6px 16px 0; }
  .fs-top, .fs-bot { width: calc(var(--vw) + 40px); }
  .fs-track { display: none; }
  .fs-hud span:last-child { display: none; }
}

/* ---------- All work: hover-to-play list ---------- */
.cine-work { max-width: 1400px; padding-top: calc(var(--header-h) + 50px); }
.cw-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: 34px; }
.cw-head .kicker { color: var(--accent); }
.cw-head h1 { font-size: clamp(48px, 9vw, 140px); text-transform: uppercase; line-height: .9; }
.cw-hint { color: var(--muted); margin-top: 12px; }
.cw-tools { display: flex; flex-direction: column; align-items: flex-end; gap: 14px; }
.cw-mode { display: flex; gap: 8px; align-items: center; color: var(--muted); }
.cw-mode button { background: none; border: 0; color: var(--muted); font: inherit; cursor: pointer; padding: 4px; }
.cw-mode button.on { color: var(--ink); box-shadow: inset 0 -1px 0 var(--accent); }
.hover-only, .touch-only { display: none; }
@media (hover: hover) { .hover-only { display: inline; } }
@media (hover: none) { .touch-only { display: inline; } }
.wl-list { list-style: none; border-top: 1px solid var(--line); }
.wl-row { display: grid; grid-template-columns: 52px 0 1fr auto 70px; align-items: center; gap: 18px; padding: 14px 6px; border-bottom: 1px solid var(--line); cursor: pointer; transform: none !important; transition: background .3s, padding .3s; }
.wl-row.hide { display: none; }
.wl-n, .wl-c, .wl-o { color: var(--muted); }
.wl-o { text-align: end; }
.wl-thumb { width: 0; height: 0; opacity: 0; }
.wl-t { font-size: clamp(26px, 3.4vw, 52px); line-height: 1.05; transition: color .25s, transform .4s cubic-bezier(.2,.8,.2,1); }
.wl-row:hover { background: color-mix(in srgb, var(--accent) 6%, transparent); }
.wl-row:hover .wl-t { color: var(--accent); transform: translateX(12px); }
[dir="rtl"] .wl-row:hover .wl-t { transform: translateX(-12px); }
.wl-preview { position: fixed; left: 0; top: 0; z-index: 60; width: 260px; aspect-ratio: 9 / 16; border-radius: 10px; overflow: hidden; pointer-events: none; opacity: 0; scale: .85; transition: opacity .25s, scale .35s cubic-bezier(.2,.8,.2,1); box-shadow: 0 30px 80px -20px #000; background: #000; }
.wl-preview.h { width: 380px; aspect-ratio: 16 / 9; }
.wl-preview.on { opacity: 1; scale: 1; }
.wl-preview video { width: 100%; height: 100%; object-fit: cover; }
.cw-grid .portfolio { padding-top: 0; }
@media (hover: none), (max-width: 760px) {
  .wl-row { grid-template-columns: 64px 1fr; grid-template-rows: auto auto; gap: 4px 14px; }
  .wl-n, .wl-o { display: none; }
  .wl-thumb { grid-row: 1 / 3; width: 64px; height: 86px; opacity: 1; object-fit: cover; border-radius: 6px; background: var(--card); }
  .wl-t { font-size: 24px; }
  .wl-c { grid-column: 2; }
  .cw-tools { align-items: flex-start; }
}
.theme-cine .wl-row { background: transparent; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; box-shadow: none; overflow: visible; }
.theme-cine .wl-row:hover { background: color-mix(in srgb, var(--accent) 6%, transparent); box-shadow: none; }

/* ---------- scroll fly-in: the camera flies through the arches and lands on the hero ---------- */
.cine-fly { position: relative; height: 280vh; }
.cine-fly > .cine-hero { position: sticky; top: 0; height: 100vh; min-height: 0; }
.ch-fly { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 2; transition: opacity .6s; }
.cine-fly.landed .ch-fly { opacity: 0; }
.cine-hero.is-fly .ch-content, .cine-hero.is-fly .ch-hud { transition: opacity .6s, transform .8s cubic-bezier(.2,.8,.2,1); }
.cine-fly:not(.landed) .ch-content { opacity: 0; transform: translateY(40px); pointer-events: none; }
.cine-fly:not(.landed) .ch-line > span { transform: translateY(105%); }
.cine-fly:not(.landed) .ch-wide img, .cine-fly:not(.landed) .ch-wide video { animation: none; }
.ch-flycap { position: absolute; inset: 0; z-index: 3; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; text-align: center; pointer-events: none; transition: opacity .5s; }
.ch-flycap span { color: color-mix(in srgb, var(--ink) 70%, transparent); }
.ch-flycap b { font-size: clamp(54px, 9vw, 150px); line-height: 1; color: var(--ink); text-shadow: 0 10px 60px rgba(0, 0, 0, .6); }
.cine-fly.landed .ch-flycap { opacity: 0; }
.cine-fly .ch-scroll { z-index: 4; }
@media (prefers-reduced-motion: reduce) {
  .cine-fly { height: auto; }
  .ch-fly, .ch-flycap { display: none; }
  .cine-fly:not(.landed) .ch-content { opacity: 1; transform: none; }
}
.sc-links { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.store-btn { display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px 8px 12px; border-radius: 12px; background: #000; color: #fff; border: 1px solid color-mix(in srgb, #fff 22%, transparent); line-height: 1.1; transition: border-color .2s, transform .2s; }
.store-btn:hover { border-color: var(--accent); transform: translateY(-2px); }
.store-btn i { font-style: normal; font-size: 22px; width: 22px; text-align: center; }
.store-btn span { display: flex; flex-direction: column; font: 600 15px var(--font-body); }
.store-btn small { font-size: 10px; font-weight: 500; opacity: .75; }
/* Instagram reels open as a tall player */
.lb-media:has(.ig-embed) { aspect-ratio: auto; width: min(420px, 92vw); height: min(760px, 86vh); margin-inline: auto; background: #fff; }
.lb-media .ig-embed { width: 100%; height: 100%; }
.theme-cine .lightbox { background: rgba(5, 5, 6, .95); backdrop-filter: blur(10px); }
/* serif titles must win over the bold heading font */
.theme-cine .serif { font-family: var(--font-serif); font-weight: 400; font-style: italic; font-stretch: normal; text-transform: none; letter-spacing: -0.01em; }
[dir="rtl"] .theme-cine .serif { font-family: 'Noto Kufi Arabic', serif; font-style: normal; font-weight: 600; }
.cr-thumbs { position: relative; }
