/* Kandeel show deck — 41 scenes (ex-PowerPoint), same 2:1 stage sizing language as led.css (cqh/cqw of its own box). */
#deck { position: fixed; inset: 0; z-index: 25; display: none; background: #000; }
#deck.on { display: grid; place-items: center; }
/* MFZ_PA 2026-11-16 (MFZ sent the real JW Marriott stage photo — "respect the LED screen size as per
   the stage design"): REVERTS the 2026-11-14 "10x3 m" fork. Measuring the actual photo (screen
   left/right/top/bottom edges against the visible truss + stage floor) gives ~1.9:1, matching the
   ORIGINAL 8x4 m / 2:1 assumption, not the 10x3 m (3.33:1) ultra-wide banner this was changed to.
   The 10x3 fork was never corroborated by a real photo — this one is. Back to 2:1 (min(100vw,200vh) /
   min(50vw,100vh)). See the same photo-driven fix in led.css (#st, #speakercard .spk-stage). */
.dwrap { position: relative; width: min(100vw, 250vh); height: min(40vw, 100vh); /* MFZ_PA v5 2026-11-16: 10x4 m / 2.5:1, MFZ NEW SPEC (6720x2688 @ 672px/m) overrides the 2:1 stage-photo measurement below (was 8x4m) */ container-type: size; overflow: hidden;
  /* V7 (2026-11-16, Fable spec non-negotiable #4): flat espresso, no radial gradient/vignette — the
     old warm-gold radial glow is exactly what the spec calls out to kill on inner scenes. */
  background: var(--esp); }
#deckfx { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 8; }
/* MFZ_PA 2026-11-16 (MFZ: "lift data up, the speaker will be sitting in front of the screen"): the
   real stage photo shows the head table + 6 chairs covering roughly the BOTTOM 40-45% of the screen
   height. Old bottom inset (7cqh) let content run to ~93% down — straight into the blocked band.
   New bottom inset (46cqh) caps all .dcontent-flow content at ~54% down, with a safety margin above
   where seated speakers' heads/shoulders reach. Combined with the 2:1 revert above (a physically
   TALLER screen than the old 10:3 assumption), this still leaves a generous ~41cqh-tall content band. */
/* V5 (2026-11-16): default changed from justify-content:center to flex-start. These scenes render
   LIVE for the first time in this show's history as of v5 (every one of them was a baked PDF image
   before, so this overflow risk never surfaced) — a vertically CENTRED tall content block (kicker +
   9cqh title + a 6-tile stat grid, on scene 12) overflowed past the top of this box into the header
   band above it (.dhead/.showcredit), caught in the v5 screenshot pass. Top-anchoring means any
   future overflow runs toward the bottom instead, which has a huge safety margin before the 46cqh
   floor line. `.k-cover`/`.k-thanks` below explicitly restore centring — both are short, single-
   purpose screens with no overflow risk, and centring is the right look for them. */
/* V7 (2026-11-16, Fable spec): content band is now y480→1950 of the 6720×2688 canvas (was a much
   more conservative 13cqh/46cqh insets, left over from an earlier "head table blocks ~45% of the
   screen" assumption that Fable's spec explicitly supersedes — the real dead zone is just the bottom
   1m/672px, y2016-2688). top=480/26.88=17.86cqh, bottom=(2688-1950)/26.88=27.46cqh, sides=240/67.2=
   3.571cqw. This taller band is what makes the new 1470px-tall image cards / cream panels fit. */
.dcontent { position: absolute; inset: 17.86cqh 3.571cqw 27.46cqh 3.571cqw; z-index: 2; display: flex; flex-direction: column; justify-content: flex-start;
  animation: din .5s ease both; }
@keyframes din { from { opacity: 0; transform: translateY(1.6cqh); } to { opacity: 1; transform: none; } }

/* ── V7 (2026-11-16, Fable spec): "very subtle 1px cream-at-4%-opacity grid texture, ~470px cells,
   no need for a separate texture image file". Replaces the old gold-tinted non-square grid + its
   radial mask (non-negotiable #4: no vignette) — flat, uniform, same on every inner scene. Cell =
   470px → 470/67.2=6.994cqw, 470/26.88=17.485cqh (square once the canvas renders at its real
   6720×2688 size); line ≈1px → .015cqw / .0372cqh. Sits at z-index 0 (below .d-herobg at z1, below
   .dcontent at z2) — real-photo scenes (cover/closing/film) simply paint over it. */
.dwrap::before { content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image: repeating-linear-gradient(90deg, rgba(248,241,231,.04) 0, rgba(248,241,231,.04) .015cqw, transparent .015cqw, transparent 6.994cqw),
    repeating-linear-gradient(0deg, rgba(248,241,231,.04) 0, rgba(248,241,231,.04) .0372cqh, transparent .0372cqh, transparent 17.485cqh); }
/* Q&A scene (14) sits on a flat rust background instead of espresso — same grid motif on top. */
#deck.k-qa .dwrap { background: var(--rust); }

/* ── V5: real-photo hero background, used only for scenes carrying `heroBg` in deck-data.mjs (never
   fabricated imagery — see deck.js). Full-bleed, dark gradient scrim baked in for text contrast,
   sits above the grid-motif (z1 > z0) and below all text content (z2). Toggled via the "on" class +
   inline background-image (set by deck.js render()). */
.d-herobg { position: absolute; inset: 0; z-index: 1; opacity: 0; transition: opacity .5s ease;
  background-size: cover; background-position: center; pointer-events: none; }
.d-herobg.on { opacity: 1; }
/* V7 (2026-11-16, Fable spec, scenes 1/15): "darkened with an espresso multiply overlay (~70%
   opacity) fading to solid #291811 toward the bottom so the stage zone is dark and quiet". Scene 13
   no longer uses .d-herobg (it's a letterboxed `cardImg` card now, see .film-card) so the old
   .poster-fit override is dead but harmless — left in place, unused. */
