/* =====================================================================
   Home hero: Cairo tri-vision billboard  (.bbh)
   + mid-page kinetic headline / particle morph band  (.kx)
   Loaded on the front page only (inc/enqueue.php).
   ===================================================================== */

/* ---------- Hero ---------- */
.bbh{position:relative;background:#2b1f15;isolation:isolate;overflow:hidden}
.bbh__crop{position:relative;height:max(540px,min(56vw,92vh));overflow:hidden}
.bbh__plate{position:absolute;top:0;left:50%;width:max(100%,calc(max(540px,min(56vw,92vh)) * 1.7897));transform:translateX(-50%)}
.bbh__plate picture,.bbh__poster{display:block;width:100%;height:auto;max-width:none}
.bbh__video{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;opacity:0;transition:opacity .6s ease}
.bbh__video.is-ready{opacity:1}
/* dark band under the transparent nav so its white links stay readable */
.bbh__shade{position:absolute;inset:0 0 auto;height:170px;pointer-events:none;background:linear-gradient(180deg,rgba(6,40,30,.62),rgba(6,40,30,0))}

/* billboard face: a 782x570 panel warped onto the photo by JS (matrix3d). 1cqw = 1% of it. */
.bbh__board{position:absolute;left:0;top:0;width:782px;height:570px;transform-origin:0 0;direction:ltr;container-type:inline-size;overflow:hidden;visibility:hidden}
.bbh__board.is-fit{visibility:visible}
.bbh__face{position:absolute;inset:0;display:flex;perspective:1400px;background:#2b241d}
.bbh .slat{flex:1;position:relative;transform-style:preserve-3d;transform:translateZ(calc(var(--r) * -1)) rotateY(calc(var(--k,0) * -120deg));transition:transform 1.05s cubic-bezier(.65,0,.35,1);transition-delay:calc(var(--i) * 38ms)}
.bbh .slat .f{position:absolute;inset:0;overflow:hidden;backface-visibility:hidden;transform:rotateY(calc(var(--fi) * 120deg)) translateZ(var(--r))}
.bbh .slat .f::after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,rgba(0,0,0,.16),transparent 10%,transparent 90%,rgba(0,0,0,.1))}
.bbh .ad{position:absolute;top:0;height:100%;width:calc(var(--n) * 100%);left:calc(var(--i) * -100%);overflow:hidden;font-family:'Cairo','Poppins',system-ui,sans-serif;direction:ltr}
.bbh__light{position:absolute;inset:0;pointer-events:none;mix-blend-mode:soft-light;
  background:
    radial-gradient(18% 22% at 10% 0%,rgba(255,236,200,.35),transparent 70%),
    radial-gradient(18% 22% at 30% 0%,rgba(255,236,200,.3),transparent 70%),
    radial-gradient(18% 22% at 52% 0%,rgba(255,236,200,.3),transparent 70%),
    radial-gradient(18% 22% at 74% 0%,rgba(255,236,200,.3),transparent 70%),
    linear-gradient(100deg,rgba(255,214,160,.30),rgba(255,190,130,.10) 45%,rgba(90,55,30,.30))}
.bbh__light::after{content:"";position:absolute;inset:0;background:linear-gradient(100deg,rgba(240,190,130,.26),rgba(200,140,90,.34));mix-blend-mode:multiply}
.bbh__light::before{content:"";position:absolute;inset:0;background:rgba(255,215,170,.10);mix-blend-mode:screen}

/* image ads: the real campaign artworks, one picture spread across all 24 slats */
.bbh .ad.photo img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;user-select:none;-webkit-user-drag:none}

