/* ============================================================
   مجلة شفرة (journal): bento cards.
   Desktop: a 2x2 feature card, a 2x1 wide card and two 1x1 cards. Each card is its photo, a dark shade from the
   bottom, the category chip and an arrow button on top, and the date, reading time, title (and excerpt on the two
   large cards) at the bottom. The whole card is the title link (stretched ::after).
   Tablet: 2 columns. Phones: the feature card, then compact rows (thumb + text).
   ============================================================ */
.shf-blog {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-auto-rows: clamp(240px, 20vw, 300px);
    gap: 16px;
}
.shf-post {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 22px 22px;
    border-radius: 24px;
    background: #101012;
    color: #fff;
}
.shf-post--feature { grid-column: span 2; grid-row: span 2; padding: 26px 28px 30px; }
.shf-post--wide { grid-column: span 2; }
.shf-post__img {
    position: absolute;
    inset: 0;
    z-index: -2;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.1s cubic-bezier(.2, .7, .2, 1);
}
.shf-post__shade {
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(to top, rgba(8, 8, 10, .94) 0%, rgba(8, 8, 10, .62) 38%, rgba(8, 8, 10, .1) 70%, rgba(8, 8, 10, .3) 100%);
}
.shf-post__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.shf-post__cat {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, .28);
    background: rgba(15, 15, 17, .55);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.3;
}
.shf-post__go {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #fff;
    color: #111;
    transition: transform .5s cubic-bezier(.2, .8, .2, 1);
}
.shf-post__body { max-width: 100%; }
.shf-post__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin: 0 0 10px;
    color: rgba(255, 255, 255, .72);
    font-size: 13px;
    line-height: 1.4;
}
.shf-post__dot { width: 4px; height: 4px; border-radius: 50%; background: currentColor; }
.shf-post__title { margin: 0; color: #fff; font-size: clamp(18px, 1.45vw, 22px); line-height: 1.5; font-weight: 700; letter-spacing: 0; text-wrap: balance; }
.shf-post--feature .shf-post__title { font-size: clamp(26px, 2.5vw, 38px); line-height: 1.38; max-width: 17ch; }
.shf-post--wide .shf-post__title { font-size: clamp(20px, 1.75vw, 26px); max-width: 26ch; }
.shf-post__excerpt {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    max-width: 46ch;
    margin: 12px 0 0;
    color: rgba(255, 255, 255, .76);
    font-size: 15px;
    line-height: 1.8;
}
.shf-post--feature .shf-post__excerpt { font-size: 16px; }
.shf-post__link { color: inherit; text-decoration: none; }
.shf-post__link:hover { color: inherit; }
.shf-post__link::after { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
.shf-post__link:focus-visible { outline: none; }
.shf-post__link:focus-visible::after { outline: 2px solid #fff; outline-offset: -6px; }
@media (hover: hover) and (pointer: fine) {
    .shf-post:hover .shf-post__img { transform: scale(1.06); }
    .shf-post:hover .shf-post__go { transform: rotate(-45deg) scale(1.06); }
}

/* tablet: two columns, the feature and wide cards full width */
@media (max-width: 991.98px) {
    .shf-blog { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 270px; }
    .shf-post--feature { grid-row: span 2; }
}

/* phones: the feature card, then compact rows with a thumbnail at the start */
@media (max-width: 767.98px) {
    .shf-blog { grid-template-columns: minmax(0, 1fr); grid-auto-rows: auto; gap: 12px; }
    .shf-post--feature, .shf-post--wide { grid-column: auto; grid-row: auto; }
    .shf-post--feature { aspect-ratio: 4 / 5; padding: 20px 20px 24px; }
    .shf-post--feature .shf-post__title { font-size: 26px; }
    .shf-post:not(.shf-post--feature) {
        display: grid;
        grid-template-columns: 104px minmax(0, 1fr);
        grid-template-rows: auto 1fr;
        grid-template-areas: "img top" "img body";
        column-gap: 14px;
        row-gap: 6px;
        padding: 10px;
        border: 1px solid rgba(127, 127, 127, .2);
        border-radius: 20px;
        background: var(--at-neutral-0);
        color: var(--at-neutral-900);
    }
    .shf-post:not(.shf-post--feature) .shf-post__img {
        position: static;
        grid-area: img;
        z-index: auto;
        width: 104px;
        height: 104px;
        border-radius: 14px;
    }
    .shf-post:not(.shf-post--feature) .shf-post__shade,
    .shf-post:not(.shf-post--feature) .shf-post__go,
    .shf-post:not(.shf-post--feature) .shf-post__excerpt { display: none; }
    .shf-post:not(.shf-post--feature) .shf-post__top { grid-area: top; align-self: end; }
    .shf-post:not(.shf-post--feature) .shf-post__body { grid-area: body; align-self: start; }
    .shf-post:not(.shf-post--feature) .shf-post__cat { padding: 3px 10px; font-size: 12px; color: inherit; background: transparent; border-color: rgba(127, 127, 127, .35); }
    .shf-post:not(.shf-post--feature) .shf-post__title { color: inherit; font-size: 16px; line-height: 1.55; }
    .shf-post:not(.shf-post--feature) .shf-post__meta { order: 2; margin: 6px 0 0; color: inherit; opacity: .6; font-size: 12px; }
    .shf-post:not(.shf-post--feature) .shf-post__body { display: flex; flex-direction: column; }
    .shf-post:not(.shf-post--feature) .shf-post__title { order: 1; }
}

/* entrance: the cards rise in one after another when the grid reaches the screen (blog.js adds the classes;
   without JS or with reduced motion they are simply shown) */
.shf-blog--pre .shf-post { opacity: 0; transform: translateY(44px) scale(.97); }
.shf-blog--pre.shf-blog--in .shf-post {
    opacity: 1;
    transform: none;
    transition: opacity .7s ease, transform .95s cubic-bezier(.2, .8, .2, 1);
}
.shf-blog--pre.shf-blog--in .shf-post:nth-child(2) { transition-delay: .09s; }
.shf-blog--pre.shf-blog--in .shf-post:nth-child(3) { transition-delay: .18s; }
.shf-blog--pre.shf-blog--in .shf-post:nth-child(4) { transition-delay: .27s; }
@media (prefers-reduced-motion: reduce) {
    .shf-blog--pre .shf-post { opacity: 1; transform: none; }
}

/* ============================================================
   أعمالنا (Our work) · Home 15 Section 4 «Selected work» sticky 3D card deck, Arabic RTL.
   Base styles come from the flipped main.css (.sec-4-home-15__*). This file:
   - ports the theme's page-scoped assets/css/sticky-cards.css, scoped to .shf-work and only
     active once ourwork.js adds .shf-work--deck (no JS, reduced motion or a screen under 560px
     high = the theme's static stack);
   - centres the cards with physical left:50% (+ xPercent -50 in JS): the RTL flip of the theme
     file would have produced right:50% and pushed every card off-centre;
   - Shfrah card content: product screen in a glass frame on the system accent, sector pill,
     performance figure, white name bar (white in dark mode too, like a printed card);
   - mirrored arrows are done in the markup (SVG transform), not here.
   ============================================================ */

.shf-work {
    --shf-bar: #fefefe;
    --shf-ink: #1d1d1d;
    --shf-ink-soft: #585959;
}

/* ---------- Title bar ---------- */
.shf-work .sec-4-home-15__title-bar {
    position: relative;
    z-index: 10;
    background-color: var(--at-neutral-0);
}
@media (min-width: 1200px) {
    .shf-work .sec-4-home-15__title-bar { align-items: flex-end; }
}
.shf-work__intro {
    min-width: 0;
}
/* balanced lines: SplitText (reveal-text) freezes the lines it measures, often before the Arabic
   web font has loaded; balance keeps both the measured and any re-wrapped lines even */
.shf-work .sec-4-home-15__heading {
    font-family: var(--at-ff-heading);
    font-size: 56px;
    font-weight: 600;
    line-height: 1.3;
    text-wrap: balance;
}
@media only screen and (min-width: 1200px) and (max-width: 1399px) {
    .shf-work .sec-4-home-15__heading { font-size: 50px; }
}
@media only screen and (min-width: 992px) and (max-width: 1199px) {
    .shf-work .sec-4-home-15__heading { font-size: 44px; }
}
@media only screen and (min-width: 768px) and (max-width: 991px) {
    .shf-work .sec-4-home-15__heading { font-size: 38px; }
}
@media only screen and (min-width: 576px) and (max-width: 767px) {
    .shf-work .sec-4-home-15__heading { font-size: 32px; }
}
@media (max-width: 574.98px) {
    .shf-work .sec-4-home-15__heading { font-size: 28px; }
}
@media (max-width: 399.98px) {
    .shf-work .sec-4-home-15__heading { font-size: 26px; }
}
.shf-work .at-btn-group {
    flex-shrink: 0;
}
/* dark mode: the theme's dark pills would vanish on the dark panel */
[data-bs-theme=dark] .shf-work .at-btn-group .at-btn,
[data-bs-theme=dark] .shf-work .at-btn-group .at-btn-circle,
[data-bs-theme=dark] .shf-work .at-btn-group:hover > * {
    background-color: #fefefe;
    color: #1d1d1d;
}

/* ---------- Static stack (no JS, reduced motion, short screens): the theme's flex column,
   about one card per screen ---------- */
.shf-work:not(.shf-work--deck) .sec-4-home-15__cards {
    margin-top: 40px;
}
.shf-work:not(.shf-work--deck) .sec-4-home-15__card {
    width: min(100%, max(calc((100vh - 140px) * 1428 / 1011), 600px));
    margin-inline: auto;
}
@media (max-width: 767.98px) {
    .shf-work:not(.shf-work--deck) .sec-4-home-15__card {
        width: min(100%, max(calc((100vh - 120px) * 4 / 5), 300px));
        aspect-ratio: 4 / 5;
    }
}
.shf-work .sec-4-home-15__card {
    color: inherit;
}

/* ---------- Deck (ourwork.js): port of sticky-cards.css ---------- */
.shf-work--deck .sec-4-home-15__cards {
    position: relative;
    display: block;
    gap: 0;
    height: 100vh;
    margin: 0 auto;
    perspective: 1000px;
}
.shf-work--deck .sec-4-home-15__card {
    --sec4-gap: 140px;
    position: absolute;
    top: 50%;
    left: 50%;
    right: auto;
    margin: 0;
    width: min(100%, calc((100vh - var(--sec4-gap)) * 1428 / 1011));
    max-width: 100%;
    aspect-ratio: 1428 / 1011;
    height: auto;
    transform-origin: center bottom;
    will-change: transform;
    /* ourwork.js sets the transform every frame: no CSS transition (the theme gives every <a> transition: all .3s,
       which restarted a 0.3s transform transition on each frame and made the cards trail the scrub) */
    transition: none;
}
.shf-work--deck .sec-4-home-15__card:nth-child(1) { z-index: 5; }
.shf-work--deck .sec-4-home-15__card:nth-child(2) { z-index: 4; }
.shf-work--deck .sec-4-home-15__card:nth-child(3) { z-index: 3; }
.shf-work--deck .sec-4-home-15__card:nth-child(4) { z-index: 2; }
.shf-work--deck .sec-4-home-15__card:nth-child(5) { z-index: 1; }
@media (max-width: 991.98px) {
    .shf-work--deck .sec-4-home-15__cards { height: 80vh; }
    .shf-work--deck .sec-4-home-15__card {
        --sec4-gap: 100px;
        width: min(100%, calc((80vh - var(--sec4-gap)) * 1428 / 1011));
    }
}
@media (max-width: 767.98px) {
    .shf-work--deck .sec-4-home-15__cards { height: 70vh; }
    .shf-work--deck .sec-4-home-15__card {
        --sec4-gap: 80px;
        width: min(100%, calc((70vh - var(--sec4-gap)) * 4 / 5));
        aspect-ratio: 4 / 5;
    }
}

/* ---------- Card: accent backdrop + framed product screen ---------- */
.shf-work .shf-work__card {
    --shf-accent-ink: color-mix(in srgb, var(--shf-accent) 76%, #000);
    container-type: inline-size;
    isolation: isolate;
    border-radius: 16px;
    background-color: var(--shf-accent);
    background-image:
        radial-gradient(70% 55% at 50% 22%, rgba(255, 255, 255, 0.26) 0%, rgba(255, 255, 255, 0) 72%),
        linear-gradient(180deg, color-mix(in srgb, var(--shf-accent) 80%, #fff) 0%, var(--shf-accent) 42%, color-mix(in srgb, var(--shf-accent) 66%, #000) 100%);
}
/* the page's seven-column grid lines, fading out towards the bar */
.shf-work .shf-work__card::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background-image: linear-gradient(to right, rgba(255, 255, 255, 0.1) 1px, transparent 1px);
    background-size: calc(100% / 7) 100%;
    background-position: calc(100% / 14) 0;
    -webkit-mask-image: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, 0.5) 45%, transparent 80%);
    mask-image: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, 0.5) 45%, transparent 80%);
}
/* frame size in card units (cqw; the card is 70.8cqw high): under the pills, above the bar
   (21 + 100px) with breathing room. The plain values first are for browsers without cqw. */
.shf-work .shf-work__shot {
    position: absolute;
    z-index: 1;
    top: 64px;
    top: max(6.5cqw, 64px);
    left: 50%;
    transform: translateX(-50%);
    width: 76%;
    width: min(88cqw, calc((70.8cqw - max(6.5cqw, 64px) - 139px) * 1.6));
    aspect-ratio: 16 / 10;
    padding: 6px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.2);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.38), 0 28px 60px -22px rgba(0, 0, 0, 0.55);
}
.shf-work .shf-work__shot .anim-zoomin-wrap {
    width: 100%;
    height: 100%;
    border-radius: 10px;
    overflow: hidden;
}
.shf-work .shf-work__shot .sec-4-home-15__card-img {
    position: relative;
    inset: auto;
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 10px;
    -o-object-fit: cover;
       object-fit: cover;
    -o-object-position: center top;
       object-position: center top;
    background-color: #f2f2f2;
}

