/* =========================================================
   آماد — النسخة الجديدة
   الهوية: أعمدة الشعار الثلاثة، خط Greta، ولون برتقالي واحد
   ========================================================= */

@font-face {
    font-family: "Greta Arabic";
    src: url("../fonts/greta-arabic.woff2") format("woff2");
    font-weight: 400;
    font-display: swap;
}

:root {
    --night: #1A1833;
    --night-deep: #121027;
    --paper: #F3ECE3;
    --paper-line: rgba(26, 24, 51, .14);
    --orange: #E59758;
    --mauve: #5F294A;
    --sand: #E2BEBA;

    --fg: #F3ECE3;
    --fg-muted: rgba(243, 236, 227, .62);
    --line: rgba(243, 236, 227, .14);

    --f-display: "Greta Arabic", "IBM Plex Sans Arabic", serif;
    --f-ui: "IBM Plex Sans Arabic", system-ui, sans-serif;

    --gutter: clamp(16px, 4vw, 56px);
    --maxw: 1440px;
    --ease: cubic-bezier(.16, 1, .3, 1);
    --header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { -webkit-text-size-adjust: 100%; scroll-padding-top: var(--header-h); }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
    background: var(--night);
    color: var(--fg);
    font-family: var(--f-ui);
    font-size: 17px;
    line-height: 1.75;
    font-synthesis: none;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* حبيبات خفيفة تكسر سطحية الألوان المسطحة */
body::after {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 200;
    opacity: .06;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; color: inherit; }
ol, ul { list-style: none; }
::selection { background: var(--orange); color: var(--night); }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; border-radius: 2px; }

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }

.skip {
    position: absolute; inset-inline-start: 16px; top: -60px; z-index: 300;
    background: var(--orange); color: var(--night); padding: 8px 16px; border-radius: 4px;
}
.skip:focus { top: 16px; }

.i { width: 1.15em; height: 1.15em; flex-shrink: 0; }

/* ---------- الشعار (قناع يأخذ لون النص) ---------- */
.wordmark {
    display: block;
    aspect-ratio: 1200 / 251;
    background: currentColor;
    -webkit-mask: url("../img/wordmark.png") center / contain no-repeat;
    mask: url("../img/wordmark.png") center / contain no-repeat;
}

/* ---------- الأزرار ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .6em;
    font-family: var(--f-ui); font-weight: 500; font-size: 1rem;
    padding: .95em 1.7em; border-radius: 999px;
    border: 1px solid transparent; cursor: pointer;
    transition: background .4s var(--ease), color .4s var(--ease), border-color .4s var(--ease), transform .4s var(--ease);
}
.btn .i { transition: transform .4s var(--ease); }
.btn:hover .i { transform: translateX(-4px); }
.btn-solid { background: var(--orange); color: var(--night); }
.btn-solid:hover { background: var(--fg); }
.btn-line { border-color: var(--line); color: var(--fg); }
.btn-line:hover { border-color: var(--fg); }
.btn-pill { padding: .6em 1.2em; font-size: .92rem; border-color: var(--line); }
.btn-pill:hover { background: var(--orange); color: var(--night); border-color: var(--orange); }
.btn-wide { width: 100%; padding-block: 1.1em; }

/* ---------- الترويسة ---------- */
.site-header {
    position: fixed; inset: 0 0 auto; z-index: 100;
    transition: transform .6s var(--ease), background .4s ease, backdrop-filter .4s ease;
}
.site-header.scrolled {
    background: rgba(26, 24, 51, .78);
    backdrop-filter: blur(14px) saturate(140%);
    -webkit-backdrop-filter: blur(14px) saturate(140%);
    border-bottom: 1px solid var(--line);
}
.site-header.hide { transform: translateY(-100%); }
.header-inner {
    height: var(--header-h);
    max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter);
    display: flex; align-items: center; gap: 2rem;
}
.brand { color: var(--orange); width: 124px; flex-shrink: 0; }
.nav { display: flex; gap: 2.2rem; margin-inline: auto; }
.nav a { font-size: .95rem; color: var(--fg-muted); position: relative; transition: color .3s; }
.nav a::after {
    content: ""; position: absolute; inset-inline: 0; bottom: -4px; height: 1px;
    background: var(--orange); transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease);
}
.nav a:hover { color: var(--fg); }
.nav a:hover::after { transform: scaleX(1); }

