/* ERENKOL v1 «المختبر» (The Lab). A bright testing lab: sand ground, navy from the bag, real gold only in the cleared oil.
   Full-screen chapters in normal scroll. Nothing is tied to the scroll position: a chapter starts when it is in view and the
   visitor has stopped scrolling, plays by itself, then keeps a living loop. */
:root{
  --paper:#FAF6EE; --sand:#F1E8D8; --sand-2:#E7DAC3; --sand-3:#D8C6A6;
  --ink:#1A2349; --ink-2:#4B5272; --muted:#7D7563;
  --navy:#1F2B5E; --navy-d:#151E45; --gold:#D6A21E; --gold-l:#F1D27A; --gold-d:#A87A0C;
  --line:rgba(31,43,94,.14);
  --ease:cubic-bezier(.22,1,.36,1);
  --gut:clamp(20px,4.4vw,64px); --max:1240px; --hd:76px;
  --h2:clamp(28px,3.2vw,46px); --body:clamp(15.5px,1.15vw,18px);
}
*{box-sizing:border-box;margin:0;padding:0}
html{background:var(--paper);-webkit-text-size-adjust:100%}
body{background:var(--paper);color:var(--ink);font-family:'Readex',system-ui,sans-serif;font-weight:400;line-height:1.75;overflow-x:hidden}
img{display:block;max-width:100%}
a{color:inherit}
button{font:inherit;color:inherit}
h1,h2,h3{font-family:'Kufam','Readex',sans-serif;font-weight:700;line-height:1.3;letter-spacing:0}
h2{font-size:var(--h2)}
.wrap{width:100%;max-width:calc(var(--max) + 2*var(--gut));margin-inline:auto;padding-inline:var(--gut)}
:focus-visible{outline:2px solid var(--gold-d);outline-offset:3px;border-radius:4px}
.nw{white-space:nowrap;unicode-bidi:isolate}