/* ---------- Pills: «نظام مميّز» badge + sector (the theme badge corner, mirrored) ---------- */
.shf-work .shf-work__tags {
    position: absolute;
    z-index: 3;
    top: 22px;
    left: 22px;
    display: flex;
    align-items: center;
    gap: 6px;
    max-width: calc(100% - 44px);
}
.shf-work .shf-work__tags .sec-4-home-15__card-badge,
.shf-work .shf-work__sector {
    position: static;
    display: inline-flex;
    align-items: center;
    padding: 7px 12px;
    border-radius: 20px;
    font-family: var(--at-ff-body);
    font-size: 12px;
    font-weight: 600;
    line-height: 1.15;
    white-space: nowrap;
}
.shf-work .shf-work__tags .sec-4-home-15__card-badge {
    background-color: #ffffff;
    color: var(--shf-accent-ink);
}
.shf-work .shf-work__sector {
    color: #ffffff;
    background-color: rgba(0, 0, 0, 0.26);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.34);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
}
/* touch screens: no backdrop blur inside the moving 3D cards (each pill re-blurred its backdrop on every frame) */
@media (hover: none), (pointer: coarse) {
    .shf-work .shf-work__sector {
        -webkit-backdrop-filter: none;
        backdrop-filter: none;
    }
}

