/* FORMA project pages, after Porto Rocha's case studies (owner, 25 Nov 2026: «صفحة المشاريع من جوا خليها نفس اللي سوو هوية تندر
   ونايكي .. ابغا العروض الداخلية اكثر من٨٥٪ من المحتوى اللي اشوفه موشن ويتحرك»; «اغلب الاستخدام جوال»). Phone first.
   The case leaves the project index at the end of the reading path. Films and photographs lead each study.
   The study behind it: research/porto-rocha-study.md. Built by src/case/build_case.py; motion in case.js. */
@font-face { font-family:Plex; src:url("../media/fonts/plex-400.woff2") format("woff2"); font-weight:400; font-display:swap; }
@font-face { font-family:Plex; src:url("../media/fonts/plex-500.woff2") format("woff2"); font-weight:500; font-display:swap; }
@font-face { font-family:Plex; src:url("../media/fonts/plex-700.woff2") format("woff2"); font-weight:700; font-display:swap; }
@font-face { font-family:PlexMono; src:url("../media/fonts/plex-mono-400.woff2") format("woff2"); font-weight:400; font-display:swap; }
@font-face { font-family:FormaWide; src:url("../media/fonts/forma-wide.woff2") format("woff2"); font-weight:400; font-display:swap; }
:root {
  --ink:#0C0C0C; --pa:#F2EFE9; --sig:#FF4F1A; --card:#171716; --line:#343331; --dim:#B5B1A9;
  --outer:clamp(14px,3vw,48px); --g:clamp(8px,1.1vw,17px); --rhythm:clamp(23px,3.5vw,57px);
  --bar:calc(56px + env(safe-area-inset-top)); --radius:3px;
}
* { box-sizing:border-box; }
html { background:var(--ink); color:var(--pa); -webkit-text-size-adjust:100%; }
body { margin:0; font:400 16px/1.55 Plex,Arial,sans-serif; }
a { color:inherit; text-decoration:none; }
button { color:inherit; font:inherit; cursor:pointer; }
button[hidden] { display:none; }
button:focus-visible,a:focus-visible { outline:2px solid var(--sig); outline-offset:2px; }
.ix:focus-visible { outline-offset:4px; }
.vh { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; }
.skip { position:fixed; inset-inline-start:10px; top:-90px; z-index:80; padding:10px 16px; background:var(--pa); color:var(--ink); }
.skip:focus { top:7px; }
.go { width:15px; height:15px; position:relative; display:inline-block; flex:none; color:inherit; }
.go::before { content:''; position:absolute; width:13px; height:1.5px; top:7px; left:0; background:currentColor; }
.go::after { content:''; position:absolute; width:7px; height:7px; top:4px; right:1px; border-top:1.5px solid currentColor; border-right:1.5px solid currentColor; transform:rotate(45deg); }
[dir=rtl] .go { transform:rotate(180deg); }

.cs-top { position:sticky; top:0; z-index:20; height:var(--bar); display:flex; align-items:center; justify-content:space-between;
  padding:env(safe-area-inset-top) max(var(--outer),env(safe-area-inset-right)) 0 max(var(--outer),env(safe-area-inset-left)); background:var(--ink); }
.cs-home { display:flex; align-items:center; min-width:60px; min-height:44px; }
.cs-home svg { width:65px; height:auto; display:block; }
.cs-top-r { display:flex; align-items:center; gap:clamp(9px,1.3vw,21px); }
.cs-btn { display:inline-flex; justify-content:center; align-items:center; gap:9px; min-height:44px; min-width:44px;
  padding:0 3px; border:0; background:transparent; font:500 14px/1.25 Plex,Arial,sans-serif; }
.cs-lang { color:var(--dim); }
.cs-btn:hover,.cs-motion:hover { color:var(--pa); }
.cs-open { display:none; }
.js .cs-open { display:inline-flex; }
.cs-open { color:var(--pa); font-weight:600; padding-inline:5px; }
.cs-side { display:none; position:fixed; inset:0; inset-inline-start:auto; margin:0; padding:0; width:min(370px,100vw);
  height:100%; height:100dvh; max-height:100%; max-width:100%; border:0; border-inline-start:1px solid var(--line); background:var(--ink); color:var(--pa); overflow:hidden; }
