/* ───────── tokens ───────── */
:root{
  --bg:#0F1217;
  --bg-deep:#080A0D;
  --bg-band:#161A21;
  --red:#2E8BFF;
  --red-hot:#5AA6FF;
  --red-dim:#1B4A80;
  --cream:#EDEFF2;
  --cream-dim:rgba(237,239,242,.64);
  --cream-faint:rgba(237,239,242,.14);

  --dis-lat:'Anton',Impact,sans-serif;
  --dis-ara:'Cairo',sans-serif;
  /* IBM Plex Sans and IBM Plex Sans Arabic come from the same type programme,
     so the two languages share proportion and colour instead of being two
     unrelated families bolted together at the toggle. */
  --body-lat:'IBM Plex Sans',system-ui,sans-serif;
  --body-ara:'IBM Plex Sans Arabic',system-ui,sans-serif;

  --gut:clamp(18px,5vw,64px);
  --maxw:1240px;
  --r:14px;
}

*,*::before,*::after{box-sizing:border-box}
html{scroll-behavior:smooth;-webkit-text-size-adjust:100%;overflow-x:clip}
@media (prefers-reduced-motion:reduce){html{scroll-behavior:auto}}

body{
  margin:0;
  background:var(--bg);
  color:var(--cream);
  font-family:var(--body-ara);
  font-size:clamp(15px,1.05vw,17px);
  line-height:1.9;
  /* `clip` not `hidden`: overflow-x:hidden turns the body into a scroll
     container, and position:sticky then resolves against it instead of the
     viewport — which silently kills the pinned work rail on desktop. */
  overflow-x:clip;
}
html[lang=en] body{font-family:var(--body-lat);line-height:1.7}

img,video,canvas,picture{max-width:100%;display:block}
a{color:inherit;text-decoration:none}
ul,ol{margin:0;padding:0;list-style:none}
button{font:inherit;color:inherit;cursor:pointer}

.wrap{max-width:var(--maxw);margin-inline:auto;padding-inline:var(--gut)}

.skip{position:absolute;inset-inline-start:-9999px;top:0;z-index:999;background:var(--cream);color:#0A0C10;padding:12px 18px}
.skip:focus{inset-inline-start:12px;top:12px}

:focus-visible{outline:2px solid var(--cream);outline-offset:3px;border-radius:4px}

/* ───────── display type ───────── */
.h-dis{
  font-family:var(--dis-ara);
  font-weight:900;
  line-height:1.08;
  letter-spacing:-.01em;
  margin:0;
  text-wrap:balance;
}
html[lang=en] .h-dis{font-family:var(--dis-lat);font-weight:400;letter-spacing:.005em;line-height:1}
.h2{font-size:clamp(34px,6.2vw,74px)}
html[lang=ar] .h-dis{line-height:1.22}

.eyebrow{
  font-size:12px;letter-spacing:.22em;text-transform:uppercase;
  color:var(--red-hot);margin:0 0 14px;font-weight:600;
}
html[lang=ar] .eyebrow{letter-spacing:.08em}

.lede{font-size:clamp(16px,1.5vw,20px);color:var(--cream-dim);max-width:62ch;margin:18px 0 0}
.lede-c{margin-inline:auto;text-align:center}

/* ───────── buttons ───────── */
.btn{
  display:inline-flex;align-items:center;justify-content:center;gap:10px;
  background:var(--cream);color:#0A0C10;
  padding:13px 26px;border:1px solid var(--cream);border-radius:999px;
  font-weight:600;font-size:15px;line-height:1;
  transition:transform .18s ease,background .18s ease,color .18s ease;
}
.btn:hover{transform:translateY(-2px);background:#fff}
.btn-lg{padding:17px 34px;font-size:16px}
.btn-sm{padding:10px 18px;font-size:14px}
.btn-ghost{background:transparent;color:var(--cream);border-color:var(--cream-faint)}
.btn-ghost:hover{background:rgba(237,239,242,.08);border-color:var(--cream-dim)}
.btn[disabled]{opacity:.45;pointer-events:none}

/* ───────── header ───────── */
.hd{position:fixed;inset-block-start:0;inset-inline:0;z-index:60;padding:14px var(--gut);transition:padding .3s ease}
.hd-in{
  max-width:var(--maxw);margin-inline:auto;
  display:flex;align-items:center;gap:20px;
  padding:10px 14px;border-radius:999px;
  border:1px solid transparent;transition:all .3s ease;
}
.hd.pill .hd-in{
  background:rgba(14,17,22,.82);backdrop-filter:blur(14px);
  border-color:var(--cream-faint);
  box-shadow:0 10px 36px rgba(0,0,0,.4);
}
.brand{display:flex;flex-direction:column;line-height:1.05;margin-inline-end:auto}
.brand-main{font-family:var(--dis-ara);font-weight:900;font-size:20px}
html[lang=en] .brand-main{font-family:var(--dis-lat);font-weight:400;font-size:22px;letter-spacing:.02em}
.brand-sub{font-size:11px;color:var(--cream-dim);letter-spacing:.04em}

.hd-nav{display:flex;gap:26px;font-size:14px;color:var(--cream-dim)}
.hd-nav a{transition:color .2s}
.hd-nav a:hover{color:var(--cream)}
.hd-act{display:flex;align-items:center;gap:10px}
.lang{
  background:transparent;border:1px solid var(--cream-faint);color:var(--cream);
  width:42px;height:38px;border-radius:999px;font-size:13px;font-weight:600;
  transition:border-color .2s,background .2s;
}
.lang:hover{border-color:var(--cream-dim);background:rgba(237,239,242,.07)}

@media (max-width:900px){ .hd-nav{display:none} }

/* ───────── hero ───────── */
.hero{position:relative;min-height:100svh;display:flex;align-items:center;overflow:hidden;isolation:isolate;background:var(--bg-deep)}
.hero-sun{position:absolute;inset:0;width:100%;height:100%;z-index:1;pointer-events:none}

/* the portrait melts into the dark; it is a presence, not a cut-out sticker */


/* scrim: heavier where the type sits, so the headline always reads */
.hero::after{
  content:'';position:absolute;inset:0;z-index:3;pointer-events:none;
  background:linear-gradient(to bottom,rgba(8,10,13,.55) 0%,transparent 26%,transparent 62%,var(--bg) 99%);
}
html[dir=rtl] .hero::after{
  background:
    linear-gradient(to left,rgba(8,10,13,.94) 0%,rgba(8,10,13,.55) 42%,transparent 76%),
    linear-gradient(to bottom,rgba(8,10,13,.5) 0%,transparent 26%,transparent 64%,var(--bg) 99%);
}
html[dir=ltr] .hero::after{
  background:
    linear-gradient(to right,rgba(8,10,13,.94) 0%,rgba(8,10,13,.55) 42%,transparent 76%),
    linear-gradient(to bottom,rgba(8,10,13,.5) 0%,transparent 26%,transparent 64%,var(--bg) 99%);
}
@media (max-width:760px){
  html[dir=rtl] .hero::after,html[dir=ltr] .hero::after{
    background:linear-gradient(to bottom,rgba(8,10,13,.7) 0%,rgba(8,10,13,.42) 38%,rgba(8,10,13,.9) 80%,var(--bg) 99%);
  }
}

.hero-in{position:relative;z-index:4;width:100%;max-width:var(--maxw);margin-inline:auto;padding:clamp(96px,13vh,132px) var(--gut) clamp(64px,10vh,96px)}
.kicker{font-size:12px;letter-spacing:.14em;color:var(--red-hot);margin:0 0 18px;font-weight:600}

.h-dis .l1,.h-dis .l2,.h-dis .l3{display:block}
.hero .h-dis{font-size:clamp(38px,7vw,92px)}
.hero .l2{color:var(--cream)}
.hero .l3{font-size:.4em;color:var(--red-hot);margin-top:.3em;text-shadow:0 2px 40px rgba(90,166,255,.45)}
html[lang=ar] .hero .l3{font-size:.36em}
.hero-sub{color:var(--cream-dim);font-size:clamp(15px,1.4vw,18px);margin:24px 0 0}
.hero-cta{display:flex;flex-wrap:wrap;gap:12px;margin-top:34px}
@media (min-width:761px){ .hero .h-dis,.hero-sub,.hero-cta,.kicker{max-width:min(52%,620px)} }
@media (max-height:720px){
  .hero .h-dis{font-size:clamp(32px,5.4vw,56px)}
  .hero-sub{font-size:14.5px;margin-top:16px}
  .hero-cta{margin-top:22px}
  .kicker{margin-bottom:10px}
}

.scrollhint{position:absolute;inset-block-end:26px;inset-inline-start:50%;transform:translateX(-50%);z-index:5;width:1px;height:52px;background:var(--cream-faint);overflow:hidden}
.scrollhint span{display:block;width:100%;height:18px;background:var(--red-hot);animation:drop 2.1s cubic-bezier(.7,0,.3,1) infinite}
@keyframes drop{0%{transform:translateY(-20px)}100%{transform:translateY(54px)}}

/* ───────── pinned words ───────── */
.pin{height:380vh;position:relative;background:var(--bg)}
@media (max-width:760px){ .pin{height:290vh} }
.pin-stick{position:sticky;top:0;height:100svh;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:28px;padding-inline:var(--gut);overflow:hidden}
.pin-words{position:relative;display:grid;place-items:center;width:100%;min-height:1.4em}
.pw{
  grid-area:1/1;font-family:var(--dis-ara);font-weight:900;
  font-size:clamp(34px,8.4vw,86px);line-height:1.2;text-align:center;
  opacity:0;transform:translateY(22px);transition:opacity .35s ease,transform .35s ease;
  color:var(--cream-dim);
}
html[lang=en] .pw{font-family:var(--dis-lat);font-weight:400}
.pw.on{opacity:1;transform:none;color:var(--cream)}
.pw-end.on{color:var(--red-hot)}
.pin-foot{color:var(--cream-dim);font-size:clamp(14px,1.5vw,19px);text-align:center;opacity:0;transition:opacity .4s ease;margin:0}
.pin-foot.on{opacity:1}

/* ───────── bands / sections ───────── */
.sec{padding:clamp(72px,11vw,150px) 0}
.sec,.band,.pin{scroll-margin-top:92px}
.sec-dark{background:var(--bg-deep)}
.band{background:var(--bg-band);padding:clamp(60px,9vw,120px) 0;text-align:center}
.band .lede{margin-inline:auto}

/* ───────── services ───────── */
.srv{display:grid;grid-template-columns:repeat(auto-fit,minmax(290px,1fr));gap:1px;margin-top:52px;background:var(--cream-faint)}
.srv-c{background:var(--bg);padding:clamp(26px,3.4vw,42px);position:relative;transition:background .3s ease}
.srv-c:hover{background:var(--bg-band)}
.srv-n{font-family:var(--dis-lat);font-size:13px;color:var(--red-hot);letter-spacing:.1em}
.srv-c h3{font-family:var(--dis-ara);font-weight:900;font-size:clamp(21px,2.3vw,28px);margin:10px 0 12px;line-height:1.3}
html[lang=en] .srv-c h3{font-family:var(--dis-lat);font-weight:400}
.srv-c p{color:var(--cream-dim);margin:0;font-size:15px}
.tags{display:flex;flex-wrap:wrap;gap:7px;margin-top:18px}
.tags li{font-size:12px;color:var(--cream-dim);border:1px solid var(--cream-faint);padding:5px 11px;border-radius:999px}

/* ───────── work grid ───────── */
.grid{
  display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));
  gap:14px;margin-top:52px;grid-auto-flow:dense;
}
.card{
  position:relative;overflow:hidden;border-radius:var(--r);
  background:var(--bg-band);aspect-ratio:4/3;
  border:1px solid var(--cream-faint);
  cursor:pointer;
}
.card.wide{grid-column:span 2;aspect-ratio:16/9}
.card.tall{grid-row:span 2;aspect-ratio:3/4}
@media (max-width:620px){ .card.wide{grid-column:span 1} .card.tall{grid-row:span 1;aspect-ratio:4/3} }