/* ---------- Name bar: name · performance figure · «اعرض النظام +» ---------- */
.shf-work .sec-4-home-15__card-bar {
    background-color: var(--shf-bar);
    box-shadow: 0 18px 40px -24px rgba(0, 0, 0, 0.45);
}
.shf-work .sec-4-home-15__card-name {
    font-family: var(--at-ff-heading);
    font-size: 56px;
    line-height: 1.3;
    color: var(--shf-ink);
}
/* deck: only the front card (and the one being uncovered) shows its bar text, so the
   edges peeking under the front card stay clean white strips as in the theme */
.shf-work--deck .sec-4-home-15__card-bar > * {
    opacity: var(--shf-bar-text, 1);
}
.shf-work .sec-4-home-15__card-cta {
    font-size: 13px;
    color: var(--shf-ink);
}
.shf-work .shf-work__goal {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
    margin-inline-end: auto;
    padding-inline-start: 24px;
    border-inline-start: 1px solid rgba(29, 29, 29, 0.14);
}
.shf-work .shf-work__goal-value {
    display: inline-flex;
    align-items: baseline;
    gap: 6px;
    font-family: var(--at-ff-heading);
    font-size: 34px;
    font-weight: 600;
    line-height: 1;
    color: var(--shf-accent);
    white-space: nowrap;
}
.shf-work .shf-work__goal-value small {
    font-family: var(--at-ff-heading);
    font-size: 15px;
    font-weight: 600;
    /* the unit is small text: the label's darker accent (the plain accent was 3.4:1 on the white bar for Rifq) */
    color: var(--shf-accent-ink);
}
.shf-work .shf-work__goal-label {
    max-width: 320px;
    text-wrap: balance;
    font-family: var(--at-ff-body);
    font-size: 13px;
    font-weight: 500;
    line-height: 1.5;
    color: var(--shf-ink-soft);
}
.shf-work .shf-work__goal-label b {
    font-weight: 700;
    color: var(--shf-accent-ink);
}
.shf-work .shf-work__card:focus-visible {
    outline: 3px solid var(--shf-accent);
    outline-offset: 4px;
}
@media only screen and (min-width: 1200px) and (max-width: 1399px) {
    .shf-work .sec-4-home-15__card-name { font-size: 50px; }
    .shf-work .shf-work__goal-value { font-size: 30px; }
}
@media only screen and (min-width: 992px) and (max-width: 1199px) {
    .shf-work .sec-4-home-15__card-name { font-size: 44px; }
    .shf-work .sec-4-home-15__card-bar { padding: 0 32px; }
    .shf-work .shf-work__goal { padding-inline-start: 18px; gap: 10px; }
    .shf-work .shf-work__goal-value { font-size: 26px; }
    .shf-work .shf-work__goal-label { max-width: 230px; font-size: 12px; }
}
/* tablets: the theme's bar is 84px high there */
@media only screen and (min-width: 768px) and (max-width: 1199px) {
    .shf-work .shf-work__shot { width: min(88cqw, calc((70.8cqw - max(6.5cqw, 64px) - 120px) * 1.6)); }
}
@media only screen and (min-width: 768px) and (max-width: 991px) {
    .shf-work .sec-4-home-15__card-name { font-size: 38px; }
    .shf-work .shf-work__goal { padding-inline-start: 16px; gap: 10px; }
    .shf-work .shf-work__goal-value { font-size: 24px; }
    .shf-work .shf-work__goal-value small { font-size: 13px; }
    .shf-work .shf-work__goal-label { max-width: 210px; font-size: 12px; line-height: 1.45; }
}

