/* SiamFilms. One stylesheet. Night ground, warm ink, poster type, her orange on details only.
   Square corners, no shadows; the only gradients are functional shades behind text on pictures. */

@font-face { font-family: 'Archivo'; font-style: normal; font-weight: 400 800; font-stretch: 62% 100%; font-display: swap;
             src: url(../fonts/archivo.woff2) format('woff2'); }
@font-face { font-family: 'Noto Sans Arabic'; font-style: normal; font-weight: 400 800; font-stretch: 62.5% 100%; font-display: swap;
             src: url(../fonts/noto-arabic.woff2) format('woff2'); unicode-range: U+0600-06FF, U+200C-200D, U+FB50-FDFF, U+FE70-FEFF; }

:root {
  color-scheme: dark;
  --ground: #0C0B0A;     /* warm black, a cinema before the film */
  --raised: #161412;
  --ink: #EEE9E2;        /* warm off-white */
  --ink-2: #D9D2C8;
  --mute: #9A938A;
  --rule: #2C2926;
  --acc: #CC5A2B;        /* her logo orange */
  --acc-ink: #E07A4C;    /* the orange as small text on the night ground */
  --t: 'Archivo', 'Arial Narrow', 'Helvetica Neue', Arial, sans-serif;
  --x: 'Archivo', 'Helvetica Neue', Arial, sans-serif;
  --ar: 'Noto Sans Arabic', 'Geeza Pro', Tahoma, sans-serif;
  --gut: clamp(16px, 3.2vw, 48px);
  --hdr: 72px;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --shade-top: linear-gradient(180deg, rgba(12, 11, 10, .55) 0, rgba(12, 11, 10, 0) 24%);
  --shade-bot: linear-gradient(0deg, rgba(12, 11, 10, .82) 0, rgba(12, 11, 10, .35) 32%, rgba(12, 11, 10, 0) 58%);
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--ground); -webkit-text-size-adjust: 100%; -webkit-tap-highlight-color: transparent; }
body { margin: 0; background: var(--ground); color: var(--ink); font: 400 17px/1.55 var(--x); -webkit-font-smoothing: antialiased;
       text-rendering: optimizeLegibility; overflow-x: clip; }