.d-herobg::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(41,24,17,.5) 0%, rgba(41,24,17,.72) 55%, rgba(41,24,17,.97) 100%); }

/* ── V5 cover — 3-thirds layout (MFZ correction 2026-11-16: COVER ONLY, every other scene is a free
   full-width layout). Left third = Gridline logo, right third = Kandeel Developments logo, both
   persistent/static (markup in led.html, .ct-side); centre third = event info, reusing #dcontent
   itself (just narrowed to the middle 1/3 below). The ambient skyline/twinkle motion (cover-motion.css,
   #deck.k-cover .cover-stage) still plays across the FULL stage behind all three columns — the
   thirds are a content grid, not three separate flat panels, which reads far more premium than three
   solid blocks. All thirds respect the same bottom:46cqh safe line as every other scene (well clear
   of the 1m/25cqh physical floor minimum — see cover-motion / dcontent comments). */
#deck.k-cover .dwrap { background: #060402; } /* cover-motion.css also sets this; harmless duplicate, kept for clarity if that file is ever removed */
/* the small .dhead Kandeel logo would otherwise duplicate the large one now sitting in the cover's
   own right-third column (.ct-right) — hide it on this one scene only. */
#deck.k-cover .dhead { display: none; }
/* `align-items` deliberately left at the base rule's default (stretch, i.e. NOT set here) — setting
   align-items:center on a column flexbox makes children size to their own content (shrink-to-fit)
   instead of the container's width, which let the Arabic headline spill out of the 33.334cqw column
   and overlap the left logo third (caught in the first v5 screenshot pass). `text-align:center`
   alone correctly centres the TEXT while each line's box still stretches to fill (and wrap inside)
   the full column width. `justify-content:flex-start` + top padding replaces the base rule's
   vertical centering — a tall centred block was overflowing past the TOP edge of the physical
   screen (also caught in that same screenshot pass); top-anchoring makes the overflow risk run
   toward the (generously safe, 46cqh-clear) bottom instead of off the visible canvas. */
#deck.k-cover .dcontent { left: 33.334cqw; right: 33.334cqw; text-align: center;
  justify-content: flex-start; padding-top: 7cqh; gap: .4cqh; }
#deck.k-cover .d-kicker { font-size: 2.6cqh; margin-bottom: .4cqh; } /* V7: bumped to clear the spec's ~70px kicker floor */
.d-kicker2 { margin-top: 1.8cqh; margin-bottom: 0; }
/* (the gradient-clip ghosting bug first caught here is now fixed at the source — base .d-title,
   above, is solid colour project-wide — this override just resizes for the narrower column.) */
#deck.k-cover .d-title { font-size: 4.6cqh; max-width: 100%; overflow-wrap: break-word; }
#deck.k-cover .d-welcome-ar { font-size: 2.6cqh; margin-top: 0; }
#deck.k-cover .d-sub { font-size: 2.2cqh; max-width: 100%; margin-top: 1cqh; }
.d-title-en { font-size: 2cqh; font-weight: 500; letter-spacing: .02em; color: var(--muted); margin-top: .5cqh; }
.d-cover-meta { margin-top: 2.2cqh; padding-top: 1.6cqh; border-top: .14cqh solid rgba(185,145,95,.35); display: flex; flex-direction: column; gap: .7cqh; }
.d-cover-date, .d-cover-venue { font-size: 1.9cqh; color: var(--cream); font-weight: 600; line-height: 1.5; }
.ct-side { display: none; }
#deck.k-cover .ct-side { position: absolute; top: 0; bottom: 46cqh; width: 33.334cqw; z-index: 3;
  display: flex; align-items: center; justify-content: center; padding: 0 2.6cqw; }
#deck.k-cover .ct-left { left: 0; }
#deck.k-cover .ct-right { right: 0; }
#deck.k-cover .ct-side img { max-width: 82%; max-height: 18cqh; object-fit: contain; filter: drop-shadow(0 .4cqh 2.4cqh rgba(0,0,0,.55)); }
.ct-divider { display: none; }
#deck.k-cover .ct-divider { display: block; position: absolute; top: 5cqh; bottom: 51cqh; width: .1cqh; z-index: 3;
  background: linear-gradient(180deg, transparent, rgba(185,145,95,.55), transparent); }
#deck.k-cover .ct-divider-l { left: 33.334cqw; }
#deck.k-cover .ct-divider-r { left: 66.667cqw; }

/* ── V3 image scenes (2026-11-15/16, MFZ: "the live /show must be VISUALLY IDENTICAL to
   Gridline_Press_Conference_v3_LED_Bilingual.pptx/pdf"). The approved v3 deck was designed ultra-wide
   (13.333×4in = 10:3), but the REAL confirmed stage (.dwrap above, photo-verified ~2:1) is proportionally
   TALLER than that banner. Cropping the 10:3 render to fit a 2:1 box would cut the logos sitting at its
   far left/right edges — not allowed ("no clipped... logos"). So .v3scene shows the FULL approved slide,
   uncropped and undistorted (background-size:contain), letterboxed on a flat backdrop colour matching
   each slide's own edge tone (brown for every scene except the cream pricing scene, i=12 — see the
   `.v3scene.cream` override and deck.js). Ken-Burns is a slow scale only (no pan) so the contained
   image never drifts off-centre or reveals a gap at its own edge.
   TRIED-AND-REVERTED (2026-11-15/16): a two-layer version (crisp contain-fit slide over a separate,
   oversized, blurred/darkened copy as a "fills the whole box" backdrop) looked better in theory but
   reliably rendered as garbled vertical colour bars across the WHOLE scene in headless Chromium the
   moment BOTH layers were visible together (each layer alone rendered perfectly — isolated-element
   screenshots proved it; only visible when composited simultaneously; reproduced with the backdrop as
   both a live CSS filter:blur() and a pre-blurred static jpg, so it wasn't the blur itself — looks like
   a compositing bug with two overlapping animated/background-image layers at this scale). A single flat
   colour is less fancy but cannot glitch the same way — not worth the risk two days before the event. */