/* ---------- Phones: 4:5 card, the target sits on the accent above the bar ---------- */
@media (max-width: 767.98px) {
    .shf-work .shf-work__card {
        border-radius: 12px;
    }
    /* the 4:5 card is 125cqw high: pills, frame, then the target and the bar */
    .shf-work .shf-work__shot {
        top: 48px;
        width: 86%;
        width: min(92cqw, calc((125cqw - 228px) * 1.6));
        padding: 4px;
        border-radius: 12px;
    }
    .shf-work .shf-work__shot .anim-zoomin-wrap,
    .shf-work .shf-work__shot .sec-4-home-15__card-img {
        border-radius: 8px;
    }
    .shf-work .shf-work__tags {
        top: 12px;
        left: 12px;
        max-width: calc(100% - 24px);
    }
    .shf-work .shf-work__tags .sec-4-home-15__card-badge,
    .shf-work .shf-work__sector {
        padding: 6px 10px;
        font-size: 11px;
    }
    .shf-work .sec-4-home-15__card-bar {
        left: 12px;
        right: 12px;
        bottom: 12px;
        height: 64px;
        padding: 0 16px;
        overflow: visible;
    }
    .shf-work .sec-4-home-15__card-name { font-size: 24px; }
    .shf-work .sec-4-home-15__card-cta { font-size: 12px; }
    .shf-work .shf-work__goal {
        position: absolute;
        right: 4px;
        left: 4px;
        bottom: calc(100% + 14px);
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
        margin: 0;
        padding: 0;
        border: 0;
    }
    .shf-work .shf-work__goal-value {
        font-size: 28px;
        color: #ffffff;
    }
    /* on phones the target sits on the card's accent colour: unit and label prefix in white like the value */
    .shf-work .shf-work__goal-value small { font-size: 14px; color: inherit; }
    .shf-work .shf-work__goal-label b { color: #ffffff; }
    .shf-work .shf-work__goal-label {
        max-width: none;
        font-size: 12.5px;
        color: rgba(255, 255, 255, 0.86);
    }
    .shf-work .shf-work__goal-label b { color: #ffffff; }
}

/* ---------- Strip (the theme's repo strip): links to the other systems ---------- */
.shf-work .sec-4-home-15__repos {
    position: relative;
    z-index: 10;
    margin-top: 0;
    padding-top: 32px;
    background-color: var(--at-neutral-0);
}
.shf-work .sec-4-home-15__repos li,
.shf-work .sec-4-home-15__repos a {
    font-family: var(--at-ff-body);
    font-weight: 500;
    font-size: 16px;
    line-height: 1.2;
    color: var(--at-neutral-900);
}
.shf-work .sec-4-home-15__repos .shf-work__repos-label {
    font-size: 14px;
    color: var(--at-neutral-500);
}
@media (max-width: 991.98px) {
    .shf-work .sec-4-home-15__repos .shf-work__repos-label { flex-basis: 100%; text-align: center; }
}
@media (max-width: 574.98px) {
    .shf-work .sec-4-home-15__repos li,
    .shf-work .sec-4-home-15__repos a { font-size: 14px; }
    .shf-work .sec-4-home-15__repos .shf-work__repos-label { font-size: 13px; }
}

/* the other systems as pills (no [ ] brackets), the same shape as the cover's service pills */
.shf-work .sec-4-home-15__repos { justify-content: flex-start; gap: 10px; }
.shf-work .sec-4-home-15__repos .shf-work__repos-label { margin-inline-end: 6px; }
.shf-work .sec-4-home-15__repos a {
    display: inline-flex;
    align-items: center;
    padding: 7px 16px;
    border: 1px solid rgba(127, 127, 127, .35);
    border-radius: 50px;
    text-decoration: none;
    transition: border-color .3s ease, background-color .3s ease;
}
.shf-work .sec-4-home-15__repos a:hover { border-color: var(--at-neutral-900); color: var(--at-neutral-900); }
@media (max-width: 991.98px) { .shf-work .sec-4-home-15__repos { justify-content: center; } }

/* ============================================================
   منتجاتنا (Our products) · sections/products.html
   Orisa Home 13 Section 9 gallery wall (.at-gallery-wrapper: dark rounded panel, three columns
   moved by ScrollSmoother data-speed -0.1 / 0.8 / -0.1) under the Home 6 Section 3 project header,
   Arabic RTL. Base rules come from the flipped main.css. This file is written for RTL (not flipped):
   - Arabic title size; the counter stays left-to-right (markup: span dir="ltr");
   - the panel grows with the tiles (77% of the width, the template's 1110px at 1440px);
   - the wall stays dark in dark mode (the theme paints it with --at-common-black, which turns white);
   - 3:2 product photos with a caption chip (name, category · year) and a hover arrow;
   - phones (<576px): two columns, a taller panel, tighter gutters and radii;
   - the still grid (reduced motion, keyboard focus inside the wall; class set by products.js).

   Tile order (products.html). A column at speed -0.1 barely moves on screen while the panel slides
   over it, so it only ever shows the tiles around its middle; the 0.8 column moves with the panel and
   shows its first five. ScrollSmoother centres a column on the viewport, so its length decides which
   tiles those are. The lengths below put the one accessible tile of each product where it is seen whole:
   - 576px and up: outer columns of 12 tiles (seen whole: tiles 6-8), middle column of 11 (tiles 2-4).
     Each column repeats six different products, more than the ~3.4 tiles the panel shows, so a
     product never appears twice in one column at once. The outer columns share their six products
     half a cycle apart, so they never show the same product side by side.
   - under 576px: column 1 repeats five products (all five pass fully through view); column 2 shows
     four products in its tiles 2-5 and is lengthened by padding (below) instead of hidden tiles.
     The panel is 132vw tall: with the old 100vw only eight tiles could be seen whole on 16:9 phones.
   Swept from 320x568 to 2560x1440, portrait and landscape: no bare panel and no product twice in a
   column anywhere. Every product is seen whole at some point on phones, tablets and 16:10 screens;
   on 16:9 laptops and desktops (1280x720 to 1920x1080) هوية and نبتة peak at 90% (chips readable),
   and landscape phones and 21:9 screens are too short to show every tile whole.
   ============================================================ */

/* ---------- project header ---------- */
.shf-products__head {
    margin-bottom: 50px;
}
.shf-products__title {
    font-family: var(--at-ff-heading);
    font-size: 84px;
    font-weight: 600;
    line-height: 1.2;
    color: var(--at-neutral-900);
    text-wrap: balance;
}
@media only screen and (min-width: 1200px) and (max-width: 1400px) {
    .shf-products__title { font-size: 72px; }
}
@media only screen and (min-width: 992px) and (max-width: 1199px) {
    .shf-products__title { font-size: 60px; }
}
@media only screen and (min-width: 768px) and (max-width: 991px) {
    .shf-products__title { font-size: 52px; }
}
@media only screen and (min-width: 576px) and (max-width: 767px) {
    .shf-products__title { font-size: 44px; }
}
@media (max-width: 575.98px) {
    .shf-products__title { font-size: 36px; }
}
@media (max-width: 399.98px) {
    .shf-products__title { font-size: 32px; }
}
.shf-products__count .h2 {
    line-height: 1;
    margin-bottom: 10px;
}
.shf-products__count .h6 {
    line-height: 1.6;
}
/* the theme removes outlines from links; keyboard focus on the header button gets one back */
.shf-products__head .at-btn:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 6px;
    border-radius: 2px;
}
@media (max-width: 767.98px) {
    .shf-products__count {
        margin-top: 28px;
        text-align: right !important;
    }
}

/* ---------- the wall ---------- */
.shf-products .at-gallery-wrapper {
    position: relative;
    background: #1e1e1e; /* the theme's light-mode --at-common-black, kept in both modes */
}
/* the panel grows with the tiles, so every width shows the template's ~3.4 tiles per column
   (the theme's fixed 1110px is 77% of a 1440px screen; at 1920px it would show only 2.5) */
@media (min-width: 576px) {
    .shf-products .at-gallery-wrapper {
        height: calc(min(100vw, 2200px) * 0.77);
    }
}
/* clip instead of hidden: a focused tile must never scroll the panel's insides (keyboard users) */
.shf-products .mg-gallery-area,
.shf-products .at-gallery-wrapper {
    overflow: clip;
}
[data-bs-theme=dark] .shf-products .at-gallery-wrapper {
    background: var(--at-neutral-0);
}
/* dark mode: a hairline so the panel reads against the near-black page */
[data-bs-theme=dark] .shf-products .at-gallery-wrapper::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 3;
    border-radius: inherit;
    border: 1px solid rgba(255, 255, 255, 0.09);
    pointer-events: none;
}