a { color: inherit; text-decoration: none; }
img, video, svg { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
p, h1, h2, h3, ul, ol, dl, dd, figure { margin: 0; }
p, dd, li { overflow-wrap: break-word; }
ul, ol { padding: 0; list-style: none; }
::selection { background: var(--acc); color: var(--ground); }
:focus-visible { outline: 2px solid var(--acc-ink); outline-offset: 3px; }
main:focus { outline: none; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: fixed; z-index: 100; left: var(--gut); top: 12px; padding: 10px 14px; background: var(--ink); color: var(--ground);
        transform: translateY(-160%); }
.skip:focus { transform: none; }
:not(html)[lang="ar"] { font-family: var(--ar); }
.ar-t[lang="en"] { font-family: var(--x); font-weight: 400; }

/* ---------- Type ---------- */
.ttl { font-family: var(--t); font-weight: 800; font-stretch: 62%; text-transform: uppercase; line-height: .86; letter-spacing: -.004em;
       text-wrap: balance; overflow-wrap: normal; hyphens: manual; }
.ttl a { display: inline; }
.meta { font: 400 15px/1.45 var(--x); color: var(--mute); text-wrap: pretty; }
.lead { font: 400 clamp(24px, 3.1vw, 46px)/1.22 var(--x); letter-spacing: -.012em; text-wrap: pretty; max-width: 24em; }
.lead a, .founder-line a { text-decoration: underline; text-decoration-color: var(--acc); text-decoration-thickness: 1px;
                           text-underline-offset: .16em; transition: color .4s; }
.ar-t { font: 600 clamp(20px, 2.1vw, 30px)/1.2 var(--ar); color: var(--ink-2); }
.go { display: inline-flex; align-items: center; gap: 12px; font: 400 16px/1.3 var(--x); color: var(--ink); padding: 6px 0; }
.arw-i { width: 20px; height: 12px; flex: none; transition: transform .6s var(--ease); }
.arw-i path, .out-i path { fill: none; stroke: currentColor; stroke-width: 1.4; }
.out-i { width: 11px; height: 11px; flex: none; transition: transform .6s var(--ease); }
@media (hover: hover) {
  .go:hover .arw-i { transform: translateX(5px); }
  .lead a:hover, .founder-line a:hover { color: var(--acc-ink); }
}
.links { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 36px; }

/* ---------- Header ---------- */
.hdr { position: fixed; z-index: 50; inset: 0 0 auto 0; height: var(--hdr); display: flex; align-items: center; justify-content: space-between;
       gap: 24px; padding: 0 var(--gut); color: var(--ink); transition: transform .6s var(--ease), background-color .4s linear; }
.hdr::after { content: ""; position: absolute; inset: auto 0 0 0; height: 1px; background: var(--rule); opacity: 0; transition: opacity .4s linear; }
.hdr.is-solid { background-color: rgba(12, 11, 10, .94); }
.hdr.is-solid::after { opacity: 1; }
.hdr.is-up { transform: translateY(-101%); }
.logo { display: block; padding: 8px 0; }
.logo-mark { display: block; width: 126px; aspect-ratio: 1600 / 230; background: var(--ink);
             -webkit-mask: url(../media/logo-en.png) center / contain no-repeat; mask: url(../media/logo-en.png) center / contain no-repeat; }
.nav { display: flex; gap: 32px; }
.nav a { position: relative; font: 400 15px/1 var(--x); padding: 10px 0; }
.nav a::after, .ul::after { content: ""; position: absolute; left: 0; right: 0; bottom: 4px; height: 1px; background: currentColor;
                            transform: scaleX(0); transform-origin: right; transition: transform .6s var(--ease); }
.nav a[aria-current="page"] { color: var(--acc-ink); }
@media (hover: hover) { .nav a:hover::after { transform: scaleX(1); transform-origin: left; } }
.menu-btn { display: none; font: 400 15px/1 var(--x); padding: 12px 0 12px 16px; position: relative; z-index: 2; }
.menu-close { display: none; }
.menu-btn[aria-expanded="true"] .menu-open { display: none; }
.menu-btn[aria-expanded="true"] .menu-close { display: inline; }

.menu { position: fixed; z-index: 48; inset: 0; background: var(--ground); display: flex; flex-direction: column; justify-content: flex-end;
        padding: calc(var(--hdr) + 24px) var(--gut) calc(28px + env(safe-area-inset-bottom)); }
.menu[hidden] { display: none; }
.menu-nav { display: flex; flex-direction: column; gap: 4px; }
.menu-nav a { font-size: min(19vw, 15svh); line-height: .9; padding: 2px 0; display: block; }
.menu-nav a[aria-current="page"] { color: var(--acc-ink); }
.menu-foot { display: flex; flex-wrap: wrap; gap: 10px 24px; margin-top: 40px; padding-top: 18px; border-top: 1px solid var(--rule);
             font-size: 15px; color: var(--ink-2); }

/* ---------- Pictures ---------- */
.cover { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.grain { position: relative; overflow: hidden; }
.grain::after { content: ""; position: absolute; inset: -50%; z-index: 2; pointer-events: none; background-image: var(--grain-img, none);
                background-size: 192px 192px; opacity: .12; mix-blend-mode: overlay; animation: sf-grain .7s steps(5) infinite;
                animation-play-state: paused; }
.grain.is-on::after { animation-play-state: running; }
@keyframes sf-grain { 0% { transform: translate(0, 0); } 20% { transform: translate(-7%, 4%); } 40% { transform: translate(5%, -6%); }
                      60% { transform: translate(-3%, 8%); } 80% { transform: translate(8%, 2%); } 100% { transform: translate(0, 0); } }

/* Pre-animation states exist only with JS; a timed fallback reveals them if a script ever fails. */
@keyframes sf-show { to { opacity: 1; visibility: visible; } }
@keyframes sf-hide { to { opacity: 0; visibility: hidden; } }
.js .rise { opacity: 0; animation: sf-show 0s 3s forwards; }

/* ---------- Laurels (drawn) ---------- */
.laurels { display: flex; }
.lr { position: relative; flex: none; width: var(--lw, 132px); aspect-ratio: 176 / 162; color: var(--acc-ink); container-type: inline-size; }
.lr-svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.lr-svg path { fill: none; stroke: currentColor; stroke-width: 1.1; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.lr-t { position: absolute; left: 21%; right: 21%; top: 9%; bottom: 17%; display: flex; flex-direction: column; align-items: center;
        justify-content: center; text-align: center; gap: 3cqw; color: var(--ink); }
.lr-f { font: 800 max(13px, 11.5cqw)/.92 var(--t); font-stretch: 62%; text-transform: uppercase; overflow-wrap: anywhere; }
.lr-p { font: 400 max(10.5px, 8cqw)/1.18 var(--x); text-wrap: balance; }
.lr-y { font: 400 max(10.5px, 7.6cqw)/1 var(--x); color: var(--mute); font-variant-numeric: tabular-nums; }

/* ---------- Festival logos (round 2: the festivals' own logos replace the drawn laurels; prize + year under them) ---------- */
.lr.lg { width: auto; aspect-ratio: auto; container-type: normal; display: flex; flex-direction: column; align-items: center; gap: 12px;
         color: var(--ink); --u: 40px; }
.lg-m { height: calc(var(--u) * 1.3); display: flex; align-items: center; justify-content: center; }
.lg-m img { display: block; height: calc(var(--u) * var(--f)); width: auto; max-width: none; }
.lg-t { display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; max-width: max(calc(var(--u) * 3.2), 120px); }
.lg .lr-p { font: 400 13px/1.25 var(--x); color: var(--ink-2); text-wrap: balance; }
.lg .lr-y { font: 400 12px/1 var(--x); }
.hero-laurels:has(.lg) { gap: 34px; margin: 0; align-items: flex-start; }
.hero-laurels .lg { --u: clamp(38px, 3.5vw, 52px); }
.band-laurels:has(.lg) { align-items: flex-start; gap: 48px 24px; }
.band, .awards { overflow-x: clip; }      /* logos start a little larger (focus pull); never a sideways scroll */
.band-laurels .lg { --u: clamp(50px, 5.4vw, 84px); }
.band-laurels .lg .lr-p { font-size: 15px; }
.aw-laurels:has(.lg) { align-items: start; row-gap: 48px; }
.aw-laurels .lg { --u: clamp(42px, 4vw, 62px); }

/* ---------- Home: first screen ---------- */
.hero { position: relative; height: 100vh; height: 100svh; min-height: 560px; overflow: hidden; background: var(--ground);
        display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; align-content: end; column-gap: 40px;
        padding: 0 var(--gut) clamp(28px, 6vh, 56px); }
.hero-media, .open-media { position: absolute; inset: 0; }
.hero-shade, .open-shade, .panel-shade { position: absolute; inset: 0; z-index: 3; pointer-events: none; background: var(--shade-top), var(--shade-bot); }
.hero-copy { position: relative; z-index: 4; container-type: inline-size; min-width: 0; }
.hero-ttl { font-size: min(13.5vw, 25svh, calc(100cqw / var(--w2))); }
.hero-ttl a { transition: color .5s; }
@media (hover: hover) { .hero-ttl a:hover { color: var(--ink-2); } }
.hero-meta, .open-meta .meta, .panel .meta, .ab-meta .meta { color: var(--ink-2); }
.hero-meta { margin-top: 18px; }
.hero-laurels { position: relative; z-index: 4; gap: 4px; --lw: clamp(118px, 9.6vw, 140px); margin-right: -10px; }

/* Intro (home, once per visit): the logo writes itself on the warm-black ground, then the black lifts to the film.
   Never without JS, never with reduced motion. */
.intro { display: none; }
.intro-black .intro { display: block; position: fixed; inset: 0; z-index: 60; pointer-events: none; animation: sf-hide 0s 9s forwards; }
.intro-veil { position: absolute; inset: 0; background: var(--ground); }
.intro-mark { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: flex; flex-direction: column; align-items: center;
              gap: clamp(18px, 3.4vh, 30px); width: min(640px, 78vw); }
.intro-ar { width: 100%; height: auto; --p: 0;
            -webkit-mask-image: linear-gradient(to left, red calc(var(--p) * 130% - 30%), transparent calc(var(--p) * 130%));
            mask-image: linear-gradient(to left, red calc(var(--p) * 130% - 30%), transparent calc(var(--p) * 130%)); }
.intro-en { width: 32%; opacity: 0; }
.intro-black .hero-ttl, .intro-black .hero-meta, .intro-black .hero-laurels, .intro-black .hdr .logo { opacity: 0; animation: sf-show 0s 9s forwards; }

/* ---------- Home: laurel band ---------- */
.band { padding: clamp(88px, 15vh, 168px) var(--gut); }
.band-laurels { justify-content: space-between; --lw: clamp(140px, 13.4vw, 200px); }

/* ---------- Home: stacked films (native sticky; the panel underneath steps back) ---------- */
.stack { position: relative; display: flow-root; }
.panel { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.sig-mask .panel { margin-bottom: 42vh; margin-bottom: 42svh; }
/* A sticky panel only holds while its margin box fits the stack, so the last one holds on a spacer instead. */
.sig-mask .panel:last-child { margin-bottom: 0; }
.sig-mask .stack::after { content: ''; display: block; height: 42vh; height: 42svh; }
.panel-in { position: absolute; inset: 0; display: block; overflow: hidden; background: var(--ground); transform-origin: 50% 20%; }
.panel-media { position: absolute; inset: 0; }
.panel-media img { transition: transform 1.6s var(--ease); }
.panel-copy { position: absolute; z-index: 5; left: var(--gut); right: calc(var(--gut) + 200px); bottom: clamp(28px, 6vh, 56px); container-type: inline-size; }
.panel-ttl { font-size: min(14vw, 26svh, calc(100cqw / var(--w2))); }
.panel .meta { margin-top: 16px; }
.panel-go { position: absolute; z-index: 5; right: var(--gut); bottom: clamp(28px, 6vh, 56px); }
.panel-dim { position: absolute; inset: 0; z-index: 8; background: var(--ground); opacity: 0; pointer-events: none; }
.knock { display: none; }
.js.sig-mask .knock { display: flex; position: absolute; inset: 0; z-index: 4; align-items: center; justify-content: center; pointer-events: none;
                      padding: 0 var(--gut); background: var(--ground); mix-blend-mode: multiply; container-type: inline-size; }
.knock-t { display: block; color: var(--ink); text-align: center; font-size: min(30svh, calc(100cqw / var(--w2))); line-height: .84; }
@media (hover: hover) {
  .panel-in:hover .panel-media img { transform: scale(1.025); }
  .panel-in:hover .arw-i { transform: translateX(5px); }
}

/* ---------- Home: founder line ---------- */
.founder { padding: clamp(120px, 20vh, 220px) var(--gut) clamp(100px, 16vh, 180px); }
.founder-line { font: 400 clamp(26px, 3.4vw, 50px)/1.2 var(--x); letter-spacing: -.014em; max-width: 23em; text-wrap: pretty; }
.founder .links { margin-top: 48px; }

/* ---------- Footer = contact. Default ROLL: end credits, rolling up into place. ---------- */
.foot { position: relative; overflow: hidden; border-top: 1px solid var(--rule); padding: clamp(110px, 18vh, 200px) var(--gut) 40px; text-align: center; }
.foot-in { will-change: transform; }
.foot-mark .logo-mark { width: clamp(150px, 16vw, 210px); margin: 0 auto; }
.foot-mail { margin-top: clamp(56px, 9vh, 96px); }
.mail { display: inline-block; text-transform: none; font-size: min(128px, calc((100vw - 2 * var(--gut)) / 8.9)); line-height: .9; letter-spacing: 0;
        padding-bottom: .08em; background: linear-gradient(var(--acc), var(--acc)) left bottom / 100% 2px no-repeat; }
.copy-row { margin-top: 22px; display: flex; justify-content: center; align-items: center; gap: 16px; min-height: 28px; }
.copy { font: 400 15px/1 var(--x); color: var(--ink-2); padding: 8px 0; position: relative; }
.copy::after { content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 1px; background: var(--rule); transition: background .4s; }
@media (hover: hover) { .copy:hover::after { background: var(--acc); } }
.copy-msg { font: 400 15px/1 var(--x); color: var(--acc-ink); }
.cr { margin: clamp(64px, 11vh, 120px) auto 0; max-width: 760px; display: grid; gap: 14px; }
.cr div { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: baseline; }
.cr dt { text-align: right; font: 400 14px/1.4 var(--x); color: var(--mute); }
.cr dd { text-align: left; font: 400 18px/1.4 var(--x); }
.cr a { transition: color .4s; }
@media (hover: hover) { .cr a:hover, .menu-foot a:hover { color: var(--acc-ink); } }
.rights { margin-top: clamp(72px, 12vh, 128px); font: 400 13px/1.4 var(--x); color: var(--mute); }


/* ---------- Page heads (films, press) ---------- */
.head { padding: calc(var(--hdr) + clamp(28px, 7vh, 72px)) var(--gut) 0; }
.head-ttl { font-size: min(27vw, 40svh, 380px); margin-left: -.02em; }
.toc { display: flex; flex-wrap: wrap; gap: 8px 40px; margin-top: 32px; padding-top: 18px; border-top: 1px solid var(--rule); }
.toc a { position: relative; font: 400 17px/1.4 var(--x); color: var(--ink-2); padding: 4px 0; transition: color .4s; }
@media (hover: hover) { .toc a:hover { color: var(--acc-ink); } }

/* ---------- Films: the poster wall ---------- */
.grp { display: grid; grid-template-columns: minmax(200px, 3fr) minmax(0, 9fr); gap: 24px; padding: clamp(80px, 13vh, 132px) var(--gut) 0; }
.grp-ttl { position: sticky; top: calc(var(--hdr) + 18px); align-self: start; font-size: clamp(28px, 2.9vw, 42px); max-width: 7em; }
.grp:last-child { padding-bottom: clamp(110px, 18vh, 200px); }
.wall { display: flex; flex-direction: column; gap: 64px; }
.row { display: flex; gap: 24px; align-items: flex-start; }
.fig { flex: var(--ar) 1 0%; min-width: 0; }
.fig > a { display: block; }
.fig-pic { position: relative; aspect-ratio: var(--ar); overflow: hidden; background: var(--raised); container-type: inline-size; }
.fig-pic > img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.6s var(--ease); }
.fig-v { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .8s var(--ease); }
.fig.is-h .fig-v { opacity: 1; }
.fig-cap { display: block; margin-top: 16px; }
.fig-ttl { display: block; font-size: clamp(22px, 2.1vw, 30px); line-height: .92; }
.fig-cap .meta { display: block; margin-top: 8px; font-size: 14px; }
.card { display: flex; flex-direction: column; justify-content: flex-end; padding: 9%; }
.card-ttl { font-size: min(22cqw, calc(84cqw / var(--w))); }
@media (hover: hover) {
  .fig:not(.has-v) > a:hover .fig-pic > img { transform: scale(1.04); }
  .fig > a:hover .fig-cap .meta { color: var(--ink-2); }
}

/* ---------- Film page ---------- */
.open { position: relative; height: 100vh; height: 100svh; min-height: 560px; overflow: hidden; display: flex; align-items: flex-end;
        padding: 0 var(--gut) clamp(28px, 6vh, 56px); }
.open-copy { position: relative; z-index: 4; width: 100%; container-type: inline-size; }
.open-ttl { font-size: min(15vw, 30svh, calc(100cqw / var(--w2))); }
.open-meta { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 28px; margin-top: 18px; }
.open--framed .open-media { inset: calc(var(--hdr) + 8px) var(--gut) auto auto; }
.framed-img { height: min(66svh, 640px); width: auto; }
.open--card { background: var(--raised); }
.open--framed .open-shade, .open--card .open-shade { display: none; }

.syn { padding: clamp(100px, 17vh, 190px) var(--gut) 0; }
.syn.has-ar { display: grid; grid-template-columns: 7fr 4fr; gap: 64px; align-items: end; }
.syn-en { font: 400 clamp(24px, 2.9vw, 42px)/1.26 var(--x); letter-spacing: -.012em; max-width: 22em; text-wrap: pretty; }
.syn-ar { font: 400 clamp(17px, 1.5vw, 21px)/1.9 var(--ar); color: var(--mute); }

.stills { padding-top: clamp(110px, 18vh, 190px); }
.stills-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; padding: 0 var(--gut) 28px; }
.stills-ttl { font-size: clamp(48px, 6vw, 88px); }
.stills-ctl { display: flex; align-items: center; gap: 8px; }
.stills-hint { margin-right: 18px; }
.arw { width: 48px; height: 48px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--rule);
       color: var(--ink); transition: border-color .3s, opacity .3s; }
.arw-prev .arw-i { transform: scaleX(-1); }
.arw[disabled] { opacity: .3; cursor: default; }
@media (hover: hover) { .arw:not([disabled]):hover { border-color: var(--ink-2); } }
.strip { overflow: hidden; padding: 0 var(--gut); touch-action: pan-y; cursor: grab; user-select: none; -webkit-user-select: none; }
.strip.is-drag { cursor: grabbing; }
.track { display: flex; gap: 16px; width: max-content; will-change: transform; }
.st-b { display: block; position: relative; height: clamp(210px, 26vw, 360px); aspect-ratio: var(--sar); overflow: hidden; background: var(--raised); cursor: zoom-in; }
.st-b img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; -webkit-user-drag: none; transition: transform 1.4s var(--ease); }
@media (hover: hover) { .st-b:hover img { transform: scale(1.03); } }
.strip-bar { position: relative; margin: 28px var(--gut) 0; height: 1px; background: var(--rule); }
.strip-bar i { position: absolute; left: 0; top: -1px; height: 3px; width: 30%; background: var(--ink); }
html:not(.js) .strip { overflow-x: auto; }
html:not(.js) .strip-bar, html:not(.js) .stills-ctl { display: none; }