#deck.k-v3img .dcontent { position: absolute !important; inset: 0 !important; animation: none !important; display: block !important; }
#deck.k-v3img .dhead { display: none; } /* baked slide already carries both wordmarks top-left/top-right */
/* the old animated welcome-skyline layer (cover-motion.css, only ever meant for the OLD cover scene)
   was bleeding through on top of the v3 cover render — old-show content on the approved design is
   exactly what this whole pass exists to eliminate, so force it off for every v3 image scene. */
#deck.k-v3img .cover-stage { display: none !important; }
#deck.k-v3img .showcredit { top: auto; bottom: 1.6cqh; right: 2.4cqw; font-size: 1.5cqh; opacity: .7; }
.v3scene { position: absolute; inset: 0; overflow: hidden; background: var(--esp); background-repeat: no-repeat;
  background-position: center; background-size: contain; }
.v3scene.cream { background-color: #F3E8DA; } /* matches s-12's own cream edge tone (deck.js THEME_CREAM) */
.v3scene.kb1 { animation: v3fadein .6s ease both, v3kbIn 26s ease-in-out infinite alternate; }
.v3scene.kb2 { animation: v3fadein .6s ease both, v3kbOut 26s ease-in-out infinite alternate; }
.v3scene.kb3 { animation: v3fadein .6s ease both, v3kbIn 32s ease-in-out infinite alternate; }
.v3scene.kb4 { animation: v3fadein .6s ease both, v3kbOut 32s ease-in-out infinite alternate; }
@keyframes v3fadein { from { opacity: 0; } to { opacity: 1; } }
@keyframes v3kbIn { from { transform: scale(1); } to { transform: scale(1.035); } }
@keyframes v3kbOut { from { transform: scale(1.035); } to { transform: scale(1); } }
/* film slot (scene 13) — real <video> autoplays right over its own poster frame, same contain-fit
   so nothing crops/stretches; poster stays visible for the single frame before playback starts. */
.v3filmvid { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; z-index: 1; }
/* MFZ_PA 2026-11-11: footer→header per MFZ (8x4m LED — stage/podium/heads hide the bottom band).
   Moved from bottom:2.6cqh to top:2.6cqh, same two elements, same mirrored corners (logo stays
   top-right, event line top-left — was bottom-right/bottom-left in RTL flex order, unchanged). */
.dhead { position: absolute; top: 2.6cqh; right: 3.571cqw; left: 3.571cqw; display: flex; justify-content: space-between; align-items: center;
  font-size: 2.4cqh; color: var(--muted); z-index: 4; }
/* V7 (2026-11-16, Fable spec "the single biggest fix"): BOTH wordmarks together, top-right, right
   edge aligned to x=6480 (the .dhead inset above) — Gridline. had gone missing from every inner
   scene except the baked partners/cover slides; only the Kandeel mark survived. Same lockup on every
   scene 2-14 (hidden only on the cover, which already carries both logos via its own 3-thirds
   layout — #deck.k-cover .dhead, further down). direction:ltr forces the literal left-to-right
   "Gridline. | Kandeel Developments" reading order regardless of the RTL stage around it. */
.dhead-marks { display: flex; align-items: center; gap: .85cqw; direction: ltr; }
.dmark { height: 4.6cqh; width: auto; opacity: .92; display: block; }
.dmark-kd { height: 4.05cqh; } /* KD lockup's own canvas includes the smaller "DEVELOPMENTS" line — tuned to read the same optical size as the Gridline wordmark next to it. */
.dmark-div { width: .1cqw; height: 3.6cqh; flex: 0 0 auto; background: linear-gradient(180deg, transparent, var(--gold), transparent); opacity: .65; }
/* clears .dcontent's new top inset (17.86cqh) by a wide margin: 2.6cqh + 4.6cqh ≈ 7.2cqh bottom edge. */
.dlogo { height: 6.6cqh; width: auto; opacity: .85; }

/* V7 (2026-11-16, Fable spec minimum sizes @ 10m viewing distance): kicker ~70px=2.6cqh (min), label
   ~85px=3.16cqh, EN headline ~190px=7.07cqh, AR headline ~280px=10.42cqh, big stat numerals
   ~360px=13.39cqh. Jost 500 uppercase tracked for the Latin part of a kicker; mixed bilingual kickers
   ("AGENDA · الأجندة") fall through to Cairo automatically for the Arabic portion since Jost has no
   Arabic glyphs — one font-family list handles both scripts in the same line. */
.d-kicker { font-family: "Jost", "Cairo", sans-serif; font-size: 2.9cqh; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); margin-bottom: 1.6cqh; }

/* ── V7 "stacked pair" bilingual component (Fable spec, THE key layout fix) — one text block, Arabic
   primary line on top, English secondary line directly under it at ~65% size / 80% opacity, same
   left/right anchor edge. Used for every headline/name/role/label pair across scenes 2-15 instead of
   the old two-separate-columns layout. Arabic = Cairo 300 (the font fix — was always rendering as
   heavy Alyamama regardless of requested family); English = Jost 300. */