/* ---------- tiles ---------- */
.shf-products .at-gallery-item {
    position: relative;
    isolation: isolate;
    background: #2a2a2a;
}
.shf-products__link {
    display: block;
    position: relative;
    border-radius: inherit;
    color: #1d1d1d;
}
.shf-products .at-gallery-item img {
    display: block;
    aspect-ratio: 3 / 2;
    height: auto;
    object-fit: cover;
}
@media (hover: hover) {
    .shf-products__link:hover img {
        transform: scale(1.1);
    }
}
/* keyboard focus: a ring drawn above the (transformed) photo */
.shf-products__link:focus-visible {
    outline: none;
}
.shf-products__link::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 3;
    border-radius: inherit;
    box-shadow: inset 0 0 0 3px #fefefe, inset 0 0 0 5px #1d1d1d;
    opacity: 0;
    pointer-events: none;
}
.shf-products__link:focus-visible::after {
    opacity: 1;
}
.shf-products__link:focus-visible img {
    transform: scale(1.1);
}

/* caption chip: name, then category · year (the year left-to-right) */
.shf-products__chip {
    position: absolute;
    z-index: 2;
    right: 16px;
    bottom: 16px;
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    column-gap: 10px;
    row-gap: 2px;
    max-width: calc(100% - 32px);
    padding: 9px 16px 10px;
    border-radius: 100px;
    background: rgba(254, 254, 254, 0.95);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.16);
    color: #1d1d1d;
    line-height: 1.35;
    pointer-events: none;
}
.shf-products__name {
    font-family: var(--at-ff-heading);
    font-size: 16px;
    font-weight: 600;
    white-space: nowrap;
}
.shf-products__meta {
    font-size: 13px;
    font-weight: 500;
    color: #585959;
    white-space: nowrap;
}