.viewer { position: fixed; inset: 0; z-index: 80; }
.viewer[hidden] { display: none; }
.vw-bg { position: absolute; inset: 0; background: var(--ground); }
.vw-box { position: absolute; left: 0; top: 0; overflow: hidden; transform-origin: 0 0; }
.vw-box img { width: 100%; height: 100%; object-fit: cover; }
.vw-n { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.vw-x { position: absolute; right: var(--gut); top: 18px; font: 400 15px/1 var(--x); padding: 12px 0; }
.vw-arws { position: absolute; right: var(--gut); bottom: 22px; display: flex; gap: 8px; }

.credits { padding: clamp(120px, 20vh, 220px) var(--gut) 0; }
.bill { max-width: 1040px; margin: 0 auto; text-align: center; font-family: var(--t); font-stretch: 62%; font-weight: 700; text-transform: uppercase; }
.bill p { text-wrap: balance; }
.b-n { white-space: nowrap; color: var(--ink); }
.b-r { font: 400 13px/1 var(--x); text-transform: none; color: var(--mute); white-space: nowrap; letter-spacing: 0; }
.b-cast { font-size: clamp(32px, 4.6vw, 64px); line-height: 1.02; margin-bottom: 40px; }
.b-cast .b-n + .b-n { margin-left: .55em; }
.b-run { font-size: clamp(20px, 2.3vw, 31px); line-height: 1.55; }
.b-pair { display: inline; }
.nw { white-space: nowrap; }
.b-pair + .b-pair::before { content: ""; display: inline-block; width: 1.1em; }
.b-c { color: var(--mute); }
.b-run .b-r { margin-right: .3em; }
.b-dir { margin-top: 44px; font-size: clamp(40px, 5.6vw, 80px); line-height: 1; }
.b-dir .b-r { display: block; margin-bottom: 10px; }
.b-tail { margin-top: 40px; font: 400 15px/1.5 var(--x); text-transform: none; color: var(--ink-2); }

.awards { padding: clamp(120px, 20vh, 220px) var(--gut) 0; }
.aw-ttl { font-size: clamp(40px, 5.4vw, 80px); max-width: 9em; }
.aw-laurels { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; margin-top: 56px; }
.aw-laurels .lr { width: 100%; }
.aw-list { margin-top: 88px; max-width: 1040px; border-top: 1px solid var(--rule); }
.aw-list li { display: grid; grid-template-columns: 140px minmax(0, 1.2fr) minmax(0, 1fr); gap: 24px; padding: 15px 0 13px; border-bottom: 1px solid var(--rule); align-items: baseline; }
.aw-d { font: 400 15px/1.4 var(--x); color: var(--mute); font-variant-numeric: tabular-nums; }
.aw-p { font: 400 18px/1.4 var(--x); }
.aw-f { font: 400 15px/1.4 var(--x); color: var(--ink-2); }

.next { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 24px 40px; align-items: end;
        padding: clamp(140px, 22vh, 240px) var(--gut) clamp(100px, 16vh, 160px); }
.next-copy { display: block; container-type: inline-size; }
.next-ttl { display: block; font-size: min(150px, calc(100cqw / var(--w2))); }
.next-copy .meta { display: block; margin-top: 18px; }
.next-go { display: inline-flex; align-items: center; gap: 12px; margin-top: 28px; font: 400 16px/1.3 var(--x); }
.next-pic { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--raised); container-type: inline-size; }
.next-pic > img, .next-pic > video { transition: transform 1.6s var(--ease); }
.next-pic.card { aspect-ratio: 16 / 10; }
@media (hover: hover) { .next:hover .next-pic > img, .next:hover .next-pic > video { transform: scale(1.03); } .next:hover .arw-i { transform: translateX(5px); } }

