/* Dev-Graph, socle commun.
   Direction: la coupe et la courbe. La marque est un carré ouvert par une lame, d'où sort une ligne.
   Tout ce qui apparaît s'ouvre comme cette coupe, charnière en haut au début de ligne; tout ce qui suit la main est une ligne fine.
   Couleurs: la palette du studio en bandes pleines sur une base espresso. L'orange brûlé ne sert qu'à l'action. Le vert vif n'existe que dans les fichiers du logo. */
/* Polices hébergées ici (SIL OFL 1.1, textes dans ofl-*.txt; sources dans README). Une seule requête par fichier, seulement si la langue en a besoin.
   Les faces «F» habillent une police système aux mêmes mesures: le texte ne bouge pas quand la vraie police arrive. */
@font-face { font-family: "Stack Sans Notch"; font-weight: 300 700; font-display: swap; src: url(font-notch-latin.woff2) format("woff2"); unicode-range: U+0020-007E, U+00A0-024F, U+02C6, U+02DA, U+02DC, U+0300-036F, U+2010-2027, U+2030, U+2039-203A, U+2044, U+20AC, U+2122, U+2190-2193, U+2212; }
@font-face { font-family: "Stack Sans Text"; font-weight: 400 700; font-display: swap; src: url(font-stack-text-latin.woff2) format("woff2"); unicode-range: U+0020-007E, U+00A0-024F, U+02C6, U+02DA, U+02DC, U+0300-036F, U+2010-2027, U+2030, U+2039-203A, U+2044, U+20AC, U+2122, U+2190-2193, U+2212; }
@font-face { font-family: "Kufam"; font-weight: 400 800; font-display: swap; src: url(font-kufam-arabic.woff2) format("woff2"); unicode-range: U+0600-06FF, U+200B-200F, U+25CC; }
@font-face { font-family: "IBM Plex Sans Arabic"; font-weight: 400; font-display: swap; src: url(font-plex-arabic-400-arabic.woff2) format("woff2"); unicode-range: U+0600-06FF, U+200B-200F, U+25CC; }
@font-face { font-family: "IBM Plex Sans Arabic"; font-weight: 600; font-display: swap; src: url(font-plex-arabic-600-arabic.woff2) format("woff2"); unicode-range: U+0600-06FF, U+200B-200F, U+25CC; }
@font-face { font-family: "Notch F"; font-weight: 300 500; src: local("Arial"), local("ArialMT"), local("Liberation Sans"); size-adjust: 105%; ascent-override: 95.2%; descent-override: 28.6%; line-gap-override: 0%; unicode-range: U+0020-007E, U+00A0-024F, U+02C6, U+02DA, U+02DC, U+0300-036F, U+2010-2027, U+2030, U+2039-203A, U+2044, U+20AC, U+2122, U+2190-2193, U+2212; }
@font-face { font-family: "Notch F"; font-weight: 600 700; src: local("Arial Bold"), local("Arial-BoldMT"), local("Liberation Sans Bold"); size-adjust: 98%; ascent-override: 102%; descent-override: 30.6%; line-gap-override: 0%; unicode-range: U+0020-007E, U+00A0-024F, U+02C6, U+02DA, U+02DC, U+0300-036F, U+2010-2027, U+2030, U+2039-203A, U+2044, U+20AC, U+2122, U+2190-2193, U+2212; }
@font-face { font-family: "Text F"; src: local("Arial"), local("ArialMT"), local("Liberation Sans"); size-adjust: 109.7%; ascent-override: 91.1%; descent-override: 27.3%; line-gap-override: 0%; unicode-range: U+0020-007E, U+00A0-024F, U+02C6, U+02DA, U+02DC, U+0300-036F, U+2010-2027, U+2030, U+2039-203A, U+2044, U+20AC, U+2122, U+2190-2193, U+2212; }
@font-face { font-family: "Kufam F"; src: local("Geeza Pro Bold"), local("GeezaPro-Bold"); size-adjust: 119.6%; ascent-override: 75.3%; descent-override: 33.4%; line-gap-override: 0%; unicode-range: U+0600-06FF, U+200B-200F, U+25CC; }
@font-face { font-family: "Kufam G"; src: local("Arial Bold"), local("Arial-BoldMT"); size-adjust: 151%; ascent-override: 59.6%; descent-override: 26.5%; line-gap-override: 0%; unicode-range: U+0600-06FF, U+200B-200F, U+25CC; }
@font-face { font-family: "Plex F"; src: local("Geeza Pro"), local("GeezaPro"); size-adjust: 102.7%; ascent-override: 105.7%; descent-override: 40.4%; line-gap-override: 0%; unicode-range: U+0600-06FF, U+200B-200F, U+25CC; }
@font-face { font-family: "Plex G"; src: local("Arial"), local("ArialMT"); size-adjust: 113.5%; ascent-override: 95.6%; descent-override: 36.6%; line-gap-override: 0%; unicode-range: U+0600-06FF, U+200B-200F, U+25CC; }
:root {
  /* palette du studio */
  --petrol: #4A635A; --sage: #697E6B; --sand: #D4BC9A; --burnt: #B96A2E; --espresso: #2B1408; --olive: #3C352A;
  /* dérivées, choisies au contraste mesuré (tests/test_look.py) */
  --cream: #F6EDDD; --stone: #C2AE93; --pitch: #180A03; --petrol-2: #5B7469; --olive-2: #4D4537; --sand-2: #BFA582;
  /* rôles */
  --bg: var(--espresso); --surface: var(--olive); --heading: var(--sand); --text: var(--cream); --muted: var(--stone); --edge: var(--sage); --focus: var(--sand);
  --accent: var(--burnt); --on-accent: var(--pitch); --shade: 43 20 8;
  --sky: linear-gradient(to bottom, var(--olive), var(--espresso) 70%);
  --dusk: linear-gradient(to bottom, var(--olive), var(--espresso) 12%, var(--sand) 40%, var(--sage));
  /* lettres: un grotesque entaillé (Stack Sans Notch) et un coufique taillé (Kufam); le contraste vient de la taille et du poids, jamais d'une autre famille */
  --mark: "Stack Sans Notch", "Notch F", system-ui, sans-serif;
  --display: var(--mark); --copy: "Stack Sans Text", "Text F", system-ui, sans-serif;
  --w: 600; --w-l: 300; --track: -.04em; --track-s: -.028em; --lh: .98; --lh-l: .92;
  --fs-s: .9375rem; --fs-b: 1.0625rem; --fs-l: clamp(1.1875rem, 1rem + .75vw, 2rem); --fs-t: clamp(1.4rem, 1.1rem + 1vw, 2.6rem);
  --ease: cubic-bezier(.16, 1, .3, 1);
  --pad: clamp(1rem, 2.1vw, 3.5rem);
  --top: 56px;
  --gap: clamp(.75rem, 1.4vw, 2rem);
  color-scheme: dark;
}
/* bandes: chaque section change les rôles, jamais les composants */
.statement { --bg: var(--petrol); --heading: var(--cream); --muted: var(--cream); --focus: var(--cream); }
.reel { --bg: var(--olive); --surface: var(--espresso); --edge: var(--stone); }
.method, #menu { --bg: var(--sand); --heading: var(--espresso); --text: var(--espresso); --muted: var(--espresso); --focus: var(--espresso); }
.fog { --bg: var(--sage); --heading: var(--cream); --focus: var(--cream); }
/* contact: --contact-dark 1 = fond sombre et boutons orange (choix du directeur); 0 = fond orange et boutons sombres. Une seule variable à changer. */
:root { --contact-dark: 1; }
.contact { --k: calc(var(--contact-dark) * 100%);
  --bg: color-mix(in srgb, var(--pitch) var(--k), var(--accent)); --heading: color-mix(in srgb, var(--sand) var(--k), var(--pitch)); --text: color-mix(in srgb, var(--cream) var(--k), var(--pitch));
  --muted: color-mix(in srgb, var(--stone) var(--k), var(--pitch)); --focus: color-mix(in srgb, var(--sand) var(--k), var(--pitch)); --line: color-mix(in srgb, var(--text) 24%, transparent);
  --btn: color-mix(in srgb, var(--accent) var(--k), var(--espresso)); --on-btn: color-mix(in srgb, var(--pitch) var(--k), var(--sand)); }