/* arrow that opens the product page (shown on hover); it points up-left, forward in RTL */
.shf-products__go {
    position: absolute;
    z-index: 2;
    top: 16px;
    left: 16px;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #fefefe;
    color: #1d1d1d;
    opacity: 0;
    transform: scale(0.6);
    transition: opacity 0.3s ease, transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1);
    pointer-events: none;
}
.shf-products__go::before {
    content: "";
    width: 18px;
    height: 18px;
    background: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M17 17L7 7M7 7H16M7 7V16'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M17 17L7 7M7 7H16M7 7V16'/%3E%3C/svg%3E") center / contain no-repeat;
}
@media (hover: hover) {
    .shf-products__link:hover .shf-products__go {
        opacity: 1;
        transform: scale(1);
    }
}
.shf-products__link:focus-visible .shf-products__go {
    opacity: 1;
    transform: scale(1);
}

/* narrower tiles: the chip stacks name over category · year */
@media (max-width: 1199.98px) {
    .shf-products__chip {
        flex-direction: column;
        align-items: flex-start;
        right: 12px;
        bottom: 12px;
        max-width: calc(100% - 24px);
        padding: 8px 13px 9px;
        border-radius: 14px;
    }
    .shf-products__name { font-size: 15px; }
    .shf-products__meta { font-size: 12px; }
    .shf-products__go { top: 12px; left: 12px; width: 38px; height: 38px; }
}
/* small tiles (under 768px: three narrow columns, or two on phones): a compact chip */
@media (max-width: 767.98px) {
    .shf-products__chip {
        right: 7px;
        bottom: 7px;
        max-width: calc(100% - 14px);
        padding: 5px 9px 6px;
        border-radius: 10px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
    }
    .shf-products__name { font-size: 12.5px; }
    .shf-products__meta { font-size: 11px; }
    .shf-products__go { top: 8px; left: 8px; width: 32px; height: 32px; }
    .shf-products__go::before { width: 15px; height: 15px; }
}