.stp { display: flex; flex-direction: column; }
.stp .ar { font-family: "Cairo", serif; font-weight: 300; color: var(--cream); line-height: 1.3; }
.stp .en { font-family: "Jost", sans-serif; font-weight: 300; color: var(--cream); opacity: .8; margin-top: 1.5cqh; line-height: 1.3; }
.stp.headline .ar { font-size: 10.6cqh; } /* ≈285px, clears the 280px AR-headline floor */
.stp.headline .en { font-size: 7.2cqh; }  /* ≈193px, clears the 190px EN-headline floor */
.stp.headline.ink .ar, .stp.headline.ink .en { color: var(--esp); } /* on the cream panels (scenes 3/12) */
.stp.headline.ink .en { opacity: .72; }
.stp.name .ar { font-size: 8.4cqh; font-weight: 400; }
.stp.name .en { font-size: 5cqh; margin-top: 1.2cqh; }
.stp.role .ar { font-size: 4.1cqh; font-weight: 400; color: var(--gold2); margin-top: 1.6cqh; }
.stp.role .en { font-size: 2.7cqh; margin-top: .5cqh; opacity: .75; }
.stp.label .ar { font-size: 3.3cqh; font-weight: 400; } /* "Cairo default weight" for small labels */
.stp.label .en { font-size: 2.3cqh; margin-top: .55cqh; }

/* ── stat block (numeral + AR/EN label) — scenes 3 (developer), 4 (sitefacts), 12 (pricing). ── */
.stat-grid { display: grid; grid-template-columns: repeat(var(--cols, 3), 1fr); gap: 2.4cqh 2.4cqw; margin-top: 2.2cqh; width: 100%; }
.stat-block { display: flex; flex-direction: column; }
.stat-num { font-family: "Jost", sans-serif; font-weight: 300; font-size: 7.4cqh; color: var(--gold2); line-height: 1.05; font-variant-numeric: tabular-nums; }
.stat-ar { font-family: "Cairo", serif; font-weight: 400; font-size: 2.9cqh; color: var(--cream); margin-top: .6cqh; line-height: 1.35; }
.stat-en { font-family: "Jost", sans-serif; font-weight: 300; font-size: 2.1cqh; color: var(--cream); opacity: .78; margin-top: .3cqh; }
/* cream-panel context (scenes 3/12) — copper numerals + espresso labels, per spec palette. */
.cream-panel .stat-num { color: var(--copper); }
.cream-panel .stat-ar { color: var(--esp); opacity: .92; }
.cream-panel .stat-en { color: var(--esp); opacity: .62; }

/* ── cream panel component (scenes 3 "developer", 12 "pricing") — inset light card, NOT edge-to-edge
   bleed, so it reads as a deliberate "light card" moment inside the espresso show. 48px radius.
   Padding/type sizes here are deliberately smaller than the general headline/stat minimums — these
   two scenes each pack a kicker + headline + several more elements (body copy + 3 project cards, or
   a 3×2 stat grid + hotline) into one fixed-height panel, so avoiding any clipping/overflow into the
   dead zone takes priority over hitting the generic type-scale floor on these two scenes specifically. */
.cream-panel { position: relative; width: 100%; flex: 1 1 auto; background: var(--cream); border-radius: .714cqw / 1.786cqh;
  padding: 2.6cqh 2.8cqw; display: flex; flex-direction: column; align-items: flex-start; overflow: hidden; min-height: 0; }
.cream-panel .d-kicker { color: var(--gold); margin-bottom: .9cqh; }
.cream-panel .stp.headline .ar { font-size: 5.4cqh; line-height: 1.22; }
.cream-panel .stp.headline .en { font-size: 3.4cqh; margin-top: .7cqh; line-height: 1.2; }
.cream-panel .stat-grid { margin-top: 0; gap: 1.2cqh 2cqw; }
.cream-panel .stat-num { font-size: 4.2cqh; }
.cream-panel .stat-ar { font-size: 2.1cqh; margin-top: .35cqh; }
.cream-panel .stat-en { font-size: 1.55cqh; margin-top: .15cqh; }

/* scene 3 "developer" — text column (headline/body/tagline) + a narrower stats+cards column. */
.dev-grid { display: flex; flex-direction: row; gap: 3.2cqw; width: 100%; flex: 1 1 auto; min-height: 0; }
.dev-col-main { flex: 1.35 1 0; min-width: 0; display: flex; flex-direction: column; justify-content: center; }
.dev-col-side { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; justify-content: center; gap: 1cqh; }
/* 3 stacked stats + a card row in one column needs tighter sizing than the cream-panel default
   (which already assumes a wide 3-up row, not a narrow single column of 3). */
.dev-col-side .stat-grid { grid-template-columns: 1fr; gap: .8cqh; }
.dev-col-side .stat-num { font-size: 3.8cqh; }
.dev-col-side .stat-ar { font-size: 1.9cqh; margin-top: .3cqh; }
.dev-col-side .stat-en { font-size: 1.4cqh; margin-top: .1cqh; }
.dev-body { margin-top: 1cqh; max-width: 92%; }
.dev-body .ar { font-family: "Cairo", serif; font-weight: 300; font-size: 2.5cqh; line-height: 1.45; color: var(--esp); }
.dev-body .en { font-family: "Jost", sans-serif; font-weight: 300; font-size: 1.7cqh; line-height: 1.35; color: var(--esp); opacity: .62; margin-top: .6cqh; }
.dev-tagline { margin-top: 1.4cqh; font-style: italic; font-family: "Cormorant Garamond", serif; font-weight: 600; font-size: 2.1cqh; color: var(--copper); }
.dev-cards { display: flex; gap: .6cqw; }
.dev-card { width: 9.52cqw; aspect-ratio: 640 / 400; border-radius: .476cqw / 1.19cqh; overflow: hidden; flex: 0 0 auto; }
.dev-card img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* scene 12 "pricing" — single column, 3×2 stat grid + bilingual hotline at the foot. */
.price-panel .stat-grid { margin-top: 1.4cqh; width: 100%; flex: 1 1 auto; align-content: center; }
.price-hotline { margin-top: 1.2cqh; font-family: "Jost", "Cairo", sans-serif; font-size: 2.2cqh; color: var(--copper); }