:root, .statement, .reel, .method, #menu { --line: color-mix(in srgb, var(--text) 24%, transparent); }
.statement, .reel, .method, .fog, .contact, #menu { background: var(--bg); color: var(--text); }
/* fin des couleurs */
[lang="ar"] {
  --display: "Stack Sans Notch", "Kufam", "Notch F", "Kufam F", "Kufam G", system-ui, sans-serif;
  --copy: "Stack Sans Text", "IBM Plex Sans Arabic", "Text F", "Plex F", "Plex G", system-ui, sans-serif;
  --w: 700; --w-l: 400; --track: 0em; --track-s: 0em; --lh: 1.2; --lh-l: 1.16;
}
*, *::before, *::after { box-sizing: border-box; }
html { background: var(--bg); color: var(--text); -webkit-text-size-adjust: 100%; scroll-padding-top: var(--top); scrollbar-color: var(--edge) var(--bg); }
body { margin: 0; font-family: var(--copy); font-size: var(--fs-b); line-height: 1.5; font-kerning: normal; font-synthesis: none; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; -webkit-tap-highlight-color: transparent; caret-color: var(--accent); accent-color: var(--accent); }
html[lang="ar"] body { line-height: 1.75; }
::selection { background: var(--sand); color: var(--espresso); }
h1, h2, h3, p, ul, ol, dl, dd { margin: 0; padding: 0; font-weight: 400; }
ul, ol { list-style: none; }
h2, h3 { font-family: var(--display); font-weight: var(--w); color: var(--heading); line-height: var(--lh); letter-spacing: var(--track); text-wrap: balance; }
h3 { letter-spacing: var(--track-s); }
p { text-wrap: pretty; }
/* la seconde phrase d'un grand titre passe en maigre: première image, puis la suite */
.lt { font-weight: var(--w-l); }
.p-meta dd, .cap-c, .p-text, .method li { font-variant-numeric: tabular-nums; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
img, video, svg, canvas { display: block; max-width: 100%; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
/* liens bord à bord: l'anneau passe à l'intérieur, sinon il est coupé par l'écran */
.skip:focus-visible, #menu [data-close]:focus-visible, .plate:focus-visible, .stage-link:focus-visible, .p-nav a:focus-visible, .bar a:focus-visible, .filters button:focus-visible, .craft h3 button:focus-visible { outline-offset: -5px; }
.skip:focus-visible, .filters [aria-pressed="true"]:focus-visible { outline-color: var(--espresso); } .bar a + a:focus-visible { outline-color: var(--pitch); }
/* l'image recouvrirait l'anneau: il est peint au-dessus, sable bordé d'espresso pour rester lisible sur toute image */
.plate { position: relative; }
.plate:focus-visible::after, .stage-link:focus-visible::after { content: ""; position: absolute; inset: 5px; z-index: 5; border: 3px solid var(--sand); box-shadow: 0 0 0 3px var(--espresso), inset 0 0 0 3px var(--espresso); pointer-events: none; }
[hidden] { display: none !important; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: fixed; inset-block-start: 0; inset-inline-start: 0; z-index: 100; padding: 1rem 1.25rem; background: var(--sand); color: var(--espresso); transform: translateY(-110%); }
.skip:focus { transform: none; }
main > section { position: relative; }

/* ---- entête ---- */
.top { position: fixed; inset: 0 0 auto; z-index: 40; height: var(--top); display: flex; align-items: center; gap: 1.5rem; padding-inline: var(--pad); background: var(--bg); border-block-end: 1px solid var(--line); }
.brand { display: flex; min-width: 44px; align-items: center; gap: .6rem; min-height: 44px; font-family: var(--mark); font-weight: 600; letter-spacing: -.025em; font-size: 1.125rem; direction: ltr; }
.brand img { width: 38px; height: auto; }
.top nav ul { display: flex; }
.top nav a { display: flex; align-items: center; min-height: 44px; padding-inline: .9rem; }
.langs { display: flex; }
.langs button { min-width: 44px; min-height: 44px; padding-inline: .5rem; color: var(--muted); }
.langs button[lang="ar"], .desk-langs [lang="ar"] { font-family: "Geeza Pro", "Segoe UI", Tahoma, system-ui, sans-serif; }
.top .langs button[lang="ar"], #menu .langs button[lang="ar"] { font-size: 1.2em; line-height: 1; }
.langs [aria-pressed="true"] { color: var(--heading); text-decoration: underline; text-underline-offset: .4em; text-decoration-thickness: 2px; }
.top .langs { margin-inline-start: auto; }
.menu-btn { display: none; min-height: 44px; padding-inline: .5rem; }
.bar { display: none; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: .4rem 1.5rem; white-space: nowrap; border-radius: 999px; background: var(--accent); color: var(--on-accent); font-weight: 600; transition: transform .35s var(--ease), background-color .2s, color .2s; }
.btn:active, .float:active { scale: .97; }
.float { position: fixed; inset-block-end: max(1.25rem, env(safe-area-inset-bottom)); inset-inline-end: var(--pad); z-index: 30; display: inline-flex; align-items: center; min-height: 48px; padding-inline: 1.4rem; border-radius: 999px; background: var(--accent); color: var(--on-accent); border: 1.5px solid var(--espresso); font-weight: 600; transition: transform .35s var(--ease), opacity .25s, visibility .25s; }
.float.hide { opacity: 0; visibility: hidden; }
.pause { min-height: 44px; min-width: 44px; padding-inline: .25rem; color: var(--muted); text-decoration: underline; text-underline-offset: .3em; text-decoration-thickness: 1px; }
#menu { width: 100%; max-width: none; height: 100dvh; max-height: none; margin: 0; padding: 0 var(--pad) calc(1rem + env(safe-area-inset-bottom)); border: 0; overflow: auto; }
#menu[open] { display: flex; flex-direction: column; justify-content: space-between; animation: rise .5s var(--ease); }
#menu [data-close] { align-self: flex-end; min-height: var(--top); padding-inline: .5rem; font-weight: 600; }
#menu ul a { display: block; padding-block: .12em; font: var(--w) clamp(2.8rem, 14.5vw, 6rem)/1.02 var(--display); letter-spacing: var(--track); }
[lang="ar"] #menu ul a { line-height: 1.34; font-size: clamp(2.4rem, 12.4vw, 5rem); }
#menu .langs { margin-inline-start: -.5rem; }
#menu .langs button { padding-inline: 1rem; }
#menu .langs [aria-pressed="true"] { background: var(--espresso); color: var(--sand); border-radius: 999px; text-decoration: none; }
@keyframes rise { from { transform: translateY(6%); opacity: 0; } }

/* ---- lames: ouverture, panneaux, changement de page ---- */
.wipe, .blades { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.wipe { position: fixed; z-index: 90; visibility: hidden; }
.wipe i, .blades i { position: absolute; inset: 0; background: var(--petrol); transform-origin: 0 0; clip-path: polygon(0 0, 100.3% 100.3%, 0 100.3%); }
.wipe i + i, .blades i + i { clip-path: polygon(0 0, 100.3% 0, 100.3% 100.3%); }
[dir="rtl"] .wipe, [dir="rtl"] .blades { transform: scaleX(-1); }
.wipe b { position: absolute; inset: 0; margin: auto; width: min(46vw, 420px); aspect-ratio: 1442 / 880; background: url(mark.svg) center / contain no-repeat; }
[dir="rtl"] .wipe b { transform: scaleX(-1); }
.wipe-in .wipe b, .wipe-out .wipe b { display: none; }
.intro .wipe, .wipe-in .wipe, .wipe-out .wipe { visibility: visible; }
.intro .wipe i { animation: cut-a .72s .42s var(--ease) both; }
.intro .wipe i + i { animation-name: cut-b; }
.intro .wipe b { animation: gone .2s .36s both; }
.wipe-in .wipe i { animation: cut-a .7s var(--ease) both; }
.wipe-in .wipe i + i { animation-name: cut-b; }
.wipe-out .wipe i { animation: cut-a .42s var(--io) reverse both; }
.wipe-out .wipe i + i { animation-name: cut-b; }
@keyframes cut-a { to { transform: rotate(90deg); } }
@keyframes cut-b { to { transform: rotate(-90deg); } }
@keyframes gone { to { opacity: 0; } }
.blades i { transition: transform 1.1s var(--ease); }
.in > .blades i { transform: rotate(90deg); }
.in > .blades i + i { transform: rotate(-90deg); }

/* ---- surfaces ---- */
.surface { position: absolute; inset: 0; display: block; overflow: hidden; background: var(--surface); }
.surface img, .surface video { width: 100%; height: 100%; object-fit: cover; }
.surface picture { display: contents; }
.art { width: 100%; height: 100%; background: var(--a); }
.art .fg { fill: var(--b); } .art .sf { fill: var(--c); } .art .ln { fill: none; stroke: var(--b); stroke-linecap: round; stroke-linejoin: round; }
.t0 { --a: var(--petrol); --b: var(--sand); --c: var(--petrol-2); color: var(--cream); }
.t1 { --a: var(--olive); --b: var(--sage); --c: var(--olive-2); color: var(--cream); }
.t2 { --a: var(--sand); --b: var(--espresso); --c: var(--sand-2); color: var(--espresso); }
.reel .t1 { --a: var(--espresso); --c: var(--olive); }
.ph-l { position: absolute; inset: auto 0 0; display: flex; align-items: baseline; gap: .7em; padding: clamp(.8rem, 1.4vw, 1.6rem); background: var(--a); }
.ph-l b { font: 600 1.6em/1 var(--mark); letter-spacing: -.03em; }
.cap { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; overflow: hidden; }
.cap-n { font: 600 1.125rem/1.25 var(--mark); letter-spacing: -.015em; overflow-wrap: anywhere; } [lang="ar"] .cap-n { font-family: var(--copy); letter-spacing: 0; } .cap-c { color: var(--muted); flex: none; }

/* ---- héros ---- */
.hero { overflow: clip; touch-action: pan-y; background: var(--sky); }
.trail { position: absolute; inset: 0; z-index: 1; overflow: clip; pointer-events: none; }
.tile { position: absolute; top: 0; left: 0; width: var(--tile); height: var(--tile); opacity: 0; overflow: hidden; contain: strict; direction: ltr; }
.tile i { position: absolute; inset: 0; background: var(--bg); opacity: 0; }
.tile .ph-l { padding: 0; inset: auto auto 8% 8%; background: none; font-size: calc(var(--tile) * .13); }
.tile .t2 { --a: var(--olive-2); --b: var(--sand); --c: var(--olive); color: var(--cream); }
.word { position: relative; z-index: 2; margin: 0; pointer-events: none; font-family: var(--mark); font-weight: 600; letter-spacing: -.04em; user-select: none; color: var(--heading); }
.w1, .w2 { letter-spacing: -.04em; display: flex; align-items: center; line-height: .7; white-space: nowrap; }
.hy { background: var(--sage); }
.info { position: relative; z-index: 3; }

/* ---- énoncé ---- */
.wd { display: inline-block; }
.six { display: flex; }

/* ---- filtres ---- */
.filters { position: sticky; inset-block-start: var(--top); z-index: 20; background: var(--bg); border-block: 1px solid var(--line); display: flex; }
.filters button { min-height: 52px; padding-inline: 1.4rem; color: var(--muted); border-inline-end: 1px solid var(--line); white-space: nowrap; transition: background-color .2s, color .2s; }
.filters [aria-pressed="true"] { background: var(--sand); color: var(--espresso); font-weight: 600; }
.round-box { position: relative; display: block; overflow: hidden; border-radius: clamp(18px, 2.2vw, 40px); }
.item { display: block; } .item .cap { padding-block: .9rem; }
/* cartes serrées: nom et type ensemble, sinon le type se lit avec la carte d'à côté */
.item .cap, .card .cap { justify-content: flex-start; }
.none { grid-column: 1 / -1; padding-block: 4rem; color: var(--muted); }

/* ---- scène ---- */
.stage-pin { position: sticky; top: var(--top); height: calc(100svh - var(--top)); overflow: clip; }
.stage-link, .stage-frame { position: absolute; inset: 0; display: block; overflow: hidden; }
.stage-frame::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgb(var(--shade) / .9), rgb(var(--shade) / .74) 26%, rgb(var(--shade) / 0) 62%); }
.stage-frame .ph-l { display: none; }
.stage-text { position: absolute; inset: auto 0 0; padding: var(--pad); display: grid; gap: .6rem; overflow: clip; } /* le titre glisse dedans: sans ce clip, l'arabe comptait comme un décalage de mise en page (CLS 0,36) */
.stage-text h2 { font-size: clamp(2.8rem, 9.4vw, 13rem); line-height: var(--lh); overflow-wrap: anywhere; }

/* ---- carrousel ---- */
.reel-track { display: flex; gap: var(--gap); }
.card { flex: none; }
.card-box { position: relative; display: block; overflow: hidden; aspect-ratio: 4 / 5; }
.card .cap { padding-block: .9rem; }
.round { width: 48px; height: 48px; display: grid; place-items: center; border: 1px solid var(--edge); border-radius: 50%; }
.round svg { width: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
[dir="rtl"] .round svg { transform: scaleX(-1); }

/* ---- méthode, atelier, contact ---- */
.method ol { counter-reset: m; }
.method li { counter-increment: m; border-block-start: 2px solid var(--text); }
.method li::before { content: counter(m); font-family: var(--mark); font-weight: 600; letter-spacing: -.05em; line-height: .78; }
.studio { overflow-x: clip; }
.fog { position: relative; overflow: hidden; }
.fog-img { position: absolute; inset: 0; overflow: hidden; }
.fog-img::after, .mist { content: ""; position: absolute; inset: 0; }
.fog-img::after { background: linear-gradient(to top, rgb(var(--shade) / .92) 5%, rgb(var(--shade) / .6) 58%, rgb(var(--shade) / .2)); }
.fog-img .ph-l { display: none; }
/* sans portrait: le dégradé de la palette, titre foncé sur le sable */
.fog.empty { --heading: var(--espresso); background: var(--dusk); }
.fog.empty .fog-img, .fog.empty .mist { display: none; }
.mist { background: radial-gradient(circle at 50% 45%, var(--sand), var(--sage) 70%); opacity: 0; }
.js .fog .fog-img { opacity: 0; transform: scale(1.06); }
.js .fog .mist { opacity: .9; }
.js .fog.in .fog-img { opacity: 1; transform: none; transition: opacity 1.1s var(--ease), transform 1.6s var(--ease); }
.js .fog.in .mist { opacity: 0; transition: opacity 1.1s var(--ease); }
.fcard { position: absolute; touch-action: pan-y; user-select: none; cursor: grab; }
.fcard.drag { cursor: grabbing; }
.fc { position: relative; width: 100%; height: 100%; overflow: hidden; border-radius: 22px; }
.say { position: absolute; inset: 0; display: flex; align-items: flex-end; padding: 1.1rem; font: var(--w) 1.4rem/1.02 var(--display); letter-spacing: var(--track-s); }
.say:lang(ar) { line-height: 1.3; font-size: 1.25rem; }
.s0 { background: var(--sand); color: var(--espresso); } .s1 { background: var(--petrol); color: var(--cream); } .s2 { background: var(--olive); color: var(--cream); }
.js .fcard .fc { opacity: 0; transform: translateY(60px) scale(.9); }
.js .in .fcard .fc { opacity: 1; transform: none; transition: opacity .6s var(--ease), transform .9s var(--ease); transition-delay: calc(var(--i) * 100ms); }
.contact { overflow: clip; touch-action: pan-y; }
.contact canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 3; pointer-events: none; }
.contact .btn { background: var(--btn); color: var(--on-btn); }
.contact .off { background: none; color: var(--text); box-shadow: inset 0 0 0 2px var(--text); gap: .7em; }
.off small { font-size: .9375rem; font-weight: 400; }
.end { position: relative; overflow: clip; background: var(--bg); }
.end ul { display: flex; flex-wrap: wrap; }
.end a, .end .langs button { display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; }
.letters { display: flex; justify-content: space-between; font: 600 calc((100vw - 2 * var(--pad)) / 5.42)/.7 var(--mark); color: var(--heading); padding: .08em calc(var(--pad) - .03em) .16em; letter-spacing: -.034em; user-select: none; }
.letters { clip-path: inset(-50vh -100vw 0 -100vw); } .letters span { display: block; will-change: transform; }

/* titre latin sur page arabe (et l'inverse): l'alignement suit la page, pas la lettre */
.p-top h1, .stage-text h2, .p-nav b { text-align: left; }
html[dir="rtl"] :is(.p-top h1, .stage-text h2, .p-nav b) { text-align: right; }
html[dir="ltr"] .p-nav a + a b { text-align: right; } html[dir="rtl"] .p-nav a + a b { text-align: left; }

/* ---- page projet ---- */
.project { padding-block-start: var(--top); min-height: 100svh; }
.js .project:not(.ready) { min-height: 220svh; }
.p-cover { position: relative; overflow: hidden; background: var(--surface); aspect-ratio: 16 / 9; width: 100%; max-height: 120svh; }
.p-top h1 { color: var(--heading); font: var(--w) clamp(2.8rem, 9.2vw, 12rem)/var(--lh) var(--display); letter-spacing: var(--track); text-wrap: balance; overflow-wrap: anywhere; }
.p-meta > div { display: flex; gap: 1rem; padding-block: .8rem; border-block-start: 1px solid var(--line); } .p-meta > div:last-child { border-block-end: 1px solid var(--line); }
.p-meta dt { color: var(--muted); flex: 0 0 7.5rem; } .p-meta dd { overflow-wrap: anywhere; }
.p-text { white-space: pre-line; max-width: 62ch; }
.p-sum .p-text { font-size: 1.125rem; line-height: 1.6; color: var(--muted); } [lang="ar"] .p-sum .p-text { line-height: 1.85; }
.p-gal figure { margin: 0; } .p-gal img, .p-gal video { width: 100%; height: auto; background: var(--surface); }
.p-nav a { display: grid; gap: .3rem; border-block-start: 1px solid var(--line); }
.p-nav a:only-child { grid-column: 1 / -1; } .p-nav small { font-size: 1rem; color: var(--muted); } .p-nav b { font: var(--w) clamp(1.7rem, 3.9vw, 4.6rem)/1.04 var(--display); letter-spacing: var(--track-s); overflow-wrap: anywhere; }
[lang="ar"] .p-nav b { line-height: 1.3; }
.nojs { padding: 3rem var(--pad); }

/* ---- sans JS, mouvement réduit ---- */
html:not(.js) .plates, html:not(.js) .work, html:not(.js) .stage, html:not(.js) .reel, html:not(.js) .cards, html:not(.js) .cols, html:not(.js) .langs, html:not(.js) .menu-btn { display: none; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .fog .fog-img, .js .fcard .fc, .js .col-in { opacity: 1 !important; transform: none !important; }
  .js .fog .mist, .trail { display: none; }
}