/* ---------- Press ---------- */
.press { padding: clamp(64px, 10vh, 110px) var(--gut) clamp(100px, 16vh, 180px); }
.art > a { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 24px 48px; align-items: start; padding: clamp(44px, 7vh, 72px) 0;
           border-top: 1px solid var(--rule); transition: opacity .5s var(--ease); }
.art-mark { display: block; container-type: inline-size; }
.art-logo { display: block; width: min(100cqw, calc(158px * sqrt(var(--r)))); aspect-ratio: var(--r); background: var(--ink);
            -webkit-mask-size: contain; mask-size: contain; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
            -webkit-mask-position: left top; mask-position: left top; }
.art-name { display: block; font-size: min(96px, calc(100cqw / var(--l))); line-height: .82; }
.art-hl { font-size: clamp(28px, 3.5vw, 54px); line-height: .9; max-width: 15em; }
.art-body .meta { display: block; margin-top: 18px; }
.art-go { display: inline-flex; align-items: center; gap: 10px; margin-top: 18px; font: 400 15px/1.3 var(--x); }
.press:has(.art > a:hover) .art > a:not(:hover) { opacity: .4; }
@media (hover: hover) { .art > a:hover .out-i { transform: translate(3px, -3px); color: var(--acc-ink); } }

/* ---------- About ---------- */
.ab-hero { position: relative; min-height: 100vh; min-height: 100svh; display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr);
           gap: 24px 40px; align-items: end; padding: calc(var(--hdr) + 12px) var(--gut) clamp(28px, 6vh, 56px); }
