/* The wall (Work, Archive): near-black ground, an endless field of framed plates (corner ticks, scanlines), a faint red glow in the middle.
   Colour rule on the Wajdy side: 60% black, 30% red, 10% white. Plates are black mats, red is the frame and the numbers, white is the type. */
html,body.wall-page{height:100%;overflow:hidden;background:#0A0808}
.wall-bg{position:fixed;inset:0;z-index:-3;background:radial-gradient(ellipse 60% 55% at 50% 50%,rgba(227,23,62,.13),rgba(227,23,62,.04) 55%,transparent 80%),#0A0808}
.wall-bg::after{content:"";position:absolute;inset:0;background:url(img/grain.png);opacity:.07;mix-blend-mode:lighten}
.wall{position:fixed;inset:0;z-index:2;overflow:hidden;touch-action:none;cursor:grab;outline:none;-webkit-user-select:none;user-select:none}
.wall.drag{cursor:grabbing}.wall.drag .w-card{pointer-events:none}
.wall a,.wall img{-webkit-user-drag:none;-webkit-user-select:none;user-select:none}
.w-plane{position:absolute;inset:0;--cw:clamp(250px,25vw,500px)}
.w-card{position:absolute;left:0;top:0;width:var(--cw);display:block;color:var(--bone);text-decoration:none;will-change:transform,opacity;outline-offset:10px}
.w-card:focus-visible{outline:2px solid #E3173E}
.w-plate{position:relative;display:grid;place-items:center;aspect-ratio:475/311;padding:6.7%;background:#0E0A0A;border:1px solid rgba(227,23,62,.2);overflow:hidden;transition:border-color .35s ease}
.w-plate img{width:100%;height:100%;object-fit:contain;display:block;opacity:0;transition:opacity .6s ease,filter .35s ease;filter:saturate(.92) contrast(1.04)}
.w-plate img.on{opacity:1}
.w-plate::after{content:"";position:absolute;inset:0;pointer-events:none;background:repeating-linear-gradient(0deg,rgba(0,0,0,.2) 0 1px,transparent 1px 3px);transition:opacity .35s ease}
/* four corner ticks on the plate */
.w-card::before{content:"";position:absolute;left:-6px;top:-6px;width:calc(100% + 12px);height:calc(var(--cw)*311/475 + 12px);pointer-events:none;z-index:1;
  background:linear-gradient(#E3173E,#E3173E) 0 0/4px 4px no-repeat,linear-gradient(#E3173E,#E3173E) 100% 0/4px 4px no-repeat,linear-gradient(#E3173E,#E3173E) 0 100%/4px 4px no-repeat,linear-gradient(#E3173E,#E3173E) 100% 100%/4px 4px no-repeat}
.w-micro{display:flex;justify-content:space-between;gap:12px;margin-top:16px;font:500 10px/1 var(--mono);letter-spacing:.16em;text-transform:uppercase;color:rgba(237,230,214,.62)}
.w-micro b{font-weight:500;color:#F0405E}
.w-micro i{font-style:normal;text-align:right}
.w-play{position:absolute;left:50%;top:50%;z-index:2;width:58px;height:58px;margin:-29px 0 0 -29px;border-radius:50%;background:rgba(10,8,8,.72);border:1px solid rgba(227,23,62,.75);pointer-events:none}
.w-play::after{content:"";position:absolute;left:23px;top:18px;border-left:15px solid #EDE6D6;border-top:10px solid transparent;border-bottom:10px solid transparent}
@media(hover:hover) and (pointer:fine){
  .w-card:hover .w-plate{border-color:rgba(227,23,62,.85)}
  .w-card:hover .w-plate::after{opacity:.3}
  .w-card:hover .w-plate img{filter:saturate(1) contrast(1.06) brightness(1.06)}}
/* the glass: a soft vignette and fine scanlines over the whole field, under the type */
.wall-fx{position:fixed;inset:0;z-index:5;pointer-events:none;background:radial-gradient(ellipse at 50% 50%,transparent 48%,rgba(0,0,0,.6) 100%),repeating-linear-gradient(0deg,rgba(0,0,0,.12) 0 1px,transparent 1px 3px)}
.wall-title::before{content:"";position:absolute;left:-60px;top:-50px;width:140%;height:150%;z-index:-1;background:radial-gradient(ellipse at 40% 50%,rgba(10,8,8,.92),rgba(10,8,8,.7) 50%,transparent 75%)}
.wall-title{position:fixed;left:var(--gut);top:calc(max(14px,env(safe-area-inset-top,0px)) + 84px);z-index:20;pointer-events:none}
.wall-title .w-eyebrow{margin:0 0 8px;font:500 11px var(--mono);letter-spacing:.18em;text-transform:uppercase;color:rgba(237,230,214,.62)}
.wall-title .w-title{margin:0;font:400 clamp(34px,4.2vw,66px)/1 var(--disp);letter-spacing:-.01em;color:var(--bone)}
.wall-title .w-title em{color:#E3173E;font-style:italic;padding-bottom:.08em}
.wall-hud{position:fixed;left:var(--gut);bottom:max(26px,calc(env(safe-area-inset-bottom,0px) + 18px));z-index:20;margin:0;display:flex;gap:18px;font:500 10px var(--mono);letter-spacing:.2em;color:rgba(237,230,214,.5);pointer-events:none}
.wall-cta{position:fixed;right:var(--gut);bottom:max(18px,calc(env(safe-area-inset-bottom,0px) + 12px));z-index:20}
#gHint{transition:opacity .6s ease}#gHint.gone{opacity:0}
@media(max-width:820px){
  .w-plane{--cw:68vw}
  .wall-title{top:calc(max(14px,env(safe-area-inset-top,0px)) + 112px)}
  .wall-hud{display:none}
  .wall-cta{left:var(--gut);right:var(--gut);justify-content:center}
  #gHint{display:none}}
.wall-title{transition:opacity .6s ease}
@media(max-width:820px){body.moved .wall-title{opacity:0}}
@media(prefers-reduced-motion:reduce){.w-plate img,.w-plate,.w-plate::after{transition:none}}

/* ===== 60 / 30 / 10: black ground, red mats, white type ===== */
.w-plate{background:#B80F2E;border-color:rgba(247,243,234,.28)}
.w-plate::after{background:repeating-linear-gradient(0deg,rgba(0,0,0,.18) 0 1px,transparent 1px 3px)}
.w-micro b{color:#E3173E}
.wall-title .w-title em,.wall-title .w-title{color:#F7F3EA}.wall-title .w-title em{color:#E3173E}
@media(hover:hover) and (pointer:fine){.w-card:hover .w-plate{border-color:#F7F3EA}}

/* Archive: the image holders carry no red border (3 Nov) */
/* the mats are back, in black; the red-room print sits inside with a light vignette (3 Nov) */
.w-plate,body.archive .w-plate{background:#0B0806;border-color:rgba(237,230,214,.12)}
.w-card:hover .w-plate{border-color:rgba(237,230,214,.38)}
.w-plate::before{content:"";position:absolute;inset:6.7%;z-index:1;pointer-events:none;box-shadow:inset 0 0 60px 6px rgba(0,0,0,.55)}

/* 3 Nov: no scanlines on the plates or over the field */
.w-plate::after{content:none!important;background:none!important}
.wall-fx{background:radial-gradient(ellipse at 50% 50%,transparent 48%,rgba(0,0,0,.6) 100%)!important}

/* Arabic (4 Nov 2026): the room's own words follow the language chosen on the studio page */
:root[lang="ar"] .wall-title .w-title{font-family:'Amiri',var(--disp);font-weight:700;font-style:normal;letter-spacing:0;line-height:1.2}
:root[lang="ar"] .wall-title .w-eyebrow,:root[lang="ar"] .w-micro i,:root[lang="ar"] .wall-hud,:root[lang="ar"] .btn,:root[lang="ar"] .g-x,:root[lang="ar"] .w-back,:root[lang="ar"] .w-nav a{font-family:var(--body);letter-spacing:0;text-transform:none}

/* phones: the title keeps its own dark ground so it never fights the first plate (4 Nov 2026) */
@media(max-width:820px){
  .wall-title{left:0;padding:12px 56px 14px var(--gut);background:linear-gradient(90deg,rgba(10,8,8,.95),rgba(10,8,8,.88) 62%,rgba(10,8,8,0))}
  .wall-title::before{display:none}
}