.menu-btn { display: none; width: 44px; height: 44px; background: none; border: 0; cursor: pointer; position: relative; margin-inline-start: auto; }
.menu-btn span { position: absolute; inset-inline: 10px; height: 1.5px; background: var(--fg); transition: transform .5s var(--ease), top .5s var(--ease); }
.menu-btn span:first-child { top: 18px; }
.menu-btn span:last-child { top: 25px; }
.menu-open .menu-btn span:first-child { top: 21.5px; transform: rotate(45deg); }
.menu-open .menu-btn span:last-child { top: 21.5px; transform: rotate(-45deg); }

.menu {
    position: fixed; inset: 0; z-index: 90;
    background: var(--night-deep);
    padding: calc(var(--header-h) + 32px) var(--gutter) 32px;
    display: flex; flex-direction: column; justify-content: space-between;
    clip-path: inset(0 0 100% 0);
    transition: clip-path .8s var(--ease);
    visibility: hidden;
}
.menu-open .menu { clip-path: inset(0 0 0 0); visibility: visible; }
.menu-links { display: flex; flex-direction: column; }
.menu-links a {
    font-family: var(--f-display); font-size: clamp(2.4rem, 11vw, 4rem); line-height: 1.5;
    display: flex; align-items: baseline; gap: 1rem; border-bottom: 1px solid var(--line);
}
.menu-links small { font-family: var(--f-ui); font-size: .8rem; color: var(--orange); }
.menu-foot { display: flex; flex-wrap: wrap; gap: 1.5rem; color: var(--fg-muted); font-size: .95rem; }

/* ---------- الواجهة ---------- */
.hero { padding-top: calc(var(--header-h) + clamp(24px, 6vh, 72px)); }
.hero-meta {
    display: flex; justify-content: space-between;
    font-size: .88rem; color: var(--fg-muted);
    padding-bottom: 1.2rem; border-bottom: 1px solid var(--line);
}
.hero-title {
    font-family: var(--f-display); font-weight: 400;
    font-size: clamp(2.5rem, 6.4vw, 6.4rem);
    line-height: 1.3; letter-spacing: 0;
    margin-block: clamp(1.2rem, 4vh, 2.6rem) clamp(1.6rem, 4vh, 3rem);
}
.hero-title .line { display: block; overflow: hidden; padding-block: .06em; }
.hero-title .line > span { display: inline-block; }
.hero-title em { font-style: normal; }
.inline-mark {
    display: inline-block; vertical-align: baseline;
    height: .62em; width: auto; aspect-ratio: 1072 / 537;
    margin-inline: .06em; transform: translateY(.02em);
}
.inline-mark { fill: var(--orange); }

.hero-foot {
    display: flex; justify-content: space-between; align-items: flex-end; gap: 2rem;
    flex-wrap: wrap;
}
.hero-lead { max-width: 34rem; font-size: clamp(1.02rem, 1.3vw, 1.2rem); color: var(--fg-muted); }
.hero-actions { display: flex; gap: .8rem; flex-wrap: wrap; }