.ab-pic { grid-column: 2; grid-row: 1; align-self: stretch; position: relative; overflow: hidden; background: var(--raised); min-height: 420px; }
.ab-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; }
.ab-copy { grid-column: 1; grid-row: 1; container-type: inline-size; }
.ab-name { font-size: min(21vw, 34svh, calc(100cqw / var(--w))); }
.ab-meta { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 24px; margin-top: 20px; }
.ab-story { padding: clamp(110px, 18vh, 200px) var(--gut) 0; }
.ab-mem { margin-top: 36px; font: 400 18px/1.5 var(--x); color: var(--ink-2); max-width: 36em; }
.ab-co { margin: clamp(110px, 18vh, 200px) var(--gut) clamp(110px, 18vh, 200px); padding-top: 28px; border-top: 1px solid var(--rule);
         display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 32px 48px; }
.ab-co-ttl { font-size: clamp(44px, 5.6vw, 84px); }
.ab-co-ttl .ar-t { display: block; margin-top: 18px; font-size: clamp(20px, 2vw, 28px); text-transform: none; text-align: left; }
.ab-co .lead { font-size: clamp(22px, 2.4vw, 34px); }
.ab-co .links { margin-top: 40px; }

/* ---------- Page transitions (router.js) ---------- */
.pt { position: fixed; inset: 0; z-index: 90; pointer-events: none; visibility: hidden; --slit: clamp(64px, 11vh, 104px); }
.pt.is-on { visibility: visible; }
.pt-a, .pt-b { position: absolute; left: 0; right: 0; height: 50%; background: var(--ground); }
.pt-a { top: 0; transform: translateY(-100%); }
.pt-b { bottom: 0; transform: translateY(100%); }
.pt-slit { position: absolute; left: 0; right: 0; top: 50%; height: var(--slit); margin-top: calc(var(--slit) / -2); display: flex; align-items: center;
           padding: 0 var(--gut); overflow: hidden; opacity: 0; background: rgba(12, 11, 10, .8); }
