/* Portage — portage.media. Navy + yellow from the logo; the logo's yellow "O" ring is the recurring motif. */
:root {
  --navy: #114151; --deep: #0A2A35; --ink: #0B1E25; --y: #FBC618; --y2: #FFD84D;
  --paper: #F4F2EC; --mist: #E9EEEF; --line: rgba(17, 65, 81, .12); --muted: #55686F; --w: #fff;
  --r: 18px; --r-lg: 28px; --wrap: 1240px; --hd: 76px;
  --f-h: 'Montserrat', system-ui, sans-serif; --f-b: 'Inter', system-ui, sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
}
html[lang=ar] { --f-h: 'Cairo', system-ui, sans-serif; --f-b: 'Cairo', system-ui, sans-serif; }
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--hd) + 16px); -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 400 17px/1.65 var(--f-b); color: var(--ink); background: var(--w); overflow-x: hidden; }
html[lang=ar] body { font-size: 18px; line-height: 1.8; }
img { max-width: 100%; display: block; }
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--f-h); line-height: 1.12; margin: 0; letter-spacing: -.02em; }
html[lang=ar] h1, html[lang=ar] h2, html[lang=ar] h3 { letter-spacing: 0; line-height: 1.35; }
h2 { font-size: clamp(30px, 4vw, 50px); font-weight: 800; }
h3 { font-size: 20px; font-weight: 700; }
p { margin: 0 0 1em; }
ul, ol { list-style: none; margin: 0; padding: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
.wrap { width: min(100% - 40px, var(--wrap)); margin-inline: auto; }
.ic { width: 1.25em; height: 1.25em; flex: none; }
[dir=rtl] .ic[data-flip] { transform: scaleX(-1); }
.skip { position: absolute; inset-inline-start: -999px; top: 8px; z-index: 100; background: var(--y); padding: 8px 14px; border-radius: 8px; }
.skip:focus { inset-inline-start: 8px; }
:focus-visible { outline: 3px solid var(--y); outline-offset: 3px; border-radius: 6px; }

/* ---------- buttons & links ---------- */
.btn { display: inline-flex; align-items: center; gap: 10px; border: 0; cursor: pointer; border-radius: 999px; font: 700 15px/1 var(--f-h);
  padding: 14px 22px; transition: transform .25s var(--ease), background .25s, box-shadow .25s, color .25s; white-space: nowrap; }
html[lang=ar] .btn { font-weight: 700; font-size: 16px; }
.btn .ic { transition: transform .25s var(--ease); }
.btn:hover .ic[data-flip] { transform: translateX(4px); }
[dir=rtl] .btn:hover .ic[data-flip] { transform: scaleX(-1) translateX(4px); }
.btn--y { background: var(--y); color: var(--ink); box-shadow: 0 10px 30px -12px rgba(251, 198, 24, .7); }
.btn--y:hover { background: var(--y2); transform: translateY(-2px); }
.btn--navy { background: var(--navy); color: var(--w); }
.btn--navy:hover { background: var(--deep); transform: translateY(-2px); }
.btn--line { color: var(--w); box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .45); }
.btn--line:hover { box-shadow: inset 0 0 0 1.5px var(--y); color: var(--y); }
.btn--ghost { background: rgba(17, 65, 81, .08); color: var(--navy); }
.btn--sm { padding: 11px 18px; font-size: 14px; }
.btn--lg { padding: 18px 28px; font-size: 16px; }
.lnk { display: inline-flex; align-items: center; gap: 8px; font: 700 15px var(--f-h); color: var(--navy); border-bottom: 2px solid var(--y); padding-bottom: 4px; }
.lnk--w { color: var(--w); }
.lnk:hover .ic { transform: translateX(4px); } [dir=rtl] .lnk:hover .ic { transform: scaleX(-1) translateX(4px); }
.lnk .ic { transition: transform .25s var(--ease); }
.kicker { display: inline-flex; align-items: center; gap: 10px; font: 700 13px/1 var(--f-h); letter-spacing: .14em; text-transform: uppercase; color: var(--navy); margin: 0 0 18px; }
html[lang=ar] .kicker { letter-spacing: 0; font-size: 15px; }
.kicker::before { content: ''; width: 14px; height: 14px; border-radius: 50%; border: 3.5px solid var(--y); }
.kicker--y { color: var(--y); }