.cs-side[open] { display:block; }
.cs-side::backdrop { background:rgba(0,0,0,.68); }
.cs-sheet { display:flex; flex-direction:column; height:100%; }
.cs-sheet-head { flex:none; display:flex; align-items:center; justify-content:space-between; gap:16px;
  padding:calc(9px + env(safe-area-inset-top)) 23px 9px; }
.cs-sheet-head h2 { margin:0; color:var(--dim); font:500 15px/1.35 Plex,Arial,sans-serif; }
.cs-close i { position:relative; width:15px; height:15px; }
.cs-close i::before,.cs-close i::after { content:''; position:absolute; left:6px; height:15px; width:1.5px; background:currentColor; transform:rotate(45deg); }
.cs-close i::after { transform:rotate(-45deg); }
.cs-sheet-scroll { overflow:auto; overscroll-behavior:contain; padding:clamp(25px,7vh,65px) 23px max(24px,env(safe-area-inset-bottom)); }
.cs-sheet-scroll nav { display:grid; margin-bottom:24px; }
.cs-sheet-scroll nav a { display:flex; align-items:center; min-height:67px; border-bottom:1px solid var(--line); font:500 27px/1.35 Plex,Arial,sans-serif; }
.cs-sheet-scroll nav a:hover { color:var(--sig); }
html.sheet-open { overflow:hidden; }
html.sheet-open body { position:fixed; inset-inline:0; top:var(--sheet-offset,0); }
.cs-wrap,.cs-foot { width:100%; max-width:1600px; margin-inline:auto; }
.cs-main { min-width:0; padding:0 var(--outer); display:flex; flex-direction:column; }
.cs-main:focus { outline:0; }
.cs-main[id],.cs-main .row[id],.cs-main figure[id],.case-opening[id],.ix[id],#after-project,#page-footer { scroll-margin-top:calc(var(--bar) + 10px); }
.cs-scene-anchor { height:0; scroll-margin-top:calc(var(--bar) + 10px); }
.case-page .cs-main > .row + .row,.case-page .cs-main > .cs-scene-anchor + .row { margin-block-start:var(--rhythm); }

.row { display:grid; grid-template-columns:minmax(0,1fr); gap:var(--g); }
.t { position:relative; margin:0; min-width:0; border-radius:var(--radius); overflow:hidden; background:var(--bg,var(--card)); color:var(--fg,var(--pa));
  aspect-ratio:var(--arm,var(--ar,16/9)); isolation:isolate; }