.pt-t { display: block; font-size: calc(var(--slit) * .64); line-height: .9; white-space: nowrap; color: var(--ink); }
.grow { position: fixed; z-index: 85; left: 0; top: 0; overflow: hidden; background: var(--raised); pointer-events: none; }
.grow > img, .grow > video, .grow > .card { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.is-busy { cursor: progress; }

/* On a tall phone screen a poster would show its own printed title: it is enlarged around its picture instead. */
@media (orientation: portrait) and (max-width: 760px) {
  .panel-media > img.cover, .open--picture .cover, .next-pic > img.cover { scale: 1.7; }
}

/* ---------- Phone and tablet ---------- */
@media (max-width: 1000px) {
  .band-laurels { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 16px; --lw: 100%; justify-items: center; }
  .band-laurels .lr { width: min(100%, 200px); }
  .grp { grid-template-columns: 1fr; }
  .grp-ttl { position: static; max-width: none; }
  .aw-laurels { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 8px; }
}
/* An upright tablet: the title takes the full width and the laurels sit under it, as on a phone. */
@media (max-width: 1000px) and (orientation: portrait) {
  .hero { grid-template-columns: 1fr; }
  .hero-ttl { font-size: min(17vw, 21svh, calc(100cqw / var(--w2))); }
  .hero-laurels { margin: 24px 0 0 -8px; }
}
@media (max-width: 760px) {
  :root { --hdr: 60px; }
  body { font-size: 16px; }
  .nav { display: none; }
  .menu-btn { display: block; }
  .logo-mark { width: 112px; }
  .hero { grid-template-columns: 1fr; padding-bottom: 28px; }
  .hero-ttl { font-size: min(24vw, 21svh, calc(100cqw / var(--w2))); }
  .hero-laurels { --lw: calc((100vw - 2 * var(--gut) - 8px) / 3); max-width: 100%; margin: 20px 0 0 -6px; gap: 0; }
  .intro-mark { width: 84vw; }
  .band-laurels { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 12px; --lw: 100%; }
  .band-laurels .lr { width: 100%; }
  .sig-mask .panel { margin-bottom: 36svh; }
  .panel-copy { right: var(--gut); bottom: 84px; }
  .panel-ttl { font-size: min(22vw, 24svh, calc(100cqw / var(--w2))); }
  .panel-go { left: var(--gut); right: auto; bottom: 28px; }
  .founder .links { flex-direction: column; align-items: flex-start; gap: 12px; }
  .cr div { gap: 16px; }
  .cr dd { font-size: 16px; }
  .head-ttl { font-size: min(30vw, 34svh); }
  .toc { flex-direction: column; gap: 6px; }
  .wall { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 12px; }
  .row { display: contents; }
  .fig-ttl { font-size: 21px; }
  .fig-cap .meta { font-size: 13px; }
  .open-ttl { font-size: min(22vw, 26svh, calc(100cqw / var(--w2))); }
  .open--framed .open-media { inset: calc(var(--hdr) + 8px) var(--gut) auto var(--gut); }
  .framed-img { width: 100%; height: auto; max-height: 52svh; object-fit: cover; }
  .syn.has-ar { grid-template-columns: 1fr; gap: 40px; }
  .stills-head { flex-direction: column; align-items: flex-start; }
  .stills-hint { display: none; }
  .st-b { height: 200px; }
  .aw-list li { grid-template-columns: 1fr; gap: 2px; }
  .aw-d { order: 3; }
  .next { grid-template-columns: 1fr; }
  .next-pic { order: -1; }
  .art > a { grid-template-columns: 1fr; gap: 24px; }
  .art-logo { width: min(100cqw, calc(118px * sqrt(var(--r)))); }
  .art-name { font-size: min(64px, calc(100cqw / var(--l))); }
  .press:has(.art > a:hover) .art > a:not(:hover) { opacity: 1; }
  .ab-hero { grid-template-columns: 1fr; padding-top: calc(var(--hdr) + 8px); }
  .ab-hero { align-content: end; }
  .ab-pic { grid-column: 1; grid-row: 1; min-height: 0; align-self: start; width: 100%; aspect-ratio: 970 / 1100; }
  .ab-copy { grid-column: 1; grid-row: 2; }
  .ab-name { font-size: min(25vw, calc(100cqw / var(--w))); }
  .ab-co { grid-template-columns: 1fr; }
  .vw-arws { left: var(--gut); right: auto; }
}

/* ---------- Reduced motion: end states only ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-delay: 0s !important; scroll-behavior: auto !important; }
  .grain::after { display: none; }
  .js .rise { opacity: 1; }
  .knock, .intro { display: none !important; }
  .sig-mask .panel { margin-bottom: 0; }
}

/* ---------- Arabic, right to left (/ar/). Flex and grid follow the direction by themselves; these are the rest. ---------- */
html[lang="ar"] * { letter-spacing: 0 !important; }               /* tracking breaks joined Arabic letters */
html[lang="ar"] .ttl:not([lang="en"]) { line-height: 1.16; }
html[lang="ar"] .lead, html[lang="ar"] .founder-line, html[lang="ar"] .syn-en { line-height: 1.6; }
html[lang="ar"] .meta, html[lang="ar"] .nav a, html[lang="ar"] .lg .lr-p { font-size: 16px; }
[dir="rtl"] :is(.go, .next-go) .arw-i { transform: scaleX(-1); }
@media (hover: hover) {
  [dir="rtl"] .go:hover .arw-i, [dir="rtl"] .panel-in:hover .go .arw-i, [dir="rtl"] .next:hover .next-go .arw-i { transform: scaleX(-1) translateX(5px); }
  [dir="rtl"] .nav a:hover::after { transform-origin: right; }
}
[dir="rtl"] .nav a::after { transform-origin: left; }
[dir="rtl"] .skip { left: auto; right: var(--gut); }
[dir="rtl"] .hero-laurels:not(:has(.lg)) { margin-right: 0; margin-left: -10px; }
[dir="rtl"] .panel-copy { left: calc(var(--gut) + 200px); right: var(--gut); }
[dir="rtl"] .panel-go { right: auto; left: var(--gut); }
[dir="rtl"] .cr dt { text-align: left; }
[dir="rtl"] .cr dd { text-align: right; }
[dir="rtl"] .head-ttl { margin-left: 0; margin-right: -.02em; }
[dir="rtl"] .b-cast .b-n + .b-n { margin-left: 0; margin-right: .55em; }
[dir="rtl"] .b-run .b-r { margin-right: 0; margin-left: .3em; }
[dir="rtl"] .art-logo { -webkit-mask-position: right top; mask-position: right top; }
[dir="rtl"] .ab-co-ttl .ar-t { text-align: right; }
[dir="rtl"] .strip, [dir="rtl"] .strip-bar, [dir="rtl"] .stills-ctl, [dir="rtl"] .viewer { direction: ltr; }   /* pictures run left to right */
@media (max-width: 760px) {
  .hero-laurels:has(.lg) { gap: 0; justify-content: space-between; margin-top: 22px; width: 100%; }
  .hero-laurels .lg { --u: 30px; }
  .band-laurels:has(.lg) { row-gap: 44px; }
  .band-laurels .lg { --u: 40px; }
  .band-laurels .lg .lr-p { font-size: 13px; }
  .aw-laurels .lg { --u: 38px; }
  [dir="rtl"] .panel-copy { left: var(--gut); }
  [dir="rtl"] .panel-go { left: auto; right: var(--gut); }
}

/* 404 */
.nf { min-height: 100svh; display: flex; flex-direction: column; justify-content: center; gap: 24px; padding: var(--hdr) var(--gut) 64px; }
.nf-ttl { font-size: min(40vw, 46svh); }