/* ── image card component (2200×1470 portrait default; scenes 4/5/6/8/9/10/11 reuse it at various
   sizes) — 48px corner radius, no border/glow, object-fit:cover, 48px ≈ .714cqw / 1.786cqh. ── */
.img-card { border-radius: .714cqw / 1.786cqh; overflow: hidden; background: #000; }
.img-card img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ── scene 4 "sitefacts" — image card (left, 2200×1470 default) + headline/2×2-stat text column
   (right), on the normal flat espresso background (not a full-bleed hero, which hid the stats). ── */
.k-sitefacts .dcontent { flex-direction: row; gap: 3.6cqw; align-items: stretch; }
.sf-img { flex: 0 0 32.74cqw; /* 2200/6720 */ }
.sf-text { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; justify-content: center; }
/* headline + a 2×2 stat grid together would overflow the content band at the generic headline/stat
   sizes (those assume a scene with just ONE of those elements) — trimmed down, same reasoning as the
   cream-panel scenes above. */
.sf-text .stp.headline .ar { font-size: 6.4cqh; line-height: 1.25; }
.sf-text .stp.headline .en { font-size: 4.2cqh; margin-top: .8cqh; line-height: 1.22; }
.sf-text .stat-grid { margin-top: 2cqh; gap: 1.6cqh 2.4cqw; }
.sf-text .stat-num { font-size: 6cqh; }
.sf-text .stat-ar { font-size: 2.6cqh; margin-top: .4cqh; }
.sf-text .stat-en { font-size: 1.8cqh; margin-top: .2cqh; }
/* V5 (2026-11-16): solid colour, NOT the old gradient `background-clip:text` trick. Found (and fixed)
   a reproducible Chromium bug while screenshotting the v5 scenes: motion.js's kinetic word-split
   (splitWords()/kineticIn(), applied to every .d-title on scene-change) wraps each word in its own
   `.kw` span that INHERITS the gradient via `background:inherit` (led.css) rather than getting an
   explicit copy — for a pure-Arabic headline (the common case in this RTL deck) the words never move
   into motion.js's separate-bdi path, so they rely on live CSS inheritance from this element's own
   gradient. That produced a second, badly-compressed "ghost" render of the whole phrase pinned to
   this box's far edge on at least 2 scenes (cover, agenda) — confirmed by isolating the element and
   diffing getBoundingClientRect() of the real glyphs vs. the extra paint. The file's own history notes
   an analogous LTR-only variant of this exact bug was found and patched for the old non-RTL case but
   not this one. Rather than carry a 2nd fragile patch, dropping the gradient for a solid colour
   removes the whole bug class — same premium gold, zero animation/inheritance risk. */
.d-title { font-size: 11cqh; font-weight: 800; line-height: 1.4; padding: .06em 0; color: var(--gold2); }
.d-sub { font-size: 5.4cqh; font-weight: 500; line-height: 1.5; color: var(--cream); margin-top: 2cqh; max-width: 80cqw; }
.d-note { font-size: 2.8cqh; color: var(--muted); margin-top: .6cqh; }
.d-tag { font-size: 4cqh; letter-spacing: .1em; color: var(--gold); margin-top: 2cqh; }

/* cover / thanks */
.k-cover .dcontent, .k-thanks .dcontent { align-items: center; text-align: center; justify-content: center; }
.k-cover .d-title { font-size: 13cqh; }
/* V7: scene 15 "thanks" now uses the stp() headline pair instead of a bare .d-title. */
.k-thanks .stp { align-items: center; }
.k-thanks .stp.headline .ar { font-size: 12cqh; }
.k-thanks .stp.headline .en { font-size: 6cqh; }
.thanks-closing { margin-top: 3.4cqh; display: flex; flex-direction: column; align-items: center; }
.thanks-closing .ar { font-family: "Cairo", serif; font-weight: 300; font-size: 4cqh; color: var(--cream); }
.thanks-closing .en { font-family: "Jost", sans-serif; font-weight: 300; font-size: 2.6cqh; color: var(--cream); opacity: .8; margin-top: .8cqh; }
.thanks-tagline { margin-top: 3cqh; }
.k-thanks .hotline { font-size: 3.4cqh; color: var(--cream); margin-top: 1.4cqh; }
.k-thanks .hotline b { color: var(--gold); font-weight: 800; }

/* ── guest (speaker scenes 5/6/8/9/10/11) — V7 full rebuild per Fable spec: image card (left) + small
   real-colour logo card (below it) + text column (kicker, name pair, title pair, gold rule, topic).
   NO photos of people anywhere (non-negotiable #5). ── */
.k-guest .dcontent { align-items: stretch; }
.guest-grid { display: flex; flex-direction: row; gap: 3.6cqw; width: 100%; height: 100%; align-items: stretch; }
.guest-visual { flex: 0 0 32.74cqw; /* 2200/6720 */ display: flex; flex-direction: column; gap: .714cqw; height: 100%; }
.guest-img { flex: 1 1 auto; min-height: 0; }
.guest-logo-card { flex: 0 0 13.9cqh; background: var(--cream); border-radius: .714cqw / 1.786cqh; display: flex; align-items: center; justify-content: center; padding: 1.4cqh 1.6cqw; }
.guest-logo-card.dark { background: var(--esp2); border: .1cqh solid rgba(248,241,231,.14); }
.guest-logo-card img { max-width: 80%; max-height: 72%; object-fit: contain; }
.guest-text { flex: 1 1 auto; display: flex; flex-direction: column; justify-content: center; min-width: 0; }
.guest-rule { display: block; width: 5.2cqw; height: .16cqh; margin: 2.4cqh 0; background: var(--gold); }
.guest-topic { font-size: 2.7cqh; color: var(--muted); letter-spacing: .03em; }

/* mc question card (legacy, unused by this deck's current 15 scenes — kept for backwards compat) */
.k-mc .dcontent { align-items: center; text-align: center; justify-content: center; gap: 2cqh; }
.mc-mark { font-size: 14cqh; font-weight: 900; color: var(--bronze); line-height: 1; }
.mc-q { font-size: 6.6cqh; font-weight: 700; line-height: 1.4; max-width: 86cqw; color: var(--cream); }
.mc-by { font-size: 2.8cqh; color: var(--gold); letter-spacing: .1em; margin-top: 1.4cqh; }

/* ── video / project film (scene 13) — V7: caption ABOVE a full-bleed letterbox card (real cinematic
   render, reduced brightness) with a centred CSS play-triangle, replacing the old baked-text poster.
   `flex:1 1 auto` + `min-height:0` on .film-card (inside a column flex .dcontent) makes the browser
   solve "however much height is left after the caption" automatically, then `aspect-ratio` derives
   the matching width (capped by max-width) — safer than hand-computing a fixed height, which at the
   spec's literal ~5200×1460 would have been taller than the whole content band by itself. Caption
   headline is sized down from the general headline tier for the same reason the cream panels are
   (this scene packs a kicker+headline pair ABOVE a very large card into one fixed-height band). */
.k-video .dcontent { align-items: center; text-align: center; justify-content: flex-start; gap: 1.6cqh; }
.film-caption { flex: 0 0 auto; display: flex; flex-direction: column; align-items: center; }
.film-caption .stp.headline .ar { font-size: 4.4cqh; line-height: 1.2; }
.film-caption .stp.headline .en { font-size: 2.8cqh; margin-top: .6cqh; }
.film-card { position: relative; flex: 1 1 auto; min-height: 0; width: auto; max-width: 92.86cqw; /* 6240/6720 */ aspect-ratio: 5200/1460; border-radius: .714cqw / 1.786cqh; overflow: hidden; }
.film-card img { width: 100%; height: 100%; object-fit: cover; display: block; filter: brightness(.58); }
.film-play { position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%); width: 0; height: 0;
  border-top: 3.6cqh solid transparent; border-bottom: 3.6cqh solid transparent; border-left: 5.8cqh solid rgba(248,241,231,.9);
  filter: drop-shadow(0 .3cqh 1.4cqh rgba(0,0,0,.5)); opacity: .9; }