.card img,.card video{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;transition:transform .7s cubic-bezier(.2,.7,.3,1),opacity .4s ease}
.card video{opacity:0}
.card.playing video{opacity:1}
.card:hover img{transform:scale(1.06)}
.card-ov{
  position:absolute;inset:0;z-index:2;display:flex;flex-direction:column;justify-content:flex-end;
  padding:18px;gap:4px;
  background:linear-gradient(to top,rgba(10,13,17,.88) 0%,rgba(10,13,17,.25) 42%,transparent 70%);
}
.card-b{font-family:var(--dis-ara);font-weight:900;font-size:19px;line-height:1.25}
html[lang=en] .card-b{font-family:var(--dis-lat);font-weight:400;font-size:21px}
.card-t{font-size:12.5px;color:var(--cream-dim)}
.card-k{
  position:absolute;top:14px;left:14px;z-index:3;
  font-size:11px;letter-spacing:.08em;padding:4px 10px;border-radius:999px;
  background:rgba(10,13,17,.7);border:1px solid var(--cream-faint);color:var(--cream-dim);
  backdrop-filter:blur(6px);
}
.card-k.motion{color:#9FD8FF;border-color:rgba(159,216,255,.3)}
.card-k.brand{color:#C9D4FF;border-color:rgba(201,212,255,.3)}
.card-play{
  position:absolute;top:14px;right:14px;z-index:3;width:34px;height:34px;border-radius:999px;
  background:rgba(90,166,255,.9);display:grid;place-items:center;font-size:12px;color:#fff;
}

/* ───────── steps ───────── */
.steps{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:30px;margin-top:52px;counter-reset:s}
.steps li{border-top:2px solid var(--red-dim);padding-top:20px}
.st-n{font-family:var(--dis-lat);font-size:13px;color:var(--red-hot);letter-spacing:.1em}
.steps h3{font-family:var(--dis-ara);font-weight:900;font-size:clamp(19px,2vw,24px);margin:8px 0 10px}
html[lang=en] .steps h3{font-family:var(--dis-lat);font-weight:400}
.steps p{color:var(--cream-dim);margin:0;font-size:15px}

/* ───────── about ───────── */
.about{display:grid;grid-template-columns:.78fr 1.22fr;gap:clamp(28px,4.2vw,56px);align-items:start}
@media (max-width:900px){ .about{grid-template-columns:1fr} }
.about-t .lede+.lede{margin-top:16px}

.about-ph{margin:0;border-radius:var(--r);overflow:hidden;border:1px solid var(--cream-faint);position:relative}
.about-ph img{width:100%;height:100%;object-fit:cover;aspect-ratio:3/4;filter:contrast(1.05)}
/* the blue wash that used to sit over the bottom of this picture is gone;
   he asked for the photograph, not a gradient on top of it */
@media (max-width:900px){ .about-ph{max-width:340px} }

.vals{
  grid-column:1/-1;margin-top:clamp(10px,2vw,22px);
  display:grid;grid-template-columns:repeat(3,1fr);gap:1px;
  background:var(--cream-faint);border:1px solid var(--cream-faint);border-radius:var(--r);overflow:hidden;
}
@media (max-width:860px){ .vals{grid-template-columns:1fr 1fr} }
@media (max-width:520px){ .vals{grid-template-columns:1fr} }
.val{background:var(--bg-deep);padding:20px}
.val h4{font-family:var(--dis-ara);font-weight:900;font-size:17px;margin:0 0 6px;color:var(--cream)}
html[lang=en] .val h4{font-family:var(--dis-lat);font-weight:400;font-size:19px}
.val p{margin:0;font-size:13.5px;color:var(--cream-dim);line-height:1.7}

/* ───────── quiz ───────── */
.sec-start{background:linear-gradient(to bottom,var(--bg) 0%,var(--bg-band) 100%);text-align:center}
.q{max-width:860px;margin:46px auto 0;border:1px solid var(--cream-faint);border-radius:var(--r);background:rgba(10,13,17,.4);padding:clamp(22px,3.4vw,40px)}
.q-bar{height:3px;background:var(--cream-faint);border-radius:999px;overflow:hidden;margin-bottom:30px}
.q-fill{display:block;height:100%;width:0;background:var(--red-hot);transition:width .4s cubic-bezier(.4,0,.2,1)}
.q-q{font-family:var(--dis-ara);font-weight:900;font-size:clamp(21px,3vw,32px);margin:0 0 6px;line-height:1.35}
html[lang=en] .q-q{font-family:var(--dis-lat);font-weight:400}
.q-hint{color:var(--cream-dim);font-size:13.5px;margin:0 0 24px}
.chips{display:flex;flex-wrap:wrap;gap:10px;justify-content:center}
.chip{
  background:transparent;border:1px solid var(--cream-faint);color:var(--cream-dim);
  padding:11px 20px;border-radius:999px;font-size:14.5px;
  transition:all .18s ease;
}
.chip:hover{border-color:var(--cream-dim);color:var(--cream)}
.chip.on{background:var(--cream);border-color:var(--cream);color:#0A0C10;font-weight:600}
.q-nav{display:flex;gap:10px;justify-content:center;margin-top:30px}
.q-nav .btn{min-width:120px}

.q-out{max-width:860px;margin:46px auto 0;text-align:start}
.brief{border:1px solid var(--cream-faint);border-radius:var(--r);background:rgba(10,13,17,.45);padding:clamp(20px,3vw,32px)}
.brief-row{display:flex;gap:14px;padding:11px 0;border-bottom:1px solid var(--cream-faint)}
.brief-row:last-child{border-bottom:0}
.brief-k{color:var(--cream-dim);font-size:13.5px;min-width:110px}
.brief-v{font-weight:600;font-size:15px}
.q-send{display:flex;flex-wrap:wrap;gap:12px;justify-content:center;margin-top:26px}

/* ───────── form ───────── */
.frm{max-width:660px;margin:44px auto 0;text-align:start}
.frm-t{text-align:center;color:var(--cream-dim);font-size:14px;margin:0 0 20px}
.frm-r{display:grid;grid-template-columns:1fr 1fr;gap:14px}
@media (max-width:620px){ .frm-r{grid-template-columns:1fr} }
.frm label{display:block;margin-bottom:14px}
.frm label span{display:block;font-size:13px;color:var(--cream-dim);margin-bottom:7px}
.frm input,.frm textarea{
  width:100%;background:rgba(10,13,17,.5);border:1px solid var(--cream-faint);
  color:var(--cream);padding:13px 15px;border-radius:10px;font:inherit;font-size:15px;
  transition:border-color .2s;
}
.frm input:focus,.frm textarea:focus{border-color:var(--cream-dim);outline:none}
.frm textarea{resize:vertical;min-height:84px}
.frm>.btn{width:100%;margin-top:4px}
.hp{position:absolute!important;inset-inline-start:-9999px;opacity:0;height:0;width:0}
.frm-msg{text-align:center;font-size:14px;margin:14px 0 0;min-height:1.2em}
.frm-msg.ok{color:#8FE3A4}
.frm-msg.err{color:#FF9A8F}

/* ───────── footer ───────── */
.ft{background:var(--bg-deep);border-top:1px solid var(--cream-faint);padding:52px 0 26px}
.ft-in{display:flex;flex-wrap:wrap;gap:24px;justify-content:space-between;align-items:center}
.ft-brand{font-family:var(--dis-ara);font-weight:900;font-size:24px;margin:0}
html[lang=en] .ft-brand{font-family:var(--dis-lat);font-weight:400;font-size:26px}
.ft-sub{color:var(--cream-dim);font-size:13.5px;margin:4px 0 0}
.ft-links{display:flex;gap:22px;font-size:14px;color:var(--cream-dim)}
.ft-links a:hover{color:var(--cream)}
.ft-c{text-align:center;color:var(--cream-dim);font-size:12.5px;margin:36px 0 0}

/* ───────── modal ───────── */
.modal{position:fixed;inset:0;z-index:100;background:rgba(6,8,11,.93);display:grid;place-items:center;padding:var(--gut);backdrop-filter:blur(8px)}
.modal[hidden]{display:none}
.modal-in{width:min(1100px,100%)}
.modal-in video,.modal-in img{width:100%;border-radius:var(--r)}
.modal-x{position:fixed;top:18px;inset-inline-end:18px;width:44px;height:44px;border-radius:999px;background:rgba(237,239,242,.12);border:1px solid var(--cream-faint);font-size:22px;line-height:1}

/* ───────── reduced motion ───────── */
@media (prefers-reduced-motion:reduce){
  .pw{transition:none}
  .scrollhint span{animation:none}
  .card img{transition:none}
  .btn:hover{transform:none}
}

/* ───────── pillars (how the magic works) ───────── */
.pillars{display:grid;grid-template-columns:repeat(auto-fit,minmax(248px,1fr));gap:1px;margin-top:48px;background:var(--cream-faint);border:1px solid var(--cream-faint);border-radius:var(--r);overflow:hidden}
.pil{background:var(--bg-deep);padding:clamp(22px,3vw,34px)}
.pil-n{font-family:var(--dis-lat);font-size:13px;color:var(--red-hot);letter-spacing:.1em}
.pil h3{font-family:var(--dis-ara);font-weight:900;font-size:clamp(20px,2.2vw,26px);margin:10px 0 10px}
html[lang=en] .pil h3{font-family:var(--dis-lat);font-weight:400}
.pil p{margin:0;color:var(--cream-dim);font-size:14.5px}

.ft-tag{font-size:13px;color:var(--red-hot);margin:10px 0 0;font-weight:600}

/* ───────── work — horizontal scroll takeover ───────── */
.hwork{position:relative;background:var(--bg-deep)}
.hwork-stick{position:sticky;top:0;height:100svh;display:flex;flex-direction:column;justify-content:center;gap:clamp(18px,3vh,34px);overflow:hidden}
.hwork-head{flex:0 0 auto}
.hwork-hint{color:var(--cream-dim);font-size:13px;margin:12px 0 0}

/* rail geometry is LTR in both languages so overflow origin never inverts */
.hwork-rail{flex:0 0 auto;width:100%;overflow:hidden;direction:ltr}
/* geometry stays LTR in both languages so the transform maths never inverts;
   RTL only reverses the visual order and the direction of travel. */
.hwork-track{direction:ltr;display:flex;flex-direction:column;width:max-content;gap:14px;padding-inline:var(--gut);will-change:transform}
.hwork-row{display:flex;width:max-content;gap:14px}

.hcard{
  position:relative;flex:0 0 auto;
  width:clamp(210px,26vw,340px);height:clamp(150px,26vh,230px);
  border-radius:var(--r);overflow:hidden;border:1px solid var(--cream-faint);
  background:var(--bg-band);cursor:pointer;
}
.hcard.wide{width:clamp(280px,36vw,460px)}
.hcard img,.hcard video{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;transition:transform .7s cubic-bezier(.2,.7,.3,1),opacity .4s ease}
.hcard video{opacity:0}
.hcard.playing video{opacity:1}
.hcard:hover img{transform:scale(1.05)}
.hcard-ov{position:absolute;inset:0;z-index:2;display:flex;flex-direction:column;justify-content:flex-end;padding:18px;gap:3px;direction:rtl;
  background:linear-gradient(to top,rgba(6,8,11,.9) 0%,rgba(6,8,11,.25) 45%,transparent 72%)}
html[lang=en] .hcard-ov{direction:ltr}
.hcard-b{font-family:var(--dis-ara);font-weight:900;font-size:20px;line-height:1.25}
html[lang=en] .hcard-b{font-family:var(--dis-lat);font-weight:400;font-size:22px}
.hcard-t{font-size:12.5px;color:var(--cream-dim)}
.hcard-k{position:absolute;top:13px;left:13px;z-index:3;font-size:11px;padding:4px 10px;border-radius:999px;
  background:rgba(6,8,11,.72);border:1px solid var(--cream-faint);color:var(--cream-dim);backdrop-filter:blur(6px);direction:rtl}
.hcard-play{position:absolute;top:13px;right:13px;z-index:3;width:32px;height:32px;border-radius:999px;background:rgba(90,166,255,.9);display:grid;place-items:center;font-size:11px;color:#fff}

.hwork-bar{flex:0 0 auto;height:2px;background:var(--cream-faint);margin-inline:var(--gut);border-radius:999px;overflow:hidden}
.hwork-fill{display:block;height:100%;width:0;background:var(--red-hot)}

/* no sticky takeover on small screens: a normal swipeable rail reads better */
@media (max-width:760px){
  .hwork{height:auto!important}
  .hwork-stick{position:static;height:auto;padding:clamp(72px,11vw,120px) 0;gap:22px}
  .hwork-rail{overflow-x:auto;scroll-snap-type:x mandatory;-webkit-overflow-scrolling:touch;scrollbar-width:none}
  .hwork-rail::-webkit-scrollbar{display:none}
  .hwork-track{transform:none!important;flex-direction:row}
  .hwork-row{display:contents}
  .hcard{scroll-snap-align:center;height:clamp(200px,34vh,280px)}
  .hwork-bar{display:none}
}
@media (prefers-reduced-motion:reduce){
  .hcard img{transition:none}
}

/* ───────── clients (logo marquee) ───────── */
.clients{background:var(--bg);padding:clamp(64px,9vw,120px) 0 clamp(72px,10vw,130px);overflow:hidden}
.cl-head{margin-bottom:clamp(30px,4vw,52px)}

/* geometry pinned to LTR in both languages: the overflow origin never inverts,
   and RTL only reverses the direction of drift (see references/rtl.md) */
.lane{direction:ltr;overflow:hidden;mask-image:linear-gradient(to right,transparent,#000 9%,#000 91%,transparent);
      -webkit-mask-image:linear-gradient(to right,transparent,#000 9%,#000 91%,transparent)}
.lane+.lane{margin-top:14px}
.lane-track{direction:ltr;display:flex;width:max-content;gap:clamp(26px,4vw,64px);align-items:center}

.lane-a{animation:drift 46s linear infinite}
.lane-b{animation:drift 58s linear infinite reverse}
html[dir=rtl] .lane-a{animation-direction:reverse}
html[dir=rtl] .lane-b{animation-direction:normal}
.lane:hover .lane-track{animation-play-state:paused}
@keyframes drift{from{transform:translate3d(0,0,0)}to{transform:translate3d(-50%,0,0)}}

.cl{flex:0 0 auto;width:clamp(116px,13vw,168px);height:clamp(48px,6vw,66px);display:grid;place-items:center}
.cl img{
  max-width:100%;max-height:100%;width:auto;height:auto;object-fit:contain;
  opacity:.5;transition:opacity .25s ease,transform .25s ease;
}
.cl:hover img{opacity:1;transform:scale(1.06)}

@media (prefers-reduced-motion:reduce){
  .lane-a,.lane-b{animation:none}
  .lane{mask-image:none;-webkit-mask-image:none;overflow-x:auto;scrollbar-width:none}
  .lane::-webkit-scrollbar{display:none}
}
.cl-note{color:var(--cream-dim);font-size:12.5px;margin:14px 0 0;max-width:56ch;opacity:.8}

/* AI-built work gets its own accent — it is the differentiator, so it reads apart */
.hcard-k.ai{color:#FFD7A3;border-color:rgba(255,215,163,.38);background:rgba(20,26,36,.72)}
.hcard-k.print{color:#D9E8FF;border-color:rgba(217,232,255,.3)}
.hcard-k.social{color:#CFF3D8;border-color:rgba(207,243,216,.3)}

/* ───────── hero signature line ───────── */
.hero-sig{
  margin:22px 0 0;font-size:14px;color:var(--cream-dim);
  letter-spacing:.01em;font-style:normal;
}
.hero-sig::before{content:'';display:inline-block;width:22px;height:1px;background:var(--red-hot);vertical-align:middle;margin-inline-end:10px}

/* ───────── proof bar ─────────
   sits directly under the hero: the first thing after the promise is the reason
   to believe it, before the visitor has to scroll for proof. */
.proof{background:var(--bg-deep);border-block:1px solid var(--cream-faint)}
.proof-in{
  display:grid;grid-template-columns:repeat(4,1fr);
  gap:clamp(14px,2.6vw,38px);
  padding-block:clamp(26px,3.6vw,44px);
}
@media (max-width:820px){ .proof-in{grid-template-columns:1fr 1fr} }
.pf{display:flex;flex-direction:column;gap:6px}
.pf strong{
  font-family:var(--dis-ara);font-weight:900;
  font-size:clamp(34px,4.6vw,56px);line-height:1;color:var(--cream);
}
html[lang=en] .pf strong{font-family:var(--dis-lat);font-weight:400}
.pf span{font-size:13px;color:var(--cream-dim);line-height:1.55;max-width:22ch}

/* ───────── packages ─────────
   the offer, high on the page and countable: a visitor who cannot tell what he
   receives does not ask for a price. */
.packs{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin-top:52px;align-items:stretch}
@media (max-width:1000px){ .packs{grid-template-columns:1fr;max-width:560px;margin-inline:auto} }
.pk{
  position:relative;display:flex;flex-direction:column;
  background:var(--bg);border:1px solid var(--cream-faint);border-radius:var(--r);
  padding:clamp(24px,2.6vw,34px);
  transition:border-color .25s ease,transform .25s ease;
}
.pk:hover{border-color:var(--cream-dim);transform:translateY(-3px)}
.pk-hot{border-color:var(--red);background:linear-gradient(180deg,rgba(46,139,255,.12),transparent 42%)}
.pk-hot:hover{border-color:var(--red-hot)}
.pk-badge{
  position:absolute;inset-block-start:-11px;inset-inline-start:clamp(24px,2.6vw,34px);
  background:var(--red);color:var(--cream);
  font-size:11.5px;font-weight:600;letter-spacing:.04em;
  padding:5px 13px;border-radius:999px;
}
.pk-for{margin:0;font-size:12px;letter-spacing:.06em;color:var(--red-hot);font-weight:600}
.pk h3{font-family:var(--dis-ara);font-weight:900;font-size:clamp(25px,2.8vw,34px);margin:8px 0 10px;line-height:1.25}
html[lang=en] .pk h3{font-family:var(--dis-lat);font-weight:400}
.pk-d{margin:0 0 20px;color:var(--cream-dim);font-size:14.5px}
.pk-l{display:flex;flex-direction:column;gap:11px;margin:0 0 24px;flex:1 1 auto}
.pk-l li{position:relative;padding-inline-start:22px;font-size:14.5px;line-height:1.65}
.pk-l li::before{
  content:'';position:absolute;inset-inline-start:0;inset-block-start:.62em;
  width:9px;height:9px;border-radius:2px;background:var(--red);
}
.pk-price{
  margin:0 0 18px;padding-block-start:16px;border-block-start:1px solid var(--cream-faint);
  font-size:13.5px;color:var(--cream-dim);
}
.pk-b{width:100%}
.packs-note{margin:28px 0 0;font-size:14px;color:var(--cream-dim)}

/* ───────── objections ─────────
   native <details> so it works with no script and stays keyboard-reachable. */
.faq{margin-top:48px;border-block-start:1px solid var(--cream-faint);max-width:900px}
.fq{border-block-end:1px solid var(--cream-faint)}
.fq summary{
  list-style:none;cursor:pointer;
  display:flex;align-items:center;gap:14px;
  padding:22px 0;
  font-family:var(--dis-ara);font-weight:900;
  font-size:clamp(17px,1.9vw,23px);line-height:1.4;
  transition:color .2s ease;
}
html[lang=en] .fq summary{font-family:var(--dis-lat);font-weight:400}
.fq summary::-webkit-details-marker{display:none}
.fq summary::after{
  content:'+';margin-inline-start:auto;flex:0 0 auto;
  font-family:var(--body-lat);font-weight:400;font-size:26px;line-height:1;
  color:var(--red-hot);transition:transform .25s ease;
}
.fq[open] summary::after{transform:rotate(45deg)}
.fq summary:hover{color:var(--red-hot)}
.fq p{margin:0 0 24px;color:var(--cream-dim);font-size:15.5px;max-width:68ch}

/* ───────── start ───────── */
.start-cta{display:flex;flex-wrap:wrap;gap:12px;justify-content:center;margin-top:34px}
#quizWrap[hidden]{display:none}

/* ───────── hero headline, restructured ─────────
   The service list is scope, not the argument. It reads small and wide above
   the two lines that actually sell: one owner, one settled price. */
.hero .h-dis{font-size:clamp(40px,6vw,76px)}
.hero .l1{
  font-size:clamp(13px,1.15vw,16px);font-weight:600;
  color:var(--cream-dim);letter-spacing:.06em;line-height:1.6;
  margin-block-end:.7em;
}
html[lang=en] .hero .l1{font-family:var(--body-lat);letter-spacing:.1em;text-transform:uppercase}
html[lang=ar] .hero .l1{font-family:var(--body-ara)}
.hero .l2{color:var(--cream)}
.hero .l3{font-size:1em;color:var(--red-hot);margin-block-start:0;text-shadow:0 2px 46px rgba(90,166,255,.4)}
html[lang=ar] .hero .l3{font-size:1em}
@media (min-width:761px){ .hero .h-dis,.hero-sub,.hero-cta,.kicker,.hero-sig{max-width:min(54%,660px)} }
@media (max-height:760px){
  .hero .h-dis{font-size:clamp(34px,4.8vw,54px)}
  .hero-sig{display:none}
}

/* ───────── hero: the reel is the header ─────────
   The work itself is the first argument, so the header plays it. Everything
   above it is a scrim calibrated to keep the headline readable over moving
   footage rather than over a known still. */
.hero-bg{position:absolute;inset:0;z-index:1;overflow:hidden;background:var(--bg-deep)}
.hero-bg video{
  width:100%;height:100%;object-fit:cover;
  /* already graded on export; this only holds it back from the type */
  filter:brightness(.62);
}
.hero::after{
  content:'';position:absolute;inset:0;z-index:3;pointer-events:none;
  background:
    linear-gradient(to bottom,rgba(8,10,13,.78) 0%,rgba(8,10,13,.42) 34%,rgba(8,10,13,.72) 78%,var(--bg) 100%);
}
html[dir=rtl] .hero::after{
  background:
    linear-gradient(to left,rgba(8,10,13,.96) 0%,rgba(8,10,13,.72) 46%,rgba(8,10,13,.34) 100%),
    linear-gradient(to bottom,rgba(8,10,13,.6) 0%,rgba(8,10,13,.22) 34%,rgba(8,10,13,.7) 80%,var(--bg) 100%);
}
html[dir=ltr] .hero::after{
  background:
    linear-gradient(to right,rgba(8,10,13,.96) 0%,rgba(8,10,13,.72) 46%,rgba(8,10,13,.34) 100%),
    linear-gradient(to bottom,rgba(8,10,13,.6) 0%,rgba(8,10,13,.22) 34%,rgba(8,10,13,.7) 80%,var(--bg) 100%);
}
@media (max-width:760px){
  html[dir=rtl] .hero::after,html[dir=ltr] .hero::after{
    background:linear-gradient(to bottom,rgba(8,10,13,.82) 0%,rgba(8,10,13,.5) 36%,rgba(8,10,13,.86) 78%,var(--bg) 100%);
  }
  .hero .h-dis,.hero-sub,.hero-cta,.kicker,.hero-sig{max-width:none}
}
@media (prefers-reduced-motion:reduce){ .hero-bg video{display:none} }

/* the setup line is a quiet premise; the two lines under it are the claim */
.hero .l1{opacity:.86}
.hero .l2{color:var(--cream)}
.hero .l3{color:var(--red-hot)}
.hero-sig{color:var(--cream);font-weight:600}

/* ───────── hero: the rotating ask ─────────
   The slot is inline so the line reads as one sentence, and it is given a
   minimum width so the words after it do not jump on every swap. */
.hero .h-dis .l2{display:inline-block;color:var(--cream)}
.hero .rot{
  display:inline-block;color:var(--red-hot);
  min-width:5.2em;text-align:start;
  margin-inline-start:.28em;
}
.hero .rot::after{content:'؟';color:var(--cream)}
html[lang=en] .hero .rot::after{content:'?'}
.hero .l3{display:block;color:var(--cream)}
.rot-w{display:inline-block}
.rot-w.in{animation:rotin .42s cubic-bezier(.2,.8,.3,1) both}
@keyframes rotin{
  from{opacity:0;transform:translateY(.38em)}
  to{opacity:1;transform:none}
}
@media (prefers-reduced-motion:reduce){ .rot-w.in{animation:none} }
@media (max-width:620px){ .hero .rot{min-width:0} }

/* ───────── service cards are buttons now ───────── */
.srv-c{
  display:block;width:100%;text-align:start;
  border:0;border-radius:0;font:inherit;color:inherit;
  background:var(--bg);padding:clamp(26px,3.4vw,42px);
  cursor:pointer;transition:background .3s ease;
}
.srv-c:hover,.srv-c:focus-visible{background:var(--bg-band)}
.srv-go{
  display:inline-flex;align-items:center;gap:8px;
  margin-top:20px;font-size:13.5px;font-weight:600;color:var(--red-hot);
}
.srv-go::after{content:'←';transition:transform .2s ease}
html[lang=en] .srv-go::after{content:'→'}
.srv-c:hover .srv-go::after{transform:translateX(-4px)}
html[lang=en] .srv-c:hover .srv-go::after{transform:translateX(4px)}

/* ───────── the ordering panel ───────── */
.smodal{
  position:fixed;inset:0;z-index:120;
  background:rgba(6,8,11,.86);backdrop-filter:blur(8px);
  display:flex;align-items:flex-end;justify-content:center;
  padding:0;
}
@media (min-width:761px){ .smodal{align-items:center;padding:4vh var(--gut)} }
.smodal[hidden]{display:none}
.smodal-sheet{
  position:relative;width:100%;max-width:760px;max-height:92vh;overflow-y:auto;
  background:var(--bg);border:1px solid var(--cream-faint);
  border-radius:var(--r) var(--r) 0 0;
  padding:clamp(26px,4vw,46px);
  animation:sheetup .3s cubic-bezier(.2,.8,.3,1) both;
}
@media (min-width:761px){ .smodal-sheet{border-radius:var(--r)} }
@keyframes sheetup{from{opacity:0;transform:translateY(24px)}to{opacity:1;transform:none}}
@media (prefers-reduced-motion:reduce){ .smodal-sheet{animation:none} }
.smodal-x{
  position:absolute;inset-block-start:14px;inset-inline-end:14px;
  width:38px;height:38px;border-radius:999px;
  background:transparent;border:1px solid var(--cream-faint);color:var(--cream);
  font-size:22px;line-height:1;
}
.smodal-x:hover{background:rgba(237,239,242,.08)}

.sm-eye{margin:0 0 6px;font-size:12px;letter-spacing:.08em;color:var(--red-hot);font-weight:600}
.sm-h{
  font-family:var(--dis-ara);font-weight:900;
  font-size:clamp(26px,3.4vw,40px);line-height:1.25;margin:0 0 14px;
}
html[lang=en] .sm-h{font-family:var(--dis-lat);font-weight:400}
.sm-p{margin:0 0 26px;color:var(--cream-dim);font-size:15.5px;max-width:62ch}
.sm-sub{
  font-family:var(--dis-ara);font-weight:900;font-size:17px;
  margin:0 0 12px;color:var(--cream);
}
html[lang=en] .sm-sub{font-family:var(--dis-lat);font-weight:400;font-size:19px}

.sm-why{display:flex;flex-direction:column;gap:9px;margin:0 0 30px}
.sm-why li{position:relative;padding-inline-start:20px;font-size:14.5px;color:var(--cream-dim)}
.sm-why li::before{
  content:'';position:absolute;inset-inline-start:0;inset-block-start:.6em;
  width:8px;height:8px;border-radius:2px;background:var(--red);
}

.sm-items{display:flex;flex-direction:column;gap:1px;background:var(--cream-faint);
  border:1px solid var(--cream-faint);border-radius:var(--r);overflow:hidden;margin:0 0 26px}
.sm-item{
  background:var(--bg-deep);padding:16px 18px;
  display:flex;align-items:center;gap:16px;flex-wrap:wrap;
}
.sm-item-t{flex:1 1 220px;min-width:0}
.sm-item-t strong{display:block;font-size:15.5px;margin-bottom:3px}
.sm-item-t p{margin:0;font-size:13.5px;color:var(--cream-dim);line-height:1.65}
.sm-item .btn{flex:0 0 auto}

.sm-foot{display:flex;flex-wrap:wrap;gap:10px;align-items:center}
.sm-form{display:flex;flex-direction:column;gap:16px}
.sm-form label{display:flex;flex-direction:column;gap:7px;font-size:13.5px;color:var(--cream-dim)}
.sm-form input,.sm-form textarea{
  background:var(--bg-deep);border:1px solid var(--cream-faint);border-radius:10px;
  color:var(--cream);padding:13px 15px;font:inherit;font-size:15px;width:100%;
}
.sm-form input:focus,.sm-form textarea:focus{outline:none;border-color:var(--red-hot)}
.sm-form textarea{resize:vertical}

/* the rail glides between scroll samples instead of stepping */
.hwork-track{transition:transform .14s linear}
@media (prefers-reduced-motion:reduce){ .hwork-track{transition:none} }
@media (max-width:760px){ .hwork-track{transition:none} }

/* ───────── work rail inside a service panel ─────────
   Geometry is pinned to LTR in both languages, the same reason the hero rail
   is: an RTL overflow container starts scrolled to its right edge and every
   browser disagrees about what scrollLeft then means. Only the visual order of
   the items is reversed for Arabic. */
.sm-rail{
  display:flex;gap:10px;direction:ltr;
  overflow-x:auto;overscroll-behavior-x:contain;
  scroll-snap-type:x proximity;-webkit-overflow-scrolling:touch;
  padding-block-end:10px;margin-block-end:6px;
  scrollbar-width:thin;scrollbar-color:var(--cream-faint) transparent;
}
html[dir=rtl] .sm-rail{flex-direction:row-reverse}
.sm-rail::-webkit-scrollbar{height:6px}
.sm-rail::-webkit-scrollbar-thumb{background:var(--cream-faint);border-radius:999px}
.sm-rail::-webkit-scrollbar-track{background:transparent}

.sm-shot{
  flex:0 0 auto;margin:0;scroll-snap-align:center;
  height:190px;border-radius:10px;overflow:hidden;
  border:1px solid var(--cream-faint);background:var(--bg-deep);
}
.sm-shot img{height:100%;width:auto;display:block;object-fit:cover}
/* the logo set is square by construction and should read as one family */
.sm-shot.mark{width:190px;background:#14171C}
.sm-shot.mark img{width:100%;height:100%;object-fit:contain}
@media (max-width:560px){ .sm-shot{height:150px} .sm-shot.mark{width:150px} }

.sm-rail-hint{margin:0 0 26px;font-size:12px;color:var(--cream-dim);opacity:.75}

/* ───────── hero, rebuilt ─────────
   The old composition floated a narrow column in the right half and left the
   rest of the frame empty. This anchors the type to the bottom of the screen
   like a title card, so the reel keeps the open space above it and the
   headline lands on a baseline instead of hovering. */
.hero-in{
  display:flex;flex-direction:column;justify-content:flex-end;
  min-height:100svh;
  padding:clamp(96px,13vh,132px) var(--gut) clamp(26px,4vh,40px);
  gap:clamp(22px,4vh,44px);
}
.hero-block{max-width:min(92%,980px)}
@media (min-width:761px){
  .hero .h-dis,.hero-sub,.hero-cta,.kicker,.hero-block{max-width:none}
}

.hero .kicker{
  margin:0 0 clamp(14px,2.4vh,26px);
  display:inline-flex;align-items:center;gap:12px;
  font-size:12px;letter-spacing:.14em;color:var(--cream-dim);
}
.hero .kicker::before{
  content:'';width:34px;height:2px;background:var(--red-hot);flex:0 0 auto;
}

/* one line, always: the ask and the thing asked for never break apart */
.hero .h-dis{font-size:clamp(42px,8.4vw,116px);line-height:1.02}
html[lang=ar] .hero .h-dis{line-height:1.14}
.hero .h-dis .l2{display:inline}
.hero .rot{
  display:inline-block;color:var(--red-hot);
  min-width:0;margin-inline-start:.22em;
  font-size:1em;letter-spacing:inherit;
}
.hero .l3{display:block;color:var(--cream);opacity:.92}

.hero-sub{
  margin:clamp(14px,2.4vh,24px) 0 0;
  font-size:clamp(16px,1.7vw,22px);color:var(--cream-dim);
}

.hero-cta{
  display:flex;flex-wrap:wrap;align-items:center;gap:clamp(14px,2vw,28px);
  margin-top:clamp(20px,3.4vh,34px);
}
.hero-link{
  display:inline-flex;align-items:center;gap:9px;
  font-size:15.5px;font-weight:600;color:var(--cream);
  padding-block-end:3px;border-block-end:1px solid var(--cream-faint);
  transition:border-color .2s ease,gap .2s ease;
}
.hero-link::after{content:'←';color:var(--red-hot)}
html[lang=en] .hero-link::after{content:'→'}
.hero-link:hover{border-block-end-color:var(--cream);gap:14px}

/* a title-card strip along the bottom: the claim, then the receipts */
.hero-meta{
  display:flex;flex-wrap:wrap;gap:clamp(18px,3.4vw,52px);
  padding-block-start:clamp(14px,2.2vh,22px);
  border-block-start:1px solid var(--cream-faint);
  font-size:13px;color:var(--cream-dim);
}
.hero-meta li{display:flex;align-items:baseline;gap:7px}
.hero-meta strong{
  font-family:var(--dis-ara);font-weight:900;font-size:21px;color:var(--cream);
}
html[lang=en] .hero-meta strong{font-family:var(--dis-lat);font-weight:400;font-size:23px}
@media (max-width:560px){
  .hero-meta{gap:14px 22px;font-size:12px}
  .hero-meta strong{font-size:18px}
}

/* the bar at the top stops pretending to be a floating pill */
.hd-in{padding:10px 0}
.hd.pill .hd-in{
  background:transparent;backdrop-filter:none;border-color:transparent;
  box-shadow:none;
}
.hd{transition:background .3s ease,border-color .3s ease}
.hd.pill{
  background:rgba(10,13,17,.86);backdrop-filter:blur(14px);
  border-block-end:1px solid var(--cream-faint);
}
.scrollhint{inset-block-end:10px;height:38px}
@media (max-width:760px){ .scrollhint{display:none} }

/* the word swap overlaps instead of leaving a hole in the line */
.hero .rot{position:relative}
.rot-w{display:inline-block}
.rot-w.out{
  position:absolute;inset-inline-start:0;inset-block-start:0;
  white-space:nowrap;pointer-events:none;
  animation:rotout .15s ease-out both;
}
/* The outgoing word clears before the new one arrives: overlapping them at
   full strength put two different words on the same line at once, which read
   worse than the hole this was meant to fix. */
/* No delay and no zero: the incoming word is already faintly there while the
   old one leaves, so the line is never empty for even one frame. */
.rot-w.in{animation:rotin .26s cubic-bezier(.2,.8,.3,1) both}
@keyframes rotout{ to{opacity:0;transform:translateY(-.2em)} }
@keyframes rotin{ from{opacity:.2;transform:translateY(.2em)} to{opacity:1;transform:none} }
@media (prefers-reduced-motion:reduce){ .rot-w.in,.rot-w.out{animation:none} }

/* ═══════════════════════════ hero — black and white ═══════════════════════
   The hero carries no accent colour at all. The rest of the site still uses
   its blue, so every blue token is re-pointed to white inside this section
   rather than changed globally. */
.hero{
  --ink:#020202;
  --bone:#ffffff;
  --mute:rgba(255,255,255,.42);
  --faint:rgba(255,255,255,.26);
  --line:rgba(255,255,255,.11);
  --glass:rgba(255,255,255,.045);
  background:var(--ink);
  min-height:100svh;
  display:block;
  overflow:clip;
}

/* the canvas is the floor of the whole section */
.hero-gl{position:absolute;inset:0;z-index:0;width:100%;height:100%;display:block}

.hero-in{
  position:relative;z-index:2;
  display:flex;flex-direction:column;justify-content:center;
  min-height:100svh;
  max-width:var(--maxw);margin-inline:auto;
  padding:clamp(104px,14vh,140px) var(--gut) clamp(56px,8vh,84px);
}
.hero-grid{display:grid;grid-template-columns:1fr;gap:clamp(26px,4vw,56px);align-items:center}

/* ── the type side ── */
.hero .kicker{
  display:flex;align-items:center;gap:11px;
  margin:0 0 clamp(18px,2.4vh,28px);
  font-size:11px;font-weight:600;color:var(--bone);
}
.hero .kicker::before{content:none}          /* the old blue rule */
html[lang=en] .hero .kicker{letter-spacing:.2em;text-transform:uppercase}
.pulse{position:relative;flex:0 0 auto;width:9px;height:9px;border-radius:50%;background:var(--bone)}
.pulse::after{content:'';position:absolute;inset:0;border-radius:50%;background:var(--bone);
  animation:ping 2.2s cubic-bezier(0,0,.2,1) infinite}
@keyframes ping{75%,100%{transform:scale(2.4);opacity:0}}

.hero .h-dis{font-size:clamp(42px,8.4vw,112px);line-height:1.02;color:var(--bone)}
html[lang=ar] .hero .h-dis{line-height:1.16}
.hero .h-dis .l2,
.hero .h-dis .l3{color:var(--bone)}
.hero .l3{display:block;opacity:.9}
.hero .rot{color:var(--bone);opacity:.5}      /* the changing word reads as the variable */
.hero .rot::after{color:var(--bone);opacity:1}

.hero-sub{color:var(--mute);margin:clamp(18px,2.4vh,26px) 0 0;max-width:46ch}

.hero-cta{display:flex;align-items:center;flex-wrap:wrap;gap:clamp(18px,3vw,34px);
  margin-top:clamp(26px,4vh,44px)}

/* ── the magnetic button ── */
.mag{display:inline-flex;align-items:center;gap:16px;text-decoration:none;will-change:transform}
.mag-ring{flex:0 0 auto;width:56px;height:56px;border-radius:50%;
  border:1px solid rgba(255,255,255,.2);display:grid;place-items:center;
  transition:background .45s ease,border-color .45s ease}
.mag-ring svg{stroke:var(--bone);transition:stroke .45s ease}
/* the arrow points away from the reader, so it mirrors with the text */
html[dir=rtl] .mag-ring svg{transform:scaleX(-1)}
.mag:hover .mag-ring,.mag:focus-visible .mag-ring{background:var(--bone);border-color:var(--bone)}
.mag:hover .mag-ring svg,.mag:focus-visible .mag-ring svg{stroke:var(--ink)}
.mag-txt{font-size:12px;font-weight:700;color:var(--bone)}
html[lang=en] .mag-txt{letter-spacing:.2em;text-transform:uppercase}

.hero .hero-link{color:var(--mute);border-block-end-color:var(--line)}
.hero .hero-link::after{color:var(--bone)}
.hero .hero-link:hover{color:var(--bone);border-block-end-color:var(--bone)}

/* ── the portrait and the three cells ── */
.hero-side{position:relative;display:flex;flex-direction:column;justify-content:flex-end;
  gap:clamp(10px,1.4vh,16px)}
/* an earlier design left a .hero-ph that is 58% wide and centres its child
   with grid; both are restated here so this rule does not inherit half of
   a layout it is replacing */
.hero-ph{position:relative;display:block;margin:0;z-index:0;
  width:100%;height:clamp(240px,36vh,330px);pointer-events:none}
/* The photograph is already black and white on near-black, so one soft radial
   mask is enough to dissolve its edges into the page. It is applied to the
   figure, not to the <img>: masking a replaced element while a filter
   animation runs over it left the image stuck with naturalWidth 0 — loaded,
   decodable, never painted — and only that one image out of 65 on the page.
   Masking the container is the same picture with none of that risk. */
.hero-ph{
  -webkit-mask-image:radial-gradient(118% 94% at 50% 34%,#000 44%,transparent 79%);
          mask-image:radial-gradient(118% 94% at 50% 34%,#000 44%,transparent 79%);
}
.hero-ph img{
  width:100%;height:100%;object-fit:cover;object-position:50% 20%;
}

.cells{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;
  gap:clamp(8px,1.2vh,12px);position:relative;z-index:1}
.cell{
  background:var(--glass);border:1px solid var(--line);border-radius:14px;
  padding:clamp(13px,1.5vw,20px) clamp(15px,1.7vw,22px);
  /* saturate(0) keeps the panel grey even where it sits over the photograph */
  -webkit-backdrop-filter:blur(16px) saturate(0);backdrop-filter:blur(16px) saturate(0);
}
.cell-id{display:block;font-size:9px;color:var(--faint);margin-block-end:10px}
.cell-id b{font-weight:700;color:rgba(255,255,255,.5)}
/* never letter-space Arabic: it pulls joined letters apart */
html[lang=en] .cell-id{letter-spacing:.16em;text-transform:uppercase}
.cell-row{display:flex;align-items:flex-end;justify-content:space-between;gap:14px}
.cell-row strong{font-size:clamp(20px,2.1vw,27px);font-weight:700;color:var(--bone);line-height:1}
.bar{display:block;width:76px;height:2px;border-radius:2px;background:rgba(255,255,255,.1);
  overflow:hidden;flex:0 0 auto}
.bar i{display:block;width:58%;height:100%;background:var(--bone);animation:barslide 2.6s ease-in-out infinite}
@keyframes barslide{0%{transform:translateX(-100%)}100%{transform:translateX(172%)}}
.cell-kv{display:flex;justify-content:space-between;gap:12px;font-size:11px;color:var(--mute)}
.cell-kv span:last-child{color:var(--bone);font-weight:600}
.cell-hr{height:1px;background:rgba(255,255,255,.07);margin:9px 0}
.cell-txt{margin:0;font-size:13px;line-height:1.6;color:rgba(255,255,255,.7)}

/* ── reveal ── */
.rv{animation:rv 1.15s cubic-bezier(.16,1,.3,1) both;animation-delay:var(--d,0s)}
@keyframes rv{
  from{opacity:0;filter:blur(16px);transform:translateY(14px) scale(1.012)}
  to  {opacity:1;filter:blur(0);transform:none}
}

/* ── grain, and the hero's own white scroll hint ── */
.hero-grain{position:absolute;inset:0;z-index:5;pointer-events:none;opacity:.06;
  background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E")}
.hero .scrollhint{z-index:6;background:rgba(255,255,255,.14)}
.hero .scrollhint span{background:var(--bone)}

@media (min-width:901px){
  .hero-grid{grid-template-columns:minmax(0,1fr) minmax(300px,.74fr)}
  .hero .h-dis{font-size:clamp(44px,5.2vw,86px)}
  .hero-side{min-height:clamp(430px,64vh,600px)}
  /* over 900px the portrait sits behind the cells instead of above them */
  .hero-ph{position:absolute;inset-block:0 86px;inset-inline:0;width:100%;height:auto}
}

/* On a phone the hero stacks, so its height is the sum of its parts rather
   than one screen. Trimmed so it lands near the viewport instead of running
   a third of a screen past it. */
@media (max-width:900px){
  .hero-in{padding-block:clamp(88px,12vh,110px) clamp(34px,5vh,52px);justify-content:flex-start}
  .hero-grid{gap:clamp(18px,3vh,28px)}
  .hero-ph{height:clamp(180px,26vh,250px)}
  .hero-ph img{object-position:50% 16%}
  .cells{gap:8px}
  .cell{padding:12px 14px}
  .hero-sub{margin-top:16px}
  .hero-cta{margin-top:24px}
}

@media (prefers-reduced-motion:reduce){
  .rv{animation:none}
  .pulse::after,.bar i{animation:none}
}

/* A blur filter animating over a masked image is what broke the portrait, so
   this variant fades and lifts without ever touching `filter`. */
.rv-nofilter{animation-name:rv-plain}
@keyframes rv-plain{
  from{opacity:0;transform:translateY(14px) scale(1.012)}
  to  {opacity:1;transform:none}
}


/* ═══════════════════════════════════════════════════════════════════════
   DIRECTION «الواحد» — lead with the person, keep the order under the thumb
   ═══════════════════════════════════════════════════════════════════════ */

/* ───────── the headline ─────────
   The claim is the big line now, and the rotating slot underneath is what
   proves it: one pair of hands, and here is the list of what they make. It
   is no longer a question put to the visitor, so the «؟» the old copy ended
   on has to go. */
.hero .h-dis .l1{
  display:block; font-family:var(--dis-ara); font-weight:900;
  font-size:1em; line-height:1.08; color:var(--bone); opacity:1;
  letter-spacing:normal; text-transform:none;
}
html[lang=en] .hero .h-dis .l1{font-family:var(--dis-lat);font-weight:400;letter-spacing:.005em}
.hero .h-dis .l3{
  display:block; font-size:.46em; line-height:1.3;
  margin-block-start:.22em; color:var(--mute); opacity:1;
}
html[lang=ar] .hero .h-dis .l3{font-size:.42em}
.hero .rot{color:var(--bone);opacity:1}
.hero .rot::after,.hero .h-dis .rot::after{content:none}

/* ───────── the hero is never a flat black rectangle ─────────
   three.js is gated off on a saved-data or 2G visit, and the canvas then
   paints nothing at all. This costs no request and no frame: the page under
   the canvas already carries a form, so a stalled or skipped scene degrades
   to a lit background instead of to black. */
.hero{
  background-color:var(--ink);
  background-image:
    radial-gradient(86% 58% at 78% 18%, rgba(255,255,255,.085) 0%, transparent 62%),
    radial-gradient(64% 48% at 12% 86%, rgba(255,255,255,.05) 0%, transparent 66%);
}
html[dir=rtl] .hero{
  background-image:
    radial-gradient(86% 58% at 22% 18%, rgba(255,255,255,.085) 0%, transparent 62%),
    radial-gradient(64% 48% at 88% 86%, rgba(255,255,255,.05) 0%, transparent 66%);
}

/* ───────── small type that was too small to read on a phone ─────────
   Measured at 375px: the cell labels rendered at 9px and the key/value rows
   at 11px. Nothing on this page needs to be under 12px. */
.cell-id{font-size:12px;margin-block-end:8px}
.cell-kv{font-size:12.5px}
.cell-txt{font-size:13.5px}
.hero .kicker{font-size:12.5px}
.brand-sub{font-size:12px}

/* ───────── every target big enough for a thumb ─────────
   44px is the floor; these were measured at 27–42px tall. The padding is set
   on the inline box so the text stays where the design put it and only the
   hit area grows. */
.lang{min-width:46px;min-height:46px;display:inline-flex;align-items:center;justify-content:center}
.hd-act .btn-sm{min-height:44px;display:inline-flex;align-items:center}
.brand{min-height:44px;display:inline-flex;flex-direction:column;justify-content:center}
.hero-link{min-height:44px;align-items:center}
.ft-links{gap:4px;flex-direction:column;align-items:flex-start}
.ft-links a{min-height:44px;display:inline-flex;align-items:center}
.hd-nav a{min-height:44px;display:inline-flex;align-items:center}
.fq summary{min-height:44px}

/* ───────── order bar ─────────
   Fixed to the bottom edge on a phone, where the thumb already is, and to the
   same edge on desktop as a narrow pill. It is translated out of the way
   rather than hidden, so it never takes a tap that was meant for the page. */
.ob{
  position:fixed; z-index:70; inset-inline:0; inset-block-end:0;
  display:flex; gap:8px; padding:10px var(--gut) calc(10px + env(safe-area-inset-bottom));
  background:rgba(8,10,13,.86); border-block-start:1px solid var(--cream-faint);
  backdrop-filter:blur(14px); -webkit-backdrop-filter:blur(14px);
  transform:translateY(130%); opacity:0; pointer-events:none;
  transition:transform .4s cubic-bezier(.2,.8,.3,1),opacity .3s ease;
}
.ob.on{transform:none;opacity:1;pointer-events:auto}
@media (prefers-reduced-motion:reduce){ .ob{transition:none} }
.ob-go,.ob-wa{
  min-height:52px; display:inline-flex; align-items:center; justify-content:center;
  gap:9px; border-radius:999px; font-weight:600; font-size:15px; text-decoration:none;
  border:1px solid transparent; transition:background .25s ease,color .25s ease;
}
.ob-go{flex:1 1 auto;background:var(--cream);color:#0F1217}
.ob-go:hover,.ob-go:focus-visible{background:#fff}
.ob-wa{
  flex:0 0 auto; padding-inline:18px; color:var(--cream);
  background:rgba(237,239,242,.07); border-color:var(--cream-faint);
}
.ob-wa:hover,.ob-wa:focus-visible{background:rgba(237,239,242,.14);border-color:var(--cream-dim)}
.ob-wa svg{flex:0 0 auto}
@media (min-width:761px){
  .ob{
    inset-inline:auto 0; inset-block-end:22px; margin-inline-end:var(--gut);
    border:1px solid var(--cream-faint); border-radius:999px; padding:8px;
  }
  .ob-go{padding-inline:26px}
  .ob-wa span{display:none}
  .ob-wa{padding-inline:15px}
}
/* the bar sits over the end of the page, so the page ends above it */
@media (max-width:760px){ .ft{padding-block-end:96px} }

/* ═══════════════ the phone gets a shorter page ═══════════════
   Measured at 375x812 before this block: 7890px, 9.7 screens, with the
   services grid alone taking 2.3 of them and the whole body of work taking
   0.69. The cuts below are all in spacing and in columns — no sentence of
   his sales copy is removed. */
@media (max-width:760px){

  .sec{padding:54px 0}

  /* the first screen is exactly one screen */
  .hero-in{padding-block:92px 30px}

  /* six services stacked single-file were a third of the page. Two columns
     put all six within one swipe; the detail each one carries still opens in
     the sheet, which is where it was always read. */
  .srv{grid-template-columns:1fr 1fr;margin-top:30px}
  .srv-c{padding:16px 14px}
  .srv-c h3{font-size:17px;margin:7px 0 9px;line-height:1.25}
  .tags{gap:5px;margin-top:10px}
  .tags li{font-size:11.5px;padding:3px 8px}
  /* two tags are a hint at the range; four were a list nobody finished */
  .tags li:nth-child(n+3){display:none}
  .srv-go{font-size:12.5px}
  .srv-n{font-size:12px}

  .steps{gap:20px;margin-top:30px}
  .steps li{padding-top:14px}
  .steps h3{font-size:18px;margin:6px 0 7px}
  .steps p{font-size:14px;line-height:1.75}

  .about{gap:20px}
  .about-ph img{aspect-ratio:3/4}
  .about-t .lede+.lede{margin-top:12px}

  .frm{margin-top:28px}
  .frm-r{grid-template-columns:1fr 1fr;gap:10px}
  .frm textarea{min-height:64px}
  .frm label{margin-bottom:10px}
  .lede{margin-top:14px}

  /* ───────── the work becomes a grid ─────────
     The rail was a sideways strip: 0.69 of a screen holding 6941px of track,
     so twenty-nine pieces of work sat behind a gesture nothing on screen
     asked for. Eight are laid out face up and the button says how many more
     there are. */
  .hwork-rail{overflow:visible;scroll-snap-type:none}
  .hwork-track{
    display:grid; grid-template-columns:1fr 1fr; gap:10px;
    width:auto; flex-direction:unset; transform:none!important;
  }
  .hwork-row{display:contents}
  .hcard{
    width:auto!important; height:auto; aspect-ratio:4/5;
    scroll-snap-align:none;
  }
  .hcard-ov{padding:12px}
  .hcard-b{font-size:16px}
  .hcard-t{font-size:11.5px}
  /* `display: contents` keeps the rows out of the box tree but not out of
     nth-child, so the cap is "hide the second row, count inside the first" */
  .hwork-track.capped #rowB{display:none}
  .hwork-track.capped #rowA .hcard:nth-child(n+9){display:none}
  .hwork-more{margin:18px var(--gut) 0;display:flex}
  .hwork-more .btn{flex:1 1 auto;min-height:48px;justify-content:center}
  .hwork-hint{display:none}
}
@media (min-width:761px){ .hwork-more{display:none} }

/* ───────── corrections from the second measurement pass ───────── */

/* 11.5px put the service tags straight back under the floor the rest of this
   pass raised them above. */
@media (max-width:760px){
  .tags li{font-size:12px}
  .frm>.btn{min-height:46px}

  /* The hero ran 991px against an 812px screen, so the first thing below the
     fold was the bottom of the hero rather than the start of the proof.
     Square cards and a shorter portrait bring it back to about one screen. */
  .hero-in{padding-block:84px 26px}
  .hero-ph{height:clamp(150px,21vh,196px)}
  /* 002 counts the published work; the work itself is the next section down,
     so on a phone the number is a line the visitor pays for twice. */
  .cells .cell:nth-child(2){display:none}
  .cells{gap:10px}
  .hero-sub{font-size:14.5px;line-height:1.8}

  /* 4:5 gave eight works four tall rows. Square gives the same eight in the
     same grid for 170px less page. */
  .hcard{aspect-ratio:1/1}

  .steps p{font-size:13.5px;line-height:1.7}
  .steps{gap:16px}
  .steps li{padding-top:12px}

  .ft{padding-block:38px 96px}
  .ft-c{margin-top:22px}
}

/* ───────── last of the phone pass ───────── */
@media (max-width:760px){
  /* the work cards' own labels were the only type left under 12px */
  .hcard-k{font-size:12px;padding:3px 8px;top:9px;left:9px}
  .hcard-t{font-size:12px}

  /* two marquee lanes say the same thing twice on a 375px screen */
  .clients .lane:nth-of-type(2){display:none}

  /* the footer links needed 44px rows, which a single column charged 90px of
     page for. Two columns pay for the same rows with half the height. */
  .ft-links{display:grid;grid-template-columns:1fr 1fr;gap:2px 16px;align-items:center}
  .ft-links a{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
}


/* ═══════════════════════════════════════════════════════════════════════════
   THE NAME IS THE HEADLINE
   The hero used to lead with a claim about hands and end on a question mark.
   It now leads with who is doing the work, and the line under it is the range:
   one subject, and a slot that keeps naming another thing he makes you.

   The person's own photograph is gone from the page on his instruction — a
   drawn character takes its place. Nothing about the boxes changed, so every
   measurement taken for the photograph still holds.
   ═══════════════════════════════════════════════════════════════════════════ */

/* أبوسعدة is a short word where «إيد واحدة» was two, so it carries the
   same line at a larger apparent size without any change here. */
.hero .h-dis .l3{
  color:var(--bone); opacity:.72;
}
html[lang=ar] .hero .h-dis .l3{font-size:.44em}
html[lang=en] .hero .h-dis .l3{font-size:.42em}
.hero .rot{color:inherit;opacity:1}

/* The slot holds a whole verb phrase now, not one noun, so it is allowed to
   wrap rather than push the line off the side of a phone. */
.hero .rot{display:inline;min-width:0}

/* ───── the payoff line ─────
   His slogan, and the brightest thing on the page after the name itself. It
   sits between the headline and the paragraph because that is the order he
   says it in. */
.hero-tag{
  margin:clamp(14px,2.2vh,22px) 0 0;
  font-family:var(--dis-ara); font-weight:900;
  font-size:clamp(20px,2.9vw,36px); line-height:1.25;
  color:var(--bone); letter-spacing:normal;
}
html[lang=en] .hero-tag{
  font-family:var(--dis-lat); font-weight:400; letter-spacing:.005em;
}

/* ───── the character ─────
   The bust fills its own frame and fades to black on every side, so it is
   centred rather than pulled to a third the way a cropped face had to be. */
.hero-ph img{object-position:50% 50%}
.about-ph img{object-position:50% 46%}

@media (max-width:760px){
  .hero-ph img{object-position:50% 50%}
  .hero-tag{font-size:19px;margin-top:12px}
}


/* ───── the character on a phone ─────
   The box that held the photograph was a 2:1 band, which a face survives and a
   square bust does not — covering it cropped the head clean off and left a
   strip of shoulders. The figure keeps its own proportion here and sits
   centred, and the height it costs comes back out of the padding so the hero
   stays exactly one screen. */
@media (max-width:760px){
  .hero-ph{width:min(182px,49vw);height:auto;aspect-ratio:1/1;margin-inline:auto}
  .hero-ph img{width:100%;height:100%;object-position:50% 50%}
  .hero-in{padding-block:68px 20px}
  .hero-tag{margin-top:10px}
  .hero-sub{margin-top:12px}
}


/* ════════════════════════════════════════════════════════════════════════════
   HEADER v2 — a rule across the top, not a floating pill
   Everything below replaces the pill: the bar is flat and full width, it
   carries the character's own mark, its links are numbered like the rest of
   the page, the one matching where you are stays lit, and a hairline at its
   bottom edge fills as you read. On a phone the links give way to the name of
   the section you are actually in — the old bar simply dropped them and left
   nothing in their place.
   ════════════════════════════════════════════════════════════════════════════ */

.hd{
  padding:0; background:transparent; border-block-end:1px solid transparent;
  transition:background .28s ease, border-color .28s ease;
}
.hd.pill{
  background:rgba(9,11,15,.88);
  backdrop-filter:blur(16px); -webkit-backdrop-filter:blur(16px);
  border-block-end-color:var(--cream-faint);
  box-shadow:none;
}
.hd-in{
  max-width:var(--maxw); margin-inline:auto;
  display:flex; align-items:center; gap:16px;
  padding:8px var(--gut); min-height:58px;
  background:none; border:0; border-radius:0; box-shadow:none;
  backdrop-filter:none; -webkit-backdrop-filter:none;
}
.hd.pill .hd-in{background:none;border:0;box-shadow:none;backdrop-filter:none}

/* ───── the mark ─────
   The first mark this brand has had: the same faceted head that stands in the
   hero, cut to 96px so it still reads at 30. */
.brand{
  display:flex; flex-direction:row; align-items:center; gap:10px;
  margin-inline-end:auto; min-height:44px; text-decoration:none;
}
.brand-mark{
  width:30px; height:30px; flex:0 0 auto; border-radius:8px;
  object-fit:cover; background:#000;
  border:1px solid var(--cream-faint);
}
.brand-txt{display:flex;flex-direction:column;line-height:1.05;justify-content:center}
.brand-main{font-size:19px}
.brand-sub{font-size:11.5px;color:var(--cream-dim)}
html[lang=ar] .brand-sub{letter-spacing:normal}

/* ───── numbered links ───── */
.hd-nav{display:flex;align-items:center;gap:22px;font-size:13.5px}
.hd-nav a{
  display:inline-flex; align-items:baseline; gap:7px;
  min-height:44px; align-items:center;
  color:var(--mute); text-decoration:none;
  transition:color .2s ease;
}
.hd-nav a i{
  font-style:normal; font-size:10.5px; font-variant-numeric:tabular-nums;
  color:var(--mute); opacity:.55; transition:opacity .2s ease,color .2s ease;
}
html[lang=en] .hd-nav a i{letter-spacing:.08em}
.hd-nav a:hover{color:var(--bone)}
.hd-nav a.on{color:var(--bone)}
.hd-nav a.on i{color:var(--bone);opacity:1}

/* ───── where you are, on a phone ───── */
.hd-here{
  display:none; margin:0 0 0 auto; margin-inline:auto 0;
  font-size:12.5px; color:var(--mute);
  white-space:nowrap; overflow:hidden; text-overflow:ellipsis; max-width:38vw;
}
html[lang=en] .hd-here{letter-spacing:.04em;text-transform:uppercase;font-size:11.5px}

.hd-act{display:flex;align-items:center;gap:8px;flex:0 0 auto}

/* ───── how far in you are ─────
   Sits on the bar's own bottom edge, so it costs no height at all. */
.hd-prog{
  position:absolute; inset-inline:0; inset-block-end:-1px; height:2px;
  pointer-events:none;
}
.hd-prog i{display:block;height:100%;width:0;background:var(--bone);opacity:.85}
@media (prefers-reduced-motion:no-preference){
  .hd-prog i{transition:width .12s linear}
}

@media (max-width:900px){
  .hd-nav{display:none}
  .hd-here{display:block}
  .brand-sub{display:none}
  .hd-in{gap:10px;min-height:54px;padding-block:7px}
  .brand-main{font-size:17.5px}
}


/* ───── the hero's call to action ─────
   The slogan that sat here was the brightest thing on the page and asked for
   nothing. The line keeps that weight and spends it on an instruction that
   goes somewhere. The rule under it is drawn rather than text-decoration so it
   can sit clear of the Arabic descenders. */
.hero-tag{
  display:inline-flex; align-items:center; gap:12px;
  text-decoration:none; width:auto;
  padding-block-end:7px; position:relative;
}
.hero-tag::after{
  content:''; position:absolute; inset-inline:0; inset-block-end:0; height:1.5px;
  background:var(--bone); opacity:.45;
  transition:opacity .25s ease;
}
.hero-tag:hover::after{opacity:1}
.hero-tag-ar{
  flex:0 0 auto; opacity:.6;
  transition:transform .25s cubic-bezier(.2,.8,.3,1),opacity .25s ease;
}
html[dir=rtl] .hero-tag-ar{transform:scaleX(-1)}
.hero-tag:hover .hero-tag-ar{opacity:1}
html[dir=ltr] .hero-tag:hover .hero-tag-ar{transform:translateX(4px)}
html[dir=rtl] .hero-tag:hover .hero-tag-ar{transform:scaleX(-1) translateX(4px)}
@media (prefers-reduced-motion:reduce){
  .hero-tag-ar,.hero-tag::after{transition:none}
}


@media (max-width:760px){
  /* The line became a link, so it owes a thumb 44px. It takes them from above
     the text rather than below, so the rule stays tight under the words
     instead of floating twenty pixels clear of them — and the margin it used
     to carry pays for most of the difference. */
  .hero-tag{margin-top:0;padding-block:13px 7px;min-height:44px}
  .hero-ph{width:min(172px,46vw)}
}


/* ═════════════════════════════════════════════════════════════════════════════
   HIS FACE, PLAIN
   The photograph is the picture again, and nothing is done to it. The soft
   radial mask that used to dissolve the portrait's edges into the page is
   switched off here: it was an effect, and he asked for none. The picture is
   already black and white on near-black, so its own frame disappears without
   any help.
   ════════════════════════════════════════════════════════════════════════════ */
.hero-ph{ -webkit-mask-image:none; mask-image:none; }
/* a face, so the frame sits on the eyes rather than on the middle of a bust */
.hero-ph img{object-position:50% 42%}
.about-ph img{object-position:50% 50%;filter:none}
@media (max-width:760px){
  .hero-ph img{object-position:50% 42%}
}

/* ───── the headline closes up ─────
   «أبوسعدة» and the line that changes under it are one sentence, so they
   are set as one. The gap was a .22em margin on top of a line-height meant
   for a two-line headline — at 112px that is a quarter of a screen of air
   between a word and its own verb. Both go. */
.hero .h-dis{line-height:1}
html[lang=ar] .hero .h-dis{line-height:1.02}
.hero .h-dis .l1{line-height:1;margin-block-end:0}
.hero .h-dis .l3{margin-block-start:0;line-height:1.18}
html[lang=ar] .hero .h-dis .l3{line-height:1.22}

/* ───── the header, legible ─────
   Every word in the bar was set in 42%-white at 13px or under, and above the
   fold it had nothing behind it at all — so it was being read against a
   moving canvas. Two fixes: the type goes up in size and weight and much
   further up in contrast, and the bar always keeps a scrim under it, soft
   before you scroll and solid after. */
/* There was a scrim here — a black gradient behind the bar, 92%% at the top
   edge fading to nothing at the bottom. It was put in when the header had no
   background at all over the moving wall, but the wall carries its own
   vignette and already darkens that edge, so the scrim was mostly stacking
   darkness on darkness: measured, it took the top 45px down by 7–11 of 255
   and drew a visible dark lip across the top of the page. Gone. Over the hero
   the bar is now transparent, and what keeps the type readable is the wall's
   vignette plus the weight the type itself was given.

   The stacking context stays: the progress hairline and the active-link rule
   are positioned against .hd-in. */
.hd-in{position:relative;z-index:1}

.brand-main{font-size:20px;color:var(--bone)}
.brand-sub{font-size:12.5px;color:rgba(255,255,255,.76);font-weight:500}

.hd-nav{font-size:15px;gap:26px}
.hd-nav a{color:rgba(255,255,255,.82);font-weight:500}
.hd-nav a i{font-size:12px;color:rgba(255,255,255,.82);opacity:.72}
.hd-nav a:hover,.hd-nav a.on{color:var(--bone)}
.hd-nav a.on{font-weight:700}
.hd-nav a.on i{color:var(--bone);opacity:1}

.hd-here{font-size:14px;color:rgba(255,255,255,.86);font-weight:600;max-width:46vw}
html[lang=en] .hd-here{font-size:12.5px}

/* the progress hairline was 85% white on a 2px rule — fine, but it sat on the
   same edge as a 14%-white border, which read as a smudge. It gets the full
   value and the border under it goes darker. */
.hd.pill{border-block-end-color:rgba(255,255,255,.08)}
.hd-prog i{opacity:1}

@media (max-width:900px){
  .hd-nav{display:none}
  .brand-main{font-size:18.5px}
  .hd-here{font-size:13.5px}
}


/* ═════════════════════════════════════════════════════════════════════════════
   THE HERO WALL replaces the turning mass
   Tilted a few degrees and overscaled so the columns run off every edge: it
   has to read as a field behind the words, not as a grid of thumbnails. Grey
   and held down to a third of its brightness, because the only two things in
   this screen allowed to be light are the type and his face.
   ═════════════════════════════════════════════════════════════════════════════ */
.hero-wall{
  position:absolute; inset:0; z-index:0; overflow:hidden;
  background:var(--bg-deep);
  /* flex-start, not the default stretch: a stretched column is the height of
     the hero, so translating it -50%% moves it half a screen instead of
     exactly one run, and the loop jumps every time it comes round. Left to
     its content the column is exactly two runs tall and -50%% is one of
     them. */
  display:flex; justify-content:center; align-items:flex-start;
  gap:clamp(10px,1.6vw,22px);
  transform:rotate(-7deg) scale(1.42);
  transform-origin:50% 50%;
  pointer-events:none;
  contain:strict;
}
html[dir=ltr] .hero-wall{transform:rotate(7deg) scale(1.42)}

.hw-col{
  flex:0 0 clamp(190px,24vw,330px);
  /* no gap between the two runs: a gap here is counted once in the column but
     never inside a run, so -50%% lands half a gap off and the loop ticks. The
     spacing is carried as the run's own trailing padding instead, which makes
     each run exactly half the column. */
  display:flex; flex-direction:column; gap:0;
  will-change:transform;
  animation:hw-up 72s linear infinite;
}
.hw-col:nth-child(2){animation-duration:92s;animation-direction:reverse}
.hw-col:nth-child(3){animation-duration:60s}

.hw-run{display:flex;flex-direction:column;gap:clamp(10px,1.6vw,22px);
  padding-block-end:clamp(10px,1.6vw,22px)}
.hw-cell{
  flex:0 0 auto; overflow:hidden; border-radius:10px;
  aspect-ratio:4/5; background:#0b0e12;
}
.hw-cell img{
  width:100%;height:100%;object-fit:cover;
  filter:grayscale(1) brightness(.34) contrast(1.08);
}

/* 0 → -50% is exactly one of the two identical halves, so the run meets its
   own copy and the seam never shows */
@keyframes hw-up{
  from{transform:translate3d(0,0,0)}
  to  {transform:translate3d(0,-50%,0)}
}

/* a vignette so the columns die into the page instead of ending at the edges,
   and so the type always has darkness directly under it */
.hero-wall::after{
  content:''; position:absolute; inset:-20%;
  background:
    radial-gradient(130% 90% at 50% 45%,rgba(8,10,13,.30) 0%,rgba(8,10,13,.82) 62%,rgba(8,10,13,.96) 100%);
}

@media (max-width:760px){
  .hero-wall{transform:rotate(-9deg) scale(1.7)}
  html[dir=ltr] .hero-wall{transform:rotate(9deg) scale(1.7)}
  .hw-col:nth-child(3){display:none}
  .hw-col{flex-basis:46vw}
}

@media (prefers-reduced-motion:reduce){
  .hw-col{animation:none}
}


/* ───── the portrait is alone in its column now ─────
   Over 900px the photograph was absolutely positioned so the three stat cards
   could stack on top of it, and the column's height came from those cards.
   With them gone there is nothing to position against and nothing to give the
   column height, so the figure goes back in the flow as a plain centred square
   — the same shape it already has on a phone. */
@media (min-width:901px){
  .hero-side{min-height:0;justify-content:center}
  .hero-ph{
    position:relative; inset:auto;
    inline-size:min(100%,460px); block-size:auto; aspect-ratio:1/1;
    margin-inline:auto;
  }
  .hero-ph img{width:100%;height:100%;object-fit:cover}
}


/* ───── «متاح لشغل جديد» ─────
   Quiet — it is a fact under the buttons, not a third thing asking to be
   clicked. The live dot is the same one in the kicker, so the two ends of the
   hero are marked by one signal. */
.hero-avail{
  display:flex; align-items:center; gap:9px;
  margin:clamp(14px,1.8vh,20px) 0 0;
  font-size:13.5px; line-height:1.5;
  color:rgba(255,255,255,.66);
}
html[lang=en] .hero-avail{font-size:13px;letter-spacing:.01em}
.hero-avail .pulse{width:7px;height:7px;opacity:.9}

@media (max-width:760px){
  .hero-avail{font-size:12.5px;margin-top:12px}
}


/* ═════════════════════════════════════════════════════════════════════════════
   CONTRAST AND HIERARCHY
   Two separate complaints that pull in opposite directions and are both
   right: the page was uniformly dim, and nothing in it was clearly the
   brightest. So everything that has to be read gets lifted, and then the one
   line that carries the offer is taken to pure white while the things around
   it step down. Flat grey becomes an order.
   ═════════════════════════════════════════════════════════════════════════════ */

/* the two tokens that carry nearly every paragraph on the page. .42 white was
   below the point where small type is comfortable on this background, and .64
   was not much better once the type dropped under 15px. */
:root{
  --cream-dim:rgba(237,239,242,.78);
  --mute:rgba(255,255,255,.62);
}

/* ── the hero, in order of brightness ── */

/* 1. the changing line — the whole offer, and the only pure white */
.hero .h-dis .l3{color:#fff;opacity:1}
.hero .rot{color:#fff;opacity:1}
.rot-w{color:#fff}

/* 2. the name — it already owns the screen by size, so it gives up a little
      brightness to let the verb under it lead */
.hero .h-dis .l1{color:rgba(255,255,255,.80)}

/* 3. everything else — lifted well clear of where it was, but kept under the
      line above it */
.hero-sub{color:rgba(255,255,255,.74)}
.hero-avail{color:rgba(255,255,255,.72)}
.hero .kicker{color:var(--red-hot)}

/* ── the blue does some work ──
   It was declared as the accent and then used almost nowhere. It goes on the
   things that mark state or point somewhere — the live dot and the call to
   action — and stays off anything that has to be read as text. */
.pulse,.pulse::after{background:var(--red-hot)}
/* a step under pure white so the changing line is the only thing on the
   screen at full value; the blue rule under it is what marks it as the
   action instead. */
.hero-tag{color:rgba(255,255,255,.88)}
.hero-tag:hover{color:#fff}
.hero-tag::after{background:var(--red-hot);opacity:.85;height:2px}
.hero-tag:hover::after{opacity:1}
.hero-tag-ar{color:var(--red-hot);opacity:.95}
.hero-tag:hover .hero-tag-ar{opacity:1}

/* the active header link gets the accent under it so you can see where you
   are even out of the corner of your eye */
.hd-nav a.on{position:relative}
.hd-nav a.on::after{
  content:''; position:absolute; inset-inline:0; inset-block-end:6px;
  height:2px; background:var(--red-hot);
}
.hd-prog i{background:var(--red-hot);opacity:1}

/* the only line on the page still under the contrast floor after the lift:
   the secondary hero button, at 3.95 against its own backdrop. */
.hero .hero-link{color:rgba(255,255,255,.80)}
.hero .hero-link:hover{color:#fff}


/* ═════════════════════════════════════════════════════════════════════════════
   THE SCRIM GOES UNDER THE CONTENT, WHERE IT ALWAYS BELONGED
   .hero::after is the sheet that holds the background down so type can be read
   over it. It was at z-index 3; .hero-in — the headline, the changing line,
   the paragraph, the buttons, his photograph — is at z-index 2. So the sheet
   was being painted OVER the content it exists to protect, reaching 96% black
   across the side the text sits on.

   Frozen frame, nothing else changed, mean luminance out of 255:
       the text block            18.1 -> 29.0   (+60%)
       headline + changing line  18.6 -> 36.8   (+98%)
       his photograph            23.7 -> 48.4  (+104%)

   This is why raising the text colours never fixed «الكتابة مطفية»: the
   values were going up underneath a near-opaque black sheet.

   z-index 1 keeps it above the wall (z 0) and below the content (z 2), which
   is the job it was written for.
   ═════════════════════════════════════════════════════════════════════════════ */
.hero::after{z-index:1}

/* And the top edge of that sheet is a second dark lip across the head of the
   page — the one left after .hd::before came out. It was 60% black at the very
   top when it had a bright video under it; what is under it now is a wall
   already filtered to a third of its brightness and vignetted, so it does not
   need anything like that much. */
html[dir=rtl] .hero::after,
html[dir=ltr] .hero::after{
  background:
    linear-gradient(to var(--scrim-side,left),rgba(8,10,13,.88) 0%,rgba(8,10,13,.60) 46%,rgba(8,10,13,.26) 100%),
    linear-gradient(to bottom,rgba(8,10,13,.24) 0%,rgba(8,10,13,.18) 34%,rgba(8,10,13,.66) 80%,var(--bg) 100%);
}
html[dir=rtl] .hero{--scrim-side:left}
html[dir=ltr] .hero{--scrim-side:right}

/* The phone needs more of this than the desktop does, not less: the columns
   are 46vw and overscaled there, so a single work photo can fill half the
   screen behind the headline. .34 let the wall win — measured and looked at,
   .62 keeps it present without it competing with the words. */
@media (max-width:760px){
  html[dir=rtl] .hero::after,html[dir=ltr] .hero::after{
    background:linear-gradient(to bottom,rgba(8,10,13,.62) 0%,rgba(8,10,13,.58) 36%,rgba(8,10,13,.86) 78%,var(--bg) 100%);
  }
}

/* ───── the changing line is not glued to the name ─────
   The gap was closed too far. Measured properly this time: the clear space
   between the two lines' actual glyph pixels is not one number, it changes
   with the word on show — «يشغّل إعلاناتك» has the tallest letters of the ten
   and sets the floor. Rewording it does not help; «يشغّل» itself is what
   reaches up.

   At the tightest setting the worst word OVERLAPPED the name by 5px. At 1.34
   the ten words clear by 3 to 12px and the headline stands 79px tall —
   against 84 in the version he called too far apart and 65 in the one he
   called glued. */
.hero .h-dis .l1{line-height:1.34}
.hero .h-dis .l3{margin-block-start:0}


/* ───── per piece, or on subscription ─────
   .packs/.pk were written for this site and never used by any markup on it.
   They take two cards here instead of three, and the band under them carries
   the rule about time. */
.packs-2{grid-template-columns:repeat(2,minmax(0,1fr))}
@media (max-width:760px){ .packs,.packs-2{grid-template-columns:1fr;margin-top:34px} }

.tband{
  margin-top:clamp(28px,4vw,46px);
  display:grid; grid-template-columns:1.1fr .9fr; gap:clamp(20px,3vw,40px);
  align-items:start;
  border-block-start:1px solid var(--cream-faint); padding-block-start:clamp(22px,3vw,34px);
}
@media (max-width:860px){ .tband{grid-template-columns:1fr;gap:20px} }
.tband-t h3{
  font-family:var(--dis-ara); font-weight:900; margin:0 0 10px;
  font-size:clamp(20px,2.3vw,28px); line-height:1.3; color:var(--bone);
}
html[lang=en] .tband-t h3{font-family:var(--dis-lat);font-weight:400}
.tband-t p{margin:0;color:var(--cream-dim);font-size:15px;line-height:1.75}
.tband-l{
  list-style:none; margin:0; padding:0;
  display:flex; flex-wrap:wrap; gap:9px; align-content:flex-start;
}
.tband-l li{
  border:1px solid var(--cream-faint); border-radius:999px;
  padding:8px 15px; font-size:13.5px; color:var(--cream-dim);
  background:rgba(255,255,255,.02);
}
html[lang=en] .tband-l li{letter-spacing:.01em}

/* two defects the new section introduced, both measured: the badge was 11.5px
   where nothing on this page goes under 12, and the two buttons came out 43px
   tall, one short of a thumb. */
.pk-badge{font-size:12px}
.pk-b{min-height:44px;display:inline-flex;align-items:center;justify-content:center}

/* The badge was cream on the mid blue: 2.92, the only thing on the page under
   the floor. Dark type on the same blue reads at 5.8 and keeps the accent.
   And both of these carried letter-spacing on Arabic, which this site never
   does — it is gated to English the way every other spaced rule here is. */
.pk-badge{background:var(--red-hot);color:#071018;letter-spacing:normal}
html[lang=en] .pk-badge{letter-spacing:.04em}
.pk-for{letter-spacing:normal}
html[lang=en] .pk-for{letter-spacing:.06em}

/* Arabic never carries tracking on this site, and two places still did: the
   kicker, which inherits .14em from the Latin rule, and .eyebrow, which had an
   explicit html[lang=ar] rule giving it .08em. Both off; English keeps its. */
html[lang=ar] .kicker{letter-spacing:normal}
html[lang=ar] .eyebrow{letter-spacing:normal}


/* ═════════════════════════════════════════════════════════════════════════════
   NO PHOTOGRAPH ON A PHONE
   The whole column goes, not just the picture. .hero-side carried a
   min-height of clamp(430px,64vh,600px) from the days when three stat cards
   stood in it; hiding only the <figure> would have left that 430px as an
   empty hole under the buttons. The hero keeps its 100svh either way, so the
   words simply get the screen to themselves.
   ═════════════════════════════════════════════════════════════════════════════ */
@media (max-width:760px){
  .hero-side{display:none}
  /* the text block is the whole hero now, so it stops being squeezed into a
     column that was sharing the width with a picture */
  .hero-in{padding-block:72px 24px}
}

/* ───── the words take the middle of the screen ─────
   With the photograph gone the phone hero held its text in the top 463px and
   left 349px of bare wall under it, because .hero-in stretches to 100svh and
   the column simply sat at its top. Centring it in the padded box splits that
   space above and below, and the larger top padding keeps the block a little
   above true centre, which is where a title wants to sit. */
@media (max-width:760px){
  /* .hero-in is a flex COLUMN here, so the vertical axis is the main
     axis: justify-content moves the block, align-items would only have
     shrink-wrapped it horizontally. align-items stays stretch so the
     text keeps the full width it had. */
  .hero-in{justify-content:center;align-items:stretch}
}


/* ═════════════════════════════════════════════════════════════════════════════
   A WHOLE BODY IS NOT A SQUARE
   The portrait used to be a head on a square plate, so the figure was 1/1.
   The new photograph is a man on a high stool, 3:4, and the stool and the
   legs are the half a square would have thrown away. The figure takes the
   picture's own proportion and the image is not cropped at all.
   ═════════════════════════════════════════════════════════════════════════════ */
@media (min-width:901px){
  .hero-ph{
    aspect-ratio:3/4;
    /* sized by height, not width: a 3:4 figure driven from the width ends up
       short, and a man at full length needs the height of the column to read
       as a person rather than a stamp. The width it implies (0.75 x height)
       still has to fit the 34vw column, which is what the min() guards. */
    block-size:min(68vh,580px);
    inline-size:auto;
    max-inline-size:100%;
  }
  /* no crop at this ratio; if a narrow window ever forces one, it takes it
     off the floor rather than off his head */
  .hero-ph img{object-position:50% 22%}
}

/* the tablet band between the phone and the desktop: the figure used to be
   pinned to the bottom of a column that no longer has anything else in it */
@media (min-width:761px) and (max-width:900px){
  .hero-side{min-height:0;justify-content:center;display:flex}
  .hero-ph{
    position:relative; inset:auto;
    inline-size:min(100%,260px); block-size:auto; aspect-ratio:3/4;
    margin-inline:auto; height:auto;
  }
  .hero-ph img{width:100%;height:100%;object-fit:cover;object-position:50% 22%}
}


/* ───────── the name, set in SF Mada ─────────
   The face is licensed to one workstation and its own notice says the font
   software may not be copied or distributed, so the wordmark ships the way a
   logotype always has: as outlines. They ride in a mask, which means the
   colour still comes from whichever rule already owns each spot instead of
   being frozen into the artwork. The word stays in the markup behind it, so
   the page still says «أبوسعدة» to a reader that cannot see it. Latin is
   untouched — .wm only appears when the page is in Arabic. */
:root{--wm:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='9.0 -1858.0 6494.9 2349.9'%3E%3Cpath fill='currentColor' d='M403 -724H411Q585 -724 746 -515Q772 -452 772 -405V-399Q772 -146 461 -24Q358 -3 319 -3Q144 -17 144 -141V-178Q144 -357 376 -698Q376 -709 403 -724ZM340 -502Q243 -381 229 -314Q229 -241 390 -225Q504 -225 652 -302V-310Q583 -420 443 -476Q381 -502 340 -502ZM162 -1158 172 -1157 340 -1024 338 -1015 223 -863 216 -864 50 -1003 52 -1011ZM500 -1158 510 -1157 678 -1024 676 -1015 560 -863 554 -864 388 -1003 390 -1011Z M1785 0Q1626 -3 1572 -132Q1548 -177 1522 -243Q1496 -143 1436 -93Q1330 -1 1084 -1Q916 -1 909 -113Q921 -255 944 -346H980V-289Q991 -229 1092 -227H1120Q1401 -227 1492 -335Q1435 -518 1376 -644L1461 -841H1477Q1482 -830 1500.0 -777.5Q1518 -725 1548 -631Q1632 -381 1684 -304Q1737 -227 1786 -227H1850L1871 -206V-21L1850 0Z M2816 -227H2847L2869 -206V-21L2847 0H2794Q2557 0 2478 -132Q2468 -145 2462.0 -151.5Q2456 -158 2454 -158Q2240 -14 1860 0H1820L1799 -21V-206L1820 -227H1919Q2179 -227 2354 -288Q2243 -417 2124 -417Q2093 -417 2048 -408L2039 -417Q2076 -521 2122 -621Q2242 -678 2356 -678H2401Q2568 -678 2644 -549Q2652 -519 2652 -502V-486Q2652 -404 2594 -304Q2677 -227 2816 -227Z M3564 -1V0H3265L3233 -91Q3178 -25 3065 0H2819L2798 -21V-206L2819 -227H3053Q3209 -241 3300 -325Q3392 -408 3450 -502L3509 -456Q3479 -390 3453 -344Q3426 -298 3380 -227H3813L3879 -456L4013 -584L4034 -573L3962 -279Q3997 -233 4253 -222L4251 -439L4400 -594L4423 -579V-452Q4419 -299 4383 -217Q4343 -102 4257 0H4210Q3929 -4 3825 -97L3725 -1Z M4842 -386Q4842 -292 4954 -254Q5027 -229 5175 -229Q5065 -472 4957 -472Q4902 -472 4842 -395ZM5139 0H5098Q4824 -14 4772 -110Q4743 -152 4743 -219Q4743 -392 4903 -616Q4972 -683 5015 -683H5053Q5157 -683 5255 -443Q5283 -368 5296 -227H5440L5461 -206V-21L5440 0H5272Q5224 145 5098 319Q5001 433 4968 438Q4912 451 4864 451Q4745 443 4443 266L4460 225Q4561 257 4657 265Q4974 265 5139 0Z M5388 0 5367 -21V-206L5388 -227H5754Q5754 -243 5726.0 -306.0Q5698 -369 5642 -480L5745 -685H5761Q5892 -472 5892 -310Q5882 -226 5794 0ZM5686 112 5696 113 5864 246 5862 255 5747 407 5740 406 5574 267 5576 259Z M6258 -1279Q6368 -548 6368 -326Q6344 -166 6261 0H6226Q6226 -284 6106 -1041L6223 -1279ZM6294 -1817Q6329 -1817 6335 -1772Q6335 -1726 6292 -1653H6271Q6257 -1687 6231 -1687Q6165 -1687 6108 -1634Q6181 -1566 6271 -1566Q6288 -1566 6333.0 -1579.5Q6378 -1593 6451 -1621L6463 -1609L6401 -1493Q6245 -1452 6044 -1320H6039L6018 -1342Q6061 -1411 6125 -1465Q6023 -1500 6023 -1563Q6023 -1658 6134 -1753Q6234 -1817 6294 -1817Z'/%3E%3C/svg%3E")}

.wm{display:none}
html[lang=ar] .wm{
  display:inline-block;
  width:4.209em; height:1.523em;      /* the ink box, 2.7639 wide to 1 tall */
  vertical-align:-.319em;             /* drops the tail of the ة onto the baseline */
  background-color:currentColor;
  -webkit-mask:var(--wm) no-repeat center/contain;
          mask:var(--wm) no-repeat center/contain;
}
html[lang=ar] .brand-main,
html[lang=ar] .hero .h-dis .l1,
html[lang=ar] .ft-brand{position:relative}
html[lang=ar] .wm-t{
  position:absolute; width:1px; height:1px; margin:-1px; padding:0;
  overflow:hidden; clip-path:inset(50%); white-space:nowrap; border:0;
}


/* ───────── a work that is a whole document ─────────
   The lightbox normally centres one image. A book cannot be centred — it has
   to scroll — so .doc turns the overlay itself into the scroller and stacks
   the pages inside it. Hit areas carried over from an interactive PDF are
   placed with `left`, not `inset-inline-start`: they sit on a page image that
   does not mirror in Arabic, so neither may they. */
.modal.doc{place-items:start center;overflow-y:auto;overscroll-behavior:contain;padding:0}
.modal.doc .modal-in{width:min(1100px,100%);padding:70px var(--gut) 90px;display:flex;flex-direction:column;gap:14px}
.doc-bar{
  position:sticky;top:0;z-index:2;margin:0 0 6px;align-self:stretch;
  background:rgba(6,8,11,.86);backdrop-filter:blur(6px);
  border-bottom:1px solid var(--cream-faint);
  padding:10px 14px;font-size:13.5px;color:var(--cream-dim);border-radius:var(--r)
}
.doc-pg{position:relative}
/* height:auto is load-bearing. The width/height attributes on each page are
   a presentation hint on the height PROPERTY, so without this every page is
   stretched to its pixel height while the width fills the column - the
   cover came out 392x1980 instead of 392x554. With height auto the ratio
   from those same attributes takes over and still reserves the space. */
.doc-pg img{width:100%;height:auto;display:block;border-radius:var(--r);background:rgba(237,239,242,.05)}
.doc-n{
  position:absolute;inset-block-end:10px;inset-inline-end:12px;
  background:rgba(6,8,11,.62);color:var(--cream-dim);
  font-size:11.5px;line-height:1;padding:5px 8px;border-radius:999px
}
.doc-hit{
  position:absolute;border-radius:8px;
  box-shadow:0 0 0 2px rgba(237,239,242,0);transition:box-shadow .18s,background .18s
}
.doc-hit:hover,.doc-hit:focus-visible{
  background:rgba(237,239,242,.14);box-shadow:0 0 0 2px var(--cream)
}

/* the card admits it is a document before anyone clicks it */
.hcard-doc{
  position:absolute;inset-block-start:10px;inset-inline-start:10px;z-index:2;
  background:rgba(6,8,11,.66);color:var(--cream);
  font-size:11px;line-height:1;padding:5px 8px;border-radius:999px;
  letter-spacing:.01em;pointer-events:none
}
@media (prefers-reduced-motion:reduce){ .doc-hit{transition:none} }