/* أعمدة الشعار نوافذ فيديو — نفس نسب الشعار والمسافات بينها */
.reel-wrap { margin-top: clamp(2.5rem, 7vh, 5rem); }
.pillars {
    direction: ltr;
    display: grid;
    grid-template-columns: 332fr 236fr 333fr;
    column-gap: 8.02%;
    aspect-ratio: 1072 / 537;
}
.pillar { position: relative; overflow: hidden; background: var(--night-deep); }
.pl1 { clip-path: url(#cp1); }
.pl2 { clip-path: url(#cp2); }
.pl3 { clip-path: url(#cp3); }
.pillar video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

.reel-bar {
    display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap;
    position: relative; z-index: 1; background: var(--night);
    margin-top: clamp(2.5rem, 6vw, 4.5rem); padding-top: 1.2rem; border-top: 1px solid var(--line);
    font-size: .92rem; color: var(--fg-muted);
}
.watch-btn {
    order: -1; /* يمين الشريط، بعيداً عن زر واتساب العائم */
    display: inline-flex; align-items: center; gap: .8rem;
    background: none; border: 0; cursor: pointer; color: var(--fg); font-weight: 500;
}
.play {
    width: 44px; aspect-ratio: 1; border-radius: 50%;
    display: grid; place-items: center; background: var(--orange); color: var(--night);
    transition: transform .5s var(--ease), background .3s;
}
.play svg { width: 40%; transform: scaleX(-1); }
.watch-btn:hover .play { transform: scale(1.12); background: var(--fg); }

/* ---------- شريط الخدمات ---------- */
.ticker {
    margin-top: clamp(4rem, 10vh, 7rem);
    border-block: 1px solid var(--line);
    overflow: hidden; padding-block: 1.1rem;
}
.ticker-track { display: flex; width: max-content; animation: ticker 38s linear infinite; }
.ticker-group { display: flex; align-items: center; gap: 2.2rem; padding-inline-end: 2.2rem; }
.ticker span { font-family: var(--f-display); font-size: clamp(1.6rem, 3.2vw, 2.8rem); white-space: nowrap; line-height: 1.4; }
.tick { width: 2.4rem; aspect-ratio: 1072 / 537; fill: var(--orange); flex-shrink: 0; }
@keyframes ticker { to { transform: translateX(50%); } }

/* ---------- عناوين الأقسام ---------- */
.eyebrow, .h-section small { font-family: var(--f-ui); font-size: .85rem; color: var(--orange); font-weight: 500; }
.section-head {
    display: flex; justify-content: space-between; align-items: flex-end; gap: 1.5rem; flex-wrap: wrap;
    padding-bottom: 1.4rem; margin-bottom: clamp(2.5rem, 6vw, 4.5rem);
    border-bottom: 1px solid var(--line);
}
.h-section {
    font-family: var(--f-display); font-weight: 400;
    font-size: clamp(2.2rem, 5vw, 4.4rem); line-height: 1.25;
    display: flex; align-items: baseline; gap: .9rem;
}
.section-note { max-width: 26rem; color: var(--fg-muted); font-size: .95rem; }

/* ---------- البيان ---------- */
.statement { padding-block: clamp(6rem, 16vh, 11rem); }
.statement .eyebrow { margin-bottom: 1.6rem; }
.statement-text {
    font-family: var(--f-display);
    font-size: clamp(1.9rem, 4.4vw, 4.4rem); line-height: 1.45;
    max-width: 22ch;
}
.statement-text .w { display: inline-block; }

/* ---------- الأعمال ---------- */
.work { padding-bottom: clamp(6rem, 14vh, 10rem); }
.work-grid {
    display: grid; grid-template-columns: repeat(12, 1fr);
    column-gap: clamp(16px, 2.4vw, 36px); row-gap: clamp(3rem, 7vw, 6rem);
}
.wc-a { grid-column: 1 / span 5; grid-row: 1 / span 2; }
.wc-b { grid-column: 7 / span 6; }
.wc-c { grid-column: 7 / span 6; }
.work-media {
    position: relative; overflow: hidden; display: block; width: 100%;
    aspect-ratio: 16 / 9; background: var(--night-deep);
    border: 0; padding: 0; color: inherit; font: inherit; text-align: start;
    clip-path: polygon(0 0, 100% 0, 100% 100%, 9% 100%, 0 calc(100% - 12%));
}
.wc-a .work-media { aspect-ratio: 3 / 5; }
button.work-media { cursor: pointer; }
.work-media video, .work-media > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.work-card:hover .work-media video { transform: scale(1.05); }
.work-no {
    position: absolute; top: 1rem; inset-inline-start: 1.2rem; z-index: 1;
    font-size: .85rem; color: rgba(243, 236, 227, .85); text-shadow: 0 1px 8px rgba(0, 0, 0, .4);
}
.watch-tag {
    position: absolute; bottom: 1.2rem; inset-inline-end: 1.2rem; z-index: 1;
    display: inline-flex; align-items: center; gap: .5rem;
    padding: .55em 1.1em; border-radius: 999px; font-size: .88rem; font-weight: 500;
    background: var(--fg); color: var(--night);
    transform: translateY(10px); opacity: 0;
    transition: transform .5s var(--ease), opacity .4s;
}
.watch-tag svg { width: 12px; transform: scaleX(-1); }
.work-card:hover .watch-tag, .work-media:focus-visible .watch-tag { transform: none; opacity: 1; }
@media (hover: none) { .watch-tag { transform: none; opacity: 1; } }

/* أغلفة البودكاست فوق لون هويته */
.mk-stack { background: #F2D12A; }
.mk-stack > img {
    width: 58%; height: auto; inset: auto; object-fit: contain;
    border-radius: 6px; box-shadow: 0 18px 40px rgba(26, 24, 51, .35);
}
.mk-stack > img:nth-of-type(1) { top: 10%; right: 7%; transform: rotate(-3deg); }
.mk-stack > img:nth-of-type(2) { bottom: 10%; left: 7%; transform: rotate(2.5deg); }
.work-card:hover .mk-stack > img:nth-of-type(1) { transform: rotate(-5deg) translate(4%, -4%); }
.work-card:hover .mk-stack > img:nth-of-type(2) { transform: rotate(4deg) translate(-4%, 4%); }
.mk-stack .work-no, .wc-b .work-no { color: rgba(26, 24, 51, .7); text-shadow: none; }

/* ---------- مشغّل الأفلام ---------- */
.lightbox {
    border: 0; padding: 0; background: transparent; color: var(--fg);
    max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh;
    margin: 0; overflow: hidden;
}
.lightbox::backdrop { background: rgba(12, 11, 26, .92); backdrop-filter: blur(6px); }
.lightbox[open] { display: grid; place-items: center; animation: lb-in .5s var(--ease); }
@keyframes lb-in { from { opacity: 0; transform: scale(.97); } }
.lb-body { display: grid; gap: .8rem; justify-items: center; padding: 64px 16px 24px; }
.lb-body video { width: min(92vw, 1200px); max-height: calc(100vh - 140px); background: #000; border-radius: 4px; }
.lightbox.portrait .lb-body video { width: auto; height: calc(100vh - 140px); max-width: 92vw; aspect-ratio: 9 / 16; }
.lb-cap { font-family: var(--f-display); font-size: 1.3rem; }
.lb-close {
    position: fixed; top: 16px; left: 16px; z-index: 2;
    width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(243, 236, 227, .3);
    background: transparent; color: #F3ECE3; cursor: pointer; display: grid; place-items: center;
    transition: background .3s, color .3s;
}
.lb-close svg { width: 20px; }
.lb-close:hover { background: #F3ECE3; color: var(--night); }
.work-meta { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding-top: 1.1rem; flex-wrap: wrap; }
.work-meta h3 { font-family: var(--f-display); font-weight: 400; font-size: clamp(1.4rem, 2.2vw, 2rem); line-height: 1.4; }
.work-meta p { font-size: .88rem; color: var(--fg-muted); }

/* ---------- الأقسام الفاتحة ---------- */
.paper {
    --fg: #1A1833;
    --fg-muted: rgba(26, 24, 51, .64);
    --line: var(--paper-line);
    background: var(--paper); color: var(--fg);
}
.paper .eyebrow, .paper .h-section small { color: #B4652A; }

/* ---------- الخدمات ---------- */
.services { padding-block: clamp(6rem, 14vh, 10rem); }
.service {
    position: relative;
    display: grid; grid-template-columns: 4rem minmax(0, 1.1fr) minmax(0, 1fr);
    align-items: baseline; gap: 2rem;
    padding-block: clamp(1.6rem, 3vw, 2.4rem);
    border-bottom: 1px solid var(--line);
    isolation: isolate;
}
.service::before {
    content: ""; position: absolute; inset: 0 calc(var(--gutter) * -1); z-index: -1;
    background: var(--night); transform: scaleY(0); transform-origin: bottom;
    transition: transform .7s var(--ease);
}
.service:hover::before { transform: scaleY(1); }
.service:hover { color: var(--paper); }
.service:hover p { color: rgba(243, 236, 227, .7); }
.service:hover .service-no { color: var(--orange); }
.service-no { font-size: .85rem; color: var(--fg-muted); transition: color .4s; }
.service h3 {
    font-family: var(--f-display); font-weight: 400;
    font-size: clamp(1.7rem, 3.4vw, 3.1rem); line-height: 1.35;
    transition: transform .7s var(--ease);
}
.service:hover h3 { transform: translateX(-12px); }
.service p { color: var(--fg-muted); max-width: 30rem; transition: color .4s; }

/* ---------- طريقة العمل ---------- */
.process { padding-block: clamp(6rem, 14vh, 10rem); background: var(--night-deep); }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(16px, 2.4vw, 36px); counter-reset: s; }
.step { position: relative; padding-top: 1.6rem; }
.step::before {
    content: ""; position: absolute; top: 0; inset-inline: 0; height: 1px; background: var(--line);
}
.step::after {
    content: ""; position: absolute; top: 0; inset-inline-start: 0; height: 1px; width: 100%;
    background: var(--orange); transform: scaleX(var(--p, 0)); transform-origin: right;
}
.step-no {
    font-family: var(--f-display); font-size: clamp(3.6rem, 7vw, 6.5rem); line-height: 1;
    color: transparent; -webkit-text-stroke: 1px rgba(243, 236, 227, .35);
    display: block; margin-bottom: 1.4rem;
}
.step h3 { font-family: var(--f-display); font-weight: 400; font-size: clamp(1.6rem, 2.4vw, 2.2rem); line-height: 1.4; margin-bottom: .5rem; }
.step p { color: var(--fg-muted); font-size: .98rem; }

/* ---------- القصة ---------- */
.story { background: var(--orange); color: var(--night); padding-block: clamp(6rem, 14vh, 10rem); --line: rgba(26, 24, 51, .2); }
.story .h-section small { color: var(--night); opacity: .6; }
.story-inner { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(3rem, 8vw, 8rem); }
.figures { margin-top: clamp(2rem, 5vw, 4rem); display: grid; gap: 0; }
.figures > div { display: flex; justify-content: space-between; align-items: baseline; border-top: 1px solid var(--line); padding-block: .8rem; }
.figures dt { font-size: .95rem; }
.figures dd { font-family: var(--f-display); font-size: clamp(3rem, 6.5vw, 6rem); line-height: 1.15; direction: ltr; }
.timeline { align-self: end; }
.timeline li { display: grid; grid-template-columns: 6rem 1fr; gap: 1.5rem; padding-block: 1.6rem; border-top: 1px solid var(--line); }
.timeline .year { font-family: var(--f-display); font-size: 1.6rem; line-height: 1.4; }
.timeline p { font-size: 1.08rem; }

/* ---------- العملاء ---------- */
.clients { padding-block: clamp(6rem, 14vh, 10rem); overflow: hidden; }
.logo-rows { display: grid; gap: clamp(2rem, 4vw, 3.5rem); }
.logo-row { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.logo-track { display: flex; align-items: center; gap: clamp(3rem, 6vw, 6rem); width: max-content; animation: ticker 60s linear infinite; }
.logo-row.reverse .logo-track { animation-direction: reverse; }
.logo-row:hover .logo-track { animation-play-state: paused; }
.logo {
    --s: clamp(54px, 6vw, 80px);
    flex-shrink: 0;
    width: calc(var(--s) * sqrt(var(--r)));
    height: calc(var(--s) / sqrt(var(--r)));
    background: var(--fg);
    opacity: .7;
    -webkit-mask-size: contain; mask-size: contain;
    -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
    -webkit-mask-position: center; mask-position: center;
    transition: opacity .3s, background .3s;
}
.logo:hover { opacity: 1; background: var(--orange); }

/* ---------- التواصل ---------- */
.contact { padding-block: clamp(6rem, 14vh, 10rem); }
.contact-inner { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(3rem, 8vw, 8rem); align-items: start; }
.h-display { font-family: var(--f-display); font-weight: 400; font-size: clamp(3.4rem, 9vw, 8.5rem); line-height: 1.15; margin-bottom: 1.6rem; }
.contact-head > p { color: var(--fg-muted); max-width: 26rem; margin-bottom: 2.4rem; }
.contact-lines li { display: grid; grid-template-columns: 6rem 1fr; padding-block: .9rem; border-top: 1px solid var(--line); }
.contact-lines span { color: var(--fg-muted); font-size: .9rem; }
.contact-lines a { justify-self: start; transition: color .3s; }
.contact-lines a:hover { color: #B4652A; }

.contact-form { display: grid; gap: 1.6rem; }
.field { border: 0; display: grid; gap: .5rem; }
.field label, .field legend { font-size: .9rem; color: var(--fg-muted); }
.field legend { margin-bottom: .7rem; }
.field input, .field textarea {
    width: 100%; background: transparent; border: 0; border-bottom: 1px solid rgba(26, 24, 51, .3);
    padding: .6rem 0; font-size: 1.15rem; border-radius: 0; resize: vertical;
    transition: border-color .3s;
}
.field input::placeholder { color: rgba(26, 24, 51, .3); }
.field input[dir="ltr"] { text-align: right; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--night); }
.field.invalid input { border-color: #B3261E; }
.err { font-size: .82rem; color: #B3261E; min-height: 1.2em; }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chips label { cursor: pointer; position: relative; }
.chips input { position: absolute; inset: 0; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.chips span {
    display: inline-block; padding: .5em 1.1em; border-radius: 999px;
    border: 1px solid rgba(26, 24, 51, .25); font-size: .92rem; color: var(--fg);
    transition: background .3s, color .3s, border-color .3s;
}
.chips label:hover span { border-color: var(--night); }
.chips input:checked + span { background: var(--night); color: var(--paper); border-color: var(--night); }
.chips input:focus-visible + span { outline: 2px solid var(--orange); outline-offset: 2px; }
.contact .btn-solid { background: var(--night); color: var(--paper); }
.contact .btn-solid:hover { background: var(--orange); color: var(--night); }

/* ---------- التذييل ---------- */
.site-footer { background: var(--night-deep); padding-top: clamp(4rem, 10vh, 6rem); overflow: hidden; }
.footer-top { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2rem; padding-bottom: clamp(3rem, 8vh, 5rem); }
.footer-line { font-family: var(--f-display); font-size: clamp(1.6rem, 2.6vw, 2.4rem); line-height: 1.4; max-width: 14ch; }
.footer-nav { display: flex; flex-direction: column; gap: .5rem; color: var(--fg-muted); }
.footer-nav a { width: fit-content; transition: color .3s; }
.footer-nav a:hover { color: var(--orange); }
.footer-mark { color: var(--orange); overflow: hidden; }
.footer-mark .wordmark { width: clamp(160px, 26vw, 360px); }
.footer-bottom {
    display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
    padding-block: 1.6rem; margin-top: clamp(2rem, 5vw, 3rem);
    padding-inline-end: 72px; /* مساحة لزر واتساب العائم */
    border-top: 1px solid var(--line); font-size: .85rem; color: var(--fg-muted);
}

/* زر واتساب العائم */
.wa-float {
    position: fixed; left: 20px; bottom: 20px; z-index: 80;
    width: 54px; height: 54px; border-radius: 50%;
    display: grid; place-items: center;
    background: var(--orange); color: var(--night);
    box-shadow: 0 10px 30px rgba(0, 0, 0, .3);
    transition: transform .4s var(--ease), opacity .4s, background .3s;
}
.wa-float svg { width: 24px; height: 24px; }
.wa-float:hover { transform: scale(1.08); background: var(--fg); }

/* ---------- مقدمة الصفحة: مخفية حتى يبدأ السكربت ---------- */
.js-anim .hero-inner, .js-anim .reel-wrap { visibility: hidden; animation: fallback-show 0s 3s forwards; }
@keyframes fallback-show { to { visibility: visible; } }

/* ---------- الشاشات المتوسطة ---------- */
@media (max-width: 1024px) {
    .nav, .header-cta { display: none; }
    .menu-btn { display: block; }
    .steps { grid-template-columns: 1fr 1fr; row-gap: 3rem; }
    .service { grid-template-columns: 3rem 1fr; }
    .service p { grid-column: 2; }
}

/* ---------- الجوال ---------- */
@media (max-width: 720px) {
    body { font-size: 16px; }
    .brand { width: 104px; }
    .hero-meta { font-size: .8rem; }
    .hero-foot { flex-direction: column; align-items: stretch; }
    .hero-actions .btn { flex: 1 1 auto; padding: .85em 1.2em; white-space: nowrap; }
    .pillars { aspect-ratio: 1072 / 820; }

    .work-grid { grid-template-columns: 1fr; }
    .wc-a, .wc-b, .wc-c { grid-column: auto; grid-row: auto; }
    .wc-a .work-media { aspect-ratio: 4 / 5; }

    .service { grid-template-columns: 2.2rem 1fr; gap: 1rem; }
    .service::before { display: none; }
    .service:hover { color: inherit; }
    .service:hover p { color: var(--fg-muted); }
    .service:hover h3 { transform: none; }

    .steps { grid-template-columns: 1fr; }
    .step-no { font-size: 3.4rem; }

    .story-inner, .contact-inner { grid-template-columns: 1fr; }
    .timeline li { grid-template-columns: 4.5rem 1fr; }
    .footer-top { grid-template-columns: 1fr 1fr; }
    .footer-line { grid-column: 1 / -1; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
    .logo-row { mask-image: none; -webkit-mask-image: none; }
    .logo-track { flex-wrap: wrap; justify-content: center; width: auto; padding-inline: var(--gutter); row-gap: 2.5rem; }
    .ticker-group:nth-child(2) { display: none; }
}
