/* ============================================================
   avilab identity layer — deliberate visual divergence from the
   buffmotion base: Archivo display type, Inter body, indigo accent,
   rounded media, BUCK-style case ordering & credits, distinct footer.
   Additive only — the vendored engine & site.css stay untouched.
   ============================================================ */

/* ---------- fonts (vendored, SIL OFL) ---------- */

:root{
  --av-ink:#0d0f14;
  --av-paper:#f2f3f5;
  --av-accent:#5a5ff0;
  --av-accent-soft:#8a8ff8;
  --av-canvas:#ffffff;
  --av-fg:#0d0f14;
  --av-muted:rgba(13,15,20,.62);
  --av-pill-bg:var(--av-fg);
  --av-pill-fg:var(--av-canvas);
}

.page-wrapper{background:var(--av-paper)}

/* ---------- type identity ---------- */
p,li,a,span,div,button,input,textarea,td,th{font-family:'Inter',system-ui,-apple-system,'Segoe UI',sans-serif !important}
body{font-family:'Inter',system-ui,-apple-system,'Segoe UI',sans-serif !important;background:var(--av-paper)}
.heading-text,h1,h2,h3,h4,.video-card-title,.eyebrow,.sidenav__menu-link-heading{
  font-family:'Archivo','Archivo Narrow',system-ui,sans-serif !important;
  letter-spacing:-.02em;
}
.heading-text em,h1 em,h2 em{color:var(--av-accent);font-style:italic}
::selection{background:var(--av-accent);color:#fff}
.eyebrow{letter-spacing:.14em !important;text-transform:uppercase;font-size:12px !important;font-weight:400;color:var(--av-accent) !important}

/* ---------- buttons: squared-chip instead of pill ---------- */
.button{border-radius:3px !important}
.button .btn-text{font-family:'Archivo',sans-serif !important;text-transform:uppercase;letter-spacing:.12em;font-size:12.5px !important}
[class*="button--"] .u-link-cover + .btn-text,.buff-arrow__button{border-radius:3px !important}
.buff-arrow__text{font-family:'Archivo',sans-serif !important;text-transform:uppercase;letter-spacing:.12em;font-size:12.5px !important}

/* ---------- button system: ink on light / paper on dark / accent in menu ---------- */
.button{background:var(--av-ink) !important;color:#fff !important}
.button:hover{background:var(--av-accent) !important;color:#fff !important}
.u-mode-dark .button,.u-bg-black .button{background:var(--av-paper) !important;color:var(--av-ink) !important}
.u-mode-dark .button:hover,.u-bg-black .button:hover{background:var(--av-accent) !important;color:#fff !important}
.sidenav__menu .button{background:var(--av-accent) !important;color:#fff !important}
.buff-arrow__button{background:var(--av-paper) !important;color:var(--av-ink) !important}
.buff-arrow__button svg path{stroke:currentColor}

/* ---------- nav banner chip ---------- */
.nav-banner__wrapper .nav-banner{border-radius:3px}
.nav-banner .eyebrow{color:inherit !important}
.nav-banner .eyebrow::before{content:'';display:inline-block;width:8px;height:8px;border-radius:50%;background:var(--av-accent);margin-right:10px;vertical-align:1px;animation:avpulse 2.4s ease-in-out infinite}
@keyframes avpulse{0%,100%{opacity:1}50%{opacity:.35}}

/* ---------- media: rounded world (buff is sharp-edged) ---------- */
.video-card-visual,.inline-video-component,.video-embed,.gallery__item .card,.card>img{
  border-radius:4px !important;overflow:hidden;
}
.cs__video-card .video-card-visual img,.cs__video-card .video-card-visual video,
.inline-video_poster,.inline-video_video{transition:transform .8s cubic-bezier(.22,.61,.36,1) !important}
.cs__video-card:hover .video-card-visual img,.cs__video-card:hover .video-card-visual video,
.inline-video-component:hover .inline-video_poster{transform:scale(1.035)}
.hero-featured-cs__item:nth-child(even){padding-top:0 !important} /* drop the buff offset stagger */
.filter-btn{border-radius:3px !important;font-family:'Archivo',sans-serif !important;text-transform:uppercase;letter-spacing:.1em;font-size:11.5px !important}
.filter-btn[data-filter-status="active"]{background:var(--av-accent) !important;border-color:var(--av-accent) !important}

/* ---------- case hero: BUCK header-first, full-bleed video (q34) ---------- */
.av-hero-slot>.av-hero-media{margin:0 calc(50% - 50vw);width:100vw;max-width:100vw}
.av-hero-media .inline-video-component{border-radius:0 !important}

/* ---------- unified surfaces: exactly two papers (light + ink) ---------- */
.section{background-image:none !important}
.section[data-wf--section--settings-theme="secondary"],
.section[data-wf--section--settings-theme="secondary-full-width"],
.section.u-bg-black,.section.u-mode-dark{background-color:var(--av-ink) !important}
.section[data-wf--section--settings-theme="primary-gradient"],
.section[data-wf--section--settings-theme="primary"],
.section:not([data-wf--section--settings-theme]):not(.cc-footer){background-color:var(--av-paper) !important}
.av-hero-sec{background:var(--av-paper) !important}
[id]{scroll-margin-top:110px}

/* ---------- case credits: hairline meta grid (BUCK vibe) ---------- */
.av-credits{display:grid;grid-template-columns:1fr 1fr;gap:0 2.5rem;margin-top:1.2rem;border-top:1px solid rgba(13,15,20,.16)}
.av-credit-row{display:flex;justify-content:space-between;gap:1rem;padding:.72rem 0;border-bottom:1px solid rgba(13,15,20,.12);font-size:15px;line-height:1.5}
.av-credit-label{font-family:'Archivo',sans-serif;text-transform:uppercase;letter-spacing:.1em;font-size:11.5px;color:#6a7080;padding-top:3px;white-space:nowrap}
.av-credit-value{text-align:right;color:var(--av-ink)}
.av-credit-value a{color:inherit;text-decoration:underline;text-decoration-color:var(--av-accent);text-underline-offset:3px}
@media(max-width:767px){.av-credits{grid-template-columns:1fr}.av-credit-value{text-align:left}}

/* ---------- next-project: giant typographic band ---------- */
.section.u-mode-dark:has(.related-blog__component){background:var(--av-ink)}
.related-blog__component{padding:5.5rem 0 6rem}
.related-blog__item{position:relative}
.related-blog__item .cc-featured-blog{
  font-family:'Archivo',sans-serif !important;
  font-size:clamp(2.6rem,6.2vw,5.6rem) !important;line-height:1.02 !important;
  letter-spacing:-.025em;transition:color .35s ease;
}
.related-blog__item:hover .cc-featured-blog{color:var(--av-accent-soft)}
.related-blog__item .cc-subtitle{opacity:.62;font-size:15px !important}
.related-blog__item .buff-arrow__button svg{transition:transform .45s cubic-bezier(.22,.61,.36,1)}
.related-blog__item:hover .buff-arrow__button svg{transform:translateX(10px)}

/* ---------- links & misc ---------- *//* ---------- links & misc ---------- */
a[data-underline-link]{text-decoration-thickness:1px;text-underline-offset:4px;text-decoration-color:rgba(90,95,240,.5)}
.rich-text a,.plain-text a{color:inherit;text-decoration-color:var(--av-accent)}

/* ---------- q33: buck-style work grid (projects) ---------- */
.filter-group{min-height:0 !important}
.filter-group .hero-featured-cs__list > .hero-featured-cs__item[data-filter-status="not-active"]{display:none !important}
.filter-group .hero-featured-cs__list > .hero-featured-cs__item[data-filter-status="transition-out"]{visibility:hidden}
.section:not(.u-mode-dark):not([data-wf--section--settings-theme="secondary"]) .cs__video-card{color:var(--av-ink);background:transparent}
.section:not(.u-mode-dark):not([data-wf--section--settings-theme="secondary"]) .video-card-title.cc-subtitle{color:#6b7080}
.hero-featured-cs__list .video-card-visual.cc-featured{aspect-ratio:3/2}
[data-filter-group] [data-filter-target]{color:var(--av-ink) !important}
[data-filter-group] [data-filter-target]:hover{color:var(--av-accent) !important;border-color:var(--av-accent)}
.filter-btn[data-filter-status="active"]{color:#fff !important}

/* ---------- q34: buck.co case anatomy — canvas color, 2-col header, editorial rows ---------- */
.av-case section.section:not(.cc-footer){background:transparent !important}
.av-case{color:var(--av-fg)}
.av-case :is(h1,h2,h3,h4,.heading-text):not(.cc-footer *){font-family:'DM Sans',system-ui,-apple-system,'Segoe UI',sans-serif !important;font-size:23px !important;line-height:1.4 !important;font-weight:400 !important;letter-spacing:0 !important;text-transform:none !important}
.av-case :is(p,li,.eyebrow,.plain-text):not(.cc-footer *){font-size:24px !important;line-height:1.3 !important;letter-spacing:-.01em !important}
.av-case :is(h1,h2,h3,h4,.heading-text,p,li,.plain-text,.rich-text *):not(a):not(.cc-footer *){color:var(--av-fg)}
.av-case .eyebrow:not(.cc-footer *){color:var(--av-muted) !important;text-transform:none;letter-spacing:.01em !important;font-size:23px !important}
.av-case .av-hero-slot .eyebrow-component{margin-bottom:10px !important}
.av-case .av-hero-slot .heading-component{margin-top:0 !important}
.av-case a:not(.cc-footer *){color:var(--av-fg);text-decoration:underline;text-underline-offset:3px;text-decoration-thickness:1px}
.av-case .button:not(.cc-footer *){background:var(--av-fg) !important;color:var(--av-canvas) !important}
.av-case .button:not(.cc-footer *):hover{background:var(--av-accent) !important;color:#fff !important}
/* buck header columns: label col at 25.4%, text col at 63.5% (536px) */
.av-case .av-hero-slot .row-component:first-child{padding-left:25.4%}
.av-case .av-hero-slot .row-component:first-child .row{display:grid;grid-template-columns:45.3% 1fr;align-items:start;gap:0 24px}
.av-case .av-hero-slot .row-component:first-child .col{width:auto !important;max-width:100% !important;flex:0 0 auto !important}
.av-case .av-hero-slot>.spacer-component{height:26px !important}
/* editorial body rows */
.av-case section.section:has(.heading-component) .row-component:first-child{padding-left:25.4%}
.av-case section.section:has(.heading-component) .row-component:first-child .col{width:auto !important}
.av-case .row-component.top-right-3 .row{display:grid;grid-template-columns:63.5% 1fr}
.av-case .row-component.top-right-3 .col{width:auto !important;max-width:100% !important;flex:0 0 auto !important}
.av-case .rich-text-component:not(.cc-footer *){max-width:536px}
/* raw media on canvas */
.av-case .card{background:transparent !important;box-shadow:none !important;border-radius:0 !important}
.av-case img:not(.cc-footer img){border-radius:0 !important}
/* credits row (label / roles) */
.av-credits-sec .av-cr-row{display:grid;grid-template-columns:34% 1fr;gap:0 24px;padding-left:0;padding-top:5rem;padding-bottom:2.5rem}
.av-cr-label{font-size:23px;line-height:1.4;color:var(--av-muted)}
.av-cr-body .av-cr-line{font-size:23px;line-height:1.55;color:var(--av-fg)}
/* next project: buck white zone */
.av-case section.section.u-mode-dark{background:var(--av-canvas,#fff) !important}
.av-case .section.u-mode-dark :is(h1,h2,h3,h4,.heading-text,p,div,span,a){color:var(--av-fg,#0d0f14) !important}
.av-case .section.u-mode-dark img{width:100%;height:auto;display:block;border-radius:0 !important}
@media(max-width:767px){
  .av-case .av-hero-slot .row-component:first-child,
  .av-case section.section:has(.heading-component) .row-component:first-child{padding-left:0}
  .av-case .av-hero-slot .row-component:first-child .row,
  .av-case .row-component.top-right-3 .row{grid-template-columns:1fr}
  .av-credits-sec .av-cr-row{padding-left:0;grid-template-columns:1fr;gap:14px}
  .av-case :is(h1,h2,h3,h4,p,li,.eyebrow,.plain-text):not(.cc-footer *){font-size:18px !important}
}

/* ---------- q35: buck credits grid + centered next-project with full-bleed image ---------- */
/* credits: role headings with names beneath, multi-column grid */
.av-cr-body{display:grid;grid-template-columns:repeat(auto-fill,minmax(180px,1fr));gap:2.4rem 2rem;align-items:start}
.av-cr-item{break-inside:avoid}
.av-cr-role{font-size:23px;line-height:1.4;color:var(--av-fg)}
.av-cr-name{font-size:23px;line-height:1.4;color:var(--av-muted);margin-top:6px}
.av-cr-name a{color:inherit;text-decoration:underline;text-underline-offset:3px}
/* next project: buck centered composition on white */
.av-case section.section.u-mode-dark hr{display:none}
.av-case section.section.u-mode-dark .related-blog__item{display:flex !important;flex-direction:column;align-items:center}
.av-case section.section.u-mode-dark .related-blog__component,
.av-case section.section.u-mode-dark .related-blog__list,
.av-case section.section.u-mode-dark .related-blog__item,
.av-case section.section.u-mode-dark .u-d-flex.cc-case-study{text-align:center;background:transparent !important}
.av-case section.section.u-mode-dark .u-d-flex.cc-case-study{align-items:center !important}
.av-case section.section.u-mode-dark .cc-case-study .video-card-title{margin-left:auto !important;margin-right:auto !important}
.av-case section.section.u-mode-dark .cc-case-study .u-mt-auto{margin:1.6rem auto 0 !important}
.av-case section.section.u-mode-dark h4.heading-text,
.av-case section.section.u-mode-dark h4.heading-text em{font-size:23px !important;font-style:normal !important;color:#0d0f14 !important;font-weight:500 !important}
.av-case section.section.u-mode-dark .video-card-title.cc-featured-blog{color:#6f7480 !important}
.av-case section.section.u-mode-dark .buff-arrow__button,
.av-case section.section.u-mode-dark .buff-arrow__button svg{color:#f9db60 !important}
.av-case section.section.u-mode-dark .buff-arrow__button svg path{fill:#f9db60 !important}
.av-case section.section.u-mode-dark .video-card-title.cc-featured-blog{font-size:clamp(30px,3.4vw,50px) !important;line-height:1.12 !important;letter-spacing:-.02em !important;color:#0d0f14 !important;font-style:normal !important}
.av-case section.section.u-mode-dark .video-card-title.cc-subtitle.is--related-summary{display:none}
.av-case section.section.u-mode-dark .buff-arrow__button{color:#0d0f14 !important;margin:2.2rem auto 0}
.av-case section.section.u-mode-dark .buff-arrow__button .buff-arrow__text{font-size:16px !important;letter-spacing:normal;text-transform:none}
.av-case section.section.u-mode-dark .video-card-visual{width:100vw;max-width:100vw;margin:2.4rem calc(50% - 50vw) 0}
.av-case section.section.u-mode-dark .video-card-visual img{width:100vw;max-width:100vw;height:auto}
.av-case section.section.u-mode-dark{padding-bottom:0 !important}
.av-case section.section.u-mode-dark .related-blog__component{padding-bottom:0 !important}
@media(max-width:767px){
  .av-cr-body{grid-template-columns:1fr 1fr;gap:1.6rem 1.2rem}
  .av-case :is(.av-cr-role,.av-cr-name){font-size:16px !important}
  .av-case section.section.u-mode-dark .video-card-title.cc-featured-blog{font-size:26px !important}
}

/* ---------- q36: client link in case header (buck comfy.org style) ---------- */
.av-case .av-client-link{display:inline-block;margin-top:36px;font-size:23px;line-height:1.4;color:var(--av-muted);text-decoration:underline;text-underline-offset:4px;text-decoration-thickness:1px;transition:color .3s ease}
.av-case .av-client-link:hover{color:var(--av-accent)}
@media(max-width:767px){.av-case .av-client-link{font-size:16px !important;margin-top:22px}}

/* ---------- q38: buck end-order (Next Project -> footer) + no external forms ---------- */
/* q67: av-case CTA no longer hidden — replaced by RF statement band below */


/* ============ q42: Next Project — نسخ حي حرفي من buck.co (Chakra redesign) ============
   مرجع القياس @1560×883: نص عند x=792 (50.77%) عرض 722 (46.28%)، هامش علوي 139px،
   العنوان 36.3px/50.8 fw700 أسود، اسم التالي 36.3px fw400 رمادي (opacity .5) + سهم،
   فجوة نص→صورة 139px، صورة عرض 1467 (100%-93px) متمركزة، مرئي 489px = 55.4vh مقصوص. */
.av-case section.section.u-mode-dark{padding:0 !important}
.av-case section.section.u-mode-dark hr{display:none !important}
.av-case section.section.u-mode-dark .container{max-width:none !important; padding:0 !important; margin:0 !important}
.av-case section.section.u-mode-dark .row,
.av-case section.section.u-mode-dark .col{display:contents !important}
.av-case section.section.u-mode-dark .related-blog__component,
.av-case section.section.u-mode-dark .related-blog__wrapper,
.av-case section.section.u-mode-dark .related-blog__list{display:block !important; padding:0 !important; margin:0 !important; width:auto !important}
.av-case section.section.u-mode-dark .related-blog__item{display:block !important; padding:0 !important; margin:0 !important; width:auto !important}
/* كتلة النص: يبدأ عند مركز الصفحة */
.av-case section.section.u-mode-dark .heading-component{width:46.28% !important; margin:139px 0 0 50.77% !important; text-align:left !important}
.av-case section.section.u-mode-dark .heading-component .heading-text{font-size:36.3px !important; line-height:50.8px !important; font-weight:700 !important; font-style:normal !important; color:#000 !important; margin:0 !important; letter-spacing:0 !important}
.av-case section.section.u-mode-dark .heading-component .heading-text em{font-style:normal !important}
.av-case section.section.u-mode-dark .u-d-flex.cc-case-study{display:block !important; width:46.28% !important; margin:0 0 0 50.77% !important; padding:0 !important}
.av-case section.section.u-mode-dark .video-card-title.cc-featured-blog{font-size:36.3px !important; line-height:50.8px !important; font-weight:400 !important; color:#000 !important; opacity:.5 !important; text-align:left !important; margin:0 !important; max-width:none !important}
.av-case section.section.u-mode-dark .video-card-title.cc-featured-blog::after{content:" \2192"}
/* buck بلا ملخص وبلا زر */
.av-case section.section.u-mode-dark .video-card-title.cc-subtitle.is--related-summary{display:none !important}
.av-case section.section.u-mode-dark .u-d-flex .u-mt-auto{display:none !important}
/* الصورة: 94% متمركزة، مقصوصة عند 55.4vh كما في buck (main overflow:hidden) */
.av-case section.section.u-mode-dark .video-card-visual{width:calc(100% - 93px) !important; margin:139px auto 0 !important; height:55.4vh !important; overflow:hidden !important; padding:0 !important}
.av-case section.section.u-mode-dark .video-card-visual .video-card-visual__img,
.av-case section.section.u-mode-dark .video-card-visual img{width:100% !important; height:auto !important; max-height:none !important; object-fit:unset !important; border-radius:0 !important}
@media(max-width:767px){
  .av-case section.section.u-mode-dark .heading-component{width:auto !important; margin:64px 16px 0 !important}
  .av-case section.section.u-mode-dark .heading-component .heading-text{font-size:22px !important; line-height:31px !important}
  .av-case section.section.u-mode-dark .u-d-flex.cc-case-study{width:auto !important; margin:0 16px !important}
  .av-case section.section.u-mode-dark .video-card-title.cc-featured-blog{font-size:22px !important; line-height:31px !important}
  .av-case section.section.u-mode-dark .video-card-visual{width:calc(100% - 32px) !important; margin:48px auto 0 !important; height:46vh !important}
}
.av-case section.section.u-mode-dark .heading-component,
.av-case section.section.u-mode-dark .u-d-flex.cc-case-study,
.av-case section.section.u-mode-dark .video-card-visual,
.av-case section.section.u-mode-dark .heading-component .heading-text,
.av-case section.section.u-mode-dark .video-card-visual img,
.av-case section.section.u-mode-dark .video-card-visual video{opacity:1 !important; visibility:visible !important; transform:none !important}
.av-case section.section.u-mode-dark .video-card-title.cc-featured-blog{opacity:.5 !important; visibility:visible !important; transform:none !important}
.av-case section.section.u-mode-dark{background:var(--av-canvas,#fff) !important}
.av-case section.section.u-mode-dark .text-block-5{display:none !important}
/* ==== نهاية q42 ==== */


/* ============ q43: توحيد الكانفس — لا خلفيات ذاتية داخل صفحات الأعمال ============
   كانفس الصفحة (‎--av-canvas‎) يجب أن يظهر في كل مكان؛ الأقسام الموسومة
   (secondary أسود / w-variant كريمي وتدرج / u-bg-black) كانت تفرض خلفيات
   خاصة فتختفي النصوص البيانية. كل قسم شفاف على الكانفس بنص ‎--av-fg‎،
   ما عدا قسم Next (أبيض بنص أسود كما buck). */
.av-case section.section{background:transparent !important; background-image:none !important; color:var(--av-fg) !important}
.av-case section.section.u-mode-dark{background:var(--av-canvas,#fff) !important; color:var(--av-fg,#000) !important}
.av-case .video-card-visual{background:transparent !important}
body:has(.page-main.av-case){background:var(--av-canvas,#f2f3f5) !important}
/* ==== نهاية q43 ==== */


/* ============ q46: نظام أزرار buff الأصلي — قياس حي من buffmotion.com ============
   اللوحة الأصلية (من site.css الموروث + القياس الحي): أزرق ‎#7195ff، أصفر
   ‎#f9db60‎، حبر ‎#151515‎، كريمي ‎#f2ece7‎. الحبة: radius 160px، حشوة
   12×20، خط 16px/400 بسطر 1.3 (الارتفاع ≈56px). روابط السهم: شفافة بنص
   كريمي وسهم أزرق 16px (على الداكن) — وفي سياق صفحات الأعمال السهم أصفر.
   (زر «Stay in the loop» و«Let's chat!» لا يوجدان في موقعنا فلا يُضافان). */
.button{background:#7195ff !important; color:#151515 !important; border-radius:16px !important; min-height:56px !important; padding:12px 20px !important; font-size:16px !important; font-weight:400 !important; line-height:1.3 !important; text-decoration:none !important; border:none !important}
.button:hover{opacity:.92 !important}
.u-mode-dark .button, .u-bg-black .button{background:#7195ff !important; color:#151515 !important}
/* داخل صفحات الأعمال: الحبة الصفراء (دور Let's chat!) */
.av-case .button:not(.cc-footer *){background:#f9db60 !important; color:#151515 !important; border-radius:16px !important; min-height:56px !important; padding:12px 20px !important; font-size:16px !important; font-weight:400 !important; line-height:1.3 !important}
.av-case .button:not(.cc-footer *):hover{background:#f9db60 !important; color:#151515 !important; opacity:.92 !important}
/* روابط السهم: شفافة، نص كريمي، سهم أزرق — وفي صفحات الأعمال سهم أصفر */
.buff-arrow__button{background:transparent !important; color:#f2ece7 !important}
.buff-arrow__button:hover{background:transparent !important; opacity:.85 !important}
.buff-arrow__button .buff-arrow__arrow{color:#7195ff !important}
.av-case .buff-arrow__button .buff-arrow__arrow{color:#f9db60 !important}
.buff-arrow__text{text-transform:none !important; letter-spacing:normal !important; font-size:16px !important; font-weight:400 !important; font-family:inherit !important}
.button .btn-text{text-transform:none !important; letter-spacing:normal !important; font-size:16px !important; font-weight:400 !important; font-family:inherit !important}
/* ==== نهاية q46 ==== */


/* ============ q51: شفافية كاملة لطبقات بطاقات الأعمال — منع أي سطح داكن عابر ============
   المستخدم يرى مستطيلًا داكنًا خفيفًا خلف بطاقات المشاريع (يظهر/يختفي مع
   الوقوف). المصدر المرجح: سطح <video> يرسم أسود قبل جهوز الإطار الأول
   (readyState 0) وأي خلفيات انتقالية للمغلفات. فرض شفافية قاطعة على كل
   الطبقات: العنصر، بطاقة الفيديو، الحاوية، وعنصر الفيديو نفسه (يبقى
   المحتوى المرئي: الصورة/الفيديو بحجم cover كما هو). */
.hero-featured-cs__item,
.hero-featured-cs__item.w-dyn-item,
.projects-grid .w-dyn-item,
.cs__video-card,
.cs__video-card .card,
.hero-featured-cs__item .card,
.cs__video-card .video-card-visual{background:transparent !important; background-color:transparent !important; box-shadow:none !important}
.cs__video-card .video-card-visual__video{background:transparent !important}
.hero-featured-cs__item .u-link-cover{background:transparent !important}
/* ==== نهاية q51 ==== */

/* ============================================================
   q53 — Homepage reshaped after robot-food.com (homepage ONLY)
   Banner (pure video) → centered statement → Featured Work
   (heading + 3 cards) → CTA band. Red-marked RF blocks excluded.
   Identity kept: Inter/Archivo, blue #7195ff, ink #101014.
   ============================================================ */

/* ---------- 1) Banner: hero = full-bleed video, no big heading ---------- */
[data-barba-namespace="Home"], body.q53 main, body.q53 .page-main{padding-top:0 !important;}
[data-barba-namespace="Home"] [class*="w-variant-6ba26e3a"]{padding-top:0 !important; padding-bottom:0 !important; margin-top:0 !important;}
[data-barba-namespace="Home"] [class*="w-variant-6ba26e3a"] > .container{max-width:none; width:100%; padding-left:0; padding-right:0;}
[class*="w-variant-c40c2b54"],
[data-barba-namespace="Home"] [class*="w-variant-c40c2b54"],
[data-barba-namespace="Home"] [class*="w-variant-6ba26e3a"] [class*="w-variant-c40c2b54"]{display:none !important; visibility:hidden !important; opacity:0 !important; pointer-events:none !important;}
[data-barba-namespace="Home"] [class*="w-variant-6ba26e3a"] [data-lottie-only="true"]{display:none !important;}
[data-barba-namespace="Home"] [class*="w-variant-6ba26e3a"] .spacer-component{display:none !important;}
[data-barba-namespace="Home"] [class*="w-variant-6ba26e3a"] .card,
[data-barba-namespace="Home"] [class*="w-variant-6ba26e3a"] .cc-card{border-radius:0 !important; overflow:hidden;}
[data-barba-namespace="Home"] [class*="w-variant-6ba26e3a"] video{width:100% !important; height:92vh !important; aspect-ratio:auto !important; object-fit:cover; display:block;}

/* nav banner + sidenav overlay the banner (RF: absolute header over hero) */
body.q53 .nav-banner__wrapper{position:absolute; top:0; left:0; right:0; z-index:80;}
body.q53 .sidenav{position:absolute; top:60px; left:0; right:0; z-index:79;}

/* ---------- 2) Intro statement (RF c-large-text analog) ---------- */
[data-barba-namespace="Home"] .q53-intro{padding-top:150px; padding-bottom:150px;}
[data-barba-namespace="Home"] .q53-statement-wrap{display:block; width:100%;}
[data-barba-namespace="Home"] .q53-statement{
  max-width:900px; margin:0 auto; text-align:center;
  font-size:clamp(26px, 2.7vw, 42px); line-height:1.16; font-weight:400;
  letter-spacing:-0.2px; color:var(--_color---neutral--black, #101014);
}
[data-barba-namespace="Home"] .q53-box{
  display:inline-block; border:1.5px solid currentColor; border-radius:.1em;
  padding:.02em .3em; line-height:1.12;
}
[data-barba-namespace="Home"] .q53-serif{font-family:'Archivo', sans-serif; font-style:italic; font-weight:400;}

/* ---------- 3) Featured Work: light bg + heading row + 3 cards ---------- */
[data-barba-namespace="Home"] section[style*="neutral--black"]{background:#ffffff !important;}
[data-barba-namespace="Home"] section[style*="neutral--black"] .cs__video-card,
[data-barba-namespace="Home"] section[style*="neutral--black"] .cs__video-card *{color:var(--_color---neutral--black, #101014);}
[data-barba-namespace="Home"] section[style*="neutral--black"] .buff-arrow{color:var(--_color---neutral--black, #101014);}
[data-barba-namespace="Home"] .q53-workhead{
  display:flex; align-items:center; justify-content:space-between;
  margin-bottom:36px; width:100%;
}
[data-barba-namespace="Home"] .q53-worktitle{
  font-size:clamp(32px, 3.2vw, 50px); font-weight:400; letter-spacing:-0.5px;
  line-height:1.15; margin:0; color:var(--_color---neutral--black, #101014);
}
[data-barba-namespace="Home"] .q53-pill{
  display:inline-block; border:1px solid var(--_color---neutral--black, #101014);
  border-radius:1000px; padding:6px 16px; font-size:13px; font-weight:500;
  letter-spacing:.02em; color:var(--_color---neutral--black, #101014);
  text-decoration:none; transition:background .25s ease, color .25s ease; white-space:nowrap;
}
[data-barba-namespace="Home"] .q53-pill:hover{background:var(--_color---neutral--black, #101014); color:#fff;}
[data-barba-namespace="Home"] .hero-featured-cs__list{display:grid !important; grid-template-columns:repeat(3, 1fr); gap:24px;}
/* [data-barba-namespace="Home"] .hero-featured-cs__item:nth-child(4){display:none;} */
[data-barba-namespace="Home"] .hero-featured-cs__item .video-card-visual{aspect-ratio:1.6 / 1; border-radius:0; overflow:hidden;}
[data-barba-namespace="Home"] .hero-featured-cs__item .video-card-visual__img{width:100%; height:100%; object-fit:cover;}
[data-barba-namespace="Home"] .hero-featured-cs__item .video-card-title{font-size:22px;}
[data-barba-namespace="Home"] .hero-featured-cs__item .video-card-title.cc-subtitle{color:#6b6f76; font-size:14px;}

/* ---------- 4) CTA: full-bleed tinted band, centered, ink pill ---------- */
[data-barba-namespace="Home"] section.u-overflow-hidden{
  background:#e9efff !important;
  border-radius:8px 8px 0 0;
  overflow:hidden;
}
[data-barba-namespace="Home"] section.u-overflow-hidden [data-lottie-only="true"]{display:none;}
[data-barba-namespace="Home"] section.u-overflow-hidden .row{justify-content:center !important;}
[data-barba-namespace="Home"] section.u-overflow-hidden .col{width:100% !important; max-width:900px; flex:0 0 auto; text-align:center;}
[data-barba-namespace="Home"] section.u-overflow-hidden .heading-text{font-size:clamp(40px, 4.2vw, 64px); line-height:1.1; letter-spacing:-1px;}
[data-barba-namespace="Home"] section.u-overflow-hidden .button{
  background:var(--_color---neutral--black, #101014) !important;
  color:#fff !important; border-radius:1000px !important; padding:16px 34px !important;
  border:none !important;
}
[data-barba-namespace="Home"] section.u-overflow-hidden .button .btn-text{color:#fff !important;}
[data-barba-namespace="Home"] section.u-overflow-hidden .modal-component{text-align:center;}

/* ---------- 5) Responsive ---------- */
@media (max-width:991px){
  [data-barba-namespace="Home"] .hero-featured-cs__list{grid-template-columns:repeat(2, 1fr);}
  [data-barba-namespace="Home"] [class*="w-variant-6ba26e3a"] video{height:72vh;}
}
@media (max-width:767px){
  [data-barba-namespace="Home"] .q53-intro{padding-top:90px; padding-bottom:90px;}
  [data-barba-namespace="Home"] .q53-statement{font-size:26px;}
  [data-barba-namespace="Home"] .hero-featured-cs__list{grid-template-columns:1fr; gap:32px;}
  [data-barba-namespace="Home"] .q53-workhead{flex-direction:column; align-items:flex-start; gap:14px; margin-bottom:26px;}
  [data-barba-namespace="Home"] [class*="w-variant-6ba26e3a"] video{height:64vh;}
  [data-barba-namespace="Home"] section.u-overflow-hidden .heading-text{font-size:40px;}
}

/* ============================================================
   q54 — Footer rebuilt after robot-food.com (GLOBAL shared component)
   Black footer · giant brand mark cropped bottom-left · the About
   line promoted to a display statement · columns right · legal bar.
   Content untouched (email + socials only, no forms). Reversible:
   remove this block.
   ============================================================ */
.section.cc-footer{
  background:var(--_color---neutral--black, #101014) !important;
  color:#f2ece7;
  padding-top:84px !important;
  padding-bottom:36px !important;
  overflow:hidden;
}

/* giant A mark: pin bottom-left, cropped like RF's circle */
.cc-footer .footer__logo{
  width:460px !important; height:460px !important;
  left:-50px !important; right:auto !important;
  top:auto !important; bottom:-80px !important;
}
.cc-footer .footer__logo .avilab-logo{width:100% !important; height:100% !important;}

/* About block: label + display statement (the descriptive line IS our motto) */
.cc-footer .col-lg-9 .newsletter__heading{
  font-size:13px; font-weight:500; letter-spacing:.09em;
  text-transform:uppercase; color:#8f959d; margin-bottom:14px;
}
.cc-footer .col-lg-9 .plain-text{
  font-size:clamp(27px, 2.6vw, 40px); line-height:1.18; letter-spacing:-0.4px;
  font-weight:400; color:#f2ece7; max-width:840px;
}

/* push the columns block to the right half (RF pattern) */
.cc-footer .container > .col.col-lg-6{margin-left:auto;}
.cc-footer .col-lg-6 .newsletter__heading{
  font-size:13px; font-weight:500; letter-spacing:.09em;
  text-transform:uppercase; color:#8f959d; margin-bottom:12px;
}
.cc-footer .footer-link{color:#f2ece7 !important; font-size:18px;}
.cc-footer .footer-link br + *{color:#f2ece7;}

/* socials: dark embedded icons → invert for black bg */
.cc-footer .sidenav__menu-socials-link img{filter:invert(1);}
.cc-footer .sidenav__menu-socials-link img[src*="image/png"]{filter:invert(1) grayscale(1) brightness(1.5);}
.cc-footer .sidenav__menu-socials-item:last-child .sidenav__menu-socials-link{font-size:0;}

/* legal bar */
.cc-footer .footer__b-corp .avilab-logo{color:#f2ece7;}
.cc-footer .paragraph-sm{color:#9aa0a8 !important;}
.cc-footer .paragraph-sm.is--policies{color:#f2ece7 !important;}

/* q54 homepage completion: drop the redundant portfolio arrow (pill carries the CTA) */
[data-barba-namespace="Home"] section[class*="ffdae436"] .buff-arrow{display:none;}

/* q54: compress the footer's large spacers for RF's tighter vertical rhythm */
.cc-footer .spacer-component[class*="aea45f07"]{height:34px !important;}

/* ============================================================
   q57 — review corrections vs live RF measurement
   a) Nav = white strip BELOW the banner (RF: header sticky in
      flow after hero, scrolls away — no fixed bar). q55 reverted.
   b) Banner height: q57 100vh → q79 50vw → q81 calc(100vh - strip)
      (video near-full in the first screen, header band flush bottom).
   c) Featured cards: UNIFORM ar 1.6 (q77 — the old 1.25
      first-card stagger removed at the user's request).
   ============================================================ */
/* q81 (supersedes the q79 2:1 — user pointed at the LIVE RF homepage):
   banner = 100vh minus the header strip -> the video fills the first
   screen (near-full, flexibly per viewport, object-fit cover) and the
   white header band is the LAST thing on screen, its bottom edge flush
   with the viewport bottom on load. Content starts exactly one fold down. */
body.q53{--q53-bannerH:calc(100vh - var(--q53-stripH)); --q53-stripH:100px;}
[data-barba-namespace="Home"] [class*="w-variant-6ba26e3a"] video{height:var(--q53-bannerH) !important;}
body.q53 .sidenav{
  position:absolute; top:var(--q53-bannerH); left:0; right:0;
  background:#ffffff; z-index:60; box-shadow:0 1px 0 rgba(16,16,20,.06);
}
[data-barba-namespace="Home"] .q53-intro{margin-top:var(--q53-stripH);}
/* q77: first-card ar-1.25 override REMOVED — all featured cards uniform 1.6 */
@media (max-width:991px){
  body.q53{--q53-bannerH:calc(100vh - var(--q53-stripH)); --q53-stripH:100px;} /* q81: near-full screen + header flush bottom */
}
@media (max-width:767px){
  body.q53{--q53-bannerH:calc(100vh - var(--q53-stripH)); --q53-stripH:78px;} /* q81: near-full screen + header flush bottom */
}

/* ============================================================
   q56 (restored after q55 revert) — homepage nav rebuilt after
   robot-food.com: announcement pill + cream arrow hidden;
   inline RF nav (logo left · links center · dark "Say hi." pill).
   Homepage only (.cc-rf-nav exists only in index.html).
   ============================================================ */
body.q53 .nav-banner__wrapper{display:none;}
body.q53 .sidenav__button{display:none;}
body.q53 .cc-nav{display:flex; align-items:center; min-height:100px;}
body.q53 .cc-rf-nav{display:flex; align-items:center; gap:56px; margin:0 auto;}
body.q53 .cc-rf-nav__link{
  color:var(--_color---neutral--black, #101014); text-decoration:none;
  font-size:15.5px; font-weight:500; letter-spacing:.01em;
  transition:opacity .3s ease;
}
body.q53 .cc-rf-nav__link:hover{opacity:.55;}
body.q53 .cc-rf-nav__pill{
  margin-left:14px; background:var(--_color---neutral--black, #101014); color:#fff;
  text-decoration:none; font-size:15px; font-weight:500;
  border-radius:1000px; padding:11px 24px; transition:opacity .3s ease;
}
body.q53 .cc-rf-nav__pill:hover{opacity:.82;}
@media (max-width:767px){
  body.q53 .cc-nav{min-height:78px;}
  body.q53 .cc-rf-nav{gap:22px;}
  body.q53 .cc-rf-nav__pill{padding:9px 18px; margin-left:4px;}
}
body.q53 .sidenav .cc-nav{padding-top:0; padding-bottom:0;}
body.q53 .sidenav .container{padding-top:0; padding-bottom:0;}
/* q57: the strip is the only nav surface on the homepage — keep its
   logo/socials visible (the stock scroll interaction hides them) */
body.q53 .sidenav .avilab-logo,
body.q53 .sidenav [data-sidenav-fade]{visibility:visible !important; opacity:1 !important;}
body.q53 .sidenav .sidenav__header{padding:0;}
body.q53 .sidenav .nav-logo_link{visibility:visible !important; opacity:1 !important;}

/* ============================================================
   q58 — RF scroll mechanics (measured live):
   · hero video = pinned background (RF: c-showreel sticky 100vh);
     the strip + every section after slide OVER it.
   · white nav strip: sticky top:0 (rides up, pins) — then hides
     on scroll down / shows on scroll up via translateY (RF header:
     translateY(-92) down, 0 up, smooth).
   JS sidecar in js/identity.js (q58 IIFE). Homepage only (body.q53).
   ============================================================ */
[data-barba-namespace="Home"] [class*="w-variant-6ba26e3a"] video{
  position:fixed !important; top:0 !important; left:0 !important;
  width:100vw !important; height:var(--q53-bannerH) !important;
  object-fit:cover; z-index:0;
}
/* opaque positioned layers that slide over the pinned video */
[data-barba-namespace="Home"] .q53-intro{position:relative; z-index:1; background:#fff; margin-top:0;}
[data-barba-namespace="Home"] section[class*="ffdae436"]{position:relative; z-index:1;}
[data-barba-namespace="Home"] section.u-overflow-hidden{position:relative; z-index:1;}
/* strip: sticky + direction hide/show */
body.q53 .sidenav{position:sticky; top:0; transition:transform .5s cubic-bezier(.45,0,.2,1), box-shadow .35s ease;}
body.q53 .sidenav.nav-hidden{transform:translateY(-100%);}
/* q58 fix: video is out of flow (fixed) — the banner section becomes a pure spacer */
[data-barba-namespace="Home"] [class*="w-variant-6ba26e3a"]{height:var(--q53-bannerH); min-height:var(--q53-bannerH);}

/* ============================================================
   q58-fix — review fixes
   a) the portfolio arrow's real class is .buff-arrow__button
      (the old .buff-arrow rule never matched) — hide it here.
   b) captions bottom-aligned across the staggered cards
      (RF reference: media tops equal, caption baselines equal).
   ============================================================ */
[data-barba-namespace="Home"] section[class*="ffdae436"] .buff-arrow__button{display:none;}
[data-barba-namespace="Home"] .hero-featured-cs__item,
[data-barba-namespace="Home"] .hero-featured-cs__item .cs__video-card{display:flex; flex-direction:column;}
[data-barba-namespace="Home"] .hero-featured-cs__item .cs__video-card .u-d-flex{margin-top:auto;}
[data-barba-namespace="Home"] .hero-featured-cs__item .cs__video-card{flex:1 1 auto;}
[data-barba-namespace="Home"] .hero-featured-cs__item .u-d-flex{margin-top:auto;}
/* q58-fix b): the stock "Sidenav (wipe-effect)" embed sets
   pointer-events:none on .sidenav__header — the original logo/button
   re-enable it for themselves; our new RF nav links must too. */
body.q53 .cc-rf-nav, body.q53 .cc-rf-nav__link, body.q53 .cc-rf-nav__pill{pointer-events:auto;}

/* ============================================================
   q61 — FIX: the video's ancestor column carries the stock
   z-index:10, which lifted the whole fixed-video stacking context
   ABOVE the page sections (video covered the page; only the z:60
   strip stayed visible). Replace fixed-video with RF's real
   mechanism: the hero section itself is sticky 100vh and the
   video is absolute inside it — the hero's own stacking context
   sits at level 0, every section after paints at level 1, so the
   page ALWAYS slides over the video, unconditionally.
   ============================================================ */
[data-barba-namespace="Home"] [class*="w-variant-6ba26e3a"] video{
  position:absolute !important; top:0 !important; left:0 !important;
  width:100% !important; height:100% !important; z-index:auto !important;
}
[data-barba-namespace="Home"] [class*="w-variant-6ba26e3a"]{
  position:sticky !important; top:0;
  height:var(--q53-bannerH); min-height:var(--q53-bannerH);
  overflow:hidden;
}
/* q61 addendum: the video's positioned ancestor (.card) can collapse —
   size the video explicitly from the banner variable instead of 100% */
[data-barba-namespace="Home"] [class*="w-variant-6ba26e3a"] video{
  height:var(--q53-bannerH) !important;
}

/* ============================================================
   q62 — FIX: the video's containing block (.card, h=0, overflow:hidden)
   clipped the absolute video to NOTHING (blank banner in real browsers).
   Make the whole wrapper chain static so the sticky SECTION becomes the
   containing block — the video then fills the hero and escapes the
   collapsed card's clip (absolute CB outside the clipper = no clip).
   ============================================================ */
[data-barba-namespace="Home"] [class*="w-variant-6ba26e3a"] .card,
[data-barba-namespace="Home"] [class*="w-variant-6ba26e3a"] .slot.cc-card{position:static !important; z-index:auto !important; overflow:visible;}
[data-barba-namespace="Home"] [class*="w-variant-6ba26e3a"] [class*="w-variant-c2470e99"]{position:static !important; z-index:auto !important;}

/* ============================================================
   q63 — projects.html rebuilt after robot-food.com/work
   (body.rfw on projects.html ONLY)
   · work-first header: compact title block, grid starts early
   · 2-col grid, RF stagger: singles alternate (right / left / right)
   · media ar 1.6 · captions 31px title + 20px client
   · scroll reveal: cards fade/slide in (RF opacity-0 pattern),
     progressive — hidden state applied by JS only
   ============================================================ */
.rfw-head,[data-barba-namespace="Projects"] .rfw-head,body.rfw .rfw-head{padding-top:64px !important; padding-bottom:48px !important; background-color:var(--av-paper, #ffffff) !important; position:relative; z-index:10;}
.rfw-head h1.heading-text,[data-barba-namespace="Projects"] .rfw-head h1.heading-text,body.rfw .rfw-head h1.heading-text{font-size:clamp(40px, 4.23vw, 72px) !important; line-height:1.15 !important; letter-spacing:-1.5px !important; color:#000 !important;}
body.rfw .rfw-head .paragraph-lg{font-size:20px !important; max-width:720px;}
body.rfw .hero-featured-cs__list{gap:64px 60px;}
body.rfw .hero-featured-cs__item:nth-child(1){grid-column:2;}
body.rfw .hero-featured-cs__item:nth-child(4){grid-column:1;}
body.rfw .hero-featured-cs__item:nth-child(5){grid-column:1;}
body.rfw .hero-featured-cs__item:nth-child(7){grid-column:2;}
body.rfw .hero-featured-cs__item .video-card-visual{aspect-ratio:1.6 / 1; margin-bottom:24px;}
body.rfw .hero-featured-cs__item .video-card-title{font-size:31px; letter-spacing:-0.3px;}
body.rfw .hero-featured-cs__item .video-card-title.cc-subtitle{font-size:20px; color:#45484d;}
/* reveal (JS adds .rfw-in when intersecting) */
body.rfw .hero-featured-cs__item.rfw-hide{opacity:0; transform:translateY(16px);}
/* q83: transition only on the IN state — hiding (rfw-hide) must be
   instant (the container insert already computed a visible style, so a
   global transition made cards fade DOWN before rising = a dip). */
body.rfw .hero-featured-cs__item.rfw-in{transition:opacity 1.8s ease, transform 1.8s cubic-bezier(.22,.61,.36,1);} /* q83c: doubled */
/* q63: compress the header's internal spacers (work-first feel) */
body.rfw .rfw-head .spacer-component{height:26px !important;}
body.rfw .rfw-head .paragraph-lg.u-mb-0{margin-bottom:0;}
/* q63 fixes: header inner section padding + mobile single column */
.rfw-head .section,[data-barba-namespace="Projects"] .rfw-head .section,body.rfw .rfw-head .section{padding-top:22px !important; padding-bottom:12px !important;}
@media (max-width:767px){
  body.rfw .hero-featured-cs__list{grid-template-columns:1fr !important; gap:44px;}
  body.rfw .hero-featured-cs__item:nth-child(1),
  body.rfw .hero-featured-cs__item:nth-child(4),
  body.rfw .hero-featured-cs__item:nth-child(5),
  body.rfw .hero-featured-cs__item:nth-child(7){grid-column:auto;}
}
/* q63 fix: the revealed state must actually override the hidden one */
body.rfw .hero-featured-cs__item.rfw-in{opacity:1; transform:none;}

/* ============================================================
   q64 — projects.html (body.rfw): CTA = RF tinted band (same
   component as the homepage q53 band). Full-bleed light tint,
   rounded top corners, centered heading, dark pill. Content
   untouched. Reversible: remove this block.
   ============================================================ */
body.rfw section.u-overflow-hidden{
  background:#e9efff !important;
  border-radius:8px 8px 0 0;
  overflow:hidden;
}
body.rfw section.u-overflow-hidden [data-lottie-only="true"]{display:none;}
body.rfw section.u-overflow-hidden .row{justify-content:center !important;}
body.rfw section.u-overflow-hidden .col{width:100% !important; max-width:900px; flex:0 0 auto; text-align:center;}
body.rfw section.u-overflow-hidden .heading-text{font-size:clamp(40px, 4.2vw, 64px); line-height:1.1; letter-spacing:-1px;}
body.rfw section.u-overflow-hidden .button{
  background:var(--_color---neutral--black, #101014) !important;
  color:#fff !important; border-radius:1000px !important; padding:16px 34px !important;
  border:none !important;
}
body.rfw section.u-overflow-hidden .button .btn-text{color:#fff !important;}
body.rfw section.u-overflow-hidden .modal-component{text-align:center;}
@media (max-width:767px){
  body.rfw section.u-overflow-hidden .heading-text{font-size:40px;}
}
/* q64: RF work page has no arrow between grid and the CTA band */
body.rfw .buff-arrow__button{display:none;}

/* ===================== q65r: studio.html = RF /about composition (body.rfa) — physical rebuild ===================== */
/* hero: RF-style heading + FULL-BLEED 1.6 visual */
body.rfa [class*="6ba26e3a"]{padding-top:34px}
body.rfa [class*="6ba26e3a"] .spacer-component{height:10px;min-height:10px}
body.rfa [class*="6ba26e3a"] h1{font-size:clamp(40px,4.2vw,66px);font-weight:400;line-height:1.08;margin:0}
body.rfa [class*="6ba26e3a"] .card{position:static !important;height:auto !important;overflow:visible !important;border-radius:0;margin-left:calc(50% - 50vw);margin-right:calc(50% - 50vw)}
body.rfa [class*="6ba26e3a"] .card img,
body.rfa [class*="6ba26e3a"] .card video{display:block;width:100%;height:auto !important;aspect-ratio:1.6/1;object-fit:cover;border-radius:0}
/* statement band (RF: rounded top corners, centered statement + pill) */
body.rfa section.q65-band{background:#e9efff !important;border-radius:8px 8px 0 0;padding:96px 0}
body.rfa .q65-band-inner{display:flex;flex-direction:column;align-items:center;gap:34px;text-align:center}
body.rfa .q65-stmt{font-size:clamp(22px,1.95vw,30px);line-height:1.3;margin:0;max-width:760px}
body.rfa .q65-u{border-bottom:2px solid currentColor;padding-bottom:2px}
body.rfa .q65-pill{display:inline-block;background:#151515;color:#fff;font-size:16px;line-height:1;padding:20px 34px;border-radius:1000px;text-decoration:none}
/* two-col intro (RF: 24px columns) */
body.rfa .q65-sec-intro{padding:110px 0 60px}
body.rfa .q65-intro{display:grid;grid-template-columns:1fr 1fr;gap:60px;max-width:1440px;margin:0 auto;width:100%}
body.rfa .q65-col{font-size:clamp(20px,1.55vw,24px);line-height:1.32;margin:0}
/* how-i-work RF-style bordered two-col list */
body.rfa .q65-sec-how{padding:90px 0 40px}
body.rfa .q65-label{font-size:16px;margin:0 0 18px;opacity:.85}
body.rfa .q65-grid{display:grid;grid-template-columns:1fr 1fr;column-gap:60px}
body.rfa .q65-item{border-bottom:1px solid rgba(20,20,24,.16);padding:18px 0;min-height:109px}
body.rfa .q65-item-t{font-size:clamp(22px,1.8vw,28px);font-weight:400;margin:0 0 8px;line-height:1.2}
body.rfa .q65-item-d{font-size:16px;margin:0;color:#45484d}
/* brands (pure black logos grid, no cards, no hover effects) */
body.rfa .q65-brands{padding:100px 0 80px}
body.rfa .q65-brands-wrap{display:grid;grid-template-columns:1fr 1fr;gap:60px;align-items:start;width:100%}
body.rfa .q65-brands-h{font-size:clamp(40px,4.2vw,66px);font-weight:400;line-height:1.08;margin:0;max-width:560px}
body.rfa .q65-brands-grid{display:grid;grid-template-columns:repeat(2,1fr);column-gap:60px;width:100%}
body.rfa .q65-brand-item{display:flex;align-items:center;justify-content:center;padding:32px 14px;border-bottom:1px solid rgba(20,20,24,.12);min-height:120px}
body.rfa .q65-brand-item.q65-brand-collab{gap:16px}
body.rfa .q65-brand-logo{display:block;max-width:100%;height:auto;object-fit:contain;user-select:none;-webkit-user-drag:none;pointer-events:none}
body.rfa .q65-brand-logo.brand-futuwwa{height:76px;max-width:165px}
body.rfa .q65-brand-logo.brand-quran{height:80px;max-width:85px}
body.rfa .q65-brand-logo.brand-ishbilia{height:64px;max-width:72px}
body.rfa .q65-brand-logo.brand-aqeedah{height:52px;max-width:115px}
body.rfa .q65-brand-logo.brand-tchan{height:60px;max-width:70px}
body.rfa .q65-brand-logo.brand-pfe{height:36px;max-width:115px}
@media (max-width: 860px){
  body.rfa .q65-brands-wrap{grid-template-columns:1fr;gap:36px}
  body.rfa .q65-brands-grid{column-gap:28px}
  body.rfa .q65-brand-item{padding:24px 8px;min-height:96px}
}
@media (max-width: 520px){
  body.rfa .q65-brands-grid{grid-template-columns:1fr}
}
/* CTA band on rfa = q53 statement band (rounded top, centered, dark pill); carries id="contact" */
body.rfa section.u-overflow-hidden{background:#e9efff !important;border-radius:8px 8px 0 0;padding-top:110px;padding-bottom:110px}
body.rfa section.u-overflow-hidden .heading-component h1,
body.rfa section.u-overflow-hidden .heading-text{font-size:clamp(38px,3.2vw,50px);text-align:center;margin:0 auto}
body.rfa section.u-overflow-hidden [data-lottie],body.rfa section.u-overflow-hidden .transition__lottie-animation{display:none !important}
body.rfa section.u-overflow-hidden .col[data-lottie-only="true"]{display:none}
body.rfa section.u-overflow-hidden .row{display:block}
body.rfa section.u-overflow-hidden .col{width:100%;max-width:980px;margin:0 auto}
body.rfa section.u-overflow-hidden .modal-component{display:flex;justify-content:center;margin:0}
body.rfa section.u-overflow-hidden button.button{background:#151515 !important;color:#fff !important;border-radius:1000px}
/* mobile */
@media (max-width:767px){
  body.rfa .q65-intro{grid-template-columns:1fr;gap:28px}
  body.rfa .q65-grid{grid-template-columns:1fr;column-gap:0}
  body.rfa .q65-item{min-height:0}
  body.rfa .q65-band{padding:64px 0}
}
/* q65r-fix: collapse legacy slot min-height inside hero visual; band/intro rhythm per RF; anchor landing */
body.rfa [class*="6ba26e3a"] .card .slot{min-height:0 !important;height:auto !important}
body.rfa [class*="6ba26e3a"] .card .slot img{width:100%}
body.rfa section.q65-band{padding:120px 0}
body.rfa .q65-sec-intro{padding:60px 0 60px}
body.rfa section.u-overflow-hidden{scroll-margin-top:90px}
body.rfa [class*="6ba26e3a"] .card .slot{aspect-ratio:auto !important}
body.rfa [class*="6ba26e3a"] .img-component{aspect-ratio:auto !important;height:auto !important;min-height:0 !important}
body.rfa [class*="6ba26e3a"] .img-component img{position:static}

/* ============================================================
   q66 — RF header SITE-WIDE (all pages) + old chrome physically
   removed (nav-banner bar, sidenav arrow button, sidenav overlay).
   Home keeps q58 (pinned-video mechanics); these global rules
   duplicate q56/q58 values so every page gets the same chrome.
   ============================================================ */
.cc-nav{display:flex; align-items:center; min-height:100px;}
.cc-rf-nav{display:flex; align-items:center; gap:56px; margin:0 auto;}
.cc-rf-nav__link{
  color:var(--_color---neutral--black, #101014); text-decoration:none;
  font-size:15.5px; font-weight:500; letter-spacing:.01em;
  transition:opacity .3s ease;
}
.cc-rf-nav__link:hover{opacity:.55;}
.cc-rf-nav__pill{
  margin-left:14px; background:var(--_color---neutral--black, #101014); color:#fff;
  text-decoration:none; font-size:15px; font-weight:500;
  border-radius:1000px; padding:11px 24px; transition:opacity .3s ease;
}
.cc-rf-nav__pill:hover{opacity:.82;}
/* stock wipe-effect embed disables pointer events on the header — re-enable */
.cc-rf-nav, .cc-rf-nav__link, .cc-rf-nav__pill, .nav-logo_link{pointer-events:auto;}
.sidenav .cc-nav{padding-top:0; padding-bottom:0;}
.sidenav .container{padding-top:0; padding-bottom:0;}
.sidenav .sidenav__header{padding:0;}
/* keep logo visible (stock scroll interaction hides it) */
.sidenav .avilab-logo, .sidenav .nav-logo_link{visibility:visible !important; opacity:1 !important;}
/* RF header: pins at top, hides on scroll down / shows on scroll up */
.sidenav{position:sticky; top:0; z-index:900; transition:transform .5s cubic-bezier(.45,0,.2,1), box-shadow .35s ease;}
.sidenav.nav-hidden{transform:translateY(-100%);}
@media (max-width:767px){
  .cc-nav{min-height:78px;}
  .cc-rf-nav{gap:22px;}
  .cc-rf-nav__pill{padding:9px 18px; margin-left:4px;}
}

/* ============================================================
   q67 — RF statement band SITE-WIDE (section.u-overflow-hidden).
   Home/projects/studio keep their identical page-scoped rules
   (q53/q64/rfa — same values, higher specificity). The 7 project
   pages (av-case) previously had this section display:none with a
   typeform dialog — dialog physically removed in q67, button is a
   link to studio.html#contact (zero-forms), composition = RF band.
   ============================================================ */
section.u-overflow-hidden{background:#e9efff;border-radius:8px 8px 0 0;padding-top:110px;padding-bottom:110px;position:relative;z-index:1}
section.u-overflow-hidden .heading-component .heading-text{font-size:clamp(38px,3.2vw,50px);line-height:1.15;text-align:center;margin:0 auto}
section.u-overflow-hidden [data-lottie],section.u-overflow-hidden .transition__lottie-animation{display:none !important}
section.u-overflow-hidden .col[data-lottie-only="true"]{display:none}
section.u-overflow-hidden .row{display:block}
section.u-overflow-hidden .col{width:100%;max-width:980px;margin:0 auto}
section.u-overflow-hidden .modal-component{display:flex;justify-content:center;margin:0}
section.u-overflow-hidden .button,section.u-overflow-hidden button.button{background:#151515 !important;color:#fff !important;border-radius:1000px}
section.u-overflow-hidden a.button{display:inline-flex;align-items:center;text-decoration:none;font-size:16px;line-height:1;padding:20px 34px}

/* ============================================================
   q67-fix — av-case pages: scope-locked overrides so the RF header
   and the RF statement band render correctly there (the av-case
   design system underlines links, recolors buttons/headings).
   Everything else on av-case pages stays untouched.
   ============================================================ */
.av-case .cc-rf-nav__link,.av-case .cc-rf-nav__pill{text-decoration:none !important}
.av-case .cc-rf-nav__link{color:var(--av-fg,#101014) !important}
.av-case .cc-rf-nav__pill{background:var(--av-pill-bg, var(--av-fg, #101014)) !important;color:var(--av-pill-fg, var(--av-canvas, #fff)) !important}
.av-case section.section.u-overflow-hidden{background:#e9efff !important;border-radius:8px 8px 0 0;padding-top:110px;padding-bottom:110px}
.av-case section.u-overflow-hidden .heading-text{font-size:clamp(38px,3.2vw,50px) !important;line-height:1.15 !important}
.av-case section.u-overflow-hidden .button{background:#151515 !important;color:#fff !important;border-radius:1000px;text-decoration:none !important}
.av-case section.u-overflow-hidden .button:hover{background:#151515 !important;color:#fff !important}

/* ============================================================
   q68 — /work matches the CURRENT RF reference (user snapshot,
   1920px): white «Work» title band -> full-bleed #fafafa canvas
   with rounded top corners -> REGULAR PAIRS grid (no zigzag),
   45.3vw cards ar-1.6, 3.125vw margins/gutter, captions 32/20,
   scroll reveal kept. Reversible: remove this block.
   ============================================================ */
.rfw-head,body.rfw .rfw-head,[data-barba-namespace="Projects"] .rfw-head{background:#fff !important;padding-top:44px !important;padding-bottom:40px !important;}
.rfw-head .section,body.rfw .rfw-head .section,[data-barba-namespace="Projects"] .rfw-head .section{padding-top:0 !important;padding-bottom:0 !important;background:transparent !important;}
.rfw-head h1.heading-text,body.rfw .rfw-head h1.heading-text,[data-barba-namespace="Projects"] .rfw-head h1.heading-text{font-size:clamp(40px,4.2vw,66px) !important;margin:0 !important;}
.rfw-head .paragraph-lg,body.rfw .rfw-head .paragraph-lg{display:none !important;}
.rfw-head .spacer-component,body.rfw .rfw-head .spacer-component{height:0 !important;min-height:0 !important;}
.rfw-gridsec,body.rfw .rfw-gridsec,[data-barba-namespace="Projects"] .rfw-gridsec{background:#fafafa !important;border-radius:8px 8px 0 0;margin-left:calc(50% - 50vw);margin-right:calc(50% - 50vw);padding-top:56px;padding-bottom:100px;}
.rfw-gridsec .container,body.rfw .rfw-gridsec .container,[data-barba-namespace="Projects"] .rfw-gridsec .container{max-width:none !important;width:auto !important;padding-left:3.125vw !important;padding-right:3.125vw !important;margin:0 !important;}
.rfw-gridsec .section,body.rfw .rfw-gridsec .section,[data-barba-namespace="Projects"] .rfw-gridsec .section{padding-top:0 !important;padding-bottom:0 !important;}
body.rfw .hero-featured-cs__list,[data-barba-namespace="Projects"] .hero-featured-cs__list{grid-template-columns:1fr 1fr;column-gap:3.125vw;row-gap:64px;}
body.rfw .hero-featured-cs__item,[data-barba-namespace="Projects"] .hero-featured-cs__item{grid-column:auto !important;}
body.rfw .hero-featured-cs__item .video-card-visual,[data-barba-namespace="Projects"] .hero-featured-cs__item .video-card-visual{aspect-ratio:1.6/1;margin-bottom:22px;}
body.rfw .hero-featured-cs__item .video-card-title,[data-barba-namespace="Projects"] .hero-featured-cs__item .video-card-title{font-size:32px;letter-spacing:-.3px;}
body.rfw .hero-featured-cs__item .video-card-title.cc-subtitle,[data-barba-namespace="Projects"] .hero-featured-cs__item .video-card-title.cc-subtitle{font-size:20px;color:#45484d;}
@media (max-width:767px){
  .rfw-gridsec .container,body.rfw .rfw-gridsec .container,[data-barba-namespace="Projects"] .rfw-gridsec .container{padding-left:20px !important;padding-right:20px !important;}
  .rfw-gridsec,body.rfw .rfw-gridsec,[data-barba-namespace="Projects"] .rfw-gridsec{padding-top:36px;padding-bottom:60px;}
}

/* q68-fix — head zone: kill template squiggle lottie inside the title
   band (RF /work top is clean), align title to the 3.125vw grid
   margins, caption sub color lock, row pitch 712 (ref 713). */
.rfw-head [data-lottie],.rfw-head .transition__lottie-animation,body.rfw .rfw-head [data-lottie],body.rfw .rfw-head .transition__lottie-animation{display:none !important;}
.rfw-head .container,body.rfw .rfw-head .container,[data-barba-namespace="Projects"] .rfw-head .container{max-width:none !important;width:auto !important;padding-left:3.125vw !important;padding-right:3.125vw !important;margin:0 !important;}
body.rfw .hero-featured-cs__list,[data-barba-namespace="Projects"] .hero-featured-cs__list{row-gap:48px;}
body.rfw .hero-featured-cs__item .video-card-title.cc-subtitle,[data-barba-namespace="Projects"] .hero-featured-cs__item .video-card-title.cc-subtitle{color:#45484d !important;}
.rfw-head .rich-text-component,body.rfw .rfw-head .rich-text-component{display:none !important;}

/* q69 — header chrome: RF header is a solid white band. Non-home
   pages: always white (fixes transparent-over-content while pinned).
   Home: white ALWAYS too (q70 — reference shows a solid white band
   pinned at top with the video below it, never behind it). */
.sidenav{background:#fff;transition:transform .5s cubic-bezier(.45,0,.2,1), box-shadow .35s ease, background-color .35s ease;}
/* q70: home header is white ALWAYS (reference: solid band, video below) */

/* q71 — FINAL header model (per reference homepage snapshot):
   the header is ATTACHED to the page flow right after the showreel
   (index.html) — it rides up with the scroll and pins when it
   reaches the top (q58 sticky + hide/show mechanics). Its band is
   WHITE at all times (in flow, during the ride, and pinned) — the
   old transparent-over-video state is gone for good. */
body.q53 .sidenav{z-index:901;}

/* ============================================================
   q72 — kill the interstitial transition splash (user request):
   the periwinkle cover panel + squiggle (data-transition-wrap,
   fixed z100) never shows again. The page swap becomes a direct
   content change: the old page holds in place, the new one paints
   immediately (containers forced visible/static so the template's
   transition timelines run invisibly). The wrap element stays in
   the DOM on purpose — the template scripts read it; removal would
   break barba's leave/enter. Reversible: delete this block.
   ============================================================ */
[data-transition-wrap]{display:none !important;}
/* q83/q115: container alpha & solid background — prevents ghosting/bleed-through between pages */
[data-barba="container"],
main.page-main{
  opacity:1;
  transform:none !important;
  background-color:var(--av-paper, #ffffff);
  position:relative;
  width:100%;
  min-height:100vh;
}
main.page-main.av-case,
[data-barba-namespace="fintech-brand-launch"]{
  background-color:var(--av-canvas, #f2f3f5);
}

/* ============================================================
   q73 (v3 — user's direct fix) — extend the section ABOVE the band
   so it slides 30px underneath the rounded-top band: its own
   background fills the corner notches (no layered face needed).
   The ::before face approach is dropped; the band keeps its plain
   periwinkle background. Net page height unchanged (-30 margin
   compensates +30 padding).
   ============================================================ */
/* home: statement section (original pb 88 + 30 tuck) */
section:has(+ section.u-overflow-hidden){position:relative;margin-bottom:-30px;padding-bottom:118px;}
/* studio: brands section (70 + 30) */
body.rfa .q65-brands{padding-bottom:100px;}
/* projects: grid section is not an adjacent sibling (band sits in a
   bare wrapper div) — tuck it directly (100 + 30) */
body.rfw .rfw-gridsec{position:relative;margin-bottom:-30px;padding-bottom:130px;}

/* ============================================================
   q74 v2 — RF typography & color system, site-wide (measured live
   at 1560 on robot-food.com home /work /about). All mapping rules
   carry !important — the template's own family/size rules (and our
   early Archivo rule) use it too. Reversible: remove this block
   (+ fonts/DMSans-var, DMSans-italic, DMMono-400).
   ============================================================ */
@font-face{font-family:'DM Sans';font-style:normal;font-weight:400 500;font-display:swap;src:url('../fonts/DMSans-var.woff2') format('woff2');}
@font-face{font-family:'DM Sans';font-style:italic;font-weight:400;font-display:swap;src:url('../fonts/DMSans-italic.woff2') format('woff2');}
@font-face{font-family:'DM Mono';font-style:normal;font-weight:400;font-display:swap;src:url('../fonts/DMMono-400.woff2') format('woff2');}
/* — family: DM Sans everywhere (class-scoped to beat selector-list
   specificity of the early Archivo rule); DM Mono pills re-set below */
h1,h2,h3,h4,h5,h6,p,a,span,li,button,label,input,textarea,div,
.heading-text,.video-card-title,.paragraph-lg,.paragraph-xl,.paragraph-sm,.plain-text,.eyebrow,.btn-text,.rich-text *{
  font-family:'DM Sans',ui-sans-serif,system-ui,sans-serif !important;}
body .av-case :is(h1,h2,h3,h4,h5,h6,.heading-text,p,li,span,a,div,.plain-text):not(.cc-footer *){
  font-family:'DM Sans',ui-sans-serif,system-ui,sans-serif !important;}
/* icon fonts stay glyphs (real Phosphor classes only) */
.ph:where([class]){font-family:'Phosphor' !important;}
/* — colors: text pure black; dark surfaces #1d1d1b */
body{color:#000 !important;}
/* — pills & buttons: DM Mono 17; surfaces #1d1d1b */
body .button .btn-text,body a.button .btn-text,body .q65-pill{
  font-family:'DM Mono',ui-monospace,monospace !important;font-size:17px !important;font-weight:400 !important;line-height:1 !important;}
body .q65-pill,body section.u-overflow-hidden a.button,body section.u-overflow-hidden button.button{
  background:#1d1d1b !important;}
body .cc-rf-nav__pill{font-family:'DM Mono',ui-monospace,monospace !important;font-size:17px !important;font-weight:400 !important;line-height:17px !important;letter-spacing:-0.68px !important;background:#1d1d1b !important;}
/* — header nav: 22/33 -0.5 w400 black (all scopes; q95 RF LIVE re-measure: 22/33 -0.5
   at 1920 AND 1566 AND 1280 — the q94 CSSViewer 16/24 reading was the outer element) */
body .cc-rf-nav__link,body.q53 .cc-rf-nav__link,body.rfw .cc-rf-nav__link,body.rfa .cc-rf-nav__link,
.av-case .cc-rf-nav__link{
  font-size:22px !important;line-height:33px !important;letter-spacing:-0.5px !important;font-weight:400 !important;color:var(--av-fg,#000) !important;}
/* — h1 tier: 66/1.15 -1.5 (studio hero, work head, brands head) */
[data-barba-namespace="Projects"] h1.heading-text,
[data-barba-namespace="Projects"] .rfw-head h1.heading-text,
.rfw-head h1.heading-text,
body.rfw .rfw-head h1.heading-text,
[data-barba-namespace="Studio"] [class*="6ba26e3a"] h1.heading-text,
body.rfa [class*="6ba26e3a"] h1.heading-text,
body .q65-brands-h,
body .rfw-head h1.heading-text u{
  font-size:clamp(40px,4.23vw,72px) !important;line-height:1.15 !important;letter-spacing:-1.5px !important;color:#000 !important;}
/* — statement/band heading tier: 50/1.15 -1.2 (unifies 64s) */
[data-barba-namespace="Home"] section.u-overflow-hidden .heading-text,
body.rfw section.u-overflow-hidden .heading-text,
body.rfa section.u-overflow-hidden .heading-text,
body section.u-overflow-hidden .heading-component .heading-text{
  font-size:50px !important;line-height:1.15 !important;letter-spacing:-1.2px !important;color:#000 !important;}
/* — home intro statement: 2.67vw tier (41.6 @1560) */
[data-barba-namespace="Home"] .q53-intro p{
  font-size:clamp(28px,2.67vw,48px) !important;line-height:1.15 !important;letter-spacing:-1.2px !important;color:#000 !important;}
/* — home «Featured Work:» heading tier (white on black composition kept) */
[data-barba-namespace="Home"] section[class*="ffdae436"] h1.heading-text{
  font-size:50px !important;line-height:1.15 !important;letter-spacing:-1.2px !important;color:#fff !important;}
/* — work grid captions: 32 (-0.7)/1.4 + client line 20 black */
body.rfw .hero-featured-cs__item .video-card-title:not(.cc-subtitle){
  font-size:32px !important;line-height:1.4 !important;letter-spacing:-0.7px !important;color:#000 !important;}
body.rfw .hero-featured-cs__item .video-card-title.cc-subtitle,
body.rfw .hero-featured-cs__item .video-card-title.cc-subtitle u{
  font-size:20px !important;color:#000 !important;letter-spacing:normal !important;}
/* — home grid cards: 20/30.4 + sub 16 black */
[data-barba-namespace="Home"] .hero-featured-cs__item .video-card-title:not(.cc-subtitle){
  font-size:20px !important;line-height:30.4px !important;letter-spacing:normal !important;color:#000 !important;}
[data-barba-namespace="Home"] .hero-featured-cs__item .video-card-title.cc-subtitle{
  font-size:16px !important;color:#000 !important;}
/* — about page copy: black (statement, service descriptions, columns) */
body.rfa .q65-stmt,body.rfa .q65-item-d,body.rfa .q65-col,body.rfa .q65-item-t,body.rfa .q65-label{color:#000 !important;}
/* — footer: links 18 (-0.5) */
body .cc-footer a{font-size:18px !important;letter-spacing:-0.5px !important;}
/* q74 v2 fix — every band/button label is DM Mono 17 regardless of markup */
body section.u-overflow-hidden .btn-text,
[data-barba-namespace="Home"] section.u-overflow-hidden .btn-text,
body.rfw section.u-overflow-hidden .btn-text,
body.rfa section.u-overflow-hidden .btn-text{
  font-family:'DM Mono',ui-monospace,monospace !important;font-size:17px !important;font-weight:400 !important;line-height:1 !important;}
/* q74 v2 fix2 — band button surface at matched specificity (all scopes) */
[data-barba-namespace="Home"] section.u-overflow-hidden .button,
body.rfw section.u-overflow-hidden .button,
body.rfa section.u-overflow-hidden .button,
body section.u-overflow-hidden .button{background:#1d1d1b !important;}
body.rfa section.u-overflow-hidden button.button{background:#1d1d1b !important;}

/* ============================================================
   q75 — exact-match deltas from the user's Chrome font extraction
   (live RF homepage):
   1. Italic accent words are DM SERIF DISPLAY italic, black —
      («works?» in «Need work that works?»), not DM Sans purple.
   2. DM Mono pills/buttons tracking -4% (Let's chat / Case Study).
   Everything else (50/-1.2 #000, 32/-0.7, 20/30.4 0px, 22/33/-0.5,
   DM Mono 17 #1D1D1B surfaces) already matches q74.
   Reversible: remove this block (+ fonts/DMSerifDisplay-Italic).
   ============================================================ */
@font-face{font-family:'DM Serif Display';font-style:italic;font-weight:400;font-display:swap;src:url('../fonts/DMSerifDisplay-Italic.woff2') format('woff2');}
/* 1 — serif italic accents, black (headings/statements/columns) */
h1 em,h2 em,h3 em,h4 em,.heading-text em,.video-card-title em,
.q53-intro em,.q65-stmt em,.q65-col em,.q65-item-t em,
section.u-overflow-hidden em,body.rfa [class*="6ba26e3a"] em{
  font-family:'DM Serif Display',serif !important;font-style:italic !important;color:#000 !important;}
/* 2 — DM Mono pills/buttons: -4% tracking */
body .button .btn-text,body a.button .btn-text,body .q65-pill{
  letter-spacing:-0.04em !important;}
/* q75 completion — av-case button labels: DM Mono beats the av-case
   family override (matched + higher specificity) */
body .av-case .button .btn-text,
body .av-case a.button .btn-text{
  font-family:'DM Mono',ui-monospace,monospace !important;font-size:17px !important;font-weight:400 !important;line-height:1 !important;letter-spacing:-0.04em !important;}

/* ============================================================
   q80-fix — the DM takeover (q74/q75) out-specified `.ph` and
   hijacked the icon font: the player glyphs (play/pause/speaker,
   content \e3d0/\e39e/\e450/\e454) were being rendered with
   DM Sans, which has no such codepoints -> invisible icons.
   This rule out-specifies the DM span rule (3 classes > 2) and
   restores Phosphor for icon elements only. Reversible: delete.
   ============================================================ */
body .av-case .ph:not(.cc-footer *){font-family:'Phosphor' !important;}


/* ============================================================
   q85 — calm fade-in for work thumbnails (projects page)
   Images still downloading start hidden and fade in as soon as
   each one finishes loading (driver: q85 IIFE in identity.js).
   Complete/cached images never get q85-wait — fast loads and
   no-JS are unaffected. Reversible: delete this block.
   ============================================================ */
img.q85-wait { opacity: 0 !important; }
img.q85-wait.q85-in { opacity: 1 !important; transition: opacity 0.6s ease-out !important; }
/* NOTE: !important is required — the card hover-zoom rule above
   (.cs__video-card .video-card-visual img — transform .8s !important)
   would otherwise swallow this shorthand and the fade never runs.
   identity.js strips both classes ~1.2s after each fade completes,
   so the hover-zoom transition is fully restored afterwards. */

/* ============================================================
   q86 — Featured Work "peek" composition (robot-food reference)
   RF homepage: the featured row breaks out of the container to
   full viewport width — ~2 cards fully visible, the next one cut
   by the screen edge as a silent cue that more work lives on the
   projects page (their live site: swiper + overflow-hidden breakout).
   Same relationship here: heading stays container-aligned, the row
   aligns to the container's inner-left edge and bleeds right,
   clipped by the section (no body overflow / h-scrollbar).
   Card proportion 36.5vw (RF measured 572px @1566 = 36.5vw),
   gap = the site grid gap token. Desktop only (>=768px);
   mobile/tablet stacking untouched. Reversible: delete this block.
   Rollback: identity.css.20260929-094243-q86pre.bak (archive).
   ============================================================ */
@media (min-width:768px){
  [data-barba-namespace="Home"] section[class*="ffdae436"]{overflow:hidden;}
  [data-barba-namespace="Home"] .q53-workhead + .hero-featured-cs__component .hero-featured-cs__list{
    display:flex !important;
    flex-wrap:nowrap;
    grid-template-columns:none;
    gap:min(1.72vw, 27px);
    width:max-content;
    max-width:none;
    margin-left:calc(50% - 50vw);
    padding-left:max(var(--_components---container--gutter), (100vw - var(--_components---container--max-width)) / 2);
  }
  [data-barba-namespace="Home"] .q53-workhead + .hero-featured-cs__component .hero-featured-cs__item{
    flex:0 0 35.25vw;
    width:35.25vw;
  }
}

/* ============================================================
   q89 — swiper-core (bundle deleted): case pages carry static
   .swiper-wrapper/.swiper-slide markup (never initialized — zero
   [data-slider="slider"]); these two base rules are all they need
   from the deleted 18.5K swiper-bundle.min.css. Reversible: delete
   this block + restore files from archive q89pre (20260929-103424).
   ============================================================ */
.swiper-wrapper{position:relative;width:100%;height:100%;z-index:1;display:flex;transition-property:transform;box-sizing:content-box}
.swiper-slide{flex-shrink:0;width:100%;height:100%;position:relative;transition-property:transform;display:block}

/* ============================================================
   q92 — kill the first-paint size flash on the projects hero
   The final h1 size lives in `body.rfw .rfw-head h1.heading-text`,
   but `.rfw-head` is added by identity.js AFTER first paint, so the
   title painted at template's 104px for ~100-150ms then snapped to
   66px. This static twin targets the same element (identity.js puts
   `.rfw-head` on `main > div`) from CSS parse time — zero flash,
   identical settled pixels. Reversible: delete this block.
   ============================================================ */
[data-barba-namespace="Projects"] h1.heading-text,.rfw-head h1.heading-text,body.rfw main > div h1.heading-text{font-size:clamp(40px,4.23vw,72px) !important;}

/* ============================================================
   q93 — header sits on the SAME start line as the content
   Content (q68 system) uses a 3.125vw line; the header kept the
   stock .container (6vw, capped at max-width) -> up to ~180px
   misalignment on wide windows, and it drifted differently from
   the content when zooming/resizing. Mirror the content line:
   logo left edge == "Work" title left edge at every width/zoom.
   Reversible: delete this block.
   ============================================================ */
body.rfw .sidenav .container.cc-nav{max-width:none!important;width:100%!important;padding-left:3.125vw;padding-right:3.125vw;}

/* ============================================================
   q94 — RF live reference tokens (user CSSViewer extraction,
   robot-food.com/work/ @1920, 12 shots). Reversible: delete.
   Measured -> applied:
   header strip 80px (was 100) + q53 banner var follows;
   logo 60x60 (was 41.6); nav links 16/24 (were 22/33, pill
   already 16); strip top radius 30 (RF .c-site-header);
   card gaps media->title 0, title mb 4, client mt 30 lh 1.52
   (were 22/0/0/30). Already matching RF (no change): card
   media 870px ar-1.6, title 32/-0.7/44.8, client 20 #000,
   nav pill 16 DM Sans, gridsec br-top 30 (q68).
   Not applied (analyzed): body max-width 1920 cap (>1920
   displays only; structural, needs own cycle), RF CTA section
   (absent here by user deletions - not re-created), RF nav
   items (Sectors/Journal/Careers - out of scope), RF logo mark
   (identity is avilab's, size only).
   ============================================================ */
@media (min-width:768px){
  /* q122: بلا استدارة — كان المحتوى المار خلف الهيدر يظهر عند الأركان المستديرة (طلب المستخدم) */
  .sidenav{border-radius:0;}
  .sidenav .container.cc-nav{min-height:80px;}
  body.q53{--q53-stripH:80px;}
  .sidenav .nav-logo_link{width:3.25rem;max-width:3.25rem;}
  .sidenav .nav-logo_link .avilab-logo{width:100%;}
  body.rfw .hero-featured-cs__item .video-card-visual{margin-bottom:0;}
  body.rfw .hero-featured-cs__item .video-card-title{margin-bottom:4px;}
  body.rfw .hero-featured-cs__item .video-card-title.cc-subtitle{margin-top:6px;line-height:1.52;}
}

/* ============================================================
   q95 — RF Figma-file tokens (user MCP extraction of the
   html.to.design capture) CROSS-CHECKED against robot-food.com
   LIVE measurements @1920/1566/1280 (playwright, 2026-09-29).
   Live won every conflict. Applied here (desktop ≥768):
   · page line: FIXED 60px margins + FIXED 60px gutter at every
     width (live: gridX=60, media 870/693/550 = (vw-240)/2)
     -> overrides the 3.125vw line of q68/q93 on body.rfw
   · strip: header pad 16/0 + container 60 = 92 (live hdrH=92)
     -> --q53-stripH follows (index banner keeps q81 formula)
   · grid rows 60 (was 64); CTA section added to projects
     (cyan #d3f2f7, r30, 50/57.5 -1.2, serif-italic "challenge",
     underlined "hear", pill btn DM Mono 17 on #1d1d1b -> mailto
     contact@aliehab.art); footer tokens (icons 25/gap12, legal
     14/21 -0.5 white 50%, links lh27, bg #000).
   Root-level reverts in this cycle: nav links 22/33 -0.5 (q94
   misread), pill DM Mono 17, nav gap 56.
   Reversible: delete this block (CTA markup: section.av-cta in
   projects.html).
   ============================================================ */
@media (min-width:768px){
  .sidenav .sidenav__header{padding:16px 0;}
  body.q53 .sidenav .sidenav__header{padding:16px 0;}
  .sidenav .container.cc-nav{min-height:60px;}
  body.q53{--q53-stripH:92px;}
  .rfw-gridsec .container,body.rfw .rfw-gridsec .container,[data-barba-namespace="Projects"] .rfw-gridsec .container{padding-left:60px !important;padding-right:60px !important;}
  .rfw-head .container,body.rfw .rfw-head .container,[data-barba-namespace="Projects"] .rfw-head .container{padding-left:60px !important;padding-right:60px !important;}
  body.rfw .hero-featured-cs__list,[data-barba-namespace="Projects"] .hero-featured-cs__list{grid-template-columns:1fr 1fr;column-gap:60px;row-gap:60px;}
}
/* — CTA (RF .c-cta, live-verified tokens; avilab mail target) */
body.rfw .av-cta{background:#d3f2f7;border-radius:8px;margin-left:calc(50% - 50vw);margin-right:calc(50% - 50vw);padding:150px 60px;display:flex;flex-direction:column;align-items:center;text-align:center;}
body.rfw .av-cta__title{margin:0;font-family:'DM Sans',ui-sans-serif,sans-serif;font-size:50px;line-height:57.5px;letter-spacing:-1.2px;font-weight:400;color:#000;}
body.rfw .av-cta__title em{font-family:'DM Serif Display',serif;font-style:italic;letter-spacing:-1.2px;}
body.rfw .av-cta__title .av-cta__u{text-decoration:underline;text-underline-position:from-font;text-decoration-thickness:1.5px;text-underline-offset:6px;}
body.rfw .av-cta__btnmargin{padding-top:60px;}
body.rfw .av-cta__btn{display:inline-flex;align-items:center;gap:20px;background:#1d1d1b;color:#fff !important;border-radius:1000px;padding:15px 29px 15px 33px;font-family:'DM Mono',ui-monospace,monospace !important;font-size:17px;line-height:17px;letter-spacing:-0.68px;text-decoration:none;transition:opacity .3s ease;}
body.rfw .av-cta__btn:hover{opacity:.82;}
body.rfw .av-cta__btn .av-cta__arrow{width:19px;height:15px;flex:none;transition:transform .3s ease;}
body.rfw .av-cta__btn:hover .av-cta__arrow{transform:translateX(4px);}
@media (max-width:767px){
  body.rfw .av-cta{padding:80px 20px;}
  body.rfw .av-cta__title{font-size:30px;line-height:38px;letter-spacing:-0.8px;}
}
/* — footer tokens (RF GLOBAL footer: muted 50%, icons 25/12; bg kept #151515 — canvas color is admin-managed q39/q43) */
.cc-footer .footer-link{line-height:27px;color:#fff;opacity:.5;}
.cc-footer .paragraph-sm{font-size:14px !important;line-height:21px !important;letter-spacing:-0.5px !important;color:#fff;opacity:.5;}
.cc-footer .sidenav__menu-socials{gap:12px !important;}
.cc-footer .sidenav__menu-socials-link,.cc-footer .sidenav__menu-socials-link img{width:25px;height:25px;}

/* ============================================================
   q96 — studio.html (body.rfa) retuned to RF /about tokens:
   user Figma-MCP spec (node 2617:674) cross-checked against
   robot-food.com/about/ LIVE @1920/1566 (playwright 2026-09-29).
   Live-verified tokens applied (desktop ≥768):
   statement band = #dfeebe, r30 all corners, full-bleed,
   OVERLAPPING the hero by 60px (live: band y1392 vs hero
   bottom 1452), display 50/60 -1.2, serif-italic "and",
   text-underline word, black mono pill button + arrow;
   two-col intro 24/31.2 -1% (fixed size live-confirmed),
   section pad 48/60 (py-12 + 60 rhythm);
   What-we-do: h3 28/33.6 -3%, p 20/30.4 #000, label mb 46;
   brands title 66/75.9 -1.5;
   contact section = RF CTA shape: #dfeebe r30 pad 150/60,
   title 50/57.5 -1.2, black mono pill button + arrow.
   Hero 1.6 ratio already = 62.5vw (spec 1200@1920) - no change.
   Footer inherits q95 tokens. Team grid & office collage &
   RF client-logo wall NOT built (user instruction + q65r).
   Reversible: delete this block.
   ============================================================ */
body.rfa section.q65-band{background:#dfeebe !important;border-radius:8px;}
body.rfa section.u-overflow-hidden{background:#dfeebe !important;border-radius:8px;}
@media (min-width:768px){
  body.rfa section.q65-band{background:#dfeebe !important;border-radius:8px;margin-left:calc(50% - 50vw);margin-right:calc(50% - 50vw);margin-top:-156px;position:relative;z-index:2;padding:120px 60px;}
  body.rfa section.q65-band .container{max-width:none;width:auto;padding:0;margin:0;}
  body.rfa .q65-stmt{font-size:50px;line-height:60px;letter-spacing:-1.2px;max-width:none;}
  body.rfa .q65-stmt .q65-serif{font-family:'DM Serif Display',serif;font-style:italic;}
  body.rfa .q65-u{border-bottom:0;text-decoration:underline;text-decoration-thickness:1.5px;text-underline-offset:8px;}
  body.rfa .q65-pill{display:inline-flex;align-items:center;gap:20px;background:#1d1d1b;color:#fff !important;font-family:'DM Mono',ui-monospace,monospace !important;font-size:17px;line-height:17px;letter-spacing:-0.68px;padding:15px 29px 15px 33px;border-radius:1000px;text-decoration:none;transition:opacity .3s ease;}
  body.rfa .q65-pill:hover{opacity:.82;}
  body.rfa .q65-pill-arrow{width:19px;height:15px;flex:none;transition:transform .3s ease;}
  body.rfa .q65-pill:hover .q65-pill-arrow{transform:translateX(4px);}
  body.rfa .q65-col{font-size:24px;line-height:1.3;letter-spacing:-0.24px;}
  body.rfa .q65-sec-intro{padding:48px 0 60px;}
  body.rfa .q65-sec-how{padding:60px 0 40px;}
  body.rfa .q65-label{margin:0 0 46px;}
  body.rfa .q65-item{min-height:0;padding:19px 0;}
  body.rfa .q65-item-t{font-size:28px;line-height:33.6px;letter-spacing:-0.84px;margin:0 0 12px;}
  body.rfa .q65-item-d{font-size:20px;line-height:30.4px;color:#000;}
  body.rfa .q65-brands-h{font-size:66px !important;line-height:75.9px !important;letter-spacing:-1.5px !important;max-width:560px;}
  body.rfa section.u-overflow-hidden{background:#dfeebe !important;border-radius:8px;padding:150px 60px;}
  body.rfa section.u-overflow-hidden .heading-component h1,body.rfa section.u-overflow-hidden .heading-text{font-size:50px;line-height:57.5px;letter-spacing:-1.2px;max-width:820px;}
  body.rfa section.u-overflow-hidden button.button{display:inline-flex;align-items:center;gap:20px;background:#1d1d1b !important;color:#fff !important;border-radius:1000px !important;padding:15px 29px 15px 33px !important;min-height:0 !important;font-family:'DM Mono',ui-monospace,monospace !important;font-size:17px !important;line-height:17px !important;letter-spacing:-0.68px !important;transition:opacity .3s ease;}
  body.rfa section.u-overflow-hidden button.button:hover{opacity:.82;}
}

/* ============================================================
   q97 — the Work-page START LINE becomes the site-wide law
   (user directive): logo / page title / content all stand on
   the fixed 60px line at every width, on every page.
   · header container: generalized to all pages (was rfw-only).
   · studio (About): page-title band cloned from the Work head
     — white band under the 92px strip, h1 at x=60, size
     clamp(40px,4.23vw,72px) lh1.15 ls-1.5 w400 (exact Work
     computed values), effective band padding 58/44 (= Work's
     44+22-8 / 40+12-8). Existing greeting hero kept below.
   · studio + index content containers: 1440-capped centered
     (x=240 @1920) -> full-width 60px line.
   · case pages: header line only this cycle (their approved
     compositions use container-relative widths; content
     migration = separate pass).
   Reversible: delete this block + restore the rfw-scoped
   header selector.
   ============================================================ */
@media (min-width:768px){
  body.rfa .q65-sec-intro .container,body.rfa .q65-sec-how .container,body.rfa .q65-brands .container,body.rfa [class*="6ba26e3a"] .container{max-width:none;width:auto;padding-left:60px;padding-right:60px;margin:0;}
  body.rfa .q65-intro{max-width:none;width:100%;}
  [data-barba-namespace="Home"] section .container{max-width:none;width:auto;padding-left:60px;padding-right:60px;margin:0;}
}
.av-pagehead,body.rfa .av-pagehead,[data-barba-namespace="Studio"] .av-pagehead{background:#fff !important;padding:58px 60px 60px !important;}
.av-pagehead h1,body.rfa .av-pagehead h1,[data-barba-namespace="Studio"] .av-pagehead h1{margin:0 !important;font-size:clamp(40px,4.23vw,72px)!important;line-height:1.15!important;letter-spacing:-1.5px!important;font-weight:400 !important;color:#000 !important;}
@media (max-width:767px){
  .av-pagehead,body.rfa .av-pagehead,[data-barba-namespace="Studio"] .av-pagehead{padding:36px 12px 28px !important;}
  .sidenav .container.cc-nav{max-width:none!important;width:100%!important;padding-left:3.125vw!important;padding-right:3.125vw!important;}
}

/* ============================================================
   q98 — home Featured-Work row starts ON the 60px line
   (user report: first card drifted with viewport — the slider
   JS sets an inline centering padding-left 240/94/77px).
   CSS !important beats the inline style; the peek composition,
   card width 35.25vw and slider behaviour are untouched.
   + logo 60 -> 52px desktop (all pages), mobile stays 42.
   Reversible: delete this block.
   ============================================================ */
@media (min-width:768px){
  [data-barba-namespace="Home"] .q53-workhead + .hero-featured-cs__component .hero-featured-cs__list{padding-left:60px !important;}
}
@media (max-width:767px){
  body.q53 section.w-variant-ffdae436-6d76-12b6-39d6-0e4201c47aad .container{max-width:none;width:auto;padding-left:3.125vw;padding-right:3.125vw;margin:0;}
}

/* ============================================================
   q99 — home vs RF home file (user MCP tree 2626:530, live
   capture by html.to.design; the accompanying rough HTML/CSS
   sketch in the same export was DISCARDED as noise).
   Applied: work-title ls -1.2; All Projects pill = RF
   btn-outline (DM Mono 17, 27px tall); slider card 36.5625vw
   (=702@1920) gap 30 (was 35.25vw/27); card typography = work
   cards (title 32/44.8 -0.7, client 20/30.4, media mb 20);
   contact/CTA band pad 150/60 + Start-a-Project pill 47px
   with arrow (same pattern as q96 studio).
   Kept: home CTA color #e9efff (RF home fill absent from the
   tree; ours is established), statement 48 centered with serif
   em. NOT built (documented): Featured Posts (blog deleted by
   user), Testimonials + Sectors pill row (new content — needs
   explicit ask; could reuse avilab's 3 categories).
   Reversible: delete this block.
   ============================================================ */
@media (min-width:768px){
  [data-barba-namespace="Home"] .q53-worktitle{letter-spacing:-1.2px;}
  [data-barba-namespace="Home"] .q53-pill{font-family:'DM Mono',ui-monospace,monospace !important;font-size:17px !important;line-height:17px !important;letter-spacing:-0.68px !important;padding:4px 14px;}
  [data-barba-namespace="Home"] .q53-workhead + .hero-featured-cs__component .hero-featured-cs__list{gap:30px;}
  [data-barba-namespace="Home"] .q53-workhead + .hero-featured-cs__component .hero-featured-cs__item{flex:0 0 36.5625vw;width:36.5625vw;}
  [data-barba-namespace="Home"] .hero-featured-cs__item .video-card-visual{margin-bottom:20px;}
  [data-barba-namespace="Home"] .hero-featured-cs__item .video-card-title:not(.cc-subtitle){font-size:32px !important;line-height:44.8px !important;letter-spacing:-0.7px !important;}
  [data-barba-namespace="Home"] .hero-featured-cs__item .video-card-title.cc-subtitle{font-size:20px !important;line-height:30.4px !important;}
  [data-barba-namespace="Home"] section.u-overflow-hidden{padding:150px 60px;}
  [data-barba-namespace="Home"] section.u-overflow-hidden a.button{display:inline-flex;align-items:center;gap:20px;min-height:0 !important;padding:15px 29px 15px 33px !important;}
}
[data-barba-namespace="Home"] section.u-overflow-hidden .q65-pill-arrow{width:19px;height:15px;flex:none;margin-left:20px;transition:transform .3s ease;}
[data-barba-namespace="Home"] section.u-overflow-hidden a.button:hover .q65-pill-arrow{transform:translateX(4px);}

/* ===== q100 — إخفاء باندَي CTA بطلب المستخدم: Work «Let's co-create» + About «Story, rhythm» ===== */
/* q72: الإزالة بالإخفاء CSS لا الحذف الفيزيائي (barba). باند studio#contact (هدف Say hi.) وباند index (q99) غير ممسّبين. */
body.rfw section.u-overflow-hidden.av-hover{display:none!important}
body.rfa section.q65-band{display:none!important}

/* ===== q101 — إزالة الشريط الرمادي بين CTA «Got a creative challenge?» والفوتر في Work (طلب المستخدم بلقطة) ===== */
/* المالك: قاعدة section:has(+ section.u-overflow-hidden){pb:118;mb:-30} (سطر ~879) — «سرير تراكب» لباند co-create
   الذي أخفاه q100، فمكشوف بلا غطاء (88px صافي). نصفله على مشاريع فقط؛ index/studio يحتفظان بسريريهما (أباندهما ظاهران يغطيانه). */
body.rfw #av-cta-sec{padding-bottom:0!important;margin-bottom:0!important}

/* ===== q102 — تدقيق شامل متعدد المقاسات: إصلاح ثغرات خط المونو (قانون q74 مطلق) =====
   المسح كشف 3 مواضع تفقد DM Mono: زر CTA الرئيسية (كل المقاسات — قاعدة q99 أعطته الهندسة بلا خط)،
   pill All Projects هاتفًا (قاعدة q99 محشورة min-768)، وزر تواصل الأبوت هاتفًا (قاعدة q96 محشورة كذلك).
   الخط مطلق؛ المقاسات تبقى المعتمدة لكل سياق (13 هاتفًا للpill، 16 للزر هاتفًا). */
[data-barba-namespace="Home"] section.u-overflow-hidden a.button{font-family:'DM Mono',ui-monospace,monospace !important;font-size:17px !important;line-height:17px !important;letter-spacing:-0.68px !important;}
@media (max-width:767px){
  [data-barba-namespace="Home"] .q53-pill{font-family:'DM Mono',ui-monospace,monospace !important;}
  body.rfa .modal-component .button{font-family:'DM Mono',ui-monospace,monospace !important;}
}

/* ===== q102b — لوجو صفحات الحالات كان أبيضًا على الرأس الأبيض (انحدار q97: الرأس صار أبيض واللون بقي أبيض) =====
   اللوجو قناع currentColor؛ الرأس أبيض site-wide منذ q97 → نثبّت لون اللوجو في رأس كل الصفحات.
   الفوتر خارج النطاق (لوجوه الكريمي بقاعدته الخاصة). */
.sidenav__header .avilab-logo{color:var(--av-fg,#151515) !important;}

/* ===== q103 — زر «Start a Project» في تواصل الأبوت كان يلتف سطرين على الهاتف (طلب المستخدم بلقطة) =====
   السبب: قواعد q96 (حجم السهم 19×15، الحشوة 15/29/15/33، min-height:0) كلها desktop-scoped —
   على الهاتف السهم يتضخم (71×54) والحشوة القديمة 12/20 + min-height 56 تسري → التفاف 186×78.
   الرقعة: نمط q96 نفسه على الموبايل → الزر يصبح 241×47 كالديسكتوب (مونو 17 كسائر الحبوب). */
@media (max-width:767px){
  body.rfa .modal-component .button{display:inline-flex;align-items:center;gap:20px;min-height:0 !important;padding:15px 29px 15px 33px !important;white-space:nowrap;font-size:17px !important;line-height:17px !important;letter-spacing:-0.68px !important;}
  body.rfa .modal-component .button .q65-pill-arrow{width:19px;height:15px;flex:none;transition:transform .3s ease;}
  body.rfa .modal-component .button:hover .q65-pill-arrow{transform:translateX(4px);}
}

/* ===== q104 — إزالة شريط «Hello, nice to meet you!» من الأبوت (طلب المستخدم بلقطة) =====
   الشريط بين رأس About وهيرو og-image: صف عنوان + spacer + حشوة القسم العلوية (146px هاتفًا/125 ديسكتوب).
   q72: إخفاء لا حذف. الصورة الداكنة (الصف الثاني بنفس القسم) تبقى كما هي. */
[data-barba-namespace="Studio"] section.w-variant-6ba26e3a-3593-a9c4-d16f-64c5a8374ea9 .heading-component,
body.rfa section.w-variant-6ba26e3a-3593-a9c4-d16f-64c5a8374ea9 .heading-component{display:none !important;}
[data-barba-namespace="Studio"] section.w-variant-6ba26e3a-3593-a9c4-d16f-64c5a8374ea9 .spacer-component,
body.rfa section.w-variant-6ba26e3a-3593-a9c4-d16f-64c5a8374ea9 .spacer-component{display:none !important;}
[data-barba-namespace="Studio"] section.w-variant-6ba26e3a-3593-a9c4-d16f-64c5a8374ea9,
body.rfa section.w-variant-6ba26e3a-3593-a9c4-d16f-64c5a8374ea9{padding-top:0 !important;}


/* q113 — next-project band follows the case canvas color (admin canvas
   setting). Same-specificity late rules: they win the cascade tie. */
.av-case section.section.u-mode-dark .video-card-title.cc-featured-blog{color:var(--av-fg,#000) !important}
.av-case section.section.u-mode-dark .video-card-title.cc-subtitle{color:var(--av-muted,rgba(0,0,0,.6)) !important}
.av-case section.section.u-mode-dark h4 em,
.av-case section.section.u-mode-dark .heading-text em{color:var(--av-fg,#0d0f14) !important}
.av-case section.section.u-mode-dark .buff-arrow__button{color:var(--av-fg,#000) !important}

/* ═══ q159 — فوتر theoplawinski الفاتح: هذا الملف يُحمَّل بعد site.css فإدراج التجاوز هنا يحسم التعادل في !important ═══ */
.section.cc-footer{background:#fff !important;color:#0d0f14 !important;padding-top:0 !important;padding-bottom:0 !important;overflow:visible}
.section.cc-footer .footer-link,.section.cc-footer .paragraph-sm{color:#0d0f14}
/* ═══ /q159 ═══ */
/* q159b: القانونيات القديمة (شعار+©+Privacy) — الفوتر الجديد يغني عنها */
.cc-footer .cc-footer-legals,.cc-footer .footer__b-corp{display:none !important}
/* ═══ /q159b ═══ */
/* q159c: صف القانونيات القديم كاملًا (هامشه يرسم فراغًا بعد الفوتر الجديد) */
.cc-footer .row.row-justify-between.row-align-end{display:none !important}
/* q159d: الفاصلوات اليتيمة بعد الحاوية (136px فراغ) */
.cc-footer>.spacer-component{display:none !important}
/* q160: قسم CTA «Got a creative challenge» — الفوتر يغني عنه (طلب المستخدم) */
.hp-cta,#av-cta-sec{display:none !important}

/* ============================================================
   q161 — Unified Header & Logo Alignment Site-Wide (User Request)
   ============================================================ */
.sidenav,
body.q53 .sidenav,
body.rfw .sidenav,
body.rfa .sidenav,
body.case-hpop .sidenav,
body.av-case .sidenav,
.case-hpop .sidenav,
.av-case .sidenav,
[data-barba-namespace] .sidenav {
  background: var(--av-canvas, #ffffff) !important;
  border-radius: 0 !important;
  position: sticky !important;
  top: 0 !important;
  z-index: 900 !important;
  transition: transform .5s cubic-bezier(.45,0,.2,1), box-shadow .35s ease, background-color .25s ease !important;
}

.sidenav .sidenav__header,
body.q53 .sidenav .sidenav__header,
body.rfw .sidenav .sidenav__header,
body.rfa .sidenav .sidenav__header,
body.case-hpop .sidenav .sidenav__header,
body.av-case .sidenav .sidenav__header,
.case-hpop .sidenav .sidenav__header,
.av-case .sidenav .sidenav__header,
[data-barba-namespace] .sidenav .sidenav__header {
  padding: 16px 0 !important;
  background-color: transparent !important;
}

.sidenav .container.cc-nav,
body.q53 .sidenav .container.cc-nav,
body.rfw .sidenav .container.cc-nav,
body.rfa .sidenav .container.cc-nav,
body.case-hpop .sidenav .container.cc-nav,
body.av-case .sidenav .container.cc-nav,
.case-hpop .sidenav .container.cc-nav,
.av-case .sidenav .container.cc-nav,
[data-barba-namespace] .sidenav .container.cc-nav {
  max-width: none !important;
  width: 100% !important;
  margin: 0 !important;
  min-height: 60px !important;
  display: flex !important;
  align-items: center !important;
  box-sizing: border-box !important;
}

@media (min-width: 768px) {
  .sidenav .container.cc-nav,
  body.q53 .sidenav .container.cc-nav,
  body.rfw .sidenav .container.cc-nav,
  body.rfa .sidenav .container.cc-nav,
  body.case-hpop .sidenav .container.cc-nav,
  body.av-case .sidenav .container.cc-nav,
  .case-hpop .sidenav .container.cc-nav,
  .av-case .sidenav .container.cc-nav,
  [data-barba-namespace] .sidenav .container.cc-nav {
    padding-left: 60px !important;
    padding-right: 60px !important;
  }
}

@media (max-width: 767px) {
  .sidenav .container.cc-nav,
  body.q53 .sidenav .container.cc-nav,
  body.rfw .sidenav .container.cc-nav,
  body.rfa .sidenav .container.cc-nav,
  body.case-hpop .sidenav .container.cc-nav,
  body.av-case .sidenav .container.cc-nav,
  .case-hpop .sidenav .container.cc-nav,
  .av-case .sidenav .container.cc-nav,
  [data-barba-namespace] .sidenav .container.cc-nav {
    padding-left: 3.125vw !important;
    padding-right: 3.125vw !important;
    min-height: 52px !important;
  }
}

.sidenav .nav-logo_link,
body.q53 .sidenav .nav-logo_link,
body.rfw .sidenav .nav-logo_link,
body.rfa .sidenav .nav-logo_link,
body.case-hpop .sidenav .nav-logo_link,
body.av-case .sidenav .nav-logo_link,
.case-hpop .sidenav .nav-logo_link,
.av-case .sidenav .nav-logo_link,
[data-barba-namespace] .sidenav .nav-logo_link {
  width: 3.25rem !important;
  max-width: 3.25rem !important;
  display: flex !important;
  align-items: center !important;
  visibility: visible !important;
  opacity: 1 !important;
  pointer-events: auto !important;
  padding: 0 !important;
  margin: 0 !important;
}

.sidenav .nav-logo_link .avilab-logo,
.sidenav .avilab-logo,
body.q53 .sidenav .avilab-logo,
body.rfw .sidenav .avilab-logo,
body.rfa .sidenav .avilab-logo,
body.case-hpop .sidenav .avilab-logo,
body.av-case .sidenav .avilab-logo,
.case-hpop .sidenav .avilab-logo,
.av-case .sidenav .avilab-logo,
[data-barba-namespace] .sidenav .avilab-logo {
  width: 100% !important;
  height: auto !important;
  aspect-ratio: 1 / 1 !important;
  display: block !important;
  color: var(--av-fg, #151515) !important;
  visibility: visible !important;
  opacity: 1 !important;
}

.sidenav .cc-rf-nav,
body.q53 .sidenav .cc-rf-nav,
body.rfw .sidenav .cc-rf-nav,
body.rfa .sidenav .cc-rf-nav,
body.case-hpop .sidenav .cc-rf-nav,
body.av-case .sidenav .cc-rf-nav,
.case-hpop .sidenav .cc-rf-nav,
.av-case .sidenav .cc-rf-nav,
[data-barba-namespace] .sidenav .cc-rf-nav {
  display: flex !important;
  align-items: center !important;
  gap: 56px !important;
  margin: 0 auto !important;
}

.sidenav .cc-rf-nav__link,
body.q53 .sidenav .cc-rf-nav__link,
body.rfw .sidenav .cc-rf-nav__link,
body.rfa .sidenav .cc-rf-nav__link,
body.case-hpop .sidenav .cc-rf-nav__link,
body.av-case .sidenav .cc-rf-nav__link,
.case-hpop .sidenav .cc-rf-nav__link,
.av-case .sidenav .cc-rf-nav__link,
[data-barba-namespace] .sidenav .cc-rf-nav__link {
  font-size: 22px !important;
  line-height: 33px !important;
  letter-spacing: -0.5px !important;
  font-weight: 400 !important;
  color: var(--av-fg, #000) !important;
  text-decoration: none !important;
  pointer-events: auto !important;
  transition: opacity .2s ease !important;
}

.sidenav .cc-rf-nav__link:hover,
body.q53 .sidenav .cc-rf-nav__link:hover,
body.rfw .sidenav .cc-rf-nav__link:hover,
body.rfa .sidenav .cc-rf-nav__link:hover,
body.case-hpop .sidenav .cc-rf-nav__link:hover,
body.av-case .sidenav .cc-rf-nav__link:hover,
.case-hpop .sidenav .cc-rf-nav__link:hover,
.av-case .sidenav .cc-rf-nav__link:hover,
[data-barba-namespace] .sidenav .cc-rf-nav__link:hover {
  opacity: 0.7 !important;
}

.sidenav .cc-rf-nav__pill,
body.q53 .sidenav .cc-rf-nav__pill,
body.rfw .sidenav .cc-rf-nav__pill,
body.rfa .sidenav .cc-rf-nav__pill,
body.case-hpop .sidenav .cc-rf-nav__pill,
body.av-case .sidenav .cc-rf-nav__pill,
.case-hpop .sidenav .cc-rf-nav__pill,
.av-case .sidenav .cc-rf-nav__pill,
[data-barba-namespace] .sidenav .cc-rf-nav__pill {
  background: var(--av-pill-bg, var(--av-fg, #101014)) !important;
  color: var(--av-pill-fg, var(--av-canvas, #ffffff)) !important;
  border-radius: 1000px !important;
  padding: 11px 22px !important;
  font-size: 17px !important;
  line-height: 17px !important;
  letter-spacing: -0.68px !important;
  text-decoration: none !important;
  pointer-events: auto !important;
  transition: opacity .2s ease, background-color .25s ease, color .25s ease !important;
}

.sidenav .cc-rf-nav__pill:hover,
body.q53 .sidenav .cc-rf-nav__pill:hover,
body.rfw .sidenav .cc-rf-nav__pill:hover,
body.rfa .sidenav .cc-rf-nav__pill:hover,
body.case-hpop .sidenav .cc-rf-nav__pill:hover,
body.av-case .sidenav .cc-rf-nav__pill:hover,
.case-hpop .sidenav .cc-rf-nav__pill:hover,
.av-case .sidenav .cc-rf-nav__pill:hover,
[data-barba-namespace] .sidenav .cc-rf-nav__pill:hover {
  opacity: 0.82 !important;
}

@media (max-width: 767px) {
  .sidenav .cc-rf-nav,
  body.q53 .sidenav .cc-rf-nav,
  body.rfw .sidenav .cc-rf-nav,
  body.rfa .sidenav .cc-rf-nav,
  body.case-hpop .sidenav .cc-rf-nav,
  body.av-case .sidenav .cc-rf-nav,
  .case-hpop .sidenav .cc-rf-nav,
  .av-case .sidenav .cc-rf-nav,
  [data-barba-namespace] .sidenav .cc-rf-nav {
    gap: 22px !important;
  }
  .sidenav .cc-rf-nav__pill,
  body.q53 .sidenav .cc-rf-nav__pill,
  body.rfw .sidenav .cc-rf-nav__pill,
  body.rfa .sidenav .cc-rf-nav__pill,
  body.case-hpop .sidenav .cc-rf-nav__pill,
  body.av-case .sidenav .cc-rf-nav__pill,
  .case-hpop .sidenav .cc-rf-nav__pill,
  .av-case .sidenav .cc-rf-nav__pill,
  [data-barba-namespace] .sidenav .cc-rf-nav__pill {
    padding: 9px 18px !important;
    margin-left: 4px !important;
  }
}

/* Case study canvas color inheritance for typography & elements */
.case-hpop {
  --hpc: var(--av-fg, #0d0f14) !important;
  --hpmut: var(--av-muted, rgba(13,15,20,.55)) !important;
  color: var(--av-fg, #0d0f14) !important;
}
.case-hpop .hp-bc,
.case-hpop .hp-bc a,
.case-hpop .hp-meta-bar,
.case-hpop .hp-titlerow,
.case-hpop .hp-h1,
.case-hpop .hp-h2,
.case-hpop .hp-p,
.case-hpop .hp-arrow,
.case-hpop .hp-serv-h,
.case-hpop .hp-services,
.case-hpop .hp-services a,
.case-hpop .hp-idea-label,
.case-hpop .hp-idea-big {
  color: var(--av-fg, #0d0f14) !important;
}

/* ============================================================
   q163 — 4-Column Flexible Grid for Case Studies (User Request)
   - 4-column base grid with customizable spans: 1, 2, 3, or 4 cols
   - Height-matched alignment for 3-col (16:9) + 1-col (9:16)
   - Flush top & bottom bounds without overflowing the row
   ============================================================ */
.case-hpop .hp-grid-flex,
.case-hpop .hp-grid2:has(> [class*="hp-span-"]),
.case-hpop .hp-grid4:has(> [class*="hp-span-"]),
.case-hpop .hp-grid2:has(> .hp-split-text),
.case-hpop .hp-grid4:has(> .hp-split-text) {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 40px !important;
  margin: 0 0 60px !important;
}

.case-hpop .hp-grid-flex:not(.hp-nat),
.case-hpop .hp-grid2:not(.hp-nat):has(> [class*="hp-span-"]),
.case-hpop .hp-grid4:not(.hp-nat):has(> [class*="hp-span-"]) {
  align-items: stretch !important;
}

.case-hpop .hp-grid-flex.hp-nat,
.case-hpop .hp-grid2.hp-nat,
.case-hpop .hp-grid4.hp-nat {
  align-items: start !important;
}

.case-hpop .hp-grid-flex > figure,
.case-hpop .hp-grid2:has(> [class*="hp-span-"]) > figure,
.case-hpop .hp-grid4:has(> [class*="hp-span-"]) > figure {
  margin: 0 !important;
  position: relative !important;
  display: flex !important;
  flex-direction: column !important;
  overflow: hidden !important;
  border-radius: 2px !important;
}

.case-hpop .hp-grid-flex:not(.hp-nat) > figure:not([style*="aspect-ratio"]),
.case-hpop .hp-grid2:not(.hp-nat):has(> [class*="hp-span-"]) > figure:not([style*="aspect-ratio"]),
.case-hpop .hp-grid4:not(.hp-nat):has(> [class*="hp-span-"]) > figure:not([style*="aspect-ratio"]) {
  height: 100% !important;
}

/* Figures with an explicit inline aspect-ratio must NOT stretch to row height;
   they size themselves from width × aspect-ratio and video covers that box */
.case-hpop .hp-grid-flex > figure[style*="aspect-ratio"],
.case-hpop .hp-grid2 > figure[style*="aspect-ratio"],
.case-hpop .hp-grid4 > figure[style*="aspect-ratio"] {
  align-self: start !important;
  height: auto !important;
  width: 100% !important;
  overflow: hidden !important;
}

.case-hpop .hp-grid-flex.hp-nat > figure,
.case-hpop .hp-grid2.hp-nat > figure,
.case-hpop .hp-grid4.hp-nat > figure {
  align-self: start !important;
}

.case-hpop .hp-grid-flex figure.hp-span-1:not([style*="aspect-ratio"]):not(.hp-nat),
.case-hpop .hp-grid2 figure.hp-span-1:not([style*="aspect-ratio"]):not(.hp-nat),
.case-hpop .hp-grid4 figure.hp-span-1:not([style*="aspect-ratio"]):not(.hp-nat) {
  aspect-ratio: 9/16;
}

.case-hpop .hp-grid-flex figure.hp-span-3:not([style*="aspect-ratio"]):not(.hp-nat),
.case-hpop .hp-grid2 figure.hp-span-3:not([style*="aspect-ratio"]):not(.hp-nat),
.case-hpop .hp-grid4 figure.hp-span-3:not([style*="aspect-ratio"]):not(.hp-nat) {
  aspect-ratio: 16/9;
}

.case-hpop .hp-grid-flex figure.hp-span-4:not([style*="aspect-ratio"]):not(.hp-nat),
.case-hpop .hp-grid2 figure.hp-span-4:not([style*="aspect-ratio"]):not(.hp-nat),
.case-hpop .hp-grid4 figure.hp-span-4:not([style*="aspect-ratio"]):not(.hp-nat) {
  aspect-ratio: 16/9;
}

/* Text cells inside grid */
.case-hpop .hp-grid-flex > .hp-split-text,
.case-hpop .hp-grid2 > .hp-split-text,
.case-hpop .hp-grid4 > .hp-split-text {
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  height: 100% !important;
}

.case-hpop .hp-span-1, .case-hpop figure.hp-span-1, .case-hpop div.hp-span-1 { grid-column: span 1 !important; }
.case-hpop .hp-span-2, .case-hpop figure.hp-span-2, .case-hpop div.hp-span-2 { grid-column: span 2 !important; }
.case-hpop .hp-span-3, .case-hpop figure.hp-span-3, .case-hpop div.hp-span-3 { grid-column: span 3 !important; }
.case-hpop .hp-span-4, .case-hpop figure.hp-span-4, .case-hpop div.hp-span-4 { grid-column: span 4 !important; }

/* In flexible grid media fills cleanly */
.case-hpop .hp-grid-flex figure > img,
.case-hpop .hp-grid-flex figure > video,
.case-hpop .hp-grid-flex figure > iframe,
.case-hpop .hp-grid2:has(> [class*="hp-span-"]) figure > img,
.case-hpop .hp-grid2:has(> [class*="hp-span-"]) figure > video,
.case-hpop .hp-grid2:has(> [class*="hp-span-"]) figure > iframe,
.case-hpop .hp-grid4:has(> [class*="hp-span-"]) figure > img,
.case-hpop .hp-grid4:has(> [class*="hp-span-"]) figure > video,
.case-hpop .hp-grid4:has(> [class*="hp-span-"]) figure > iframe {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block !important;
  border-radius: 2px !important;
}

/* Only pure natural figures without explicit aspect ratio use contain */
.case-hpop .hp-grid-flex.hp-nat figure:not([style*="aspect-ratio"]) > img,
.case-hpop .hp-grid-flex.hp-nat figure:not([style*="aspect-ratio"]) > video,
.case-hpop .hp-grid2.hp-nat figure:not([style*="aspect-ratio"]) > img,
.case-hpop .hp-grid2.hp-nat figure:not([style*="aspect-ratio"]) > video,
.case-hpop .hp-grid4.hp-nat figure:not([style*="aspect-ratio"]) > video,
.case-hpop .hp-grid4.hp-nat figure:not([style*="aspect-ratio"]) > img,
.case-hpop figure.hp-nat:not([style*="aspect-ratio"]) > img,
.case-hpop figure.hp-nat:not([style*="aspect-ratio"]) > video {
  object-fit: contain !important;
}

/* Figures with explicit aspect-ratio or span MUST fill and crop (object-fit: cover) */
.case-hpop figure[style*="aspect-ratio"] > img,
.case-hpop figure[style*="aspect-ratio"] > video,
.case-hpop figure:has(> [style*="aspect-ratio"]) > img,
.case-hpop figure:has(> [style*="aspect-ratio"]) > video,
.case-hpop figure.hp-span-1 > img,
.case-hpop figure.hp-span-1 > video,
.case-hpop figure.hp-span-2 > img,
.case-hpop figure.hp-span-2 > video,
.case-hpop figure.hp-span-3 > img,
.case-hpop figure.hp-span-3 > video,
.case-hpop figure.hp-span-4 > img,
.case-hpop figure.hp-span-4 > video {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center center !important;
  display: block !important;
}

.case-hpop figure[style*="aspect-ratio"],
.case-hpop figure:has(> [style*="aspect-ratio"]),
.case-hpop figure.hp-span-1,
.case-hpop figure.hp-span-2,
.case-hpop figure.hp-span-3,
.case-hpop figure.hp-span-4 {
  overflow: hidden !important;
}

/* Mobile responsive collapse: stack cleanly */
@media (max-width: 767px) {
  .case-hpop .hp-grid-flex,
  .case-hpop .hp-grid2:has(> [class*="hp-span-"]),
  .case-hpop .hp-grid4:has(> [class*="hp-span-"]),
  .case-hpop .hp-grid2:has(> .hp-split-text),
  .case-hpop .hp-grid4:has(> .hp-split-text) {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
  }
  .case-hpop .hp-span-1,
  .case-hpop .hp-span-2,
  .case-hpop .hp-span-3,
  .case-hpop .hp-span-4,
  .case-hpop figure.hp-span-1,
  .case-hpop figure.hp-span-2,
  .case-hpop figure.hp-span-3,
  .case-hpop figure.hp-span-4,
  .case-hpop div.hp-span-1,
  .case-hpop div.hp-span-2,
  .case-hpop div.hp-span-3,
  .case-hpop div.hp-span-4 {
    grid-column: 1 / -1 !important;
  }
}

/* ============================================================
   q164 — 4-Column Side-by-Side Split (Text + Media) for Case Studies (User Request)
   - Splits page into Text and adjacent Media using 4-column grid (2+2, 3+1, 1+3)
   - Typographic composition strictly matched to case study sections (.hp-blocktext, .hp-meta)
   - Full support for reverse side layout (Text Left / Media Right or vice-versa)
   - Vertical alignment options: top (start), middle (center), stretch
   - Responsive single-column collapse on mobile
   ============================================================ */
.case-hpop .hp-split {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 40px !important;
  margin: 0 0 60px !important;
  align-items: start !important;
}

.case-hpop .hp-split.hp-align-center {
  align-items: center !important;
}

.case-hpop .hp-split.hp-align-stretch {
  align-items: stretch !important;
}

/* Split text side */
.case-hpop .hp-split-text {
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
}

.case-hpop .hp-split.hp-align-start .hp-split-text {
  justify-content: flex-start !important;
}

.case-hpop .hp-split-text.hp-span-1 { grid-column: span 1 !important; }
.case-hpop .hp-split-text.hp-span-2 { grid-column: span 2 !important; }
.case-hpop .hp-split-text.hp-span-3 { grid-column: span 3 !important; }
.case-hpop .hp-split-text.hp-span-4 { grid-column: span 4 !important; }

/* Text typography — unified editorial size matching case accordions */
.case-hpop .hp-split-text .hp-serv-h {
  font-size: 11px !important;
  line-height: 1.4 !important;
  letter-spacing: 0.12em !important;
  text-transform: uppercase !important;
  font-weight: 600 !important;
  color: rgba(255, 255, 255, 0.5) !important;
  margin: 0 0 10px !important;
}

.case-hpop .hp-split-text .hp-h2 {
  font-size: clamp(20px, 2.1vw, 26px) !important;
  line-height: 1.25 !important;
  letter-spacing: -0.015em !important;
  font-weight: 500 !important;
  color: #ffffff !important;
  margin: 0 0 16px !important;
}

.case-hpop .hp-split-text .hp-p {
  font-size: 16px !important;
  line-height: 1.65 !important;
  letter-spacing: -0.01em !important;
  color: rgba(255, 255, 255, 0.65) !important;
  font-weight: 400 !important;
  margin: 0 0 16px !important;
  max-width: 760px;
}

.case-hpop .hp-split-text .hp-p:last-child {
  margin-bottom: 0 !important;
}

/* Split media side */
.case-hpop figure.hp-split-media {
  margin: 0 !important;
  position: relative !important;
  display: flex !important;
  flex-direction: column !important;
  overflow: hidden !important;
  border-radius: 2px !important;
}

.case-hpop .hp-split.hp-align-stretch figure.hp-split-media {
  height: 100% !important;
}

.case-hpop figure.hp-split-media.hp-span-1 { grid-column: span 1 !important; }
.case-hpop figure.hp-split-media.hp-span-2 { grid-column: span 2 !important; }
.case-hpop figure.hp-split-media.hp-span-3 { grid-column: span 3 !important; }
.case-hpop figure.hp-split-media.hp-span-4 { grid-column: span 4 !important; }

.case-hpop figure.hp-split-media > img,
.case-hpop figure.hp-split-media > video,
.case-hpop figure.hp-split-media > iframe {
  width: 100% !important;
  height: auto !important;
  max-width: 100% !important;
  object-fit: cover !important;
  display: block !important;
  border-radius: 2px !important;
}

.case-hpop .hp-split.hp-align-stretch figure.hp-split-media > img,
.case-hpop .hp-split.hp-align-stretch figure.hp-split-media > video,
.case-hpop .hp-split.hp-align-stretch figure.hp-split-media > iframe {
  height: 100% !important;
}

/* Reverse layout (Media Left, Text Right) */
.case-hpop .hp-split.hp-split-rev > .hp-split-media {
  order: 1 !important;
}
.case-hpop .hp-split.hp-split-rev > .hp-split-text {
  order: 2 !important;
}

/* Mobile responsive collapse for Split */
@media (max-width: 767px) {
  .case-hpop .hp-split {
    grid-template-columns: 1fr !important;
    gap: 28px !important;
    margin-bottom: 36px !important;
  }
  .case-hpop .hp-split-text.hp-span-1,
  .case-hpop .hp-split-text.hp-span-2,
  .case-hpop .hp-split-text.hp-span-3,
  .case-hpop .hp-split-text.hp-span-4,
  .case-hpop figure.hp-split-media.hp-span-1,
  .case-hpop figure.hp-split-media.hp-span-2,
  .case-hpop figure.hp-split-media.hp-span-3,
  .case-hpop figure.hp-split-media.hp-span-4 {
    grid-column: 1 / -1 !important;
  }
  .case-hpop .hp-split.hp-split-rev > .hp-split-media {
    order: unset !important;
  }
  .case-hpop .hp-split.hp-split-rev > .hp-split-text {
    order: unset !important;
  }
}

/* ============================================================
   q162 — theoplawinski Footer Composition (User Request & Analysis)
   - Exact 4-Column Grid Layout matching theoplawinski.com reference
   - Logo in Col 1 (0-25%), aligned to the 60px line (vertically collinear with header logo)
   - Social links in Col 2 (25-50%), stacked vertically
   - Headline + Email in Col 3 & 4 (50-100%)
   - Location in Col 4 (75-100%)
   ============================================================ */
.section.cc-footer {
  background: #ffffff !important;
  color: #0d0f14 !important;
  border-top: 1px solid rgba(13, 15, 20, 0.12) !important;
  padding: 0 !important;
  margin: 0 !important;
  width: 100% !important;
  position: relative !important;
  z-index: 10 !important;
  overflow: visible !important;
}

.section.cc-footer > .footer__logo,
.section.cc-footer > .container,
.section.cc-footer > .spacer-component,
.section.cc-footer .cc-footer-legals,
.section.cc-footer .footer__b-corp,
.section.cc-footer .row.row-justify-between.row-align-end {
  display: none !important;
}

.av-foot2 {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  box-sizing: border-box !important;
  background-color: #ffffff !important;
  position: relative !important;
}

@media (min-width: 768px) {
  .av-foot2 {
    padding: 80px 60px 48px !important;
  }
}

@media (max-width: 767px) {
  .av-foot2 {
    padding: 56px 3.125vw 36px !important;
  }
}

/* --- Top Row: Logo (0-50%) + Headline/Email (50-100%) --- */
.avf2-main {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  align-items: start !important;
  width: 100% !important;
}

.avf2-logo {
  grid-column: 1 / 3 !important;
  display: flex !important;
  align-items: flex-start !important;
  justify-content: flex-start !important;
  line-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}

.avf2-logo .avilab-logo {
  width: clamp(100px, 6.8vw, 124px) !important;
  height: clamp(100px, 6.8vw, 124px) !important;
  aspect-ratio: 1 / 1 !important;
  color: #0d0f14 !important;
  display: block !important;
  margin: 0 !important;
}

.avf2-right {
  grid-column: 3 / 5 !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  margin: 0 !important;
  padding: 0 !important;
}

.avf2-h {
  font-family: 'DM Sans', ui-sans-serif, sans-serif !important;
  font-size: clamp(28px, 2.3vw, 36px) !important;
  line-height: 1.3 !important;
  font-weight: 400 !important;
  letter-spacing: -0.015em !important;
  color: #0d0f14 !important;
  margin: 0 !important;
  max-width: 520px !important;
}

.avf2-mail {
  display: inline-block !important;
  margin-top: clamp(36px, 3.5vw, 54px) !important;
  font-family: 'DM Sans', ui-sans-serif, sans-serif !important;
  font-size: 17px !important;
  line-height: 1.5 !important;
  color: #0d0f14 !important;
  text-decoration: underline !important;
  text-underline-offset: 7px !important;
  text-decoration-thickness: 1px !important;
  transition: opacity 0.2s ease !important;
}

.avf2-mail:hover {
  opacity: 0.55 !important;
}

/* --- Bottom Row: Socials (25-50%) + Location (75-100%) --- */
.avf2-bottom {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  align-items: end !important;
  margin-top: clamp(110px, 10vw, 175px) !important;
  width: 100% !important;
}

.avf2-bottom-col1 {
  grid-column: 1 / 2 !important;
}

.avf2-soc {
  grid-column: 2 / 3 !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 5px !important;
  margin: 0 !important;
  padding: 0 !important;
}

.avf2-soc a {
  font-family: 'DM Sans', ui-sans-serif, sans-serif !important;
  color: #0d0f14 !important;
  font-size: 16px !important;
  line-height: 1.55 !important;
  text-decoration: none !important;
  transition: opacity 0.2s ease !important;
  width: fit-content !important;
}

.avf2-soc a:hover {
  text-decoration: underline !important;
}

.avf2-bottom-col3 {
  grid-column: 3 / 4 !important;
}

.avf2-based {
  grid-column: 4 / 5 !important;
  font-family: 'DM Sans', ui-sans-serif, sans-serif !important;
  font-size: 16px !important;
  line-height: 1.55 !important;
  color: #0d0f14 !important;
  margin: 0 !important;
  white-space: nowrap !important;
}

@media (min-width: 768px) and (max-width: 991px) {
  .avf2-based {
    grid-column: 3 / 5 !important;
    text-align: right !important;
  }
}

@media (max-width: 767px) {
  .avf2-main {
    grid-template-columns: 1fr !important;
    gap: 32px !important;
  }
  .avf2-logo {
    grid-column: auto !important;
  }
  .avf2-logo .avilab-logo {
    width: 72px !important;
    height: 72px !important;
  }
  .avf2-right {
    grid-column: auto !important;
  }
  .avf2-h {
    font-size: 26px !important;
    line-height: 1.35 !important;
  }
  .avf2-mail {
    margin-top: 32px !important;
  }
  .avf2-bottom {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 28px !important;
    margin-top: 60px !important;
  }
  .avf2-bottom-col1,
  .avf2-bottom-col3 {
    display: none !important;
  }
  .avf2-soc {
    grid-column: auto !important;
  }
  .avf2-based {
    grid-column: auto !important;
  }
}




/* ============================================================
   Case Canvas Theme Cascade — Full Page Background
   Ensures that admin canvas color overrides .hp-dark and all case
   content sections so the chosen theme color applies across the
   entire case study page seamlessly.
   ============================================================ */
.case-hpop,
.case-hpop .page-wrapper,
.case-hpop main,
.case-hpop .hp-top,
.case-hpop .hp-hero-wrap,
.case-hpop .hp-meta,
.case-hpop .hp-idea-sec,
.case-hpop .hp-paras,
.case-hpop .hp-dark,
.case-hpop .hp-container,
.case-hpop section {
  background-color: var(--av-canvas, #ffffff) !important;
}

.case-hpop .hp-dark {
  background: var(--av-canvas, #ffffff) !important;
  color: var(--av-fg, #0d0f14) !important;
}

/* Ensure text inside hp-dark and throughout case page respects the theme foreground */
.case-hpop .hp-dark .hp-p,
.case-hpop .hp-dark .hp-blocktext .hp-p,
.case-hpop .hp-dark .hp-serv-h,
.case-hpop .hp-dark .hp-h2,
.case-hpop .hp-split-text .hp-h2,
.case-hpop .hp-split-text .hp-p,
.case-hpop .hp-accordion .hp-serv-h,
.case-hpop .hp-accordion .hp-h2,
.case-hpop .hp-accordion-body .hp-p {
  color: var(--av-fg, #0d0f14) !important;
}

.case-hpop .hp-split-text .hp-serv-h {
  color: var(--av-muted, rgba(13,15,20,.62)) !important;
}

.case-hpop .hp-accordion-chevron {
  color: var(--av-muted, rgba(13,15,20,.62)) !important;
}
.case-hpop .hp-accordion-head:hover .hp-accordion-chevron,
.case-hpop .hp-accordion.is-open .hp-accordion-chevron {
  color: var(--av-fg, #0d0f14) !important;
}


/* ============================================================
   Next Project Heading & Content Theme Adaptation
   Ensures that "Next Project" and its details always match the 
   page foreground color (--av-fg) and never blend into dark
   or light canvases.
   ============================================================ */
.av-case section.section.u-mode-dark .heading-component .heading-text,
.av-case section.section.u-mode-dark .heading-component .heading-text em,
.av-case section.section.u-mode-dark h4.heading-text,
.av-case section.section.u-mode-dark h4.heading-text em,
.case-hpop section.section.u-mode-dark .heading-component .heading-text,
.case-hpop section.section.u-mode-dark .heading-component .heading-text em,
.case-hpop section.section.u-mode-dark h4.heading-text,
.case-hpop section.section.u-mode-dark h4.heading-text em {
  color: var(--av-fg, #ffffff) !important;
  opacity: 1 !important;
}

.av-case section.section.u-mode-dark .video-card-title.cc-featured-blog,
.case-hpop section.section.u-mode-dark .video-card-title.cc-featured-blog {
  color: var(--av-fg, #ffffff) !important;
}

.av-case section.section.u-mode-dark .video-card-title.cc-subtitle,
.case-hpop section.section.u-mode-dark .video-card-title.cc-subtitle {
  color: var(--av-muted, rgba(255,255,255,0.65)) !important;
}

.av-case section.section.u-mode-dark .buff-arrow__text,
.case-hpop section.section.u-mode-dark .buff-arrow__text {
  color: var(--av-fg, #ffffff) !important;
}

.av-case section.section.u-mode-dark .buff-arrow__arrow,
.case-hpop section.section.u-mode-dark .buff-arrow__arrow {
  color: var(--av-fg, #ffffff) !important;
  fill: var(--av-fg, #ffffff) !important;
}