/* phones: two columns (the markup hides column 3; columns 1 and 2 carry its products) */
@media (max-width: 575.98px) {
    .shf-products .at-gallery-wrapper {
        height: 132vw;
        border-radius: 20px;
    }
    .shf-products .at-gallery-wrapper > .row {
        --bs-gutter-x: 12px;
    }
    .shf-products .at-gallery-item {
        margin-bottom: 12px;
        border-radius: 14px;
    }
    .shf-products .at-gallery-item img {
        border-radius: 14px;
    }
    /* column 2 shows only its first tiles; its length (which sets where ScrollSmoother centres it)
       is that of 14 tiles: 8 more pitches minus the last gap. Padding percentages resolve against
       the tile width w, so 8 * (w * 2/3 + 12px) - 12px = 533.333% + 84px. */
    .shf-products__wall:not(.shf-products__wall--still) > .row > :nth-child(2) > .at-gallery-item-wrapper {
        padding-bottom: calc(533.333% + 84px);
    }
}

/* ---------- still grid ----------
   products.js sets every column's data-speed to 1 (it then moves with the page) and adds this class,
   for reduced motion and while a keyboard user is inside the wall: each column keeps only its
   accessible tiles, a 3 x 3 grid of the nine products (phones: five and four, plus a «كل الأعمال» card) */
.shf-products .shf-products__wall--still {
    height: auto;
}
.shf-products .shf-products__wall--still > .row {
    margin-bottom: -30px;
}
.shf-products .shf-products__wall--still .at-gallery-item:not(.shf-products__still) {
    display: none !important;
}
@media (max-width: 575.98px) {
    .shf-products .shf-products__wall--still > .row {
        margin-bottom: -12px;
    }
}

/* «كل الأعمال» card: the tenth cell of the phone still grid only */
.shf-products .shf-products__more {
    display: none;
}
.shf-products .shf-products__wall--still .shf-products__more {
    display: block;
}
.shf-products__morelink {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    aspect-ratio: 3 / 2;
    background: #2a2a2a;
    color: #fefefe;
    font-family: var(--at-ff-heading);
    font-size: 15px;
    font-weight: 600;
    text-align: center;
}
.shf-products__morelink:hover,
.shf-products__morelink:focus-visible {
    color: #fefefe;
}
.shf-products__morelink .shf-products__go {
    position: static;
    opacity: 1;
    transform: none;
}

/* native scrolling (touch-only screens, reduced motion): products.js moves the columns (no ScrollSmoother). They keep
   their own compositor layers, as ScrollSmoother's effects gave them (will-change), so a move never repaints the photos. */
.shf-native-scroll .shf-products__wall:not(.shf-products__wall--still) .at-gallery-item-wrapper {
    will-change: transform;
}

/* Shfrah: Sectors «قطاعات نبني لها» (sections/sectors.html)
   The Orisa Services 4 service index (.svc4-*). Its rules come from main.css, already flipped by rtlcss;
   this file only adapts them to Arabic, to 16:10 product screens, and to dark mode. Written for RTL (not flipped). */