.btn{display:inline-flex;align-items:center;justify-content:center;gap:10px;min-height:50px;padding:0 26px;border-radius:999px;border:0;background:var(--navy);color:#fff;text-decoration:none;font-weight:600;font-size:16px;cursor:pointer;transition:background .35s var(--ease),transform .35s var(--ease),border-color .35s}
.btn:hover{background:var(--navy-d)}
.btn:active{transform:scale(.98)}
.btn-ghost{background:transparent;color:var(--ink);border:1.5px solid rgba(31,43,94,.38)}
.btn-ghost:hover{background:rgba(31,43,94,.06)}
.btn-wide{width:100%}
.ctas{display:flex;flex-wrap:wrap;gap:12px}
.link{font-weight:600;text-decoration:none;color:var(--navy);border-bottom:1.5px solid var(--gold);padding-bottom:1px;white-space:nowrap}

/* ---------- header: ERENKOL EGYPT first; «الوكيل الحصري» + Al Roaya beside it at ~55% of its height; one calm button ---------- */
.hd{position:fixed;inset:0 0 auto;z-index:40;padding-top:env(safe-area-inset-top);transition:background .5s var(--ease),box-shadow .5s,opacity 1s var(--ease),transform 1s var(--ease)}
.hd-in{height:var(--hd);display:flex;align-items:center;gap:28px}
.hd-logo{display:flex;align-items:center;text-decoration:none;flex:none}
.hd-mark{height:52px;width:auto}
.hd-ag{display:flex;align-items:center;gap:10px;flex:none;text-decoration:none;opacity:.92;transition:opacity .35s var(--ease)}
.hd-ag:hover{opacity:1}
.hd-ag span{font-size:12.5px;line-height:1.3;color:var(--muted);white-space:nowrap}
.hd-ag img{height:29px;width:auto}
.hd.solid,.menu-open .hd{background:rgba(250,246,238,.94);-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px);box-shadow:0 1px 0 var(--line)}
.hd-nav{display:flex;gap:26px;margin-inline-start:auto}
.hd-nav a{text-decoration:none;font-size:15px;color:var(--ink-2);transition:color .35s var(--ease)}
.hd-nav a:hover{color:var(--navy)}
.hd-cta{display:inline-flex;align-items:center;min-height:42px;padding:0 20px;border-radius:999px;background:var(--navy);color:#fff;text-decoration:none;font-size:14.5px;font-weight:600;transition:background .35s var(--ease)}
.hd-cta:hover{background:var(--navy-d)}
.hd-menu{display:none;width:44px;height:44px;border:0;background:none;cursor:pointer;position:relative;margin-inline-start:auto}
.hd-menu i{position:absolute;left:11px;right:11px;height:2px;border-radius:2px;background:var(--ink);transition:transform .4s var(--ease)}
.hd-menu i:first-child{top:17px}.hd-menu i:last-child{top:25px}
.hd-menu[aria-expanded="true"] i:first-child{transform:translateY(4px) rotate(45deg)}
.hd-menu[aria-expanded="true"] i:last-child{transform:translateY(-4px) rotate(-45deg)}
.sheet{position:fixed;inset:0;z-index:39;background:var(--paper);display:flex;flex-direction:column;justify-content:center;gap:32px;padding:calc(var(--hd) + 24px) var(--gut) calc(32px + env(safe-area-inset-bottom))}
.sheet[hidden]{display:none}
.sheet nav{display:flex;flex-direction:column;gap:4px}
.sheet nav a{font-family:'Kufam',sans-serif;font-weight:700;font-size:26px;text-decoration:none;padding:6px 0;color:var(--ink)}
.sheet-ctas{display:flex;flex-direction:column;gap:10px}
.sheet-ag{display:flex;align-items:center;justify-content:center;gap:12px;text-decoration:none}
.sheet-ag span{font-size:13px;color:var(--muted)}
.sheet-ag img{height:34px;width:auto}
/* during the opening the header waits; the lockup arrives as the lab light comes on */
.op-js .hd{opacity:0;transform:translateY(-8px)}
.op-js .hd.up{opacity:1;transform:none}
@media (max-width:1240px){.hd-in{gap:20px}.hd-nav{gap:16px}.hd-nav a{font-size:14px}.hd-ag span{display:none}}
@media (max-width:1080px){.hd-ag{display:none}}
@media (max-width:960px){
  :root{--hd:64px}
  .hd-nav,.hd-cta{display:none}.hd-menu{display:block}
  .hd-mark{height:42px}
}

/* ---------- the chapter kit: words on top, the scene filling the rest of one screen ---------- */
.ch{position:relative;height:100vh;height:100svh;min-height:600px;overflow:hidden;display:flex;flex-direction:column;padding-top:calc(var(--hd) + env(safe-area-inset-top));background:var(--paper)}
.ch-tx{display:grid;grid-template-columns:5fr 1fr 6fr;align-items:center;padding-block:clamp(18px,3.4vh,40px)}
.ch-tx h2{grid-column:1}
.ch-tx .tx{grid-column:3;display:flex;flex-wrap:wrap;align-items:center;gap:14px 22px}
.ch-tx p{font-size:var(--body);color:var(--ink-2);max-width:54ch}
.ch-pic{position:relative;flex:1;min-height:0;overflow:hidden}
.ch-pic>img,.ch-pic>picture>img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.ch-pic picture{display:contents}
/* chapters are told apart by their own ground */
.c-earth{background:var(--sand)}
.c-proof{background:var(--paper)}
.c-specs{background:var(--sand)}
.c-oils{background:var(--paper)}
.c-origin{background:var(--sand)}
.c-ry{background:var(--paper)}
/* things that build in: hidden until their chapter plays (js) */
.js:not(.still) .bi{opacity:0}

/* ---------- 0 · opening ---------- */
.op{position:relative;height:100vh;height:100svh;min-height:560px;overflow:hidden;background:#2a241c;isolation:isolate}
.op-fr{position:absolute;inset:0}
.op-fr img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.op-fr picture{display:contents}
.op-gold,.op-all{position:absolute;inset:0;opacity:0}
.op-gold{will-change:opacity}
.op-pow{position:absolute;inset:0;width:100%;height:100%;pointer-events:none}
.op-dim{position:absolute;inset:0;background:#120f0a;opacity:0;pointer-events:none}
.op-js .op-dim{opacity:.9}
/* a soft veil behind the words so they read over the bright lab without a box */
.op::after{content:"";position:absolute;inset:0;z-index:1;pointer-events:none;background:linear-gradient(90deg,rgba(250,246,238,.7) 0%,rgba(250,246,238,.45) 32%,rgba(250,246,238,0) 50%);opacity:var(--veil,1)}
.op-js .op{--veil:0}
.op-js .op-best{--sx:0}
.op-copy{position:absolute;inset:0;z-index:3;display:flex;align-items:center;justify-content:flex-end;padding-top:var(--hd);pointer-events:none}
.op-text{max-width:min(560px,40vw);pointer-events:auto}
.op h1{font-size:clamp(36px,4.1vw,66px);line-height:1.35;color:var(--ink)}
/* the key phrase gets its own framed, lit line */
.op-best{position:relative;display:inline-block;padding:.08em .32em .14em;isolation:isolate}
.op-best::before{content:"";position:absolute;inset:0;z-index:-1;border-radius:.22em;background:var(--navy);transform-origin:100% 50%;transform:scaleX(var(--sx,1))}
.op-best-t{color:#fff;background:linear-gradient(100deg,#fff 0%,#fff 40%,var(--gold-l) 50%,#fff 60%,#fff 100%);background-size:300% 100%;background-position:100% 0;-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent}
.op-best.on .op-best-t{animation:sh 5.5s ease-in-out 1s infinite}
@keyframes sh{0%{background-position:100% 0}45%,100%{background-position:0 0}}
.op-sub{margin-top:18px;font-size:clamp(17px,1.45vw,21px);color:var(--ink-2);max-width:40ch}
.op-sub b{color:var(--ink);font-weight:600}
.op .ctas{margin-top:28px}
.op-js .op-text>*{opacity:0}

/* ---------- 1 · what it is: one photograph (the real bag on the bench); light, camera and a breath of powder; the facts draw out of the bag ---------- */
.ea-bg{position:absolute;inset:0;z-index:0;pointer-events:none;overflow:hidden}
.ea-cam{position:absolute;inset:0;transform-origin:30% 72%;will-change:transform}
.ea-cam img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.ea-cam picture{display:contents}
/* the window light coming up across the bench (soft-light, opacity only) */
.ea-light{position:absolute;inset:0;opacity:0;mix-blend-mode:soft-light;background:linear-gradient(118deg,rgba(255,236,200,0) 30%,rgba(255,232,190,.75) 62%,rgba(255,240,214,.35) 80%,rgba(255,236,200,0) 100%)}
.ea-puff{position:absolute;inset:0;width:100%;height:100%}
.c-earth>.ch-tx,.c-earth>.ch-pic{position:relative;z-index:1}
/* the bag fills the left of the photo: the words and the facts share the right half */
.c-earth .ch-tx{grid-template-columns:1fr 1fr;row-gap:6px}
.c-earth .ch-tx .tx{grid-column:1;grid-row:2}
.c-earth .ch-tx p{max-width:48ch}
.earth{display:flex;align-items:center;justify-content:center}
.ea-stage{position:relative;width:100%;max-width:calc(var(--max) + 2*var(--gut));height:100%;margin-inline:auto;padding-inline:var(--gut);display:grid;grid-template-columns:1fr 1fr;align-items:center}
.ea-bag{position:absolute;pointer-events:none}
.ea-facts{list-style:none;grid-column:1;grid-row:1;position:relative;z-index:2;display:grid;gap:clamp(12px,2.6vh,28px);padding-inline-end:clamp(24px,4vw,64px)}
.ea-facts li{display:flex;flex-direction:column;gap:2px;max-width:380px;margin-inline-start:0;padding:16px 20px;border-radius:14px;background:rgba(250,246,238,.84);-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);border:1px solid var(--line)}
.ea-facts b{font-family:'Kufam',sans-serif;font-size:clamp(19px,1.7vw,26px);color:var(--ink)}
.ea-facts span{font-size:clamp(14.5px,1.1vw,16.5px);color:var(--ink-2);line-height:1.6}
.ea-lines{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;overflow:visible}
.ea-lines path{fill:none;stroke:var(--gold-d);stroke-width:1.5;stroke-linecap:round;opacity:.7}
.ea-lines circle{fill:var(--gold)}

/* ---------- 2 · proof: the vials; «قبل» and «بعد» beside the two ends; the four jobs ---------- */
.proof{background:var(--paper)}
/* the clearing wave: a brighter copy of the vials seen through a soft window that travels from «قبل» to «بعد», rests, and runs again */
.wave{position:absolute;inset:0;pointer-events:none;opacity:0;--w:-20;filter:brightness(1.2) saturate(1.15) contrast(1.03);
  -webkit-mask-image:linear-gradient(90deg,transparent calc(var(--w)*1% - 13%),#000 calc(var(--w)*1% - 2%),#000 calc(var(--w)*1% + 2%),transparent calc(var(--w)*1% + 13%));
  mask-image:linear-gradient(90deg,transparent calc(var(--w)*1% - 13%),#000 calc(var(--w)*1% - 2%),#000 calc(var(--w)*1% + 2%),transparent calc(var(--w)*1% + 13%))}
.wave img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.wave picture{display:contents}
.beam{position:absolute;inset:0;pointer-events:none;background:linear-gradient(100deg,rgba(255,250,235,0) 40%,rgba(255,246,220,.42) 50%,rgba(255,250,235,0) 60%);transform:translateX(60%);mix-blend-mode:soft-light}
.beam.on{animation:beam 9s ease-in-out infinite}
@keyframes beam{0%{transform:translateX(60%)}55%,100%{transform:translateX(-60%)}}
.vl{position:absolute;z-index:2;transform:translate(-50%,-100%);padding:6px 16px;border-radius:999px;background:rgba(250,246,238,.92);border:1px solid var(--line);box-shadow:0 6px 18px rgba(31,43,94,.1)}
.vl b{font-family:'Kufam',sans-serif;font-size:clamp(15px,1.2vw,18px);color:var(--ink)}
.vl-b{background:var(--navy);border-color:var(--navy)}.vl-b b{color:#fff}
.jobs{position:absolute;z-index:2;inset-inline:0;top:clamp(14px,3vh,34px);list-style:none;display:grid;grid-template-columns:repeat(4,1fr);gap:12px}
.jobs li{display:flex;align-items:center;gap:12px;padding:12px 16px;border-radius:14px;background:rgba(250,246,238,.86);-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);border:1px solid var(--line)}
.jobs b{font-family:'Kufam',sans-serif;font-size:clamp(20px,1.7vw,26px);line-height:1;color:var(--gold-d)}
.jobs span{font-size:clamp(14px,1.05vw,16px);font-weight:500;line-height:1.5;color:var(--ink)}

/* ---------- 3 · specs «جدول العناصر»: element tiles that turn over to their result; the accreditations typeset; the real report pages ---------- */
.specs{display:flex;align-items:center}
.sp-wrap{display:grid;gap:clamp(18px,3.4vh,40px)}
.els{list-style:none;display:grid;grid-template-columns:repeat(4,minmax(0,250px));justify-content:center;gap:clamp(12px,1.6vw,26px);perspective:1400px}
.el{height:clamp(200px,29vh,260px)}
/* the turn: a symmetric rotation; the faces swap at the edge-on moment (opacity), so it never depends on backface-visibility,
   which Safari drops while an ancestor is fading */
.el-in{position:relative;width:100%;height:100%;transform-style:preserve-3d;transition:transform .9s cubic-bezier(.45,0,.55,1)}
.el.flip .el-in{transform:rotateY(180deg)}
.el-f,.el-b{position:absolute;inset:0;border-radius:16px;-webkit-backface-visibility:hidden;backface-visibility:hidden;display:flex;flex-direction:column;padding:clamp(12px,1.2vw,20px);transition:opacity 0s .45s}
.el-b{opacity:0}
.el.flip .el-f{opacity:0}
.el.flip .el-b{opacity:1}
/* the front: a periodic-table cell */
.el-f{background:var(--paper);border:1.5px solid rgba(31,43,94,.22);align-items:center;justify-content:center;text-align:center}
.el-z{position:absolute;top:clamp(10px,1vw,16px);inset-inline-end:clamp(12px,1.2vw,18px);font-size:clamp(13px,1vw,16px);font-weight:600;color:var(--ink-2)}
.el-s{font-family:'Readex',sans-serif;font-weight:600;font-size:clamp(46px,4.6vw,78px);line-height:1;color:var(--navy);letter-spacing:-.01em}
.el-f .el-n{margin-top:clamp(6px,1vh,12px);font-family:'Kufam',sans-serif;font-size:clamp(15px,1.25vw,19px);color:var(--ink)}
.el-w{position:absolute;bottom:clamp(10px,1vw,16px);inset-inline:0;font-size:clamp(11.5px,.85vw,13px);color:var(--muted)}
/* the back: the result */
.el-b{transform:rotateY(180deg);background:var(--navy);color:#fff;justify-content:center;gap:clamp(6px,1vh,12px)}
.el-b .el-n{font-family:'Kufam',sans-serif;font-size:clamp(14px,1.1vw,17px);color:#C9CEE2}
.el-v{display:flex;align-items:baseline;gap:8px;justify-content:flex-end;flex-direction:row-reverse}
.el-v em{font-style:normal;font-family:'Readex',sans-serif;font-weight:600;font-size:clamp(30px,2.9vw,46px);line-height:1;color:#fff}
.el-v small{font-size:13px;color:#C9CEE2}
.el-ok{font-size:clamp(34px,3vw,48px);line-height:1;color:var(--gold-l)}
/* the ruler: ticks, the result filling to its value (scaleX), the limit as a gold cap at the far end */
.el-r{position:relative;height:12px;border-radius:3px;background:rgba(255,255,255,.12) repeating-linear-gradient(90deg,rgba(255,255,255,.28) 0 1px,transparent 1px 10%) center/100% 6px no-repeat;overflow:hidden}
.el-fill{position:absolute;inset:0;background:linear-gradient(270deg,var(--gold-l),var(--gold));transform-origin:100% 50%;transform:scaleX(var(--k,0))}
.el-cap{position:absolute;top:0;bottom:0;left:0;width:3px;background:var(--gold-l)}
.el-lim{font-size:clamp(12.5px,.95vw,14.5px);line-height:1.5;color:#E2E5F0}
.sp-row{display:flex;justify-content:center;align-items:center;gap:clamp(28px,5vw,80px)}
.accr{list-style:none;display:flex;flex-wrap:wrap;gap:12px clamp(18px,2.4vw,40px)}
.accr li{display:flex;flex-direction:column;line-height:1.35}
.accr b{font-family:'Readex',sans-serif;font-weight:600;font-size:clamp(16px,1.3vw,20px);color:var(--navy);text-align:right}
.accr span{font-size:13px;color:var(--ink-2)}
.scans{display:flex;gap:clamp(16px,2vw,28px)}
.scan{display:flex;flex-direction:column;align-items:center;gap:8px;text-align:center}
.scan-pp{display:flex;gap:8px}
.scan>span{display:flex;flex-direction:column;line-height:1.4}
.scan b{font-size:14px;font-weight:600}
.scan small{font-size:12px;color:var(--muted)}
.cert{display:block;padding:0;border:0;background:#fff;cursor:pointer;border-radius:4px;overflow:hidden;box-shadow:0 1px 2px rgba(31,43,94,.12),0 8px 20px -8px rgba(31,43,94,.3);transition:transform .45s var(--ease),box-shadow .45s var(--ease)}
.cert:hover{transform:translateY(-3px);box-shadow:0 1px 2px rgba(31,43,94,.12),0 14px 28px -10px rgba(31,43,94,.36)}
.cert img{width:clamp(62px,5.4vw,84px);height:auto;aspect-ratio:3/4;object-fit:cover;object-position:top}
.viewer{position:fixed;inset:0;z-index:60;background:rgba(16,20,44,.92);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:14px;padding:calc(16px + env(safe-area-inset-top)) 16px calc(16px + env(safe-area-inset-bottom))}
.viewer[hidden]{display:none}
.vw-in{display:flex;flex-direction:column;align-items:center;gap:10px;min-height:0;flex:1;justify-content:center;width:100%}
.vw-in img{max-height:calc(100svh - 170px);max-width:min(100%,760px);width:auto;height:auto;border-radius:8px;background:#fff;box-shadow:0 20px 60px rgba(0,0,0,.4)}
.vw-in p{color:#e9e4d8;font-size:14px;text-align:center}
.vw-x{position:absolute;top:calc(10px + env(safe-area-inset-top));inset-inline-end:12px;width:48px;height:48px;border:0;border-radius:50%;background:rgba(255,255,255,.12);color:#fff;font-size:28px;line-height:1;cursor:pointer}
.vw-nav{display:flex;align-items:center;gap:18px;color:#fff}
.vw-nav button{width:44px;height:44px;border:0;border-radius:50%;background:rgba(255,255,255,.12);color:#fff;font-size:24px;cursor:pointer}
.vw-n{font-size:14px;min-width:3ch;text-align:center}

/* ---------- 4 · which oil «سلّم الألوان»: a colour band per oil; the chosen one opens, its marker runs from «قبل» to «بعد» ---------- */
.oils{display:flex;align-items:center}
.oi-grid{display:grid;grid-template-columns:6fr 5fr;gap:clamp(24px,5vw,80px);align-items:center}
.oi-scale{display:grid;gap:10px}
.oi-ends{display:flex;justify-content:space-between;font-family:'Kufam',sans-serif;font-size:14px;color:var(--muted);padding-inline:2px}
.oi-ends span:last-child{color:var(--gold-d)}
.oi-tabs{display:grid;gap:6px}
.oi-tabs button{display:grid;gap:8px;padding:12px 0 14px;border:0;background:none;cursor:pointer;text-align:start;opacity:.62;transition:opacity .5s var(--ease)}
.oi-tabs button:hover{opacity:.85}
.oi-tabs button[aria-selected="true"]{opacity:1}
.oi-tabs b{font-family:'Kufam',sans-serif;font-size:clamp(16px,1.3vw,19px);color:var(--ink)}
.oi-band{position:relative;display:block;height:22px;border-radius:99px;background:linear-gradient(270deg,var(--c0),var(--c1));transform:scaleY(.36);transform-origin:50% 50%;transition:transform .6s var(--ease)}
.oi-tabs button[aria-selected="true"] .oi-band{transform:none}
/* the marker rides a full-width runner that moves from the «قبل» end (right) to the «بعد» end (left): transform only */
.oi-run{position:absolute;inset:0;transform:translateX(calc(var(--k,0) * -100%))}
.oi-mk{position:absolute;top:50%;right:0;width:30px;height:30px;margin:-15px -15px 0 0;border-radius:50%;background:var(--paper);box-shadow:0 0 0 3px var(--navy),0 6px 14px rgba(31,43,94,.3);opacity:0;transition:opacity .4s var(--ease)}
.oi-tabs button[aria-selected="true"] .oi-mk{opacity:1}
.oi-note{font-size:12px;color:var(--muted)}
.oi-stage{display:grid;grid-template-columns:auto auto;grid-template-areas:"raw gls" "tx tx";gap:clamp(16px,2.6vh,28px) clamp(18px,2.4vw,40px);align-items:end;justify-content:center}
.oi-raw{grid-area:raw;display:flex;flex-direction:column;align-items:center;gap:8px}
.oi-raw-in{position:relative;width:clamp(170px,15vw,240px);aspect-ratio:1}
.oi-raw-in img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;opacity:0;transform:scale(1.05);transition:opacity .7s var(--ease),transform 1.2s var(--ease);-webkit-mask-image:radial-gradient(closest-side,#000 62%,transparent 97%);mask-image:radial-gradient(closest-side,#000 62%,transparent 97%)}
.oi-raw-in img.on{opacity:1;transform:none}
.oi-raw figcaption{font-family:'Kufam',sans-serif;font-size:15px;color:var(--muted)}
.oi-g{grid-area:gls;display:flex;flex-direction:column;align-items:center;gap:10px}
.oi-g canvas{display:block;width:clamp(130px,11.5vw,180px);height:auto;aspect-ratio:3/4}
.oi-g figcaption{font-family:'Kufam',sans-serif;font-size:15px;color:var(--gold-d)}
.oi-tx{grid-area:tx;display:flex;flex-direction:column;align-items:center;gap:12px;text-align:center}
.oi-line{font-size:clamp(17px,1.4vw,21px);color:var(--ink);line-height:1.7;min-height:1.7em}

/* ---------- 5 · origin (two slides): route steps / why choose ---------- */
.duo-track{position:relative;flex:1;min-height:0;display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(0,1fr)}
.duo-slide{grid-area:1/1;display:flex;flex-direction:column;min-height:0;min-width:0;transition:opacity .8s var(--ease),transform .8s var(--ease)}
.duo-slide:not(.is-on){opacity:0;transform:translateX(-24px);pointer-events:none;visibility:hidden;transition:opacity .6s var(--ease),transform .6s var(--ease),visibility 0s .6s}
.duo-nav{display:flex;align-items:center;gap:4px;flex:none}
.duo-dot{width:28px;height:28px;border:0;background:none;cursor:pointer;display:inline-flex;align-items:center;justify-content:center}
.duo-dot i{width:24px;height:8px;border-radius:99px;background:rgba(31,43,94,.25);transform:scaleX(.34);transition:transform .45s var(--ease),background .45s}
.duo-dot.is-on i{transform:none;background:var(--navy)}
.route,.why{display:flex;align-items:center}
.rt-grid{display:grid;grid-template-columns:1fr 1.25fr 1fr;gap:clamp(12px,2vw,28px);align-items:stretch;height:min(100%,520px);padding-bottom:clamp(14px,3vh,34px)}
.rt-step{position:relative;display:flex;flex-direction:column;gap:10px;min-height:0}
.rt-step img,.rt-step .map{flex:1;min-height:0;width:100%;object-fit:cover;border-radius:16px;background:var(--sand-2)}
.rt-step figcaption{display:flex;align-items:center;gap:10px;font-family:'Kufam',sans-serif;font-size:clamp(15px,1.25vw,18px)}
.rt-step figcaption b{color:var(--gold-d);font-size:1.15em}
.map{position:relative;overflow:hidden;background:#EAF0F4}
.map svg{position:absolute;inset:0;width:100%;height:100%}
.why-grid{display:grid;grid-template-columns:5fr 6fr;gap:clamp(16px,3vw,48px);align-items:center;height:min(100%,500px);padding-bottom:clamp(14px,3vh,34px)}
.why-pic{width:100%;height:100%;object-fit:cover;border-radius:16px}
.why-list{list-style:none;display:grid;grid-template-columns:1fr 1fr;gap:10px}
.why-list li{display:flex;align-items:center;gap:12px;padding:16px 18px;border-radius:14px;background:var(--paper);border:1px solid var(--line);min-height:76px}
.why-list b{font-family:'Kufam',sans-serif;font-size:22px;color:var(--gold-d);line-height:1}
.why-list span{font-weight:500;font-size:clamp(14.5px,1.1vw,16.5px);line-height:1.5}

/* ---------- 6 · «من يقف خلف أرينكول في مصر»: half height, calm, smaller than every ERENKOL chapter; then a screen of air ---------- */
.c-ry{height:auto;min-height:0;padding-block:calc(var(--hd) + clamp(28px,6vh,72px)) clamp(36px,7vh,84px);margin-bottom:clamp(160px,42svh,420px)}
.ry-grid{display:grid;grid-template-columns:auto minmax(0,1fr) minmax(0,.9fr);gap:clamp(20px,4vw,64px);align-items:center}
.ry-mark{position:relative;width:clamp(84px,7.4vw,120px);aspect-ratio:156/186}
.ry-mark img{position:absolute;inset:0;width:100%;height:100%}
.ry-m0{filter:grayscale(1) contrast(.6) brightness(1.35);opacity:.45}
/* the colour fills the mark from the gear up to the flame */
.ry-m1{-webkit-mask-image:linear-gradient(0deg,#000 calc(var(--f,0)*100% - 8%),transparent calc(var(--f,0)*100% + 8%));mask-image:linear-gradient(0deg,#000 calc(var(--f,0)*100% - 8%),transparent calc(var(--f,0)*100% + 8%))}
.ry-tx{display:grid;gap:12px;justify-items:start}
.ry-tx h2{font-size:clamp(24px,2.4vw,34px)}
.ry-tx p{font-size:var(--body);color:var(--ink-2);max-width:46ch}
.ry-win{position:relative;margin:0;border-radius:20px;overflow:hidden;aspect-ratio:16/10;background:var(--sand-2)}
.ry-win img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:50% 45%}
.ry-win picture{display:contents}

/* ---------- 7 · ending «الختم»: the mark builds itself, centred; the slogan and the two buttons on the same axis ---------- */
.c-end{background:var(--sand);padding-top:var(--hd);justify-content:center}
.c-end::before{content:"";position:absolute;inset:0;pointer-events:none;background:radial-gradient(ellipse 46% 52% at 50% 40%,rgba(255,252,244,.85),rgba(255,252,244,0) 75%)}
.end-in{position:relative;display:flex;flex-direction:column;align-items:center;text-align:center;gap:clamp(10px,1.8vh,18px)}
.seal-wrap{width:min(46vw,calc((100svh - var(--hd)) * .54 * 490 / 443),470px)}
.seal{display:block;width:100%;height:auto;overflow:visible}
.end-in h2{margin-top:clamp(6px,1.4vh,16px);font-size:clamp(28px,3.2vw,48px);color:var(--ink)}
.end-in p{font-size:var(--body);color:var(--ink-2)}
/* the seal's build: globe (dark oil clears), stems draw, leaves grow, then the name */
.seal .gl{transform-box:fill-box;transform-origin:center}
.seal .lf{transform-box:fill-box;transform-origin:0 50%}
.seal .st{stroke-dasharray:1;stroke-dashoffset:1}
.seal .wd{opacity:0}
.seal .egy{transition:opacity .6s}
.seal.go .st{animation:st 1.4s cubic-bezier(.22,1,.36,1) forwards;animation-delay:var(--d,0s)}
.seal.go .lf{opacity:0;animation:lf 1.1s cubic-bezier(.22,1,.36,1) var(--d,0s) forwards,sw 5.5s ease-in-out calc(var(--d,0s) + 1.4s) infinite}
.seal:not(.go):not(.done) .lf{opacity:0}
.seal.go .wd0,.seal.go .wd1,.seal.go .wd2{animation:wd 1s cubic-bezier(.22,1,.36,1) forwards}
.seal.go .wd0{animation-delay:1.5s}.seal.go .wd1{animation-delay:1.85s}.seal.go .wd2{animation-delay:2.1s}
.seal.done .st{stroke-dashoffset:0}.seal.done .wd{opacity:1}.seal.done .lf{animation:sw 5.5s ease-in-out infinite}
@keyframes st{to{stroke-dashoffset:0}}
@keyframes lf{0%{transform:scale(0) rotate(-14deg);opacity:0}30%{opacity:1}100%{transform:scale(1) rotate(0);opacity:1}}
@keyframes sw{0%,100%{rotate:0deg}50%{rotate:3deg}}
@keyframes wd{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:none}}
.shine{background:linear-gradient(100deg,var(--ink) 0%,var(--ink) 40%,var(--gold-d) 48%,var(--gold) 50%,var(--gold-d) 52%,var(--ink) 60%,var(--ink) 100%);background-size:300% 100%;background-position:100% 0;-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent}
.shine.on{animation:sh 4.8s ease-in-out infinite}
.c-end .ctas{justify-content:center;margin-top:6px}
.c-end .ctas .btn{min-width:210px}
.c-end .btn-ghost{color:var(--ink);border-color:rgba(31,43,94,.4);background:rgba(250,246,238,.6)}
.c-end .btn-ghost:hover{background:rgba(250,246,238,.9)}
/* the main button invites a tap: a line of light runs around its edge from the moment it appears, plus a small nudge. No pulse. */
@property --ring{syntax:'<angle>';inherits:false;initial-value:0deg}
.btn-invite{border:2px solid transparent;color:var(--navy-d);
  background:linear-gradient(var(--gold-l),var(--gold-l)) padding-box,conic-gradient(from var(--ring),rgba(168,122,12,.35) 0deg,rgba(168,122,12,.35) 250deg,#fff 300deg,#FFF4D0 330deg,rgba(168,122,12,.35) 360deg) border-box;
  box-shadow:0 10px 30px -8px rgba(168,122,12,.55)}
.btn-invite:hover{background:linear-gradient(#F6DD94,#F6DD94) padding-box,conic-gradient(from var(--ring),rgba(255,255,255,.2) 0deg,rgba(255,255,255,.2) 250deg,#fff 300deg,#FFF4D0 330deg,rgba(255,255,255,.2) 360deg) border-box}
.btn-invite.on{animation:ring 3s linear infinite,nudge 4s cubic-bezier(.36,.07,.19,.97) .4s infinite}
@keyframes ring{to{--ring:360deg}}
@keyframes nudge{0%,12%,100%{transform:none}3%{transform:translateY(-3px)}6%{transform:translateY(0)}9%{transform:translateY(-1.5px)}}
.btn-sheen{position:relative;overflow:hidden;isolation:isolate}
.btn-sheen::after{content:"";position:absolute;inset:-20% 0 -20% auto;width:46%;z-index:-1;pointer-events:none;background:linear-gradient(100deg,rgba(255,255,255,0),rgba(255,255,255,.4),rgba(255,255,255,0));transform:translateX(160%) skewX(18deg)}
.btn-sheen.on::after{animation:sheen 3.4s cubic-bezier(.45,0,.2,1) .2s infinite}
@keyframes sheen{0%{transform:translateX(160%) skewX(18deg)}40%,100%{transform:translateX(-330%) skewX(18deg)}}

/* ---------- 7 · form + contact ---------- */
.contact{position:relative;z-index:2;background:var(--paper);padding-block:clamp(64px,8vw,120px);scroll-margin-top:var(--hd)}
#form{scroll-margin-top:calc(var(--hd) + 16px)}
.contact .split{display:grid;grid-template-columns:6fr 5fr;gap:clamp(28px,5vw,80px);align-items:start}
.contact .tx>p{margin-top:12px;font-size:var(--body);color:var(--ink-2)}
.form{background:var(--sand);border:1px solid var(--line);border-radius:18px;padding:clamp(22px,3vw,40px);display:grid;gap:18px}
.f-lead{font-size:var(--body);color:var(--ink-2);margin-top:-6px}
.kind{border:0;display:flex;flex-wrap:wrap;gap:8px}
.kind legend{font-size:14px;color:var(--muted);margin-bottom:8px}
.kind label{cursor:pointer}
.kind input{position:absolute;opacity:0;pointer-events:none}
.kind span{display:inline-flex;align-items:center;min-height:44px;padding:0 18px;border-radius:999px;border:1px solid rgba(31,43,94,.25);font-size:15px;background:var(--paper);transition:background .35s var(--ease),border-color .35s,color .35s}
.kind input:checked+span{background:var(--navy);color:#fff;border-color:var(--navy)}
.kind input:focus-visible+span{outline:2px solid var(--gold-d);outline-offset:2px}
.fld{display:grid;gap:6px}
.fld span{font-size:14px;color:var(--muted)}
.fld input{min-height:50px;border-radius:10px;border:1px solid rgba(31,43,94,.22);background:var(--paper);color:var(--ink);font:inherit;font-size:16px;padding:0 14px}
.fld input:focus{outline:none;border-color:var(--navy)}
.row2{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.err{color:#9b2c1e;font-size:14px}
.tiles{list-style:none;margin-top:24px;display:grid;grid-template-columns:1fr 1fr;gap:12px}
.tile{display:flex;flex-direction:column;align-items:flex-start;gap:4px;height:100%;padding:18px;border-radius:16px;background:var(--sand);border:1px solid var(--line);text-decoration:none;transition:background .35s var(--ease),border-color .35s,transform .35s var(--ease)}
.tile:hover{background:#fff;border-color:rgba(31,43,94,.35);transform:translateY(-2px)}
.tile .ic{display:inline-flex;align-items:center;justify-content:center;width:46px;height:46px;border-radius:50%;background:var(--navy);color:#fff;margin-bottom:8px}
.tile .ic svg{width:22px;height:22px}
.tile .ic-wa{background:#1FA855}
.tile .ic-ry{background:#fff;border:1px solid var(--line)}
.tile .ic-ry img{width:30px;height:30px;object-fit:contain}
.tile b{font-family:'Kufam',sans-serif;font-weight:700;font-size:16px;line-height:1.4}
.tile small{font-size:13.5px;color:var(--ink-2);line-height:1.5;unicode-bidi:plaintext;word-break:break-word}
.gmap{margin-top:12px;border-radius:16px;overflow:hidden;border:1px solid var(--line);background:var(--sand)}
.gmap iframe{display:block;width:100%;height:240px;border:0}
.gmap-go{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:14px 16px;background:#fff;text-decoration:none;border-top:1px solid var(--line)}
.gmap-go span{display:flex;flex-direction:column}
.gmap-go b{font-family:'Kufam',sans-serif;font-size:15px}
.gmap-go small{font-size:13px;color:var(--ink-2);line-height:1.6}
.gmap-go em{flex:none;font-style:normal;font-weight:600;font-size:14px;color:#fff;background:var(--navy);border-radius:999px;padding:8px 16px}
@media (max-width:860px){.contact .split{grid-template-columns:1fr}}

.ft{position:relative;z-index:2;background:var(--navy-d);color:#D6DAE8;padding-block:clamp(56px,7vw,88px) calc(40px + env(safe-area-inset-bottom))}
.ft-in{display:flex;flex-direction:column;align-items:center;gap:30px;text-align:center}
.ft-brand{display:flex;flex-direction:column;align-items:center;gap:14px}
.ft-mark{width:clamp(190px,17vw,250px);height:auto}
.ft-desc{font-size:15px;color:#B9BFD6}
.ft-ag{display:flex;align-items:center;gap:12px;margin-top:6px;text-decoration:none;opacity:.9;transition:opacity .35s var(--ease)}
.ft-ag:hover{opacity:1}
.ft-ag span{font-size:13px;color:#9EA6C4}
.ft-ag img{height:44px;width:auto}
.ft-nav{display:flex;flex-wrap:wrap;gap:8px 22px;justify-content:center}
.ft-nav a{text-decoration:none;font-size:14px;color:#B9BFD6}
.ft-credit{font-size:13px;color:#B9BFD6;text-align:center}
.ft-credit a{color:#B9BFD6}

.dock{position:fixed;z-index:30;inset-inline:12px;bottom:calc(14px + env(safe-area-inset-bottom));display:flex;align-items:center;gap:8px;padding:6px;border-radius:999px;background:rgba(250,246,238,.95);-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);border:1px solid var(--line);box-shadow:0 8px 28px rgba(31,43,94,.16);opacity:0;transform:translateY(16px);pointer-events:none;transition:opacity .5s var(--ease),transform .5s var(--ease)}
.dock.on{opacity:1;transform:none;pointer-events:auto}
@media (min-width:961px){.dock{display:none}}
.dock .btn{flex:1;min-height:44px;font-size:15px}
.dock-wa{display:inline-flex;align-items:center;justify-content:center;width:44px;height:44px;border-radius:50%;color:#fff;background:#1FA855;text-decoration:none}

/* ---------- phone: every chapter recomposed, one screen each ---------- */
@media (max-width:700px){
  .ch{min-height:0}
  .ch-tx{display:block;padding-block:16px 12px}
  .ch-tx .tx{margin-top:6px;gap:10px}
  .ch-tx p{font-size:15px;line-height:1.7}
  .ch-tx h2{font-size:27px}
  /* opening: words at the bottom over a sand veil, the beaker above them */
  .op::after{background:linear-gradient(180deg,rgba(250,246,238,.55) 0%,rgba(250,246,238,.35) 40%,rgba(250,246,238,0) 55%)}
  .op-copy{align-items:flex-start;padding-top:calc(var(--hd) + env(safe-area-inset-top) + 22px)}
  .op-text{max-width:none}
  .op h1{font-size:clamp(30px,8.6vw,40px)}
  .op-sub{font-size:15.5px;margin-top:12px}
  .op .ctas{margin-top:18px}.op .ctas .btn{flex:1 1 auto;min-height:48px;padding:0 16px;font-size:15px}
  /* earth: the three facts as short chips above the bag (titles only), the bag stands on the bench below them */
  .ea-stage{display:flex;flex-direction:column;justify-content:flex-start;gap:14px;padding-block:2px 0}
  .ea-facts{display:flex;flex-wrap:wrap;gap:6px;padding:0;width:100%}
  .ea-facts li{max-width:none;margin:0;padding:6px 12px;border-radius:999px;flex-direction:row}
  .ea-facts b{font-size:14px;line-height:1.5}.ea-facts span{display:none}
  .ea-lines{display:none}
  /* proof: jobs as a 2x2 grid under the words, the vials below */
  .jobs{position:relative;top:auto;grid-template-columns:1fr 1fr;gap:8px;padding-top:2px}
  .jobs li{padding:9px 11px;gap:8px}.jobs b{font-size:17px}.jobs span{font-size:13px}
  .proof{display:flex;flex-direction:column}
  .proof>picture>img,.proof>img{top:auto}
  /* specs: tiles 2x2, the accreditations 2x2, the report pages in a row */
  .specs{align-items:flex-start}
  .sp-wrap{gap:14px;padding-bottom:calc(84px + env(safe-area-inset-bottom))}
  .els{grid-template-columns:1fr 1fr;gap:8px}
  .el{aspect-ratio:auto;height:clamp(118px,17svh,150px);max-height:none}
  .el-f,.el-b{border-radius:12px;padding:10px 12px}
  .el-s{font-size:40px}.el-f .el-n{font-size:14px;margin-top:4px}.el-z{font-size:12px;top:8px}.el-w{font-size:10.5px;bottom:7px}
  .el-b{gap:5px}.el-b .el-n{font-size:12.5px}.el-v em{font-size:26px}.el-v small{font-size:11px}.el-ok{font-size:30px}
  .el-r{height:9px}.el-lim{font-size:11px;line-height:1.35}
  .sp-row{flex-direction:column;align-items:stretch;gap:12px}
  .accr{display:grid;grid-template-columns:1fr 1fr;gap:8px 14px}
  .accr b{font-size:14.5px}.accr span{font-size:11.5px}
  .scans{justify-content:space-between;gap:10px}
  .scan b{font-size:12.5px}.scan small{font-size:11px}
  .cert img{width:min(17vw,70px)}
  /* oils: the four bands full width, then the raw material + the beaker, then the line */
  .oils{align-items:flex-start}
  .oi-grid{grid-template-columns:1fr;gap:14px}
  .oi-scale{gap:4px}
  .oi-tabs{gap:0}
  .oi-tabs button{padding:7px 0 9px;gap:5px}
  .oi-tabs b{font-size:14.5px}
  .oi-band{height:18px}.oi-mk{width:24px;height:24px;margin:-12px -12px 0 0}
  .oi-grid{padding-bottom:calc(72px + env(safe-area-inset-bottom))}
  .oi-ends{font-size:12.5px}
  .oi-tabs button{padding:5px 0 7px;gap:4px}
  .oi-stage{gap:8px 18px}
  .oi-raw-in{width:min(26vw,108px)}.oi-raw figcaption{font-size:12px}
  .oi-g canvas{width:min(21vw,90px)}.oi-g figcaption{font-size:13px}
  .oi-tx{gap:8px}.oi-line{font-size:15px;line-height:1.6;min-height:3.2em}
  .oi-tx .btn{min-height:44px}
  /* origin: the three steps as a swipe row */
  .rt-grid{display:flex;overflow-x:auto;scroll-snap-type:x mandatory;margin-inline:calc(-1*var(--gut));padding-inline:var(--gut);scrollbar-width:none;gap:12px;height:100%;padding-bottom:calc(84px + env(safe-area-inset-bottom))}
  .rt-grid::-webkit-scrollbar{display:none}
  .rt-step{flex:none;width:78vw;scroll-snap-align:center}
  .why-grid{grid-template-columns:1fr;gap:10px;height:100%;padding-bottom:calc(84px + env(safe-area-inset-bottom))}
  .why-pic{height:22svh;min-height:0}
  .why-list{gap:7px}.why-list li{padding:10px 12px;min-height:58px;gap:8px}.why-list b{font-size:18px}.why-list span{font-size:13.5px}
  /* Al Roaya: the mark beside the title, the line + button, then the window */
  .ry-grid{grid-template-columns:auto 1fr;gap:14px 16px}
  .ry-mark{width:62px;align-self:start}
  .ry-tx h2{font-size:22px}.ry-tx p{font-size:15px}
  .ry-win{grid-column:1/-1;aspect-ratio:16/9;border-radius:16px}
  /* ending */
  .seal-wrap{width:min(72vw,calc((100svh - var(--hd)) * .42 * 490 / 443))}
  .end-in{gap:10px}
  .end-in h2{font-size:27px}
  .c-end .ctas{gap:8px;width:100%;max-width:380px;flex-direction:column}.c-end .ctas .btn{min-width:0;width:100%;min-height:46px}
  .row2{grid-template-columns:1fr}
  .ft-ag{flex-direction:column;gap:6px}.ft-ag img{height:40px}
}
@media (max-width:700px) and (max-height:740px){
  .ea-facts span{display:none}.ea-facts li{padding:8px 14px}
  .oi-g canvas{width:min(22vw,92px)}.oi-raw-in{width:min(24vw,100px)}
  .oi-tabs button{padding:3px 0 5px}.oi-band{height:14px}.oi-ends{display:none}
  .oi-line{font-size:14.5px;min-height:0}.oi-tx{gap:8px}.oi-note{display:none}
  .el{height:104px}.el-lim{display:none}.accr span{display:none}
  .specs{overflow-y:auto}.sp-wrap{gap:10px}
  .c-oils .ch-tx p{display:none}
  .c-oils .oi-line{display:none}.c-oils .oi-raw-in{width:84px}.c-oils .oi-g canvas{width:72px}
  .why-pic{display:none}
  .end-in h2{font-size:24px}
}
/* ================= Round 3 (11 Nov night) ================= */
svg.hd-mark{display:block;height:52px;width:auto;aspect-ratio:670/200}
@media (max-width:960px){svg.hd-mark{height:42px}}
/* earth: fact cards one size, titles on one line */
.ea-facts li{width:min(400px,100%)}
.ea-facts b{white-space:nowrap}
.ea-cam .ea-puff{position:absolute;inset:0;width:100%;height:100%;pointer-events:none}
/* oils: the 3D rack beside its caption */
.c-oils .ch-pic{display:flex;align-items:stretch}
.rk-grid{flex:1;min-height:0;display:grid;grid-template-columns:minmax(280px,400px) minmax(0,1fr);grid-template-rows:minmax(0,1fr);grid-template-areas:"cap stage";gap:clamp(20px,3vw,48px);align-items:center;padding-bottom:clamp(16px,3vh,36px)}
.rk-stage{grid-area:stage;position:relative;align-self:stretch;min-height:300px}
.rk-stage canvas{position:absolute;inset:0;width:100%;height:100%;display:block;cursor:pointer;touch-action:pan-y;opacity:0;transition:opacity .8s var(--ease)}
/* soft edges: a paper-coloured vignette above the canvas (a CSS mask on a WebGL canvas is dropped by WebKit) */
.rk-stage::after{content:"";position:absolute;inset:-1px;pointer-events:none;background:radial-gradient(ellipse 56% 64% at 50% 52%,rgba(250,246,238,0) 54%,var(--paper) 97%)}
.rk-stage.ready canvas{opacity:1}
.rk-tag{position:absolute;left:0;top:0;z-index:2;padding:4px 12px;border-radius:999px;border:1px solid rgba(31,43,94,.16);background:rgba(250,246,238,.94);color:var(--ink);font-family:'Kufam',sans-serif;font-size:13.5px;line-height:1.5;white-space:nowrap;cursor:pointer;box-shadow:0 4px 12px rgba(31,43,94,.1);transition:background .4s,color .4s,border-color .4s;opacity:0}
.rk-tag.on{background:var(--navy);border-color:var(--navy);color:#fff}
.rk-stage:not(.ready) .rk-tag{display:none}
.rk-cap{grid-area:cap;display:flex;flex-direction:column;align-items:flex-start;gap:16px}
.rk-chips{display:flex;flex-wrap:wrap;gap:8px}
.rk-chips button{min-height:40px;padding:0 14px;border-radius:999px;border:1.5px solid rgba(31,43,94,.22);background:transparent;font-family:'Kufam',sans-serif;font-size:15px;color:var(--ink);cursor:pointer;transition:background .35s var(--ease),color .35s,border-color .35s}
.rk-chips button:hover{border-color:var(--navy)}
.rk-chips button[aria-selected="true"]{background:var(--navy);border-color:var(--navy);color:#fff}
.rk-tx{display:grid;gap:6px;min-height:150px;align-content:start}
.rk-st{font-size:13.5px;font-weight:600;color:var(--gold-d)}
.rk-name{font-size:clamp(24px,2.2vw,32px);color:var(--ink)}
.rk-line{font-size:var(--body);color:var(--ink-2);max-width:36ch}
/* Al Roaya: the words, and the mark big beside them (left on desktop) */
.c-ry{margin-bottom:0;padding-block:calc(var(--hd) + clamp(28px,6vh,72px)) clamp(40px,8vh,96px)}
.ry-grid{grid-template-columns:minmax(0,560px) auto;justify-content:center;gap:clamp(32px,7vw,120px)}
.ry-mark{width:clamp(200px,21vw,300px);aspect-ratio:441/525}
.ry-mark canvas{display:block;width:100%;height:100%}
.ry-tx h2{font-size:clamp(28px,3vw,44px)}
.ry-tx p{max-width:44ch}
/* the main button of the ending: a quick shake and a strong pop, then rest */
.btn-invite.on{animation:ring 3s linear infinite,pop 2.6s cubic-bezier(.36,.07,.19,.97) .15s infinite}
@keyframes pop{0%,30%,100%{transform:none}4%{transform:scale(1.09)}7%{transform:scale(1.09) rotate(-3deg)}10%{transform:scale(1.09) rotate(3deg)}13%{transform:scale(1.08) rotate(-2.5deg)}16%{transform:scale(1.07) rotate(2deg)}19%{transform:scale(1.05) rotate(-1deg)}23%{transform:scale(1.02)}}
@media (max-width:700px){
  .rk-grid{grid-template-columns:1fr;grid-template-rows:minmax(0,1fr) auto;grid-template-areas:"stage" "cap";gap:6px;padding-bottom:calc(80px + env(safe-area-inset-bottom))}
  .rk-stage{min-height:0}
  .rk-cap{align-items:center;text-align:center;gap:10px}
  .rk-chips{justify-content:center;gap:6px}
  .rk-chips button{min-height:36px;padding:0 12px;font-size:13.5px}
  .rk-tag{font-size:12px;padding:3px 9px}
  .rk-tag:not(.on){visibility:hidden}
  .ea-facts li{width:auto}
  .rk-tx{min-height:0;gap:2px;justify-items:center}
  .rk-name{font-size:21px}.rk-line{font-size:14.5px;line-height:1.6}
  .rk-cap .oi-note{display:none}
  .ry-grid{grid-template-columns:1fr;justify-items:center;text-align:center;gap:22px}
  .ry-mark{order:-1;width:min(46vw,190px);align-self:center}
  .ry-tx{justify-items:center}
  .ry-tx h2{font-size:25px}
  /* ending: the mark and the words fill the phone screen */
  .c-end{justify-content:stretch}
  .end-in{flex:1;justify-content:center;gap:clamp(12px,2.2vh,22px);padding-block:8px calc(20px + env(safe-area-inset-bottom))}
  .seal-wrap{width:min(92vw,calc((100svh - var(--hd)) * .46 * 490 / 443))}
  .end-in h2{font-size:clamp(27px,8.2vw,34px)}
  .end-in p{font-size:16.5px}
  .c-end .ctas .btn{min-height:54px;font-size:17px}
}
@media (max-width:700px) and (max-height:740px){
  .rk-tx .rk-line{display:none}
  .end-in h2{font-size:26px}.c-end .ctas .btn{min-height:48px;font-size:16px}
}
@media (prefers-reduced-motion:reduce){.beam.on,.shine.on,.op-best.on .op-best-t,.btn-invite.on,.btn-sheen.on::after{animation:none}}

/* =================== round 4 (12 Nov) =================== */
/* #earth: leader lines on the chapter itself (never clipped); each starts on its own print on the bag, a gold hairline with a pale
   halo under it, a ring marker that breathes, a glint that travels out to the card now and then */
.c-earth>.ea-lines{position:absolute;inset:0;width:100%;height:100%;z-index:1;pointer-events:none;overflow:visible}
.ea-lines .ln-u{fill:none;stroke:rgba(255,250,238,.7);stroke-width:4;stroke-linecap:round;stroke-linejoin:round;opacity:1}
.ea-lines .ln{fill:none;stroke:#A87A0C;stroke-width:1.35;stroke-linecap:round;stroke-linejoin:round;opacity:1}
.ea-lines .gl{fill:none;stroke:#FFE6A6;stroke-width:2.6;stroke-linecap:round;stroke-dasharray:.05 1.2;stroke-dashoffset:.05;opacity:0}
.ea-lines.live .gl{opacity:1;animation:eaGl 4.2s cubic-bezier(.45,0,.55,1) infinite}
@keyframes eaGl{0%{stroke-dashoffset:.05}62%,100%{stroke-dashoffset:-1.05}}
.ea-lines .ring{fill:rgba(250,246,238,.92);stroke:#A87A0C;stroke-width:1.4}
.ea-lines .core{fill:#C9971F}
.ea-lines .halo{fill:none;stroke:#D6A21E;stroke-width:1.2;opacity:0;transform-box:fill-box;transform-origin:center}
.ea-lines.live .halo{animation:eaHalo 3s ease-out infinite}
@keyframes eaHalo{0%{transform:scale(1);opacity:.75}100%{transform:scale(2.9);opacity:0}}
.ea-lines .end{fill:#A87A0C}

/* #oils: the rack sits in a soft lab room now; one small name tag, only on the tube in front */
.rk-stage::after{background:linear-gradient(180deg,var(--paper) 0,rgba(250,246,238,0) 16%,rgba(250,246,238,0) 84%,var(--paper) 100%),linear-gradient(90deg,var(--paper) 0,rgba(250,246,238,0) 13%,rgba(250,246,238,0) 87%,var(--paper) 100%),radial-gradient(ellipse 56% 62% at 50% 52%,rgba(250,246,238,0) 56%,rgba(250,246,238,.85) 100%)}
.rk-tag{font-size:12.5px;padding:3px 11px;box-shadow:0 8px 18px -10px rgba(31,43,94,.5);transition:background .4s,color .4s,border-color .4s}
.rk-tag::after{content:"";position:absolute;left:50%;bottom:-8px;width:1px;height:7px;background:var(--gold-d)}

/* #roaya: Al Roaya's mark in 3D beside the words, three facts, Al Roaya's own blue button */
.c-ry{min-height:min(90svh,880px);height:auto;margin-bottom:0;display:flex;flex-direction:column;justify-content:center;padding-block:calc(var(--hd) + clamp(18px,4vh,48px)) clamp(28px,6vh,72px);background:radial-gradient(ellipse 46% 52% at 27% 60%,#F3E7D2 0%,rgba(250,246,238,0) 72%),var(--paper)}
.ry-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.05fr);gap:clamp(24px,5vw,96px);align-items:center;justify-content:stretch}
.ry-stage{position:relative;width:100%;height:clamp(380px,66svh,660px)}
.ry-stage canvas{position:absolute;inset:0;width:100%;height:100%;display:block;opacity:0;transition:opacity .6s var(--ease)}
.ry-stage.ready canvas{opacity:1}
.ry-fb{position:absolute;left:50%;top:50%;width:auto;height:60%;transform:translate(-50%,-50%);opacity:0}
.ry-stage.fail .ry-fb{opacity:1}
.ry-tx{display:grid;gap:18px;justify-items:start;max-width:580px}
.ry-tx h2{font-size:clamp(30px,3.3vw,50px);line-height:1.25}
.ry-tx p{font-size:var(--body);color:var(--ink-2);max-width:44ch}
.ry-facts{list-style:none;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;width:100%;margin:2px 0 6px}
.ry-facts li{display:grid;gap:2px;align-content:start;padding:16px 16px 14px;border-radius:16px;background:#fff;border:1px solid var(--line);box-shadow:0 14px 30px -22px rgba(11,36,64,.45)}
.ry-facts svg{width:26px;height:26px;color:#0A6FBF;margin-bottom:6px}
.ry-facts b{font-family:'Kufam',sans-serif;font-weight:700;font-size:clamp(14.5px,1.12vw,17px);color:var(--ink);line-height:1.45}
.ry-facts span{font-size:13.5px;color:var(--ink-2);line-height:1.55}
.ry-btn{background:#0A6FBF;border:0;color:#fff;gap:14px;padding-inline:26px 8px;min-height:52px;box-shadow:0 14px 28px -14px rgba(10,111,191,.85)}
.ry-btn i{display:grid;place-items:center;width:36px;height:36px;border-radius:50%;background:#E2550F;color:#fff;transition:transform .35s var(--ease)}
.ry-btn:hover{background:#0B5FA3}
.ry-btn:hover i{transform:translateX(-4px)}

@media (max-width:700px){
  /* proof: the jobs sit low, above the vials (top set by js) */
  .proof .jobs{position:absolute;left:0;right:0;top:10px}
  .c-proof .ch-tx{padding-top:24px}
  /* oils: the 3D rack is the hero; small dots instead of oil buttons (swipe or tap a tube too); short caption; smaller button */
  .c-oils .ch-tx{padding-block:20px 0}
  .c-oils .ch-tx p{display:none}
  .rk-grid{gap:2px}
  .rk-stage::after{background:linear-gradient(180deg,var(--paper) 0,rgba(250,246,238,0) 12%,rgba(250,246,238,0) 88%,var(--paper) 100%),linear-gradient(90deg,var(--paper) 0,rgba(250,246,238,0) 10%,rgba(250,246,238,0) 90%,var(--paper) 100%)}
  .rk-cap{gap:8px}
  .rk-chips{gap:0;order:-1}
  .rk-chips button{position:relative;min-height:28px;width:28px;padding:0;font-size:0;border:0;background:none}
  .rk-chips button::before{content:"";position:absolute;left:50%;top:50%;width:8px;height:8px;margin:-4px 0 0 -4px;border-radius:50%;background:rgba(31,43,94,.22);transition:background .3s,transform .3s}
  .rk-chips button[aria-selected="true"]{background:none}
  .rk-chips button[aria-selected="true"]::before{background:var(--navy);transform:scale(1.3)}
  .rk-tx .rk-line{display:none}
  .rk-name{font-size:20px}
  .rk-cap .btn{min-height:42px;font-size:14px;padding:0 20px}
  /* roaya */
  .c-ry{min-height:0;padding-block:calc(var(--hd) + 14px) calc(100px + env(safe-area-inset-bottom));background:radial-gradient(ellipse 80% 34% at 50% 26%,#F3E7D2 0%,rgba(250,246,238,0) 72%),var(--paper)}
  .ry-grid{grid-template-columns:1fr;gap:8px;justify-items:center;text-align:center}
  .ry-stage{order:-1;height:min(38svh,340px)}
  .ry-tx{justify-items:center;gap:14px}
  .ry-tx h2{font-size:clamp(20px,6vw,25px);white-space:nowrap}
  .ry-facts{gap:8px}
  .ry-facts li{padding:12px 8px;justify-items:center;text-align:center}
  .ry-facts svg{width:22px;height:22px;margin-bottom:2px}
  .ry-facts b{font-size:13.5px}.ry-facts span{font-size:12px;line-height:1.5}
}
.ft-nav a.ft-fb{display:inline-flex;align-items:center;justify-content:center;width:36px;height:36px;border-radius:50%;border:1px solid currentColor;transition:color .3s,background .3s,border-color .3s}.ft-nav a.ft-fb:hover{color:#fff;background:#1877F2;border-color:#1877F2}.ft-nav{align-items:center}

/* ---------- English page (/en/, lang="en" dir="ltr") + the AR / EN switch on both pages (15 Nov) ----------
   Same pictures, same motion; photos are never flipped, so the words keep to the same side of each photo as in Arabic. */
.lang{display:inline-flex;align-items:center;justify-content:center;min-height:40px;min-width:40px;padding:0 6px;text-decoration:none;font-size:14px;font-weight:600;letter-spacing:.04em;color:var(--ink-2);transition:color .35s var(--ease)}
.lang:hover{color:var(--navy)}
.lang[lang="ar"]{font-size:15px;letter-spacing:0}
.hd-in>.lang{margin-inline-start:-6px}
.sheet .lang{align-self:flex-start;min-height:44px;padding:0 16px;border:1px solid var(--line);border-radius:999px;color:var(--ink);font-size:15px}
.ft-lang{display:inline-block;margin-top:6px;color:#B9BFD6;text-decoration:none;font-size:14px;font-weight:600}
.ft-lang:hover{color:#fff}
@media (max-width:960px){.hd-in>.lang{margin-inline-start:auto}.hd-in>.lang~.hd-menu{margin-inline-start:0}}
/* Al Roaya in English: the real mark + the name set in type (its logo files carry Arabic) */
.lk{--lh:30px;display:inline-flex;align-items:center;gap:calc(var(--lh) * .2);height:var(--lh);direction:ltr;white-space:nowrap;color:var(--navy)}
.lk>img{height:100%!important;width:auto!important}
.lk-tx{display:flex;flex-direction:column;justify-content:center;line-height:1}
.hd-ag .lk-tx b,.lk-tx b{font-family:'Alexandria',sans-serif;font-weight:800;font-size:calc(var(--lh) * .4);letter-spacing:.06em;color:inherit}
.hd-ag .lk-tx small,.lk-tx small{margin-top:calc(var(--lh) * .1);font-family:'Readex',sans-serif;font-weight:600;font-size:calc(var(--lh) * .19);letter-spacing:.3em;color:inherit;opacity:.8}
.hd-ag .lk span.lk-tx{font-size:inherit;color:inherit}
.sheet-ag .lk{--lh:34px}
.ft-ag .lk{--lh:44px;color:#fff}
.ft-ag span.lk,.sheet-ag span.lk{font-size:inherit}
.ft-ag .lk-tx small,.ft-ag .lk-tx b{color:#fff}
@media (max-width:700px){.ft-ag .lk{--lh:40px}}
/* English headings: Kufam's Latin letters read odd, so Latin display text uses Alexandria (as on the Al Roaya English page) */
[lang="en"] :is(h1,h2,h3,.sheet nav a,.ea-facts b,.vl b,.jobs b,.el-n,.rt-step figcaption,.why-list b,.tile b,.gmap-go b,.rk-tag,.rk-chips button){font-family:'Alexandria','Readex',sans-serif;font-weight:800;letter-spacing:-.01em}
[lang="en"] h2{font-size:calc(var(--h2) * .9)}
[lang="en"] .op h1{font-size:clamp(34px,3.7vw,60px);line-height:1.18}
[lang="en"] .op-best{padding:.1em .3em .16em}
[lang="en"] .ea-facts b{font-size:clamp(17px,1.45vw,22px)}
/* the opening: the beaker is on the right of the photo, so the words stay on the left */
[dir="ltr"] .op-copy{justify-content:flex-start}
[dir="ltr"] .op-best::before{transform-origin:0 50%}
/* the bag fills the left of the photo: the words and the facts stay in the right half */
[dir="ltr"] .c-earth .ch-tx h2,[dir="ltr"] .c-earth .ch-tx .tx{grid-column:2}
[dir="ltr"] .ea-facts{grid-column:2;padding-inline-end:0;padding-inline-start:clamp(24px,4vw,64px)}
/* the result ruler fills left to right, the limit cap at the right */
[dir="ltr"] .el-fill{transform-origin:0 50%;background:linear-gradient(90deg,var(--gold-l),var(--gold))}
[dir="ltr"] .el-cap{left:auto;right:0}
[dir="ltr"] .el-v{flex-direction:row;justify-content:flex-start}
[dir="ltr"] .accr b{text-align:left}
[dir="ltr"] .duo-slide:not(.is-on){transform:translateX(24px)}
[dir="ltr"] .ry-btn:hover i{transform:translateX(4px)}
[dir="ltr"] .ft-credit{text-align:center}
/* the ending mark in English: no Arabic name under it */
.seal.en .wd2{display:none}
@media (max-width:700px){
  [lang="en"] .op h1{font-size:clamp(28px,7.8vw,36px)}
  [dir="ltr"] .c-earth .ch-tx h2,[dir="ltr"] .c-earth .ch-tx .tx{grid-column:auto}
  [dir="ltr"] .ea-facts{padding:0}
  [lang="en"] .end-in .ctas{flex-direction:column;align-items:stretch}
}
/* English header: words never wrap; it gets crowded sooner than Arabic, so the agent line steps back earlier */
[lang="en"] :is(.hd-nav a,.hd-cta,.hd-ag span){white-space:nowrap}
[lang="en"] .hd-nav{gap:22px}
[lang="en"] .hd-in{gap:22px}
@media (max-width:1400px){[lang="en"] .hd-ag>span:first-child{display:none}[lang="en"] .hd-nav{gap:18px}[lang="en"] .hd-nav a{font-size:14px}}
@media (max-width:1240px){[lang="en"] .hd-ag{display:none}}
[lang="en"] .op-text{max-width:min(620px,42vw)}
[lang="en"] .ry-facts b{font-family:'Alexandria','Readex',sans-serif;font-weight:800}
@media (min-width:701px){[lang="en"] .rk-chips button{padding:0 12px;font-size:14px}}
@media (max-width:700px){
  [lang="en"] .op-text{max-width:none}
  [lang="en"] .ry-tx h2{white-space:normal;max-width:15ch}
}