.t > video,.t > .poster,.t > picture,.t > picture > .poster { position:absolute; inset:0; display:block; width:100%; height:100%; object-fit:cover; }
.t > video { opacity:0; transition:opacity .24s; }
.t > video.is-on { opacity:1; }
.cs-media { margin:0; min-width:0; }
.cs-media figcaption { margin:0; max-width:71ch; padding:9px 1px 0; color:var(--dim); font-size:13.5px; line-height:1.55; text-wrap:pretty; }
.case-opening,.ix-head { min-width:0; }
.case-opening > .t { width:100%; max-height:54svh; }
.t-head { display:grid; grid-template-columns:minmax(0,1fr); gap:13px; padding:clamp(21px,2.7vw,44px) 0 clamp(23px,3vw,52px); border-bottom:1px solid var(--line); }
.t-head h1,.ix-head h1 { margin:0; font:400 clamp(32px,5.7vw,83px)/1.08 FormaWide,Plex,sans-serif; letter-spacing:-.022em; }
.t-head h1 { direction:ltr; }
[dir=rtl] .t-head h1,[dir=rtl] .head-title p { text-align:right; }
.head-title p { margin:9px 0 0; color:#d9d5cd; font:400 clamp(15px,1.55vw,23px)/1.48 Plex,Arial,sans-serif; text-wrap:pretty; }
.t-head dl { display:flex; align-self:end; flex-wrap:wrap; align-items:baseline; gap:5px 11px; margin:0; color:var(--dim); font-size:14px; line-height:1.45; }
.t-head dl > div { display:flex; align-items:baseline; gap:11px; }
.t-head dl > div + div::before { content:''; border-left:1px solid var(--line); height:.85em; }
.t-head dd { margin:0; }
.cs-motion { display:inline-flex; align-items:center; gap:10px; min-height:44px; padding:0 2px; border:0; background:transparent; color:var(--dim); font-size:14px; }
.cs-motion i { width:9px; height:11px; display:block; border-inline:3px solid; }
@media(max-width:680px){
  .cs-side { inset:var(--bar) 0 auto; margin:0; width:100%; max-width:100%; height:auto;
    max-height:calc(100dvh - var(--bar)); overflow:auto; border:0; border-block:1px solid var(--line); }
  .cs-side::backdrop { background:rgba(12,12,12,.18); }
  .cs-sheet { height:auto; }
  .cs-sheet-head { position:absolute; inset-inline-end:20px; bottom:8px; padding:0; }
  .cs-sheet-head h2 { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); }
  .cs-sheet-scroll { padding:6px 20px 8px; }
  .cs-sheet-scroll nav { margin:0 0 4px; }
  .cs-sheet-scroll nav a { min-height:47px; font-size:15px; }
  .cs-sheet-scroll .cs-motion { max-width:calc(100% - 95px); text-align:start; }
}
.cs-motion[data-running=false] i { width:0; height:0; border:5px solid transparent; border-left:8px solid; border-right:0; }
.t-txt { background:transparent; border-radius:0; aspect-ratio:auto; display:flex; flex-direction:column; justify-content:center;
  padding:clamp(18px,3.8vw,64px) min(1.1vw,18px); overflow:visible; }
.t-txt h2 { margin:0 0 11px; color:var(--dim); font:500 14px/1.4 Plex,Arial,sans-serif; }
.t-txt p { margin:0; max-inline-size:54ch; font:400 clamp(17px,1.55vw,23px)/1.53 Plex,Arial,sans-serif; text-wrap:pretty; }
.t-txt p+p { margin-top:.7em; }
[dir=rtl] .t-txt p { line-height:1.68; }
.case-opening + .reading { margin-block-start:clamp(5px,1.1vw,20px); }
.k-iconset { display:grid; place-items:center; }
.k-iconset ul { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:clamp(14px,2.4vw,40px) clamp(10px,1.5vw,26px); list-style:none; padding:18px; margin:0; width:100%; }
.k-iconset li { display:grid; gap:7px; justify-items:center; text-align:center; font:500 clamp(12px,1.3vw,16px)/1.3 Plex,Arial,sans-serif; }
.k-iconset li svg { width:clamp(26px,4vw,54px); height:auto; }

.cs-scope { display:flex; flex-wrap:wrap; align-items:baseline; gap:4px 19px; padding:clamp(24px,4vw,66px) 0 clamp(18px,2.5vw,37px); font-size:14px; }
.cs-scope span { color:var(--dim); }
.cs-scope p { margin:0; }
.cs-actions { display:grid; gap:0 var(--outer); }
.cs-actions a,.ix-start { position:relative; display:flex; flex-direction:column; align-items:flex-start; justify-content:center;
  min-height:83px; padding:18px 0; padding-inline-end:35px; border-top:1px solid var(--line); }
.cs-actions .go,.ix-start .go { position:absolute; top:50%; inset-inline-end:2px; margin-top:-7px; }
.cs-similar span,.ix-start { font:500 clamp(22px,2.3vw,35px)/1.35 Plex,Arial,sans-serif; }
.cs-similar .go,.ix-start .go { color:var(--sig); }
.cs-next span { color:var(--dim); font-size:13px; }
.cs-next b { margin-top:4px; font:400 clamp(23px,2.4vw,36px)/1.16 FormaWide,Plex,sans-serif; }
[dir=rtl] .cs-next b { text-align:right; }
.cs-actions a:hover .go,.ix-start:hover .go { color:var(--sig); }
.cs-actions a:hover span:first-child,.ix-start:hover,.cs-foot a:hover,.cs-lang:hover { text-decoration:underline; text-underline-offset:4px; }
.cs-foot { display:flex; align-items:center; flex-wrap:wrap; gap:0 20px; margin-block-start:clamp(18px,3.6vw,60px); padding:12px var(--outer) max(20px,env(safe-area-inset-bottom)); border-top:1px solid var(--line); }
.cs-foot nav { display:flex; gap:12px; }
.cs-foot a { display:inline-flex; align-items:center; min-height:44px; min-width:44px; color:var(--dim); font-size:13px; }
.cs-foot .cs-return { margin-inline-end:auto; color:var(--pa); font-size:14px; }
.cs-foot > span { color:var(--dim); font:400 11px/1.4 PlexMono,monospace; }