/* ── agenda (scene 2) — full-width 2-column grid, each row = numeral + one stacked AR/EN pair.
   Replaces the old flat EN-only bullet list (today's bilingual bug: AR-only one side, nothing on the
   other). columns span x240-3240 / x3480-6480 of the 6720 canvas ≈ 44.64cqw each with a 3.57cqw gap.
   Headline trimmed down from the generic tier (kicker + full headline + 4 agenda rows per column
   would overflow the content band at the generic sizes — same reasoning as the cream-panel scenes). ── */
.k-keypoints .d-kicker { margin-bottom: .8cqh; }
.k-keypoints .stp.headline .ar { font-size: 5.6cqh; line-height: 1.22; }
.k-keypoints .stp.headline .en { font-size: 3.6cqh; margin-top: .6cqh; line-height: 1.2; }
.d-agenda { display: grid; grid-template-columns: repeat(2, 1fr); column-gap: 3.57cqw; row-gap: 1.2cqh; margin-top: 1.6cqh; width: 100%; }
.agd-row { display: flex; gap: 1.6cqw; align-items: baseline; break-inside: avoid; }
/* BUGFIX: in the RTL grid, row-major fill puts items 1/3/5/7 in the right column and 2/4/6 in the
   left column — the left column's rows default (dir:rtl, flex-start=right) to hugging the GUTTER
   (inner edge) rather than the far-left outer edge, leaving a large dead strip down the left side of
   the scene (the exact "60% dead empty space" bug Fable's spec calls out). Flipping just these rows
   to direction:ltr makes their own flex-start mean "left", so the numeral anchors to the true outer
   edge and the text reads inward — mirroring the right column's outer-edge anchoring. The Arabic/EN
   text nodes inside keep their own explicit dir, so shaping/alignment of the words themselves is
   untouched; only the row's flex layout direction changes. */
.agd-row:nth-child(2n) { direction: ltr; }
.agd-num { font-family: "Jost", sans-serif; font-weight: 300; font-size: 3.6cqh; color: var(--gold); flex: 0 0 auto; }
.agd-text .ar { font-family: "Cairo", serif; font-weight: 400; font-size: 3cqh; color: var(--cream); line-height: 1.3; }
.agd-text .en { font-family: "Jost", sans-serif; font-weight: 300; font-size: 2cqh; color: var(--cream); opacity: .78; margin-top: .4cqh; }

/* gift round intro — mirrors led.css idle styling for continuity */
.k-gift .dcontent { align-items: center; text-align: center; justify-content: center; gap: 1.6cqh; }
.k-gift .d-title { font-size: 15cqh; }
.k-gift .d-sub { font-size: 5cqh; color: var(--gold); margin-top: 0; }
.k-gift .d-qr-hint { font-size: 2.8cqh; color: var(--muted); margin-top: 2.4cqh; }