/* ---------- header ---------- */
.hd { position: fixed; inset: 0 0 auto; z-index: 50; height: var(--hd); color: var(--w); transition: background .3s, box-shadow .3s, height .3s; }
.hd.is-solid { background: rgba(10, 42, 53, .92); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 1px 0 rgba(255, 255, 255, .08); --hd: 66px; height: 66px; }
.hd__in { height: 100%; display: flex; align-items: center; gap: 28px; }
.hd__logo img { height: 30px; width: auto; }
.hd__nav { display: flex; gap: 4px; margin-inline-start: auto; }
.hd__nav a { padding: 10px 14px; border-radius: 999px; font: 600 15px var(--f-h); opacity: .82; transition: opacity .2s, background .2s; }
.hd__nav a:hover { opacity: 1; background: rgba(255, 255, 255, .08); }
.hd__nav a[aria-current] { opacity: 1; color: var(--y); }
.hd__end { display: flex; align-items: center; gap: 12px; }
.hd__lang { font: 700 14px var(--f-h); padding: 8px 12px; border-radius: 999px; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .25); }
html[lang=en] .hd__lang { font-family: 'Cairo', var(--f-h); }
.hd__lang:hover { box-shadow: inset 0 0 0 1.5px var(--y); color: var(--y); }
.hd__burger { display: none; width: 46px; height: 46px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .1); cursor: pointer; position: relative; }
.hd__burger span { position: absolute; inset-inline-start: 13px; width: 20px; height: 2px; background: var(--w); border-radius: 2px; transition: transform .3s var(--ease), top .3s; }
.hd__burger span:first-child { top: 18px; } .hd__burger span:last-child { top: 26px; }
.hd__burger[aria-expanded=true] span:first-child { top: 22px; transform: rotate(45deg); }
.hd__burger[aria-expanded=true] span:last-child { top: 22px; transform: rotate(-45deg); }
.mnav { position: fixed; inset: var(--hd) 0 0; background: var(--deep); padding: 24px 20px 40px; display: flex; flex-direction: column; gap: 22px; overflow-y: auto; }
.mnav nav { display: flex; flex-direction: column; }
.mnav nav a { font: 800 30px/1.2 var(--f-h); padding: 12px 0; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.mnav nav a[aria-current] { color: var(--y); }
.mnav .btn { justify-content: center; }
.mnav__row { display: flex; gap: 10px; } .mnav__row a { flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 14px; border-radius: 14px; background: rgba(255, 255, 255, .07); font-weight: 600; font-size: 15px; }
.mnav__lang { text-align: center; opacity: .7; font-weight: 700; }

/* ---------- ring motif ---------- */
.ring { position: absolute; border-radius: 50%; border: solid var(--y); pointer-events: none; }
.ring--ph { width: 440px; height: 440px; border-width: 58px; inset-inline-end: -170px; top: 40px; opacity: .95; }
.ring--cta { width: 620px; height: 620px; border-width: 80px; inset-inline-start: -260px; bottom: -330px; opacity: .14; }

/* ---------- hero ---------- */
.hero { position: relative; background: radial-gradient(1200px 600px at 80% 10%, #14506A 0%, transparent 60%), var(--deep); color: var(--w); padding-top: var(--hd); overflow: hidden; }
.hero::before { content: ''; position: absolute; inset: 0; background-image: linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px); background-size: 64px 64px; mask-image: linear-gradient(180deg, #000 0%, transparent 85%); }
.hero__in { position: relative; display: grid; grid-template-columns: 1.08fr .92fr; gap: 40px; align-items: center; min-height: min(760px, calc(100svh - var(--hd) - 54px)); padding: 40px 0 30px; }
.hero h1 { font-size: clamp(40px, 5vw, 70px); font-weight: 900; line-height: 1.02; margin-bottom: 26px; }
html[lang=ar] .hero h1 { font-size: clamp(38px, 5vw, 70px); line-height: 1.3; }
.hero h1 .ln { display: block; overflow: hidden; padding-bottom: .04em; }
.hero h1 .ln span { display: inline-block; animation: rise 1s var(--ease) both; animation-delay: var(--d); }
.hero h1 .ln:nth-child(2) span { color: var(--y); }
.hero__k { animation: fade .8s var(--ease) both; }
.hero__lead { font-size: 19px; max-width: 34em; color: rgba(255, 255, 255, .78); animation: fade 1s .45s var(--ease) both; }
.hero__btns { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; animation: fade 1s .6s var(--ease) both; }
.hero__art { position: relative; align-self: end; height: 100%; min-height: 520px; display: grid; place-items: end center; }
.hero__ring { position: absolute; width: min(520px, 92%); aspect-ratio: 1; border-radius: 50%; border: clamp(40px, 5vw, 64px) solid var(--y); left: 50%; bottom: 6%; transform: translateX(-50%); animation: pop 1.1s .2s var(--ease) both; }
.hero__ring::after { content: ''; position: absolute; inset: -2px; border-radius: 50%; box-shadow: 0 0 120px 10px rgba(251, 198, 24, .18); }
.hero__person { position: relative; width: min(430px, 82%); height: auto; filter: drop-shadow(0 30px 40px rgba(0, 0, 0, .35)); animation: up 1.1s .35s var(--ease) both;
  -webkit-mask-image: linear-gradient(180deg, #000 82%, transparent 100%); mask-image: linear-gradient(180deg, #000 82%, transparent 100%); }
.chip { position: absolute; display: flex; align-items: center; gap: 10px; background: rgba(255, 255, 255, .96); color: var(--ink); border-radius: 16px; padding: 12px 16px; font: 700 14px/1.2 var(--f-h);
  box-shadow: 0 20px 40px -18px rgba(0, 0, 0, .55); animation: float 6s ease-in-out infinite, fade 1s .9s both; }
.chip .ic { width: 34px; height: 34px; padding: 7px; border-radius: 10px; background: var(--y); color: var(--ink); }
.chip--a { inset-inline-start: 0; top: 24%; }
.chip--b { inset-inline-end: -4px; top: 48%; animation-delay: -2s, 1.05s; }
.chip--c { inset-inline-start: 4%; bottom: 7%; animation-delay: -4s, 1.2s; padding: 10px 14px; }
.chip--c img { width: 34px; height: 34px; object-fit: contain; border-radius: 50%; background: #fff; box-shadow: 0 0 0 2px #fff, 0 2px 8px rgba(0, 0, 0, .15); margin-inline-end: -16px; }
.chip--c span { margin-inline-start: 22px; display: flex; flex-direction: column; font-weight: 600; font-size: 12px; color: var(--muted); }
.chip--c b { color: var(--ink); font-size: 14px; }
.hero__ticker { position: relative; border-top: 1px solid rgba(255, 255, 255, .1); overflow: hidden; padding: 16px 0; }
.tick { display: flex; width: max-content; animation: marq 40s linear infinite; }
.tick span { font: 700 15px var(--f-h); letter-spacing: .06em; text-transform: uppercase; color: rgba(255, 255, 255, .7); white-space: nowrap; padding-inline-end: 10px; }
html[lang=ar] .tick span { letter-spacing: 0; text-transform: none; font-size: 16px; }
.tick i { color: var(--y); font-style: normal; margin: 0 14px; font-size: 10px; vertical-align: middle; }
.tick, .marq { direction: ltr; } /* loops are built left-to-right in both languages */

/* ---------- trust / logos ---------- */
.trust { padding: 44px 0 40px; border-bottom: 1px solid var(--line); }
.trust__t { text-align: center; font: 700 13px var(--f-h); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 24px; }
html[lang=ar] .trust__t { letter-spacing: 0; font-size: 15px; }
.marq { display: flex; 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); }
.marq__track { display: flex; gap: 18px; padding-inline-end: 18px; animation: marq 45s linear infinite; flex: none; }
.marq:hover .marq__track { animation-play-state: paused; }
.cl { width: 150px; height: 92px; flex: none; display: grid; place-items: center; padding: 12px 18px; border-radius: 16px; background: #fff; border: 1px solid var(--line); }
.cl img { max-height: 64px; max-width: 100%; object-fit: contain; filter: grayscale(1); opacity: .75; transition: filter .3s, opacity .3s; }
.cl:hover img { filter: none; opacity: 1; }
.cl--dark { background: var(--navy); border-color: var(--navy); } .cl--dark img { filter: none; opacity: .9; }
.clgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
.clgrid .cl { width: auto; height: 110px; }

/* ---------- sections ---------- */
.sec { padding: clamp(70px, 9vw, 120px) 0; position: relative; }
.sec--paper { background: var(--paper); }
.sec--navy { background: var(--deep); color: var(--w); }
.sec--navy .kicker:not(.kicker--y) { color: var(--w); }
.sh { max-width: 760px; margin-bottom: 48px; }
.sh--row { max-width: none; display: flex; align-items: end; justify-content: space-between; gap: 30px; }
.sh--row > div { max-width: 720px; }

/* intro */
.intro { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 90px); align-items: center; }
.intro__media { position: relative; aspect-ratio: 1 / .95; }
.intro__media img { position: absolute; object-fit: cover; border-radius: var(--r-lg); box-shadow: 0 30px 60px -30px rgba(10, 42, 53, .5); }
.intro__a { inset: 0 18% 22% 0; width: 82%; height: 78%; }
.intro__b { inset: auto 0 0 auto; width: 52%; height: 52%; border: 8px solid #fff; }
[dir=rtl] .intro__a { inset: 0 0 22% 18%; } [dir=rtl] .intro__b { inset: auto auto 0 0; }
.intro__ring { position: absolute; width: 140px; aspect-ratio: 1; border-radius: 50%; border: 22px solid var(--y); inset-inline-end: 6%; top: -30px; z-index: -1; }
.intro__txt h2 { margin-bottom: 24px; }
.intro__txt p { color: var(--muted); font-size: 18px; }
.intro__txt .lnk { margin-top: 10px; }

/* services grid */
.svcs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.svc a { position: relative; display: flex; flex-direction: column; height: 100%; padding: 30px 26px 26px; background: #fff; border-radius: var(--r-lg); border: 1px solid var(--line); overflow: hidden;
  transition: transform .35s var(--ease), box-shadow .35s, border-color .35s; }
.svc a::after { content: ''; position: absolute; width: 180px; aspect-ratio: 1; border-radius: 50%; border: 26px solid var(--y); inset-inline-end: -90px; bottom: -90px; opacity: 0; transform: scale(.6); transition: .45s var(--ease); }
.svc a:hover { transform: translateY(-6px); box-shadow: 0 30px 50px -30px rgba(10, 42, 53, .45); border-color: transparent; }
.svc a:hover::after { opacity: 1; transform: scale(1); }
.svc__ic { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 16px; background: var(--mist); color: var(--navy); margin-bottom: 26px; transition: background .3s; }
.svc__ic .ic { width: 28px; height: 28px; }
.svc a:hover .svc__ic { background: var(--y); }
.svc h3 { margin-bottom: 10px; }
.svc p { color: var(--muted); font-size: 15px; margin: 0 0 22px; flex: 1; }
.svc__go { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--paper); color: var(--navy); position: relative; z-index: 1; transition: background .3s; }
.svc a:hover .svc__go { background: var(--navy); color: var(--y); }
.svc--cta a { background: var(--navy); color: #fff; justify-content: space-between; gap: 30px; }
.svc--cta a::after { opacity: .9; transform: none; }
.svc--cta h3 { font-size: 26px; font-weight: 800; }
.svc--cta .btn { align-self: flex-start; background: var(--y); color: var(--ink); position: relative; z-index: 1; }

/* featured work */
.feat { display: grid; grid-template-columns: 1.35fr 1fr; grid-template-rows: 1fr 1fr; gap: 18px; height: clamp(560px, 62vw, 720px); }
.fcard--big { grid-row: span 2; }
.fcard a { position: relative; display: block; height: 100%; border-radius: var(--r-lg); overflow: hidden; isolation: isolate; }
.fcard__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); z-index: -1; }
.fcard a::before { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 35%, rgba(6, 24, 31, .92)); z-index: 0; }
.fcard a:hover .fcard__img { transform: scale(1.06); }
.fcard__txt { position: absolute; inset: auto 0 0; padding: 28px; z-index: 1; }
.fcard__sec { display: inline-block; font: 700 12px var(--f-h); letter-spacing: .12em; text-transform: uppercase; color: var(--ink); background: var(--y); padding: 6px 10px; border-radius: 999px; margin-bottom: 14px; }
html[lang=ar] .fcard__sec { letter-spacing: 0; font-size: 13px; }
.fcard h3 { font-size: clamp(22px, 2.3vw, 32px); font-weight: 800; margin-bottom: 6px; }
.fcard p { margin: 0; color: rgba(255, 255, 255, .75); }
.fcard__go { position: absolute; top: 22px; inset-inline-end: 22px; width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .14); backdrop-filter: blur(8px); z-index: 1; transition: background .3s, color .3s, transform .3s; }
.fcard a:hover .fcard__go { background: var(--y); color: var(--ink); transform: rotate(-45deg); }
[dir=rtl] .fcard a:hover .fcard__go { transform: rotate(45deg); }

/* partner */
.partner { display: grid; grid-template-columns: .9fr 1.1fr; gap: 50px 70px; }
.partner__head { position: sticky; top: 110px; align-self: start; }
.partner__list { display: grid; grid-template-columns: 1fr 1fr; gap: 34px 40px; }
.partner__n { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 5px solid var(--y); color: var(--navy); margin-bottom: 18px; }
.partner__n .ic { width: 18px; height: 18px; stroke-width: 3; }
.partner__list h3 { margin-bottom: 8px; }
.partner__list p { color: var(--muted); margin: 0; }
.platforms { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 30px; padding: 26px 32px; border-radius: var(--r-lg); background: var(--paper); flex-wrap: wrap; }
.platforms p { margin: 0; font: 700 17px var(--f-h); color: var(--navy); }
.platforms div { display: flex; gap: 10px; flex-wrap: wrap; }
.platforms span { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%; background: #fff; color: var(--navy); transition: .3s; }
.platforms span:hover { background: var(--navy); color: var(--y); transform: translateY(-3px); }

/* process */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: s; position: relative; }
.step { position: relative; padding: 34px 26px 28px; background: #fff; border-radius: var(--r-lg); }
.step__n { display: block; font: 900 64px/1 var(--f-h); color: transparent; -webkit-text-stroke: 1.5px var(--navy); margin-bottom: 24px; }
html[lang=ar] .step__n { font-family: 'Montserrat', sans-serif; }
.step:hover .step__n { color: var(--y); -webkit-text-stroke-color: var(--y); }
.step h3 { margin-bottom: 10px; font-size: 22px; }
.step p { color: var(--muted); font-size: 15.5px; margin: 0; }
.step::after { content: ''; position: absolute; top: 62px; inset-inline-end: -14px; width: 10px; height: 10px; border-radius: 50%; background: var(--y); z-index: 1; }
.step:last-child::after { display: none; }

/* values */
.why { display: grid; grid-template-columns: .85fr 1.15fr; gap: 60px; align-items: start; }
.why__head p { color: var(--muted); font-size: 18px; margin-top: 20px; }
.why__list { display: grid; gap: 14px; }
.why__list li { display: flex; gap: 20px; padding: 24px; border-radius: var(--r); border: 1px solid var(--line); transition: border-color .3s, transform .3s var(--ease); }
.why__list li:hover { border-color: var(--y); transform: translateX(6px); } [dir=rtl] .why__list li:hover { transform: translateX(-6px); }
.why__ic { flex: none; width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: var(--navy); color: var(--y); }
.why__ic .ic { width: 26px; height: 26px; }
.why__list h3 { margin-bottom: 6px; }
.why__list p { margin: 0; color: var(--muted); }

/* CTA + form */
.cta { position: relative; overflow: hidden; background: linear-gradient(140deg, var(--navy), var(--deep) 70%); color: var(--w); padding: clamp(70px, 9vw, 120px) 0; }
.cta__in { position: relative; z-index: 1; display: grid; grid-template-columns: .9fr 1.1fr; gap: 60px; align-items: center; }
.cta h2 { font-size: clamp(32px, 4.2vw, 56px); font-weight: 900; margin-bottom: 20px; }
.cta__txt > p { color: rgba(255, 255, 255, .75); font-size: 18px; }
.cta__direct { display: grid; gap: 12px; margin-top: 30px; }
.cta__direct a { display: flex; align-items: center; gap: 16px; padding: 16px 18px; border-radius: var(--r); background: rgba(255, 255, 255, .07); transition: background .3s; }
.cta__direct a:hover { background: rgba(255, 255, 255, .13); }
.cta__direct .ic { width: 46px; height: 46px; padding: 11px; border-radius: 50%; background: var(--y); color: var(--ink); }
.cta__direct span { display: flex; flex-direction: column; font-size: 14px; color: rgba(255, 255, 255, .7); }
.cta__direct b { font: 700 19px var(--f-h); color: #fff; }
html[lang=ar] .cta__direct b { font-family: 'Montserrat', sans-serif; text-align: end; }
.cta__form { background: #fff; color: var(--ink); border-radius: var(--r-lg); padding: clamp(24px, 3.5vw, 40px); box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .6); }
.lf { position: relative; }
.lf__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.fld { display: flex; flex-direction: column; gap: 7px; }
.fld--wide { grid-column: 1 / -1; }
.fld span { font: 600 14px var(--f-h); color: var(--navy); }
.fld input, .fld select, .fld textarea { width: 100%; border: 1.5px solid var(--line); background: var(--paper); border-radius: 14px; padding: 14px 16px; font-size: 16px; transition: border-color .2s, background .2s, box-shadow .2s; }
.fld textarea { resize: vertical; min-height: 110px; }
.fld select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23114151' stroke-width='2' fill='none'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; padding-inline-end: 40px; }
[dir=rtl] .fld select { background-position: left 16px center; }
.fld input:focus, .fld select:focus, .fld textarea:focus { outline: 0; border-color: var(--navy); background: #fff; box-shadow: 0 0 0 4px rgba(251, 198, 24, .35); }
.fld.is-bad input { border-color: #D64545; }
.hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.lf__foot { display: flex; align-items: center; gap: 18px; margin-top: 22px; flex-wrap: wrap; }
.lf__foot small { color: var(--muted); font-size: 13px; flex: 1; min-width: 160px; }
.lf__err { margin: 14px 0 0; color: #C13A3A; font-weight: 600; font-size: 15px; }
.lf__ok { text-align: center; padding: 30px 10px; }
.lf__ok h3 { font-size: 26px; margin: 18px 0 8px; }
.lf__ok p { color: var(--muted); }
.lf__tick { display: inline-grid; place-items: center; width: 80px; height: 80px; border-radius: 50%; border: 10px solid var(--y); color: var(--navy); animation: pop .6s var(--ease); }
.lf__tick .ic { width: 34px; height: 34px; stroke-width: 3; }
.lf.is-done > :not(.lf__ok) { display: none; }
.btn[disabled] { opacity: .6; pointer-events: none; }

/* ---------- page hero ---------- */
.ph { position: relative; overflow: hidden; background: var(--deep); color: var(--w); padding: calc(var(--hd) + clamp(60px, 8vw, 110px)) 0 clamp(60px, 7vw, 96px); }
.ph::before { content: ''; position: absolute; inset: 0; background-image: linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px); background-size: 64px 64px; mask-image: linear-gradient(180deg, #000, transparent); }
.ph__in { position: relative; z-index: 1; }
.ph h1 { font-size: clamp(38px, 5.4vw, 74px); font-weight: 900; max-width: 15em; animation: fade .9s var(--ease) both; }
.ph__lead { margin-top: 24px; font-size: 19px; max-width: 40em; color: rgba(255, 255, 255, .78); animation: fade .9s .15s var(--ease) both; }
.ph__chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 34px; animation: fade .9s .3s var(--ease) both; }
.ph__chips a { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px; background: rgba(255, 255, 255, .08); font-weight: 600; font-size: 15px; transition: background .25s, color .25s; }
.ph__chips a:hover { background: var(--y); color: var(--ink); }
.ph .btn { margin-top: 30px; }

/* services list page */
.svlist { display: grid; gap: clamp(60px, 8vw, 110px); }
.sv { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 6vw, 90px); align-items: center; }
.sv:nth-child(even) .sv__txt { order: -1; }
.sv__media { position: relative; }
.sv__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r-lg); }
.sv__n { position: absolute; top: -26px; inset-inline-start: -14px; font: 900 72px/1 'Montserrat', sans-serif; color: var(--y); -webkit-text-stroke: 0; text-shadow: 0 6px 20px rgba(0, 0, 0, .12); }
.sv h2 { font-size: clamp(28px, 3.2vw, 42px); margin-bottom: 16px; }
.sv p { color: var(--muted); font-size: 18px; }
.sv__proj { display: flex; flex-wrap: wrap; gap: 8px; }
.sv__proj a { font-size: 14px; font-weight: 600; color: var(--navy); background: var(--mist); padding: 6px 12px; border-radius: 999px; }
.sv__proj a:hover { background: var(--y); }
.sv .btn { margin-top: 10px; }

/* work page */
.cases { display: grid; gap: clamp(70px, 9vw, 130px); }
.case { display: grid; grid-template-columns: 1.2fr 1fr; gap: 30px clamp(30px, 5vw, 70px); align-items: center; }
.case:nth-child(even) .case__txt { order: -1; }
.case__cover img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r-lg); }
.case__top { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; }
.case__logo { width: 64px; height: 64px; border-radius: 16px; border: 1px solid var(--line); display: grid; place-items: center; padding: 8px; background: #fff; }
.case__logo img { max-height: 100%; object-fit: contain; }
.case__sec { font: 700 13px var(--f-h); letter-spacing: .12em; text-transform: uppercase; color: var(--navy); background: var(--y); padding: 6px 12px; border-radius: 999px; }
html[lang=ar] .case__sec { letter-spacing: 0; font-size: 14px; }
.case h2 { font-size: clamp(28px, 3.4vw, 46px); margin-bottom: 10px; }
.case__title { font: 600 20px/1.4 var(--f-h); color: var(--navy); }
.case p { color: var(--muted); }
.case__tags { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 18px; }
.case__tags b { font: 700 14px var(--f-h); color: var(--ink); margin-inline-end: 6px; }
.case__tags a { font-size: 14px; font-weight: 600; padding: 6px 12px; border-radius: 999px; border: 1.5px solid var(--line); }
.case__tags a:hover { border-color: var(--y); background: var(--y); }
.case__gal { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.case__gal--few { grid-template-columns: repeat(4, 1fr); }
.case__gal a { display: block; border-radius: var(--r); overflow: hidden; }
.case__gal img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .6s var(--ease); }
.case__gal a:hover img { transform: scale(1.06); }
.lb { position: fixed; inset: 0; z-index: 90; background: rgba(5, 18, 23, .94); display: grid; place-items: center; padding: 60px 70px; }
.lb[hidden] { display: none; }
.lb img { max-height: 86vh; max-width: 100%; border-radius: 12px; }
.lb button { position: absolute; border: 0; background: rgba(255, 255, 255, .1); color: #fff; width: 52px; height: 52px; border-radius: 50%; font-size: 30px; cursor: pointer; line-height: 1; }
.lb button:hover { background: var(--y); color: var(--ink); }
.lb__x { top: 18px; inset-inline-end: 18px; }
.lb__p { left: 14px; } .lb__n { right: 14px; }

/* about */
.mv { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.mv__card { padding: clamp(30px, 4vw, 50px); border-radius: var(--r-lg); background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1); }
.mv__ic { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; border: 8px solid var(--y); color: var(--y); margin-bottom: 26px; }
.mv__card h2 { font-size: 32px; margin-bottom: 14px; }
.mv__card p { font-size: 19px; color: rgba(255, 255, 255, .8); margin: 0; }

/* contact */
.ct { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(30px, 5vw, 70px); align-items: start; }
.ct__info { display: grid; gap: 12px; position: sticky; top: 100px; }
.ct__card { display: flex; align-items: center; gap: 16px; padding: 20px; border-radius: var(--r); border: 1px solid var(--line); transition: border-color .25s, transform .25s var(--ease); }
.ct__card:hover { border-color: var(--y); transform: translateY(-3px); }
.ct__card .ic { width: 48px; height: 48px; padding: 12px; border-radius: 14px; background: var(--mist); color: var(--navy); }
.ct__card--wa { background: var(--navy); color: #fff; border-color: var(--navy); }
.ct__card--wa .ic { background: #25D366; color: #fff; }
.ct__card span { display: flex; flex-direction: column; min-width: 0; }
.ct__card small { font-size: 14px; opacity: .7; }
.ct__card b { font: 700 18px var(--f-h); overflow-wrap: anywhere; }
html[lang=ar] .ct__card b[dir=ltr] { font-family: 'Montserrat', sans-serif; text-align: end; }
.ct__form { padding: clamp(24px, 4vw, 48px); border-radius: var(--r-lg); background: var(--paper); }
.ct__form h2 { font-size: clamp(26px, 3vw, 38px); margin-bottom: 10px; }
.ct__form > p { color: var(--muted); margin-bottom: 26px; }
.ct__form .fld input, .ct__form .fld select, .ct__form .fld textarea { background: #fff; }
.map iframe { display: block; width: 100%; height: 420px; border: 0; filter: grayscale(.4) contrast(1.05); }

/* social */
.soc { display: flex; flex-wrap: wrap; gap: 8px; }
.soc a { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .08); transition: background .25s, color .25s; }
.soc a:hover { background: var(--y); color: var(--ink); }
.soc .ic { width: 19px; height: 19px; }
.soc--dark { margin-top: 10px; } .soc--dark a { background: var(--mist); color: var(--navy); }

/* footer */
.ft { background: var(--ink); color: rgba(255, 255, 255, .75); padding: 80px 0 0; }
.ft__grid { display: grid; grid-template-columns: 1.5fr 1fr 1.2fr 1.2fr; gap: 40px; padding-bottom: 50px; }
.ft__brand img { width: 220px; height: auto; margin-bottom: 20px; }
.ft__brand p { max-width: 26em; }
.ft h3 { font-size: 15px; color: #fff; margin-bottom: 18px; letter-spacing: .06em; text-transform: uppercase; }
html[lang=ar] .ft h3 { letter-spacing: 0; font-size: 17px; }
.ft ul { display: grid; gap: 10px; font-size: 15px; }
.ft a:hover { color: var(--y); }
html[lang=ar] .ft__contact a[dir=ltr] { display: inline-block; }
.ft__bar { display: flex; justify-content: space-between; gap: 20px; padding: 24px 0; border-top: 1px solid rgba(255, 255, 255, .1); font-size: 14px; }
.wa-float { position: fixed; z-index: 40; inset-inline-end: 20px; bottom: 20px; width: 60px; height: 60px; border-radius: 50%; background: #25D366; color: #fff; display: grid; place-items: center; box-shadow: 0 14px 30px -10px rgba(0, 0, 0, .45); transition: transform .3s var(--ease); }
.wa-float .ic { width: 32px; height: 32px; }
.wa-float:hover { transform: scale(1.08); }

/* ---------- motion ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0ms); }
.reveal.is-in { opacity: 1; transform: none; }
@keyframes rise { from { transform: translateY(105%); } to { transform: none; } }
@keyframes fade { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes up { from { opacity: 0; transform: translateY(60px); } to { opacity: 1; transform: none; } }
@keyframes pop { from { opacity: 0; transform: translateX(-50%) scale(.6); } to { opacity: 1; transform: translateX(-50%) scale(1); } }
.lf__tick { --x: 0; } @keyframes popc { from { transform: scale(.4); opacity: 0; } to { transform: none; opacity: 1; } }
.lf__tick { animation-name: popc; }
@keyframes float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -10px; } }
@keyframes marq { to { transform: translateX(-50%); } }
.marq__track { animation-name: marqT; } @keyframes marqT { to { transform: translateX(-100%); } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .hd__nav { display: none; }
  .hd__burger { display: block; }
  .hd__end { margin-inline-start: auto; }
  .svcs { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .step::after { display: none; }
  .ft__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .hero__in { grid-template-columns: 1fr; min-height: 0; padding-top: 30px; gap: 10px; }
  .hero__art { min-height: 0; height: 440px; }
  .hero__person { width: auto; height: 100%; max-height: 440px; }
  .hero__ring { width: 340px; }
  .chip--a { top: 12%; } .chip--b { top: 46%; }
  .intro, .partner, .why, .cta__in, .sv, .case, .ct, .mv { grid-template-columns: 1fr; }
  .sv:nth-child(even) .sv__txt, .case:nth-child(even) .case__txt { order: 0; }
  .case__gal, .case__gal--few { grid-template-columns: repeat(3, 1fr); }
  .partner__head, .ct__info { position: static; }
  .feat { grid-template-columns: 1fr; grid-template-rows: none; height: auto; }
  .fcard--big { grid-row: auto; }
  .fcard a { aspect-ratio: 4 / 3.4; height: auto; }
  .sh--row { flex-direction: column; align-items: start; }
}
@media (max-width: 640px) {
  body { font-size: 16px; } html[lang=ar] body { font-size: 17px; }
  .hd__cta { display: none; }
  .hd__logo img { height: 24px; }
  .hero h1 { font-size: 40px; } html[lang=ar] .hero h1 { font-size: 36px; }
  .hero__lead { font-size: 17px; }
  .hero__btns .btn { flex: 1; justify-content: center; }
  .hero__art { height: 380px; }
  .hero__ring { width: 290px; border-width: 40px; }
  .chip { font-size: 12px; padding: 9px 12px; } .chip .ic { width: 28px; height: 28px; padding: 6px; }
  .chip--c { display: none; }
  .svcs, .steps, .partner__list, .lf__grid { grid-template-columns: 1fr; }
  .lf__foot .btn { width: 100%; justify-content: center; }
  .ft__grid { grid-template-columns: 1fr; }
  .ft__bar { flex-direction: column; padding-bottom: 90px; }
  .ring--ph { width: 220px; height: 220px; border-width: 32px; inset-inline-end: -120px; top: auto; bottom: -90px; }
  .lb { padding: 60px 10px; }
  .cl { width: 120px; height: 78px; }
  .clgrid { grid-template-columns: repeat(2, 1fr); }
  .map iframe { height: 320px; }
}