/* product screens are 16:10: show them whole instead of the template's 4:3 crop,
   and give the screen more of the row than the template's photo (0.85fr / 1.15fr / 0.65fr).
   The side box keeps room for its widest chip («WhatsApp Business Cloud API», 213px + 40px padding),
   so no chip breaks onto two lines on 1280-1366px laptops */
@media only screen and (min-width: 1200px) {
  .shf-sectors .svc4-item__body {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr) minmax(255px, 0.6fr);
  }
}
.shf-sectors .svc4-item__visual {
  aspect-ratio: 16 / 10;
}
/* hairline over the screen's edge, so a light dashboard does not melt into the white card */
.shf-sectors .svc4-item__visual::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.08);
  pointer-events: none;
}
[data-bs-theme=dark] .shf-sectors .svc4-item__visual::after {
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}
.shf-sectors .svc4-item__visual img {
  object-position: top right;
}

/* the same hairline on the row thumbnails: a light screen crop still reads as a tile on the white card */
.shf-sectors .svc4-item__thumb {
  position: relative;
}
.shf-sectors .svc4-item__thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.08);
  pointer-events: none;
}
[data-bs-theme=dark] .shf-sectors .svc4-item__thumb::after {
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}

/* floating preview. sectors.js moves it to <body>, so it carries its own class instead of the section's.
   rtlcss turned the theme's left:0 into right:0, but the script places it with left/top + x/y in viewport
   pixels: pin it back to the left edge. Landscape 16:10 like the screens it shows. */
.svc4-float.shf-sectors-float {
  left: 0;
  right: auto;
  width: min(360px, 28vw);
  aspect-ratio: 16 / 10;
  border: 1px solid rgba(0, 0, 0, 0.08);
}
.svc4-float.shf-sectors-float img {
  object-position: top right;
}

/* 01..11 stay left-to-right, but sit against the thumbnail like the template's numbers. In the text colour, not the
   theme's orange: 13px orange on the light panel was 3.7:1, under the 4.5:1 small text needs */
.shf-sectors .svc4-item__num {
  text-align: right;
  unicode-bidi: isolate;
  color: var(--at-neutral-900);
}

/* the heading in the site's heading face, like the row names and the «أعمالنا» heading above */
.shf-sectors .svc4-index__head h2 {
  font-family: var(--at-ff-heading);
}

/* Arabic: a little more line height, and labels no smaller than 12px */
.shf-sectors .svc4-item__name {
  line-height: 1.35;
}
.shf-sectors .svc4-item__tag,
.shf-sectors .svc4-index__hint {
  line-height: 1.7;
}
.shf-sectors .svc4-index__hint {
  text-wrap: balance;
}
/* the hint names the hover preview only where there is one: wide screens with a mouse */
.shf-sectors .shf-sectors__hint-touch {
  display: none;
}
@media (max-width: 991px), (hover: none) {
  .shf-sectors .shf-sectors__hint-pointer {
    display: none;
  }
  .shf-sectors .shf-sectors__hint-touch {
    display: inline;
  }
}
/* touch screens keep :hover after a tap: no orange name or zoomed thumbnail left behind */
@media (hover: none) {
  .shf-sectors .svc4-item__btn:hover .svc4-item__name {
    color: var(--at-neutral-900);
  }
  .shf-sectors .svc4-item__btn:hover .svc4-item__thumb img {
    transform: none;
  }
}
/* a Latin platform name never breaks inside itself, and its dot stays with it:
   a wrapped tag line ends on a name and the next line starts with «· name» */
.shf-sectors .svc4-item__tag [dir="ltr"],
.shf-sectors .shf-sectors__tag-item {
  white-space: nowrap;
}
.shf-sectors .svc4-item__copy p {
  line-height: 1.75;
  text-wrap: pretty;
}
.shf-sectors .svc4-item__aside-label {
  font-size: 12px;
}

/* integrations: one chip per platform */
.shf-sectors .shf-sectors__chips {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.shf-sectors .shf-sectors__chips li {
  padding: 5px 11px;
  border-radius: 999px;
  border: 1px solid var(--at-neutral-100);
  background: var(--at-neutral-0);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--at-neutral-900);
}

/* performance figure: the value on its own line, the label under it */
.shf-sectors .shf-sectors__target {
  display: block;
  margin-bottom: 2px;
  font-family: var(--at-ff-heading);
  font-size: 20px;
  font-weight: 600;
  line-height: 1.3;
  text-align: right;
  color: var(--at-neutral-900);
}

/* the theme's «+» before each deliverable is its orange (var(--at-theme-primary)): neutral, as about.css has it, so the
   accordion keeps the site's palette (the colours stay in the work deck) */
.shf-sectors .svc4-item__deliverables li::before {
  color: var(--at-neutral-500);
}

/* dark mode: the theme's neutral-700 becomes #535353, too dim for the module list on the dark card */
[data-bs-theme=dark] .shf-sectors .svc4-item__deliverables li {
  color: var(--at-neutral-800);
}
[data-bs-theme=dark] .svc4-float.shf-sectors-float {
  border-color: rgba(255, 255, 255, 0.1);
}