.ix-head { padding:clamp(23px,4vw,65px) 0 clamp(19px,2.7vw,44px); }
.ix-head h1 { font-size:clamp(48px,7.8vw,116px); line-height:1; }
[dir=rtl] .ix-head h1 { font-family:Plex,Arial,sans-serif; font-weight:500; letter-spacing:-.028em; line-height:1.12; }
.ix-grid { display:grid; grid-template-columns:minmax(0,1fr); gap:clamp(31px,4.8vw,76px) clamp(22px,3vw,48px); }
.ix { min-width:0; display:block; }
.ix>.t { display:block; aspect-ratio:8/5; }
.ix-cap { position:relative; display:flex; flex-direction:column; gap:5px; padding:13px 0 0; padding-inline-end:31px; }
.ix-cap b { font:400 clamp(24px,2.6vw,42px)/1.08 FormaWide,Plex,sans-serif; }
[dir=rtl] .ix-cap b { text-align:right; }
.ix-service { color:var(--dim); font-size:clamp(14px,1.2vw,18px); line-height:1.45; text-wrap:pretty; }
.ix-cap .go { position:absolute; top:17px; inset-inline-end:3px; color:var(--dim); }
@media(hover:hover) { .ix:hover .go { color:var(--sig); } .ix:hover b { text-decoration:underline; text-underline-offset:5px; text-decoration-thickness:1px; } }
.ix-start { margin-top:clamp(34px,5.5vw,88px); flex-direction:row; align-items:center; justify-content:flex-start; }
@media(max-width:759px) {
  .material-sequence { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .material-sequence > :first-child { grid-column:1/-1; }
  .t-txt { padding-inline:2px; }
  .cs-foot > span { flex-basis:100%; margin-top:6px; }
}
@media(min-width:760px) {
  :root { --bar:64px; }
  .cs-home svg { width:78px; }
  .t { aspect-ratio:var(--ar,16/9); }
  .case-opening > .t { max-height:56svh; }
  .t-head { grid-template-columns:minmax(0,1fr) auto; align-items:end; }
  .t-txt { aspect-ratio:auto; }
  .row.r2,.ix-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .row.r3 { grid-template-columns:repeat(3,minmax(0,1fr)); }
  .row.reading { column-gap:clamp(28px,5.4vw,86px); }
  .row.reading.text-first { grid-template-columns:minmax(0,.7fr) minmax(0,1.3fr); }
  .row.reading.text-last { grid-template-columns:minmax(0,1.3fr) minmax(0,.7fr); }
  .row.reading.r1 .t-txt { display:grid; grid-template-columns:minmax(90px,.36fr) minmax(0,1fr); gap:clamp(24px,3vw,48px); align-items:baseline; }
  .row.reading.r1 .t-txt p { max-width:56ch; }
  .cs-media figcaption { font-size:14px; }
  .cs-actions { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .cs-actions a,.ix-start { min-height:104px; }
  .ix:first-child,.ix:last-child { grid-column:1/-1; display:grid; grid-template-columns:minmax(0,1.95fr) minmax(190px,.85fr); gap:var(--outer); align-items:end; }
  .ix:first-child .ix-cap,.ix:last-child .ix-cap { padding-block:20px 5px; border-top:1px solid var(--line); }
  .ix:first-child .ix-cap b,.ix:last-child .ix-cap b { font-size:clamp(30px,3.3vw,53px); }
  .ix:first-child .ix-cap .go,.ix:last-child .ix-cap .go { top:22px; }
}
/* ---------- the motion tiles drawn in code ---------- */
.t-art { display:grid; place-items:center; }
.t-art svg { display:block; overflow:visible; }
/* a wordmark drawn first as a hairline, then cut solid: the two weights of an architect's drawing */
.k-draw { position:relative; width:var(--kw, 58%); }
.k-draw .logo-guide { position:absolute; inset:0; width:100%; height:100%; fill:var(--fg); opacity:.39; }
.k-draw .logo-guide path { stroke:none; }
.k-draw svg { width:100%; height:auto; }
.k-draw svg { stroke-width:.7; }   /* case.js keeps hairlines near one screen pixel at any size (vector-effect would break the dash) */
.k-draw .logo path { fill:var(--fg); fill-opacity:0; stroke:var(--fg); stroke-dasharray:1; stroke-dashoffset:1;
  animation:k-draw var(--dur, 8s) cubic-bezier(.45,0,.2,1) infinite; animation-delay:calc(var(--i, 0) * .09s); }
@keyframes k-draw { 0% { stroke-dashoffset:1; fill-opacity:0; } 34% { stroke-dashoffset:0; fill-opacity:0; } 48% { stroke-dashoffset:0; fill-opacity:1; }
  86% { stroke-dashoffset:0; fill-opacity:1; opacity:1; } 96%, 100% { stroke-dashoffset:0; fill-opacity:1; opacity:0; } }
/* a plan: hairlines draw in, then the cut walls fill */
.k-plan { position:absolute; inset:6%; }
.k-plan svg { display:block; width:100%; height:100%; overflow:visible; stroke-width:1.4; }
.k-plan .ax { stroke-opacity:.38; }
.k-plan .lab { fill:var(--fg); fill-opacity:.7; font:500 14px/1 PlexMono, ui-monospace, monospace; text-anchor:middle; dominant-baseline:central; opacity:0;
  animation:k-cut var(--dur, 9s) ease infinite; animation-delay:-.4s; }
.k-plan .hair { fill:none; stroke:var(--fg); stroke-dasharray:1; stroke-dashoffset:1; opacity:.85;
  animation:k-hair var(--dur, 9s) cubic-bezier(.45,0,.2,1) infinite; animation-delay:calc(var(--i, 0) * .05s); }
.k-plan .cut { fill:var(--fg); opacity:0; animation:k-cut var(--dur, 9s) ease infinite; animation-delay:calc(var(--i, 0) * .06s + .2s); }
.k-plan .acc { fill:var(--acc); opacity:0; animation:k-cut var(--dur, 9s) ease infinite; animation-delay:1.2s; }
@keyframes k-hair { 0% { stroke-dashoffset:1; opacity:.85; } 38% { stroke-dashoffset:0; } 88% { stroke-dashoffset:0; opacity:.85; } 98%, 100% { stroke-dashoffset:0; opacity:0; } }
@keyframes k-cut { 0%, 38% { opacity:0; } 52% { opacity:1; } 88% { opacity:1; } 98%, 100% { opacity:0; } }
/* the palette: bands that breathe in turn; an accent only ever as a narrow band */
.k-pal { position:absolute; inset:0; display:flex; }
.k-pal > div { position:relative; flex:var(--w, 1) 1 0; background:var(--c); color:var(--tc); animation:k-band 9s cubic-bezier(.65,0,.25,1) infinite; animation-delay:calc(var(--i) * -2.25s); }
@keyframes k-band { 0%, 100% { flex-grow:var(--w, 1); } 22% { flex-grow:calc(var(--w, 1) * 2.4); } 45% { flex-grow:var(--w, 1); } }
.k-pal span { position:absolute; inset-inline-start:12px; bottom:12px; font:500 11px/1.35 PlexMono, ui-monospace, monospace; max-width:calc(100% - 16px); overflow-wrap:anywhere; direction:ltr; text-align:left; }
.k-pal b, .k-pal i { display:block; font:inherit; }
html[dir=rtl] .k-pal span { inset-inline-start:auto; left:12px; }
/* type: the face itself, its glyphs turning over */
.k-type { position:absolute; inset:0; display:flex; flex-direction:column; justify-content:space-between; padding:16px; container-type:inline-size; }
.k-type .big { font-size:46cqi; line-height:.9; text-align:center; transition:opacity .25s; }
.k-type .meta { display:flex; justify-content:space-between; gap:12px; font:500 11px/1.4 PlexMono, ui-monospace, monospace; opacity:.75; direction:ltr; }
.k-type .row-glyphs + .row-glyphs { margin-top:.2em; }
.k-type .row-glyphs { font-size:clamp(11px, 4.4cqi, 24px); line-height:1.35; letter-spacing:.06em; text-align:center; opacity:.8; text-wrap:balance; }
.k-type.ar .big { font-size:54cqi; line-height:1.1; }
.k-type.ar .row-glyphs { letter-spacing:0; word-spacing:.18em; }
/* a line said word by word */
.k-say { position:absolute; inset:0; display:flex; flex-direction:column; justify-content:center; padding:clamp(18px, 5.5cqi, 64px); container-type:inline-size; }
.k-say p { margin:0; font-size:clamp(26px, 6.3cqi, 76px); line-height:1.2; text-wrap:balance; }
.k-say .w { opacity:.72; transition:opacity .35s ease; }
.k-say .w.on { opacity:1; }
.k-say .w.acc { color:var(--acc); }
.k-say small { margin-top:18px; font:500 11.5px/1.4 PlexMono, ui-monospace, monospace; opacity:.7; direction:ltr; }
html[dir=rtl] .k-say small:not(.lat) { font:500 14px/1.5 Plex, Arial, sans-serif; direction:rtl; }
html[dir=rtl] .k-say small.lat { text-align:right; }
@media (max-width:759px) {
  .k-draw { width:var(--kwm, 78%); }
  .k-plan { inset:5%; }
  .k-pal { flex-direction:column; }
  .k-pal span { bottom:auto; top:50%; transform:translateY(-50%); }
  .k-pal b, .k-pal i { display:inline; }
  .k-pal i { margin-inline-start:10px; opacity:1; }
  .k-say p { font-size:clamp(28px, 9cqi, 44px); }
  .k-steps ol { font-size:clamp(40px, 14cqi, 72px); }
}

/* a pixel grid built cell by cell; several grids turn into one another (case.js) */
.k-pix { position:absolute; inset:0; display:grid; place-items:center; }
.k-pix svg { width:var(--pw, 62%); max-height:82%; height:auto; overflow:visible; }
.k-pix rect { transform-box:fill-box; transform-origin:center; transform:scale(0); transition-property:transform, fill; transition-duration:.55s, .16s;
  transition-timing-function:cubic-bezier(.3,1.45,.5,1), linear; transition-delay:var(--d, 0s), 0s; }
.k-pix.is-in rect.on { transform:scale(1); }
.k-pix.settled rect { transition-delay:0s, 0s; transition-duration:.32s, .16s; }
.k-pix .gl { fill:none; stroke:var(--fg); stroke-opacity:.16; stroke-width:.035; }
/* the brand's steps lit in turn, its mark moving to the one that is on */
.k-steps { position:absolute; inset:0; display:flex; align-items:center; padding:clamp(18px, 6vw, 72px); container-type:inline-size; }
.k-steps ol { list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:.1em; font-size:clamp(34px, 10.5cqi, 128px); line-height:1.02; }
.k-steps li { display:flex; align-items:center; gap:.32em; opacity:.72; transition:opacity .6s ease; }
.k-steps li.on { opacity:1; }
.k-steps li small { font:500 max(11px, .13em)/1 PlexMono, ui-monospace, monospace; min-width:2.4em; opacity:.7; }
.k-steps li span { position:relative; white-space:nowrap; }
.k-steps li.on span::after { content:''; position:absolute; top:52%; inset-inline-start:calc(100% + .32em); width:1.5em; height:.4em; border-radius:1em; background:var(--acc);
  transform:translateY(-50%) scaleX(.1); opacity:0; animation:k-mark .7s cubic-bezier(.2,.8,.2,1) .15s forwards; }
.k-steps.diamond li.on span::after { width:.46em; height:.46em; border-radius:0; transform:translateY(-50%) rotate(45deg) scale(.1); animation-name:k-dia; }
@keyframes k-mark { to { transform:translateY(-50%) scaleX(1); opacity:1; } }
@keyframes k-dia { to { transform:translateY(-50%) rotate(45deg) scale(1); opacity:1; } }
/* two diamonds that meet in the middle */
.k-meet { position:absolute; inset:0; display:grid; place-items:center; }
.k-meet svg { width:min(80%, 720px); height:auto; overflow:visible; }
html[dir=rtl] .k-meet svg { transform:scaleX(-1); }
.k-meet path { transform-box:fill-box; transform-origin:center; animation:k-meet-a 6.5s cubic-bezier(.7,0,.3,1) infinite; }
.k-meet .m-b { animation-name:k-meet-b; }
@keyframes k-meet-a { 0%, 6% { transform:translateX(-170px) scale(.55); opacity:0; } 16% { opacity:1; } 44%, 80% { transform:translateX(-60px) scale(1); opacity:1; } 94%, 100% { transform:translateX(-170px) scale(.55); opacity:0; } }
@keyframes k-meet-b { 0%, 6% { transform:translateX(170px) scale(.55); opacity:0; } 16% { opacity:1; } 44%, 80% { transform:translateX(60px) scale(1); opacity:1; } 94%, 100% { transform:translateX(170px) scale(.55); opacity:0; } }
/* the app icon, its plus turning into place */
.k-icon { position:absolute; inset:0; display:grid; place-items:center; }
.k-icon svg { width:min(36%, 300px); height:auto; overflow:visible; animation:k-icon 7s cubic-bezier(.3,1.35,.5,1) infinite; }
.k-icon .i-plus { transform-origin:256px 256px; animation:k-plus 7s cubic-bezier(.6,0,.2,1) infinite; }
@keyframes k-icon { 0% { transform:scale(.55); opacity:0; } 9% { transform:scale(1); opacity:1; } 86% { transform:scale(1); opacity:1; } 96%, 100% { transform:scale(.8); opacity:0; } }
@keyframes k-plus { 0%, 12% { transform:rotate(-90deg) scale(.3); } 28% { transform:rotate(0deg) scale(1); } 58% { transform:rotate(0deg) scale(1); } 70%, 100% { transform:rotate(90deg) scale(1); } }
@media (max-width:759px) { .k-pix svg { width:var(--pwm, var(--pw, 62%)); } .k-icon svg { width:min(46%, 240px); } }

/* drawn tiles wait off screen and start from the first line when they arrive (case.js) */
.js .k-draw .logo path, .js .k-plan path, .js .k-plan text, .js .k-pal > div, .js .k-meet path, .js .k-icon svg, .js .k-icon .i-plus { animation-play-state:paused; }
.js .t.is-live .k-draw .logo path, .js .t.is-live .k-plan path, .js .t.is-live .k-plan text, .js .t.is-live .k-pal > div, .js .t.is-live .k-meet path, .js .t.is-live .k-icon svg, .js .t.is-live .k-icon .i-plus { animation-play-state:running; }
/* RELAY's own motion (its approved deck, «الحركة»: «الشعار يتحرّك كما يعمل»): the bar waits, lit (a decision waits: the only turquoise),
   moves on, a second bar joins it on its line, steps up (the overlap opens into the window), then the signature. 9 s, one loop. */
.k-relay { position:absolute; inset:0; display:grid; place-items:center; }
.k-relay svg { width:min(72%, 1080px); height:auto; overflow:visible; }
.k-relay rect, .k-relay path { fill:var(--fg); }
.k-relay .rm-cam { animation:rm-cam 9s cubic-bezier(.65,0,.25,1) infinite; }
.k-relay .rm-a { animation:rm-a 9s cubic-bezier(.65,0,.25,1) infinite; }
.k-relay .rm-b { animation:rm-b 9s cubic-bezier(.65,0,.25,1) infinite; }
.k-relay .rm-sym { animation:rm-sym 9s linear infinite; }
.k-relay .rm-l { animation:rm-l 9s cubic-bezier(.2,.8,.2,1) backwards infinite; animation-delay:calc(var(--i) * .07s); }
@keyframes rm-cam { 0%, 20% { transform:translateX(1800px); } 46% { transform:translateX(1540px); } 68%, 100% { transform:translateX(0); } }
@keyframes rm-a { 0% { transform:translateX(-700px); fill:var(--acc); opacity:1; } 3% { opacity:1; } 6.5% { opacity:.62; } 10% { opacity:1; } 13.5% { opacity:.62; }
  17% { opacity:1; } 19% { transform:translateX(-700px); fill:var(--acc); } 20.5% { fill:var(--fg); } 29% { transform:translateX(0); } 51% { opacity:1; } 55%, 100% { transform:translateX(0); fill:var(--fg); opacity:0; } }
@keyframes rm-b { 0%, 28% { transform:translate(1500px, 232.727px); opacity:0; } 29% { opacity:1; } 38% { transform:translate(0, 232.727px); } 48% { transform:translate(0, 0); opacity:1; } 55%, 100% { transform:translate(0, 0); opacity:0; } }
@keyframes rm-sym { 0%, 48% { opacity:0; } 55%, 90% { opacity:1; } 97%, 100% { opacity:0; } }
@keyframes rm-l { 0%, 56% { opacity:0; transform:translateY(200px); } 67%, 90% { opacity:1; transform:translateY(0); } 97%, 100% { opacity:0; transform:translateY(0); } }
.js .k-relay .rm-cam, .js .k-relay rect, .js .k-relay path { animation-play-state:paused; }
.js .t.is-live .k-relay .rm-cam, .js .t.is-live .k-relay rect, .js .t.is-live .k-relay path { animation-play-state:running; }
@media (max-width:759px) { .k-relay svg { width:84%; } }
.k-say.k-accent-rim .w.acc { -webkit-text-stroke:.05em var(--fg); paint-order:stroke fill; }
[lang=ar] .k-say p { line-height:1.38; }
.k-say small[lang=ar] { font:500 15px/1.55 Plex,Arial,sans-serif; direction:rtl; text-align:start; }
.t-photo-motion .poster { transform:scale(1); }
.t-photo-motion.is-live .poster { animation:cs-photo-pan 12s ease-in-out infinite alternate; }
@keyframes cs-photo-pan { to { transform:scale(1.025); } }
.k-pal >div { min-width:0; }
.k-pal i { opacity:1; }
html.motion-paused .t *,html.motion-paused .t *::after,html.motion-paused .t *::before { animation:none!important; transition:none!important; }
html.motion-paused .k-draw .logo path { stroke-dashoffset:0; fill-opacity:1; opacity:1; }
html.motion-paused .k-plan .hair,html.motion-paused .k-plan .cut,html.motion-paused .k-plan .acc,html.motion-paused .k-plan .lab { stroke-dashoffset:0; opacity:1; }
html.motion-paused .k-meet .m-a { transform:translateX(-60px); }
html.motion-paused .k-meet .m-b { transform:translateX(60px); }
html.motion-paused .k-pix rect.on { transform:scale(1); }
html.motion-paused .k-steps li,html.motion-paused .k-say .w { opacity:1; }
html.motion-paused .k-steps li span::after,html.motion-paused .k-relay rect { display:none; }
html.motion-paused .k-relay .rm-cam,html.motion-paused .k-relay .rm-sym,html.motion-paused .k-relay .rm-l { opacity:1; transform:none; }
@media(prefers-reduced-motion:reduce) {
  html:not(.motion-running) .t-photo-motion .poster { animation:none; }
  html:not(.js) .k-draw .logo path,html:not(.js) .k-plan *,html:not(.js) .k-pal >div,html:not(.js) .k-meet path,
  html:not(.js) .k-icon *,html:not(.js) .k-relay * { animation:none; stroke-dashoffset:0; fill-opacity:1; opacity:1; }
  html:not(.js) .k-relay rect { display:none; }
  html:not(.js) .k-say .w,html:not(.js) .k-steps li { opacity:1; }
}
