/* وثب | WASB Studio — داكن، سينمائي، والكلمة هي البطل. */

:root {
  --red: #C43B2B;
  --bg: #0E0E0E;
  --bg-2: #191919;
  --fg: #F0F0F0;
  --mute: #9A9A9A;
  --rule: rgba(240, 240, 240, .16);

  --display: 'Alexandria', 'IBM Plex Sans Arabic', system-ui, sans-serif;
  --body: 'IBM Plex Sans Arabic', 'Alexandria', system-ui, sans-serif;

  --gutter: clamp(18px, 2.2vw, 32px);
  --space: clamp(96px, 17vh, 200px);
  --out: cubic-bezier(.16, 1, .3, 1);
  --inout: cubic-bezier(.76, 0, .24, 1);
  --dir: 1;
}
html[dir="rtl"] { --dir: -1; }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scrollbar-color: #3a3a3a var(--bg); scrollbar-width: thin; background: var(--bg); }
html.intro-on { overflow: hidden; }
body { margin: 0; background: var(--bg); color: var(--fg); font-family: var(--body); font-size: 1.125rem; line-height: 1.75; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: clip; }
body.is-locked { overflow: hidden; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, p, ol, ul, dl, dd { margin: 0; padding: 0; font-weight: inherit; }
ol, ul { list-style: none; }
::selection { background: var(--red); color: #fff; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 4px; }
html[lang="ar"] .en-only, html[lang="en"] .ar-only { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.wrap { width: min(100% - 2 * var(--gutter), 1500px); margin-inline: auto; }
.skip { position: fixed; inset-block-start: 8px; inset-inline-start: 8px; z-index: 400; background: var(--fg); color: var(--bg); padding: .6em 1em; translate: 0 -300%; }
.skip:focus { translate: 0 0; }
main > section { scroll-margin-top: 0; }

.label, .hero__id > span, .hero__year, .foot, .dock__btn { font-family: var(--display); font-size: .9rem; letter-spacing: .02em; line-height: 1.5; }
html[lang="en"] .hero__id > span, html[lang="en"] .hero__year, html[lang="en"] .foot, html[lang="en"] .dock__btn { text-transform: uppercase; letter-spacing: .06em; font-size: .76rem; }

.display { font-family: var(--display); font-weight: 800; font-size: clamp(2.1rem, 5vw, 4.4rem); line-height: 1.25; text-wrap: balance; }
html[lang="en"] .display { line-height: 1.02; letter-spacing: -.03em; }
.w { display: inline-block; overflow: clip; overflow-clip-margin: .12em; vertical-align: bottom; padding-block: .14em; margin-block: -.14em; }
.w > span { display: inline-block; }
.js [data-split]:not(.in) .w > span { translate: 0 115%; }
[data-split] .w > span { transition: translate 1.1s var(--out); transition-delay: calc(var(--i, 0) * 70ms); }

.head--start { justify-content: flex-start !important; align-items: baseline !important; gap: 14px 40px !important; }
.head { display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: 20px 48px; margin-block-end: clamp(36px, 6vh, 64px); }
.head__note { color: var(--mute); max-width: 30rem; }
html[dir="rtl"] .flip, html[dir="rtl"] .bar svg, html[dir="rtl"] .row svg, html[dir="rtl"] .case__next svg { scale: -1 1; }

/* ---------- intro ---------- */
.intro { display: none; }
html.intro-on .intro { display: block; position: fixed; inset: 0; z-index: 300; background: var(--bg); transition: background-color .5s ease; }
.intro.is-out { background: transparent; }
.intro__box { position: fixed; background: var(--red); overflow: hidden; border-radius: 0; scale: 0; transition: left 1s var(--inout), top 1s var(--inout), width 1s var(--inout), height 1s var(--inout), border-radius 1s var(--inout), scale .45s var(--out); }
.intro__box.is-on { scale: 1; }
.intro__box img { position: absolute; inset: 25%; width: 50%; height: 50%; object-fit: cover; opacity: 0; }
.intro__box img.is-on { opacity: 1; }

/* ---------- dock ---------- */
.dock { position: fixed; z-index: 70; inset-block-end: var(--gutter); display: flex; align-items: center; gap: 18px; }
.dock--home { inset-inline-start: var(--gutter); color: var(--red); transition: translate .5s var(--out); }
.dock--home svg { height: 44px; width: auto; }
.dock--home .plate { color: var(--bg); fill: var(--bg); }
.dock--home:hover { translate: 0 -4px; }
.dock--menu { inset-inline-end: var(--gutter); }
.dock__btn { height: 46px; display: inline-flex; align-items: center; color: var(--fg); transition: color .3s; text-shadow: 0 1px 12px rgba(0, 0, 0, .5); }
.dock__btn:hover { color: var(--red); }
@property --sweep { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
.menu-btn { position: relative; height: auto; padding: 7px 16px 8px; border-radius: 999px; background: #1d1d1d; color: var(--fg); box-shadow: inset 0 0 0 1px var(--rule); font-family: var(--display); font-weight: 700; font-size: .95rem; line-height: 1.35; transition: background-color .45s var(--out), box-shadow .45s var(--out), color .3s; }
.menu-btn::before { content: ''; position: absolute; inset: 0; border-radius: inherit; padding: 1px; background: conic-gradient(var(--red) 0deg var(--sweep), transparent var(--sweep) 360deg); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); animation: trace 7s linear infinite; pointer-events: none; }
@keyframes trace { 0% { --sweep: 0deg; opacity: 1; } 32% { --sweep: 360deg; opacity: 1; } 40% { --sweep: 360deg; opacity: 1; } 44%, 100% { --sweep: 360deg; opacity: 0; } }
.menu-btn__roll { display: flex; align-items: center; gap: 7px; transition: translate .5s var(--out); }
.menu-btn.is-icon { padding-inline: 18px; }
.menu-btn .back { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
html[dir="ltr"] .menu-btn .back { scale: -1 1; }
.menu-btn:hover, .menu-btn:focus-visible { background: var(--red); box-shadow: inset 0 0 0 1px var(--red); color: #fff; }
.menu-btn:hover::before, .menu-btn[aria-expanded="true"]::before { animation: none; opacity: 0; }
.menu-btn:hover .menu-btn__roll { translate: calc(var(--dir) * 2px) 0; }
.menu-btn[aria-expanded="true"] { background: var(--red); box-shadow: inset 0 0 0 1px var(--red); color: #fff; }
html[lang="en"] .menu-btn { text-transform: uppercase; letter-spacing: .08em; font-size: .82rem; }

.menu { position: fixed; inset: 0; z-index: 65; background: var(--bg); padding: var(--gutter) var(--gutter) calc(var(--gutter) + 80px); display: flex; align-items: flex-end; clip-path: inset(100% 0 0 0); transition: clip-path .7s var(--out); }
.menu[hidden] { display: none; }
.menu.is-open { clip-path: inset(0 0 0 0); }
.menu__links { display: grid; width: 100%; }
.menu__links a { font-family: var(--display); font-weight: 800; font-size: clamp(1.9rem, 5.2vw, 4.2rem); line-height: 1.35; padding-block: .14em .22em; border-block-start: 1px solid var(--rule); transition: color .3s, padding .5s var(--out); }
html[lang="en"] .menu__links a { line-height: 1.15; letter-spacing: -.03em; }
.menu__links a:hover { color: var(--red); padding-inline-start: .3em; }
.menu__links a:last-child { color: var(--red); }

/* ---------- hero ---------- */
.hero {
  --W: calc(100cqw - 2 * var(--gutter));
  --wb: clamp(84px, 11vh, 110px);
  --wr: .3504;
  --ww: calc(min(var(--W), 48svh / .3156) * .9797);              /* the Arabic word's width; English matches it exactly */                       /* word width, capped by height */
  --cut: .5899;                                                  /* the stroke of ب starts this far down the Arabic wordmark */
  --band: calc(100svh - var(--gutter) - var(--ww) * var(--wr) * (1 - var(--cut)) - var(--wb));  /* red visible above the white */
  --band-en: calc(100svh - var(--gutter) - var(--ww) * .2654 - var(--wb));  /* the English band: icon and services keep this size and place in both languages */
  position: relative; height: 100vh; height: 100svh; min-height: 600px; overflow: clip; container-type: inline-size;
}
html[lang="en"] .hero { --wr: .2654; --cut: 0; }
.hero__slab { position: absolute; top: 0; bottom: 0; left: 32.5%; width: 35%; background: var(--red); border-radius: 0; overflow: hidden; }   /* runs off the top edge */
.slab__in { position: absolute; inset-inline: 0; top: var(--gutter); height: var(--band-en); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: clamp(12px, 3vh, 30px); padding: 0 18px; }
.slab__mark { height: min(30vh, var(--band-en) * .46); width: auto; color: var(--fg); flex: none; }
.trio { display: grid; justify-items: center; gap: clamp(0px, .6vh, 6px); font-family: var(--display); font-weight: 800; font-size: clamp(1rem, min(3.3vh, 2.1vw), 2.05rem); line-height: 1.5; }
html[lang="en"] .trio { font-weight: 800; line-height: 1.3; }
html[lang="ar"] .trio { font-size: calc(clamp(1rem, min(3.3vh, 2.1vw), 2.05rem) * .9); line-height: 1.4444; }  /* same line pitch as English (1.3 / .9) */   /* Arabic glyphs read larger: 90% matches the English block's width */
.trio a { position: relative; display: inline-flex; align-items: center; gap: .35em; color: var(--bg); white-space: nowrap; transition: color .35s var(--out); }
.trio a { cursor: pointer; }

.trio a:hover, .trio a:focus-visible, .trio a:active { color: #fff; }
.trio__t { display: inline-block; }
.trio__hand { position: absolute; left: 0; top: 0; width: 1.1em; height: 1.1em; margin: -.55em 0 0 -.55em; font-size: clamp(1rem, min(3.3vh, 2.1vw), 2.05rem); color: var(--bg); pointer-events: none; translate: var(--hx, 0) var(--hy, 0); opacity: 0; transition: translate .75s cubic-bezier(.65, 0, .35, 1), opacity .5s; }
.trio__hand.is-ready { opacity: 1; }
.trio__hand.no-move { transition: none; }
.trio__spin { display: block; width: 100%; height: 100%; rotate: -90deg; }
html[dir="ltr"] .trio__spin { rotate: 90deg; }
.trio__spin svg { display: block; width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.trio__spin.is-spin { animation: hand-nudge 1.5s ease-in-out; }
@keyframes hand-nudge { 0%, 50%, 100% { translate: 0 0; } 25%, 75% { translate: calc(var(--dir) * -9px) 0; } }
.trio-box { position: relative; }
.pre { white-space: pre-line; }
.bl { display: inline-block; width: 0; height: 0; vertical-align: baseline; }
/* on desktop the mark and the services are placed by script on the slogan's lines */

.hero__bar { position: absolute; inset-block-start: var(--gutter); inset-inline: var(--gutter); display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; z-index: 2; pointer-events: none; }
.hero__bar a { pointer-events: auto; }
.hero__id { display: grid; gap: 4px; max-width: calc(32.5% - 2 * var(--gutter)); }
.hero__by, .hero__year { color: rgba(240, 240, 240, .5); }
.hero__by { font-family: var(--display); font-size: 1rem; line-height: 1.6; }
.nw { white-space: nowrap; }
.blue { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; padding-block-end: 1px; box-shadow: 0 1px 0 currentColor; transition: color .3s; direction: ltr; }
.blue svg { width: 13px; height: 13px; transition: translate .45s var(--out); }
.blue:hover, .blue:focus-visible { color: var(--red); }
.blue:hover svg { translate: 3px -3px; }
.hero__pitch { position: absolute; inset-inline-end: var(--gutter); top: var(--gutter); height: var(--band); width: calc(32.5% - 2 * var(--gutter)); z-index: 2; display: flex; flex-direction: column; justify-content: center; padding-block: 0; }
.hero__slogan { font-family: var(--display); font-weight: 800; font-size: clamp(1.35rem, 2.15vw, 2.2rem); line-height: 1.6; text-wrap: balance; }
html[lang="en"] .hero__slogan { font-weight: 700; line-height: 1.15; letter-spacing: -.02em; }
.hero__lede { margin-block-start: 14px; font-size: clamp(.95rem, 1.05vw, 1.05rem); line-height: 1.75; color: rgba(240, 240, 240, .78); }
.hero__ghost { position: absolute; inset-inline-start: var(--gutter); top: calc(var(--gutter) + 92px); height: calc(var(--band) - var(--ww) * var(--wr) * var(--cut) - 92px - 20px); width: calc(32.5% - 2 * var(--gutter)); display: flex; align-items: center; justify-content: center; pointer-events: none; }
.hero__ghost svg { width: 100%; height: 100%; color: #f0f0f0; -webkit-mask: radial-gradient(closest-side, #000 55%, transparent); mask: radial-gradient(closest-side, #000 55%, transparent); opacity: 0; animation: ghost 2.4s var(--out) 1.2s forwards; }
.hero__ghost use { opacity: .02; animation: twinkle 6s ease-in-out infinite; animation-delay: var(--d, 0s); }
@keyframes twinkle { 0%, 55%, 100% { opacity: .02; } 25% { opacity: .15; } }
html.intro-on .hero__ghost svg { animation-play-state: paused; }
@keyframes ghost { to { opacity: 1; } }
.hero__word { position: absolute; left: 50%; width: var(--ww); translate: -50% 0; bottom: var(--wb); z-index: 2; pointer-events: none; }
.hero__wordmark { display: block; }
.hero__word svg { width: 100%; height: auto; color: var(--fg); }


@keyframes fade { from { opacity: 0; translate: 0 14px; } to { opacity: 1; translate: 0 0; } }
@keyframes mark { from { opacity: 0; scale: .92; } to { opacity: 1; scale: 1; } }
html.intro-on .slab__mark, html.intro-on .hero__wordmark, html.intro-on .hero__bar, html.intro-on .hero__pitch, html.intro-on .trio li { animation-play-state: paused; }
/* order: 1) the word rises with the mark  2) services and the rest of the header  3) the hand (script) */
.slab__mark { animation: mark 1.1s var(--out) .25s both; }
.hero__wordmark { overflow: hidden; }      /* both words rise in from under a mask */
.hero__wordmark svg { display: block; animation: rise 1.2s var(--inout) .25s both; }
html.intro-on .hero__wordmark svg { animation-play-state: paused; }
@keyframes rise { from { translate: 0 105%; } to { translate: 0 0; } }
.hero__bar, .hero__pitch { animation: fade 1s var(--out) 1.25s both; }
.trio li { animation: fade .8s var(--out) both; animation-delay: calc(1.25s + var(--n, 0) * .12s); }
.trio li:nth-child(2) { --n: 1; }
.trio li:nth-child(3) { --n: 2; }

/* ---------- about ---------- */
.say { padding-block: clamp(56px, 10vh, 110px) var(--space); }
.say__in { display: grid; justify-items: center; text-align: center; gap: clamp(22px, 4vh, 36px); }
.say__text { max-width: 44rem; font-size: clamp(1.05rem, 1.4vw, 1.3rem); line-height: 1.85; text-wrap: balance; }
.pair { display: flex; align-items: center; justify-content: center; gap: clamp(20px, 3vw, 40px); }
.pair__wasb { display: flex; align-items: center; gap: 12px; }
.pair__sym { height: 64px; width: auto; color: var(--red); }
.pair__wasb > span svg { height: 28px; width: auto; color: var(--fg); }
.pair__x { width: 1px; height: 56px; background: var(--rule); }
.pair__blue { display: flex; align-items: center; gap: 12px; font-family: var(--display); font-weight: 700; font-size: 1.05rem; direction: ltr; transition: color .3s; }
.pair__blue img { height: 60px; width: auto; }
.pair__blue:hover { color: var(--red); }

/* ---------- works: a grid, the name on the work ---------- */
.works { padding-block: 0 var(--space); }
.filters { display: flex; flex-wrap: wrap; gap: 4px 26px; font-family: var(--display); font-size: 1rem; overflow: clip; overflow-clip-margin: 4px; }
.js .filters:not(.in) button { translate: 0 120%; }
.filters button { transition: translate 1.1s var(--out), color .3s, box-shadow .3s !important; transition-delay: calc(.25s + var(--i, 0) * 70ms), 0s, 0s !important; }
.filters button:nth-child(2) { --i: 1; } .filters button:nth-child(3) { --i: 2; } .filters button:nth-child(4) { --i: 3; }
.filters button { padding-block: 6px; color: var(--mute); box-shadow: 0 1px 0 transparent; transition: color .3s, box-shadow .3s; }
.filters button:hover { color: var(--fg); }
.filters button.is-on { color: var(--fg); box-shadow: 0 1px 0 var(--red); }
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-auto-rows: clamp(110px, 11.5vw, 190px); gap: 0; border-radius: 10px; overflow: hidden; }
.tile { position: relative; display: block; overflow: hidden; background: var(--bg-2); isolation: isolate; }
.tile[hidden] { display: none; }
.grid:not(.is-filtered) .tile:nth-child(1) { grid-column: 1 / 8; grid-row: 1 / 4; }
.grid:not(.is-filtered) .tile:nth-child(2) { grid-column: 8 / 13; grid-row: 1 / 3; }
.grid:not(.is-filtered) .tile:nth-child(3) { grid-column: 8 / 13; grid-row: 3 / 4; }
.grid:not(.is-filtered) .tile:nth-child(4) { grid-column: 1 / 5; grid-row: 4 / 6; }
.grid:not(.is-filtered) .tile:nth-child(5) { grid-column: 5 / 11; grid-row: 4 / 6; }
.grid:not(.is-filtered) .tile:nth-child(6) { grid-column: 11 / 13; grid-row: 4 / 6; }
.grid.is-filtered { grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr)); grid-auto-rows: clamp(220px, 24vw, 380px); }
.tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: var(--focus, 50% 50%); filter: grayscale(1) contrast(1.05); transition: scale 1.4s var(--out), filter .8s var(--out); }
.tile::after { content: ''; position: absolute; inset: 0; z-index: 1; background: linear-gradient(to top, rgba(10, 10, 10, .8) 0%, rgba(10, 10, 10, .2) 40%, rgba(10, 10, 10, 0) 62%); opacity: .9; transition: opacity .6s var(--out); }
.tile__cap { position: absolute; z-index: 2; inset-inline: clamp(14px, 1.6vw, 26px); bottom: clamp(12px, 1.5vw, 22px); display: grid; gap: 14px; opacity: .5; transition: opacity .5s var(--out); }
.tile__name { position: relative; justify-self: start; font-family: var(--display); font-weight: 800; font-size: clamp(1.05rem, 1.6vw, 1.7rem); line-height: 1.35; transition: translate .7s var(--out); }
.grid:not(.is-filtered) .tile:nth-child(1) .tile__name { font-size: clamp(1.5rem, 2.8vw, 2.8rem); }
html[lang="en"] .tile__name { line-height: 1.05; letter-spacing: -.02em; }
.tile__name::after { content: ''; position: absolute; inset-inline: 0; bottom: -6px; height: 2px; background: var(--red); scale: 0 1; transform-origin: var(--from, right); transition: scale .6s var(--out); }
html[dir="ltr"] .tile__name::after { --from: left; }
.tile__tags { font-family: var(--display); font-size: .88rem; transition: translate .7s var(--out) .04s; }
.tile__go { position: absolute; z-index: 2; top: clamp(12px, 1.4vw, 20px); inset-inline-end: clamp(12px, 1.4vw, 20px); width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--red); color: #fff; scale: .4; opacity: 0; transition: scale .5s var(--out), opacity .4s; }
.tile__go svg { width: 16px; height: 16px; }
html[dir="rtl"] .tile__go svg { scale: -1 1; }
.tile:hover img, .tile:focus-visible img { scale: 1.06; filter: none; }
.tile:hover .tile__cap, .tile:focus-visible .tile__cap { opacity: 1; }
.tile:hover .tile__name, .tile:focus-visible .tile__name, .tile:hover .tile__tags, .tile:focus-visible .tile__tags { translate: 0 -5px; }
.tile:hover .tile__name::after, .tile:focus-visible .tile__name::after { scale: 1 1; }
.tile:hover .tile__go, .tile:focus-visible .tile__go { scale: 1; opacity: 1; }
.js .tile:not(.in) img { opacity: 0; scale: 1.12; }
.tile img { transition: scale 1.4s var(--out), opacity 1s var(--out), filter .8s var(--out); transition-delay: calc(var(--i, 0) * 70ms); }
.tile.in:hover img { transition-delay: 0s; }

/* ---------- sites: a panoramic hall ---------- */
.sites { padding-block: 0 var(--space); overflow: clip; }
.pano { --cw: min(60vw, 960px); --ch: calc(var(--cw) * .6); --gap: 3.5vw; position: relative; height: calc(var(--ch) + 80px); }
.pano__stage { position: absolute; inset: 0; }
.card { position: absolute; left: 50%; top: 50%; width: var(--cw); height: var(--ch); margin: calc(var(--ch) / -2) 0 0 calc(var(--cw) / -2); --sc: .86; transform-origin: 50% 50%; transform: translateX(calc(var(--off) * (var(--cw) + var(--gap)))) scale(var(--sc)); transition: transform 1.4s cubic-bezier(.65, 0, .35, 1), filter 1.4s cubic-bezier(.65, 0, .35, 1), opacity .9s var(--out); filter: blur(5px) brightness(.38) saturate(.7); backface-visibility: hidden; border-radius: 8px; overflow: hidden; background: var(--bg-2); display: grid; grid-template-rows: auto minmax(0, 1fr); cursor: pointer; box-shadow: 0 40px 90px -30px rgba(0, 0, 0, .8); }
html[dir="rtl"] .card { transform: translateX(calc(var(--off) * (var(--cw) + var(--gap)) * -1)) scale(var(--sc)); }
.card.is-on { --sc: 1; filter: none; }
.card.is-far { opacity: 0; pointer-events: none; }
.card.no-anim { transition: none; }
.card__bar { display: flex; align-items: center; gap: 7px; padding: 0 16px; height: 40px; direction: ltr; background: #1f1f1f; }
.card__bar i { width: 9px; height: 9px; border-radius: 50%; background: rgba(240, 240, 240, .22); }
.card__bar span { margin-inline-start: 10px; font-family: var(--display); font-size: .82rem; color: var(--mute); }
.card__view { position: relative; overflow: hidden; container-type: size; background: #fff; }
.card__view img { position: absolute; top: 0; left: 0; width: 100%; height: auto; translate: 0 0; transition: translate 1.4s var(--out); }
.card.is-on.is-play .card__view img { translate: 0 -14%; transition: translate 5.4s cubic-bezier(.45, 0, .55, 1) 1.2s; }
.pano__ctrl { display: flex; align-items: center; justify-content: center; gap: clamp(14px, 1.8vw, 26px); margin-block-start: 8px; }
.pano__nav { width: 52px; height: 52px; display: grid; place-items: center; color: var(--fg); transition: color .3s, translate .45s var(--out); }
.pano__nav svg { width: 22px; height: 22px; rotate: -135deg; }
.pano__nav--next svg { rotate: 45deg; }
html[dir="rtl"] .pano__nav svg { rotate: 45deg; }
html[dir="rtl"] .pano__nav--next svg { rotate: -135deg; }
.pano__nav:hover { color: var(--red); }
.pano__meta { display: flex; align-items: center; gap: 22px; font-family: var(--display); }
.pano__count { color: var(--mute); font-size: .9rem; font-variant-numeric: tabular-nums; direction: ltr; }
.pano__link { display: inline-flex; align-items: center; gap: 10px; font-size: 1.15rem; direction: ltr; box-shadow: 0 1px 0 currentColor; padding-block-end: 2px; transition: color .3s; }
.pano__link svg { width: 15px; height: 15px; transition: translate .45s var(--out); }
.pano__link:hover { color: var(--red); }
.pano__link:hover svg { translate: 3px -3px; }

/* ---------- approach: the leap game ---------- */
.approach { position: relative; padding-block: 0; overflow-x: clip; }
.arc { position: relative; aspect-ratio: 2 / 1; max-width: min(1180px, 150vh); margin-inline: auto; }
.arc__svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
html[dir="rtl"] .arc__svg { scale: -1 1; }
.arc__base { fill: none; stroke-width: 1px; vector-effect: non-scaling-stroke; }
.arc__run { fill: none; stroke-width: 2.2; }
.arc__base { stroke: var(--rule); stroke-dasharray: 1 1.4; }
.arc__run { stroke: var(--red); stroke-dasharray: 100 300; stroke-dashoffset: calc(100 - var(--p, 0) * 100); transition: stroke-dashoffset .9s cubic-bezier(.33, 1, .68, 1); }
.arc__start { position: absolute; inset-inline-start: 2%; top: 100%; width: 12px; height: 12px; margin: -6px; border-radius: 50%; background: var(--fg); }
.arc__end { position: absolute; inset-inline-end: 2%; top: 100%; width: 12px; height: 12px; margin: -6px; border-radius: 50%; background: var(--fg); opacity: 0; scale: 0; transition: opacity .4s, scale .6s cubic-bezier(.34, 1.56, .64, 1); }
.arc.is-done .arc__end { opacity: 1; scale: 1; }
.arc.is-done .spark { opacity: 0; transition: opacity .3s; }
.spark { position: absolute; z-index: 3; left: 0; top: 0; width: 14px; height: 14px; margin: -7px; background: var(--red); rotate: 45deg;  pointer-events: none; }
.arc__dot.ping::after { content: ''; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid var(--red); animation: ping .9s var(--out) forwards; }
@keyframes ping { from { scale: .6; opacity: 1; } to { scale: 3.2; opacity: 0; } }
.emblem { position: relative; width: clamp(64px, 7vw, 104px); margin-block-end: 6px; color: var(--fg); }
.emblem svg { width: 100%; height: auto; overflow: visible; }
.emblem use { transition: opacity .8s var(--out), color .9s var(--out); }
.em-guide { color: var(--fg); stroke: currentColor; stroke-width: 1.4; stroke-dasharray: 1.2 1.6; opacity: .22; }
.em-sketch { color: var(--fg); stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 100; stroke-dashoffset: 100; opacity: 0; transition: stroke-dashoffset 1.8s cubic-bezier(.45, 0, .2, 1), opacity .5s; }
.em-solid { color: var(--fg); opacity: 0; }
.emblem.s1 .em-guide { opacity: .55; }
.emblem.s2 .em-sketch { opacity: 1; stroke-dashoffset: 0; }
.emblem.s3 .em-guide, .emblem.s3 .em-sketch { opacity: 0; }
.emblem.s3 .em-solid { opacity: 1; }
.emblem.s4 .em-solid { color: var(--red); }
.em-burst { position: absolute; inset: 0; pointer-events: none; }
.em-burst i { position: absolute; left: 50%; top: 55%; width: var(--s); height: var(--s); margin: calc(var(--s) / -2); background: var(--red); rotate: 45deg; opacity: 0; }
.emblem.s4 .em-burst i { animation: burst 1.6s cubic-bezier(.16, 1, .3, 1) var(--d) forwards; }
@keyframes burst { 0% { opacity: 0; translate: 0 0; scale: .4; } 12% { opacity: var(--o, 1); } 70% { opacity: var(--o, 1); } 100% { opacity: 0; translate: var(--dx) var(--dy); scale: 1; } }
.arc__core { position: absolute; inset-inline: 23%; top: 21%; display: grid; justify-items: center; gap: 14px; text-align: center; }
.arc__title { font-family: var(--display); font-weight: 900; font-size: clamp(2.1rem, 4.4vw, 4.2rem); line-height: 1.25; color: var(--red); }
html[lang="en"] .arc__title { line-height: 1.02; letter-spacing: -.03em; }
.game__hint { color: var(--mute); font-size: 1rem; line-height: 1.6; max-width: 26rem; min-height: 1.6em; }
.game__hint a { color: var(--fg); box-shadow: 0 1px 0 var(--red); }
.game__ctrl { display: flex; align-items: center; justify-content: center; margin-block-start: 6px; }
.leap { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 0; height: 62px; min-width: 150px; padding-inline: 30px; border-radius: 999px; background: var(--red); color: #fff; font-family: var(--display); font-weight: 800; font-size: 1.35rem; box-shadow: 0 16px 40px -16px rgba(196, 59, 43, .9); transition: translate .35s var(--out), scale .2s; isolation: isolate; }
.leap__label { display: block; text-align: center; }
.leap__label.is-count { direction: ltr; font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.leap:hover { translate: 0 -3px; }
.leap:active { scale: .95; }
.leap__ring { position: absolute; inset: -6px; border-radius: inherit; border: 2px solid var(--red); opacity: 0; z-index: -1; }
.leap.is-charge .leap__ring { animation: charge .55s var(--out); }
@keyframes charge { 0% { opacity: .9; scale: .9; } 100% { opacity: 0; scale: 1.25; } }
.tap { position: absolute; inset-inline-start: 70%; top: 58%; width: 38px; height: 38px; color: #fff; pointer-events: none; animation: tap 1.4s ease-in-out infinite; filter: drop-shadow(0 4px 8px rgba(0, 0, 0, .6)); }
.tap svg { width: 100%; height: 100%; fill: rgba(14, 14, 14, .85); stroke: #fff; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
@keyframes tap { 0%, 100% { translate: 6px 8px; opacity: .55; } 40% { translate: 0 0; opacity: 1; } 55% { translate: 0 0; scale: .9; opacity: 1; } 70% { scale: 1; } }
.leap.is-used .tap { display: none; }
.arc__step { position: absolute; inset-inline-start: calc(50% - 48% * cos(var(--t) * 180deg)); top: calc(100% - 96% * sin(var(--t) * 180deg)); width: min(22ch, 21%); padding-block-start: 20px; text-align: start; }
.arc__step:nth-child(n+3) { translate: calc(var(--dir) * -100%) 0; text-align: end; }
.arc__dot { position: absolute; inset-inline-start: -8px; top: -8px; width: 16px; height: 16px; border-radius: 50%; background: var(--bg); box-shadow: inset 0 0 0 1.5px var(--fg); transition: background-color .4s, box-shadow .4s, scale .4s var(--out); }
.arc__step:nth-child(n+3) .arc__dot { inset-inline-start: auto; inset-inline-end: -8px; }
.arc__step h3, .arc__step p { opacity: 0; translate: 0 12px; transition: opacity .6s var(--out), translate .6s var(--out); }
.arc__step p { transition-delay: .08s; }
.arc__step.is-on .arc__dot { background: var(--red); box-shadow: none; scale: 1.2; }
.arc__step.is-on h3, .arc__step.is-on p { opacity: 1; translate: 0 0; }
.arc__step h3 { font-family: var(--display); font-weight: 700; font-size: clamp(1.15rem, 1.9vw, 1.6rem); line-height: 1.4; }
.arc__step p { color: var(--mute); font-size: 1rem; line-height: 1.65; margin-block-start: .3rem; }

/* ---------- contact + marquee ---------- */
.contact { position: relative; padding-block-start: var(--space); overflow: clip; }
.contact__top { display: grid; grid-template-columns: auto auto; justify-content: start; align-items: end; gap: 32px clamp(40px, 4.5vw, 80px); padding-block: 0 clamp(48px, 8vh, 88px); border-block-end: 1px solid var(--rule); }
.contact__info { padding-inline-start: clamp(40px, 4.5vw, 80px); border-inline-start: 1px solid var(--rule); padding-block: 6px; }
.contact__title { font-family: var(--display); font-weight: 900; font-size: clamp(2.6rem, 7vw, 6.4rem); line-height: 1.2; }
html[lang="en"] .contact__title { line-height: 1; letter-spacing: -.035em; }
.contact__lede { margin-block-start: 14px; font-size: clamp(1.1rem, 1.6vw, 1.5rem); line-height: 1.6; color: rgba(240, 240, 240, .85); }
.contact__info { display: grid; justify-items: center; text-align: center; gap: 16px; }
.contact__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 22px; }
.wa { display: grid; place-items: center; color: var(--red); transition: color .3s, translate .45s var(--out), scale .3s var(--out); }
.wa svg { width: 64px; height: 64px; }
.wa:hover { color: #e0563f; translate: 0 -3px; scale: 1.05; }
.contact__links .link { display: inline-flex; align-items: center; gap: 10px; font-family: var(--display); box-shadow: 0 1px 0 currentColor; }
.contact__facts { display: grid; grid-template-columns: auto auto; justify-content: center; align-items: center; gap: 22px 28px; padding-block-start: 82px; font-size: 1rem; text-align: start; }
.contact__facts dt { color: var(--mute); font-family: var(--display); }
.contact__facts dd { display: grid; justify-self: start; justify-items: start; gap: 4px; }
.contact__facts .nums { position: relative; }
.contact__facts .nums .wa { position: absolute; inset-inline: 0; bottom: calc(100% + 16px); }
.contact__addr { font-size: 1rem; color: var(--fg); }
.contact__addr span { color: var(--mute); font-family: var(--display); margin-inline-end: 12px; }
.contact__facts a { direction: ltr; unicode-bidi: isolate; font-variant-numeric: tabular-nums; transition: color .3s; }
.contact__facts a:hover { color: var(--red); }
.contact__empty { font-family: var(--display); font-size: .95rem; opacity: .8; }
.marquee { position: relative; overflow: hidden; direction: ltr; padding-block: clamp(20px, 4vh, 44px) clamp(8px, 2vh, 20px); }
.marquee__track { display: flex; width: max-content; animation: run 34s linear infinite; }
@keyframes run { to { translate: -50% 0; } }
.marquee__unit { display: flex; align-items: center; gap: 3vw; padding-inline-end: 3vw; flex: none; }
.marquee__unit svg { height: 15vw; width: auto; color: var(--fg); }
html[lang="en"] .marquee__unit svg { height: 11.05vw; }
.marquee__unit em { font-style: normal; font-family: var(--display); font-weight: 900; font-size: 15vw; line-height: 1.15; color: var(--red); }
html[lang="en"] .marquee__unit em { letter-spacing: -.05em; line-height: 1; text-transform: uppercase; }
.foot { position: relative; display: flex; justify-content: space-between; gap: 16px; padding-block: 20px calc(var(--gutter) + 72px); }
.foot a:hover { color: var(--red); }

/* ---------- case study ---------- */
.case { position: fixed; inset: 0; z-index: 100; background: var(--bg); color: var(--fg); display: grid; grid-template-rows: auto minmax(0, 1fr); clip-path: inset(100% 0 0 0); transition: clip-path .8s var(--out); }
.case[hidden] { display: none; }
.case.is-open { clip-path: inset(0 0 0 0); }
.case__bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 68px; padding-inline: var(--gutter); box-shadow: 0 1px 0 var(--rule); }
.case__close { display: inline-flex; align-items: center; gap: 10px; font-family: var(--display); font-size: .95rem; height: 44px; padding-inline: 16px; background: var(--bg-2); border-radius: 8px; box-shadow: inset 0 0 0 1px var(--rule); transition: color .3s; }
.case__close:hover { color: var(--red); }
.case__close { justify-content: center; width: 56px; padding-inline: 0; border-radius: 999px; }
.case__close .back { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
html[dir="ltr"] .case__close .back { scale: -1 1; }
.case__crumb { font-family: var(--display); font-size: .9rem; color: var(--mute); }
.case__scroll { overflow-y: auto; overscroll-behavior: contain; outline: none; }
.case__head { padding-block: clamp(48px, 9vh, 110px) clamp(28px, 5vh, 56px); }
.case__head .wrap { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 24px 48px; align-items: end; }
.case__title { font-family: var(--display); font-weight: 900; font-size: clamp(2.6rem, 8vw, 7rem); line-height: 1.2; text-wrap: balance; }
html[lang="en"] .case__title { line-height: .98; letter-spacing: -.04em; }
.case__line { font-size: 1.15rem; margin-block-start: .8rem; color: var(--mute); max-width: 34rem; }
.case__scope h2 { font-family: var(--display); font-size: .85rem; color: var(--mute); }
.case__scope ul { margin-block-start: 6px; font-family: var(--display); font-size: 1.05rem; line-height: 1.8; }
.case__blocks { padding-block: 0 var(--space); display: grid; gap: clamp(16px, 2vw, 28px); }
.blk__title { font-family: var(--display); font-weight: 700; font-size: clamp(1.3rem, 2.2vw, 1.9rem); margin-block: clamp(36px, 7vh, 80px) 18px; display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.blk__hint { font-family: var(--body); font-weight: 400; font-size: .95rem; color: var(--mute); }
.blk img { width: 100%; height: auto; background: var(--bg-2); border-radius: 6px; }
.blk--grid .blk__items { display: grid; grid-template-columns: repeat(var(--cols, 2), minmax(0, 1fr)); gap: clamp(12px, 1.4vw, 20px); }
.blk--grid img { height: 100%; object-fit: cover; aspect-ratio: 4 / 3; }
.blk--grid.is-contain img { object-fit: contain; background: #fff; aspect-ratio: auto; height: auto; align-self: center; border-radius: 0; }
.blk--grid.is-contain .blk__items { align-items: center; background: #fff; border-radius: 6px; overflow: hidden; }
.blk--strip .blk__rail { display: flex; gap: clamp(12px, 1.4vw, 20px); overflow-x: auto; scroll-snap-type: x proximity; padding-inline: max(var(--gutter), calc((100vw - 1500px) / 2)); padding-block-end: 16px; cursor: grab; scrollbar-width: thin; }
.blk--strip .blk__rail.is-drag { cursor: grabbing; scroll-snap-type: none; }
.blk--strip img { flex: none; width: auto; height: clamp(210px, 54vh, 560px); scroll-snap-align: center; user-select: none; -webkit-user-drag: none; }
.browser { overflow: hidden; background: var(--bg-2); border-radius: 6px; max-width: 1180px; margin-inline: auto; }
.browser__bar { display: flex; align-items: center; gap: 7px; padding-inline: 16px; height: 46px; direction: ltr; }
.browser__bar i { width: 9px; height: 9px; border-radius: 50%; background: rgba(240, 240, 240, .22); }
.browser__bar span { margin-inline-start: 10px; font-family: var(--display); font-size: .85rem; color: var(--mute); }
.browser__bar a { margin-inline-start: auto; font-family: var(--display); font-size: .9rem; display: inline-flex; gap: 8px; align-items: center; transition: color .3s; }
.browser__bar a:hover { color: var(--red); }
.browser__bar a svg { width: 14px; height: 14px; }
.browser__view { max-height: min(78vh, 760px); overflow-y: auto; background: #fff; }
.browser__view img { background: #fff; border-radius: 0; }
.case__next { display: block; padding-block: clamp(40px, 8vh, 90px); border-block-start: 1px solid var(--rule); transition: color .3s; }
.case__next:hover { color: var(--red); }
.case__next small { font-family: var(--display); font-size: .9rem; color: var(--mute); display: block; }
.case__next strong { font-family: var(--display); font-weight: 900; font-size: clamp(2rem, 6vw, 5rem); line-height: 1.3; display: flex; align-items: center; gap: .4em; }
.case__next svg { width: .6em; height: .6em; }


/* ---------- responsive ---------- */
@media (max-width: 1040px) {
  .pano { --cw: 74vw; }
  .arc__step { width: min(20ch, 22%); }
  .arc__step p { font-size: .92rem; }
}
@media (max-width: 820px) {
  body { font-size: 1.0625rem; }
  .hero { height: auto; min-height: 100svh; display: flex; flex-direction: column; gap: 16px; padding: var(--gutter) var(--gutter) calc(var(--gutter) + 70px); container-type: normal; }
  .hero__bar, .hero__slab, .hero__pitch, .hero__word { position: relative; inset: auto; left: auto; top: auto; bottom: auto; width: auto; height: auto; max-width: none; translate: none; padding: 0; }
  .hero__id { max-width: none; }
  .hero__slab { order: 1; flex: 1 1 auto; min-height: 46svh; border-radius: 8px; display: grid; place-items: center; }
  .slab__in { position: relative; top: auto; height: auto; width: 100%; }
  .slab__mark { height: clamp(110px, 20svh, 200px); }
  .trio, html[lang="ar"] .trio { font-size: clamp(1.25rem, 6.4vw, 1.7rem); }
  html[lang="ar"] .trio { line-height: 1.5; }
  .hero__pitch { order: 2; }
  .hero__word { order: 3; }
  .pano__link { font-size: 1rem; white-space: nowrap; }
  .pano__meta { gap: 14px; }
  .pair__sym { height: 46px; }
  .pair__blue img { height: 44px; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 38vw; }
  .grid:not(.is-filtered) .tile:nth-child(1) { grid-column: 1 / 3; grid-row: span 2; }
  .grid:not(.is-filtered) .tile:nth-child(2) { grid-column: 1 / 2; grid-row: span 2; }
  .grid:not(.is-filtered) .tile:nth-child(3) { grid-column: 2 / 3; grid-row: span 1; }
  .grid:not(.is-filtered) .tile:nth-child(4) { grid-column: 2 / 3; grid-row: span 1; }
  .grid:not(.is-filtered) .tile:nth-child(5) { grid-column: 1 / 3; grid-row: span 1; }
  .grid:not(.is-filtered) .tile:nth-child(6) { grid-column: 1 / 3; grid-row: span 2; }
  .grid.is-filtered { grid-template-columns: 1fr; grid-auto-rows: 64vw; }
  .tile__cap { opacity: .75; }
  .tile__go { scale: 1; opacity: 1; width: 40px; height: 40px; }
  .pano { --cw: 84vw; --gap: 4vw; }
  .arc { aspect-ratio: auto; max-width: none; padding-block-start: 8px; }
  .arc__svg, .arc__start, .arc__end, .hero__ghost { display: none; }
  .arc__core { position: static; justify-items: center; text-align: center; margin-block-end: 36px; }
  .spark { display: none; }
  .arc__title { font-size: clamp(2.2rem, 10vw, 3rem); }
  .arc__steps { display: grid; gap: 30px; border-inline-start: 1px dashed var(--rule); padding-inline-start: 28px; padding-block: 40px 8px; }
  .arc__step, .arc__step:nth-child(n+3) { position: relative; inset: auto; width: auto; translate: none; padding-block-start: 0; min-height: 3.2em; text-align: start; }
  .arc__dot, .arc__step:nth-child(n+3) .arc__dot { inset-inline-start: -36px; inset-inline-end: auto; top: 8px; }
  .contact__top { grid-template-columns: 1fr; }
  .contact__info { padding-inline-start: 0; border-inline-start: 0; }
  .case__head .wrap { grid-template-columns: 1fr; }
  .blk--grid .blk__items { grid-template-columns: repeat(min(var(--cols, 2), 2), minmax(0, 1fr)); }
  .blk--grid[style*="--cols:2"] .blk__items { grid-template-columns: 1fr; }
  .case__crumb { display: none; }
  .dock--home svg { height: 38px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .js [data-split]:not(.in) .w > span { translate: none; }
  .card.is-on .card__view img { translate: 0 0; }
}

@media (prefers-reduced-motion: reduce) { .js .tile:not(.in) img { opacity: 1; scale: 1; } }