/* round winner / champion */
.k-winner .dcontent { align-items: center; text-align: center; justify-content: center; gap: 1.4cqh; }
.k-winner .trophy { font-size: 10cqh; }
.k-winner .champ-name { font-size: 15cqh; font-weight: 900; line-height: 1.35; padding: .05em 0; max-width: 88cqw;
  background: linear-gradient(180deg, #fff6e3, var(--gold2) 40%, var(--gold) 75%, var(--bronze)); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 3cqh rgba(224,176,119,.45)); }
.k-winner .champ-ph { font-size: 6cqh; color: var(--muted); }

/* MFZ_PA 2026-11-12: persistent "now presenting" corner badge — see led.html/deck.mjs comments.
   Placed top-left in the ~6cqh gap between .dhead and .dcontent (never the bottom band — the
   2026-11-11 lesson on this same stage: stage/podium/heads at the live 8x4m LED hide the bottom). */
/* V5 (2026-11-16, MFZ: no speaker photos anywhere): .spkb-photo circle removed — name-only pill,
   padding made symmetric (was asymmetric to leave room for the photo circle on one side). */
#spkBadge { position: absolute; top: 7.6cqh; left: 4cqw; z-index: 6; display: none; align-items: center; gap: 1.4cqw;
  background: rgba(21,16,12,.55); border: .14cqh solid rgba(224,176,119,.35); border-radius: 99px;
  padding: .9cqh 2.2cqw; backdrop-filter: blur(6px); opacity: 0; transition: opacity .35s ease; }
#spkBadge.on { display: flex; opacity: 1; }
#spkBadge .spkb-nameAr { font-size: 2.6cqh; font-weight: 700; color: var(--cream); white-space: nowrap; }

/* FORK v2 (2026-11-15): "partners" scene — The Power Behind / شركاء النجاح, grid of 4 real consultant
   logos (deck-data.mjs PARTNERS).
   MFZ_PA 2026-11-15 v5 (second rejection, same day — MFZ: "No, not accepted. Use same presentation
   theme tone. Remove logos BG, change logos colors to match the theme!!"). v4's fix (above, see git
   history) kept the logos' original client colours (navy/black/red/green) and solved their contrast
   problem by flipping this ONE scene to a light cream surface — exactly the "looks like a pasted-in
   PowerPoint slide" effect MFZ rejected: a light island in an otherwise dark-espresso show. v5 fixes
   the actual root cause instead of working around it: tools/recolor-partners-gold.py (+
   tools/recolor-htco.py for the low-res HTCO source, which needed a potrace vector pass to avoid
   jagged upscale edges) recolours all 4 PNGs in place — real alpha transparency already existed
   around each mark (confirmed, untouched by this pass), so the "remove BG" part was already correct
   from v4; what changes here is the COLOUR: each logo's own luminance range is normalized onto the
   deck's own 3-stop gold ramp (--bronze/--gold/--gold2, the exact gradient already used for
   `.d-title`/"Gridline."/stat numbers elsewhere), preserving each mark's internal contrast (frame vs.
   fill, name vs. caption) so nothing reads as a flat silhouette — no redraw, no re-typesetting, same
   letterforms. Mohamed Talaat's logo (previously white-on-transparent, invisible on light v4's cream
   surface, fine on dark but mismatched vs. the other 3's original colour) now matches the same gold
   family instead of needing a client re-send. Net effect: this scene no longer needs its own special
   surface at all — it now uses the SAME dark-espresso `.dwrap` background as every other scene (no
   override below), which is the "same presentation theme tone" MFZ asked for.
   MFZ_PA 2026-11-15 v6 (THIRD rejection, same day — MFZ angry: "Use Photoshop on the NUC, not Python").
   v5's numpy/potrace pass (tools/recolor-partners-gold.py / recolor-htco.py, now unused/kept for
   history only) is OUT. v6 redoes all 4 logos from scratch, pixels generated entirely in real Adobe
   Photoshop 27 on the NUC via COM/ExtendScript (ArtLayer.duplicate/adjustLevels/applyGaussianBlur +
   a real alpha channel built from a luminance threshold, selection.load/clear for background removal,
   selection.fill(..., preserveTransparency) for recolor, Preserve-Details upscale for the two small
   sources) — see memory/notes.md for the exact NUC pipeline + the nuc_photoshop_jsx stale-process
   workaround (drives Photoshop via nuc_powershell directly). Sources this time: the ORIGINAL
   higher-res client uploads in assets/client/ (not the already-degraded v1 partners/ crops) — ES in
   particular came from a clean 1922x2228 original instead of the cropped 985x240 version with a
   visible white card edge. Same 2-tone split as v5 (primary mark = --gold #92ADBB flat fill, caption/
   secondary line = --bronze #A99884 flat fill, both sampled straight from this file's own vars) but a
   true flat Color Overlay per region instead of a continuous luminance gradient-map, which is what
   actually gives "one consistent gold set" — no per-logo luminance-curve drift. ES's white card fill
   is now genuinely deleted (transparent, showing the stage through it) instead of recoloured pale —
   fixes the "looks like a sticker" box effect. HTCO's "HANY TAWFIK CONSULTING OFFICE" tagline (a
   handful of pixels tall in the only source that exists, 159×60) is dropped from the raster entirely
   rather than shipped as an illegible smear — the same string is already rendered as real, crisp HTML
   text via PARTNERS[].nameAr/nameEn + .ptile-cap (deck-data.mjs), so nothing is actually lost. */
/* ── V7 (2026-11-16, Fable spec): "Four EQUAL-size cards (1380×640, 40px radius, 240px gaps) spanning
   the full width ... Fit each real-colour logo ... with optical size-matching: the ES logo is a TALL
   mark and must be fit-to-height like the others, not fit-to-width" (the exact bug flagged in
   working/design-review-2026-11-16/AUDIT.md). Fix: every card is an IDENTICAL fixed-aspect box
   (1380×640 ≈ 2.156:1); each logo sits in an identical inner bounding box and is scaled by
   object-fit:contain, which picks whichever axis actually constrains a given aspect ratio — a tall
   mark like ES (0.86:1) is naturally height-constrained, a wide wordmark like HTCO (3.76:1) is
   naturally width-constrained, so all 4 read at the same optical "ink weight" without any manual
   per-logo override. Real-colour logos (not gold-recolored): Talaat's white mark sits on a dark
   espresso card, the other 3 (opaque dark/coloured ink on a white source canvas) sit on a cream card
   — same split the reference deck itself uses on slide 7. ── */
/* headline trimmed from the generic tier — kicker + full headline + 4 logo cards + captions would
   overflow the content band at the generic sizes (same reasoning as the other dense scenes above). */
.k-partners .dcontent { align-items: center; text-align: center; justify-content: center; }
.k-partners .d-kicker { margin-bottom: .8cqh; }
.k-partners .stp.headline { align-items: center; }
.k-partners .stp.headline .ar { font-size: 5.6cqh; line-height: 1.22; }
.k-partners .stp.headline .en { font-size: 3.6cqh; margin-top: .6cqh; line-height: 1.2; }
/* BUGFIX: in the RTL stage, a 4-col grid lays DOM order 1-4 right-to-left visually — reversing the
   spec's explicit "Talaat, DMA, ES, HTCO, in that order, matching the reference" left-to-right order.
   direction:ltr forces true left-to-right placement regardless of the surrounding RTL context; each
   card's own caption still carries explicit dir="rtl"/"ltr" on its AR/EN lines, so text shaping is
   unaffected — only the grid's item placement direction changes. */
.d-partners { display: grid; grid-template-columns: repeat(4, 1fr); gap: 3.57cqw; margin-top: 2cqh; width: 100%; direction: ltr; }
.ptile { display: flex; flex-direction: column; align-items: center; gap: 1.2cqh; }
.ptile-logo { width: 100%; aspect-ratio: 1380/640; border-radius: .595cqw / 1.488cqh; display: flex; align-items: center; justify-content: center; padding: 2.4cqh 2cqw; }
.ptile.card-dark .ptile-logo { background: var(--esp2); border: .1cqh solid rgba(248,241,231,.14); }
.ptile.card-cream .ptile-logo { background: var(--cream); }
.ptile-logo img { max-width: 100%; max-height: 100%; object-fit: contain; }
.ptile-cap { display: flex; flex-direction: column; align-items: center; }
.ptile-cap .ar { font-family: "Cairo", serif; font-weight: 400; font-size: 2.3cqh; color: var(--cream); }
.ptile-cap .en { font-family: "Jost", sans-serif; font-weight: 300; font-size: 1.8cqh; color: var(--muted); margin-top: .35cqh; }

/* FORK v2 (2026-11-15): live per-speaker Q&A card — speaker picked from /admin → "أسئلة الصحافة",
   stepping through their real client questions (★ = priority, always first). No speaker picked yet
   falls back to the plain v7 idle kicker+headline (deck.js's own if/else — this CSS only styles the
   populated state). V7: repainted onto the new flat rust background (#deck.k-qa .dwrap, above). */
.k-qa .dcontent { justify-content: center; gap: 0; }
.qa-top { display: flex; align-items: baseline; justify-content: space-between; gap: 2cqw; }
.qa-progress { font-size: 3.2cqh; color: var(--muted); font-variant-numeric: tabular-nums; }
.qa-star { display: inline-block; margin-top: 2cqh; font-size: 3.2cqh; font-weight: 800; letter-spacing: .06em; color: var(--rust); background: linear-gradient(180deg, var(--gold2), var(--gold)); border-radius: 99px; padding: .5cqh 1.8cqw; width: fit-content; }
.qa-q { font-family: "Cairo", serif; font-weight: 300; font-size: 8cqh; line-height: 1.4; color: var(--cream); margin-top: 2.6cqh; max-width: 90cqw; }
.qa-sp { display: flex; align-items: center; gap: 1.6cqw; margin-top: 4cqh; padding-top: 2.6cqh; border-top: .18cqh solid rgba(248,241,231,.22); }
/* V7: real-colour logos restored (were gold-recolored) — DMA/ES/HTCO need a small light chip to read
   on the flat rust bg (same split as the scene-7 cards); Talaat's white mark sits straight on dark. */
.qa-sp-logo-card { background: var(--cream); border-radius: .3cqw / .75cqh; padding: .8cqh 1.2cqw; display: flex; align-items: center; }
.qa-sp-logo { height: 7.2cqh; max-width: 19cqw; object-fit: contain; }
.qa-sp-name { font-size: 3.4cqh; font-weight: 400; font-family: "Cairo", serif; color: var(--gold2); }
.qa-sp-title { font-size: 2.6cqh; color: var(--muted); margin-top: .4cqh; }

/* blackout / logo hold */
#blackout { position: fixed; inset: 0; z-index: 90; display: none; align-items: center; justify-content: center; background: #000; }
#blackout.on { display: flex; }
#blackout img { width: 16vw; max-width: 260px; min-width: 120px; opacity: .92; }

/* MFZ 2026-11-16: Strike credit took the top-left slot under the info line → speaker badge moves to
   top-right, directly under the Kandeel logo (logo bottom 9.2cqh). Compact padding keeps its bottom
   edge at ~12.9cqh, above .dcontent's 13cqh top inset. */
#spkBadge { top: 9.5cqh; left: auto; right: 4cqw; padding: .5cqh 1.8cqw; }
#spkBadge .spkb-nameAr { font-size: 2.3cqh; }