/* ad faces (style of Rabbit's real campaign billboards) */
.bbh .ad.lime{background:#E0FF17 var(--paper-lime) center/cover;color:var(--forest)}
.bbh .ad.green{background:#063C2D var(--paper-green) center/cover;color:#fff}
.rb-art,.rb-lantern{position:absolute;height:auto;max-width:none}
.rb-lantern{top:0}
.rb-copy{position:absolute;right:5cqw;top:0;bottom:0;width:50cqw;display:flex;flex-direction:column;justify-content:center;align-items:flex-start;gap:1.8cqw;text-align:right;direction:rtl}
.rb-logo{display:flex;align-items:center;gap:1.4cqw;direction:ltr}
.rb-logo img{width:9.5cqw;height:auto}
.rb-logo b{font-family:'Poppins',sans-serif;font-weight:800;font-size:7.8cqw;letter-spacing:-.03em;line-height:1;color:var(--forest)}
.rb-logo sup{font-size:1.7cqw;vertical-align:.4em;margin-left:.3cqw}
.rb-logo.on-green b{color:var(--lime)}
.bbh .rb-h{font-weight:900;font-size:7.4cqw;line-height:1.16;margin:0;color:var(--forest);white-space:nowrap;letter-spacing:0}
.bbh .rb-h.white{color:#fff}
.bbh .rb-h.small{font-size:6.2cqw;line-height:1}
.bbh .rb-sub{font-weight:800;font-size:4.3cqw;margin:-.6cqw 0 0;line-height:1.3}
.rb-tape{display:inline-block;white-space:nowrap;background:var(--forest);color:var(--lime);font-weight:900;font-size:5.8cqw;line-height:1.3;padding:.4cqw 3.6cqw .9cqw;transform:rotate(-2.5deg);margin-top:.6cqw;
  clip-path:polygon(2% 0,30% 3%,62% 0,98% 4%,100% 24%,97% 44%,100% 66%,98% 100%,64% 96%,33% 100%,3% 96%,0 76%,2.5% 52%,0 28%)}
.rb-tape.lime{background:var(--lime);color:var(--forest)}
.rb-pill{display:inline-block;white-space:nowrap;background:var(--forest);color:var(--lime);font-weight:900;font-size:4.8cqw;line-height:1.3;border-radius:2.2cqw;padding:.6cqw 3.2cqw 1cqw;margin-top:.6cqw}
.rb-pill.lime{background:var(--lime);color:var(--forest)}
.rb-rider{position:absolute;left:0;top:0;height:100%;width:54cqw;object-fit:cover;object-position:40% 0;
  -webkit-mask-image:linear-gradient(90deg,#000 55%,transparent 98%);mask-image:linear-gradient(90deg,#000 55%,transparent 98%)}
.rb-copy.plus{top:4.5cqw;bottom:auto;justify-content:flex-start;gap:.6cqw;width:46cqw}
.rb-lockup{width:45cqw;height:auto;margin-right:-1cqw}
.rb-note{position:absolute;left:31cqw;top:27cqw;width:19cqw;padding:2cqw 1.2cqw 2.2cqw;background:var(--lime);color:var(--forest);transform:rotate(-7deg);direction:rtl;
  box-shadow:0 1.2cqw 2cqw rgba(0,0,0,.4);text-align:center;font-weight:900;line-height:1.05;clip-path:polygon(0 3%,100% 0,98% 100%,3% 97%)}
.rb-note b{display:block;font-size:5.8cqw}
.rb-note span{display:block;font-size:2.5cqw;margin-top:.8cqw}
.rb-caution{position:absolute;left:-12cqw;right:-12cqw;bottom:4cqw;transform:rotate(-5deg);background:var(--lime);border-block:.7cqw solid var(--forest);direction:rtl;
  color:var(--forest);font-weight:900;font-size:4.4cqw;white-space:nowrap;padding:.2cqw 0 .7cqw;overflow:hidden;text-align:center;box-shadow:0 .8cqw 1.6cqw rgba(0,0,0,.35)}
.bbh .ad.rb-type{display:flex;flex-direction:column;justify-content:center;align-items:center;padding-bottom:7cqw;direction:rtl}
.bbh .rb-type p{margin:0;font-weight:900;font-size:11cqw;line-height:1.08;color:var(--lime)}
.bbh .rb-type p.o{color:transparent;-webkit-text-stroke:.28cqw var(--lime)}
.rb-logo.corner{position:absolute;left:4.5cqw;bottom:3.2cqw}
.rb-logo.corner img{width:6.6cqw}
.rb-logo.corner b{font-size:5.4cqw}
.rb-type .rb-pill{position:absolute;right:4.5cqw;bottom:3.4cqw}

/* headline over the empty sky (physically right of the billboard in both languages) */
.bbh__head{position:absolute;z-index:3;right:max(var(--gutter),3.5%);top:max(120px,17%);width:min(31%,400px);display:grid;justify-items:end;gap:12px;text-align:right}
.bbh__head .eyebrow-dot{color:var(--forest)}
.bbh__head h1{font-size:clamp(28px,3vw,46px);line-height:1.2;letter-spacing:-.03em;color:var(--forest);text-wrap:balance;margin:0}
html[dir="rtl"] .bbh__head h1{letter-spacing:0;line-height:1.3}
.bbh__hl{background:var(--lime);color:var(--forest);padding:0 .18em .02em;border-radius:.18em;line-height:1;display:inline-block;box-decoration-break:clone;-webkit-box-decoration-break:clone}
.bbh__sub{color:var(--forest);font-weight:600;margin:0;max-width:34ch;text-shadow:0 0 14px rgba(255,226,186,.95),0 0 4px rgba(255,226,186,.9)}

.bbh__road{position:relative;z-index:2;background:var(--forest);display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:14px 24px;padding:16px var(--gutter)}
.bbh__ads{display:flex;flex-wrap:wrap;gap:8px}
.bbh__ads button{font:inherit;font-size:13px;font-weight:600;color:#fff;background:transparent;border:1px solid rgba(255,255,255,.3);border-radius:999px;padding:7px 14px;cursor:pointer;transition:background .2s,color .2s,border-color .2s}
.bbh__ads button:hover{border-color:var(--lime)}
.bbh__ads button.is-on{background:var(--lime);color:var(--forest);border-color:var(--lime)}
.bbh__road .app-row{margin:0}

@media (max-width:920px){
  .bbh__crop{height:auto;aspect-ratio:auto}
  .bbh__crop{height:clamp(300px,78vw,520px)}
  .bbh__plate{width:max(100%,calc(clamp(300px,78vw,520px) * 1.7897))}
  .bbh__shade{height:110px}
  .bbh__head{position:relative;right:auto;top:auto;width:auto;justify-items:start;text-align:start;padding:24px var(--gutter) 22px;background:#EBCB9F}
  .bbh__head h1{font-size:clamp(28px,8vw,40px)}
  .bbh__road{justify-content:center}
  .bbh__ads{justify-content:center}
}

/* ---------- Mid-page: kinetic headline + particle morph ---------- */
.kx{position:relative;background:var(--lime);color:var(--forest);padding-block:clamp(56px,8vw,110px);overflow:hidden}
.kx__grid{display:grid;grid-template-columns:1.3fr .7fr;gap:clamp(20px,4vw,56px);align-items:center}
.kx__copy{display:grid;gap:22px;min-width:0}
.kx__title{font-size:clamp(30px,3.6vw,52px);font-weight:900;line-height:1.02;letter-spacing:-.04em;color:var(--forest);margin:0}
html[dir="rtl"] .kx__title{letter-spacing:0;line-height:1.35}
.kx__slot{display:inline-block;vertical-align:bottom;overflow:hidden;height:1.2em;padding:0 .1em 0 .04em;margin-bottom:-.07em}
html[dir="rtl"] .kx__slot{height:1.55em}
/* the product word: sticker-style outlined type (like the outline lines on Rabbit's real billboards) */
.kx__word{display:inline-block;color:#fff;-webkit-text-stroke:.05em var(--forest);paint-order:stroke fill;letter-spacing:-.005em;text-shadow:.055em .06em 0 var(--forest);padding:0 .02em}
html[dir="rtl"] .kx__word{letter-spacing:0;-webkit-text-stroke-width:.045em}
.kx__line{white-space:nowrap}
.kx__pill{display:inline-flex;vertical-align:.04em;height:.8em;width:1.5em;border-radius:999px;background:#C9DCC9;box-shadow:inset 0 0 0 .05em var(--forest);align-items:center;justify-content:center;margin:0 .08em;overflow:hidden}
.kx__img{height:.6em;width:auto;transition:transform .45s cubic-bezier(.34,1.56,.64,1)}
.kx__img.is-out{transform:scale(0) rotate(-40deg)}
.kx__time{display:inline-block;background:var(--forest);color:var(--lime);padding:0 .22em .04em;border-radius:.2em;transform:rotate(-1.5deg)}
.kx__sub{max-width:44ch;font-size:17px;font-weight:500;margin:0;color:rgba(6,60,45,.88)}
.kx__chips{display:flex;flex-wrap:wrap;gap:8px}
.kx__chips button{font:inherit;font-size:13.5px;font-weight:600;color:var(--forest);background:transparent;border:2px solid var(--forest);border-radius:999px;padding:8px 16px;cursor:pointer;transition:background .2s,color .2s}
.kx__chips button:hover,.kx__chips button.is-on{background:var(--forest);color:var(--lime)}
.kx__chips button:focus,.bbh__ads button:focus{outline:none}
.kx__chips button:focus-visible,.bbh__ads button:focus-visible{outline:3px solid var(--forest);outline-offset:3px}
.kx__stage{position:relative;min-width:0}
.kx__canvas{display:block;width:100%;height:clamp(300px,34vw,480px);touch-action:pan-y}

@media (max-width:920px){
  .kx__grid{grid-template-columns:1fr}
  .kx__title{font-size:clamp(28px,7.6vw,44px)}
  .kx__canvas{height:300px}
}
@media (prefers-reduced-motion:reduce){
  .bbh .slat{transition:none}
  .kx__img{transition:none}
}

/* ---------- Home section polish (scoped: these cards are shared with other pages) ---------- */
/* Facts / stats */
.home-facts .stat-grid{grid-template-columns:repeat(6,minmax(0,1fr));gap:14px}
.home-facts .stat{border:0;border-radius:20px;padding:20px 10px 18px;box-shadow:0 1px 0 rgba(6,60,45,.06),0 14px 30px -20px rgba(6,60,45,.45);transition:transform .25s cubic-bezier(.2,.8,.2,1),box-shadow .25s}
.home-facts .stat:hover{transform:translateY(-4px);box-shadow:0 1px 0 rgba(6,60,45,.06),0 20px 36px -20px rgba(6,60,45,.55)}
.home-facts .stat__ico{display:block;width:34px;height:34px;margin:0 auto 12px}
.home-facts .stat__num{white-space:nowrap;font-size:clamp(22px,2.2vw,30px);letter-spacing:-.02em}
html[dir="rtl"] .home-facts .stat__num{letter-spacing:0}
.home-facts .stat__label{font-size:13px;color:#5c6b63}
.home-facts .press span.logo{opacity:.5;transition:opacity .2s}
.home-facts .press span.logo:hover{opacity:.9}

/* What we deliver */
.home-cats .grid-cats{grid-template-columns:repeat(5,minmax(0,1fr));gap:16px}
.home-cats .cat{position:relative;overflow:hidden;background:#fff;border-radius:22px;padding:26px 14px 22px;box-shadow:0 18px 34px -22px rgba(0,0,0,.7);transition:transform .3s cubic-bezier(.2,.8,.2,1),box-shadow .3s}
.home-cats .cat::before{content:"";position:absolute;left:50%;top:-30%;width:150%;aspect-ratio:1;transform:translateX(-50%);background:radial-gradient(closest-side,rgba(224,255,23,.75),rgba(224,255,23,0));opacity:0;transition:opacity .3s;pointer-events:none}
.home-cats .cat:hover{transform:translateY(-6px);box-shadow:0 26px 40px -22px rgba(0,0,0,.8)}
.home-cats .cat:hover::before{opacity:1}
.home-cats .cat__icon{position:relative;width:80px;height:80px;margin:0 auto;display:grid;place-items:center;border-radius:50%;background:#EEF4E6;font-size:44px}
.home-cats .cat__icon .rb-ico{width:50px;height:50px;vertical-align:0;transition:transform .35s cubic-bezier(.34,1.56,.64,1)}
.home-cats .cat:hover .cat__icon .rb-ico{transform:scale(1.12) rotate(-6deg)}
.home-cats .cat__label{position:relative;font-size:15px;margin-top:14px}

/* Why Rabbit */
.home-why .grid-4{grid-template-columns:repeat(4,minmax(0,1fr));gap:18px}
.home-why .pillar{border:0;border-radius:24px;padding:30px 26px;box-shadow:0 1px 0 rgba(6,60,45,.06),0 18px 36px -24px rgba(6,60,45,.5);transition:transform .3s cubic-bezier(.2,.8,.2,1)}
.home-why .pillar:hover{transform:translateY(-5px)}
.home-why .pillar__icon{width:68px;height:68px;border-radius:20px;background:#F3FFBE;margin-bottom:20px;font-size:36px}
.home-why .pillar__icon .rb-ico{width:42px;height:42px;vertical-align:0}
.home-why .pillar h3{font-size:20px;letter-spacing:-.01em}
.home-why .pillar p{font-size:15.5px;color:#4c5b53;line-height:1.6}

/* Company teaser */
.home-co .co-stats{grid-template-columns:repeat(3,minmax(0,1fr))}
.home-co .co-stat{padding:22px 18px}
.home-co .co-stat__num{font-size:clamp(24px,2.4vw,32px)}
html[dir="rtl"] .home-co .co-stat__num{white-space:nowrap;font-size:clamp(19px,1.9vw,26px)}

/* Careers teaser */
.home-careers .careers-teaser{flex-wrap:nowrap;background:#fff;border-radius:28px;padding:30px 36px;box-shadow:0 22px 44px -28px rgba(6,60,45,.55)}
.home-careers .careers-teaser__badge{flex:none;width:88px;height:88px;border-radius:50%;box-shadow:0 10px 24px -10px rgba(6,60,45,.5);transform:rotate(-8deg)}
.home-careers .careers-teaser__copy{flex:1;min-width:0;max-width:600px}
.home-careers .careers-teaser .btn{flex:none}

@media (max-width:920px){
  .home-facts .stat-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
  .home-cats .grid-cats{grid-template-columns:repeat(3,minmax(0,1fr))}
  .home-why .grid-4{grid-template-columns:repeat(2,minmax(0,1fr))}
  .home-careers .careers-teaser{flex-wrap:wrap;padding:26px 22px}
}
@media (max-width:560px){
  .home-facts .stat-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .home-cats .grid-cats{grid-template-columns:repeat(2,minmax(0,1fr))}
  .home-why .grid-4{grid-template-columns:1fr}
  .home-co .co-stats{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
  .home-co .co-stat{padding:16px 10px}
  .home-careers .careers-teaser{flex-direction:column;align-items:flex-start;gap:18px}
  .home-careers .careers-teaser__badge{width:64px;height:64px}
}
