/* Maftouh Capital · a street at dusk, a sign switching on */
:root {
  --ink: #120D16;
  --ink-2: #1A131F;
  --ink-3: #251B2C;
  --neon: #FF3B3B;
  --neon-hot: #FFE0D9;
  --teal: #1FA6A0;
  --amber: #FFB547;
  --cream: #F3EADF;
  --paper: #FBF6EE;
  --text: #F4EEE8;
  --muted: rgba(244, 238, 232, .66);
  --line: rgba(244, 238, 232, .13);
  --ink-on-cream: #1C1420;
  --display: 'Archivo', 'Helvetica Neue', Arial, sans-serif;
  --serif: 'Instrument Serif', Georgia, serif;
  --body: 'Archivo', system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
  --gut: clamp(20px, 4vw, 64px);
  --top-h: 72px;
  --chip-h: 36px;
  --chip-fs: 12px;
  --btn-h: 46px;
  --btn-fs: 14px;
  --e1: cubic-bezier(.16, 1, .3, 1);
  --e2: cubic-bezier(.65, 0, .35, 1);
  --tshadow: 0 1px 2px rgba(8, 4, 10, .95), 0 3px 12px rgba(8, 4, 10, .78), 0 10px 44px rgba(8, 4, 10, .8);
}
html[lang="ar"] { --display: 'Lemonada', 'IBM Plex Sans Arabic', sans-serif; --serif: 'Lemonada', serif; --body: 'IBM Plex Sans Arabic', system-ui, sans-serif; }

* { box-sizing: border-box; }
html { overflow-x: hidden; overflow-x: clip; -webkit-text-size-adjust: 100%; }
body { margin: 0; overflow-x: hidden; overflow-x: clip; background: var(--ink); color: var(--text); font-family: var(--body); font-size: 16px; line-height: 1.6; font-weight: 400; }
html[lang="en"] .ar, html[lang="ar"] .en { display: none !important; }
img, video { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
b, strong { font-weight: 600; }
:focus-visible { outline: 2px solid var(--neon); outline-offset: 3px; }
::selection { background: var(--neon); color: #fff; }
main:focus { outline: none; }
.wrap { max-width: 1320px; margin: 0 auto; padding: 0 var(--gut); }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

.skip { position: fixed; inset-inline-start: 8px; top: 8px; z-index: 200; background: var(--neon); color: #fff; padding: 8px 14px; transform: translateY(-200%); transition: transform .2s; }
.skip:focus { transform: none; }

/* ---------- intro ---------- */
.loader { display: none; }
html.intro .loader { display: grid; position: fixed; inset: 0; z-index: 150; place-items: center; pointer-events: none; }
.loader__shutter { position: absolute; inset: 0; z-index: -1; background: repeating-linear-gradient(var(--ink-2) 0 22px, #0d0910 22px 24px); transition: transform 1.1s var(--e2); }
.loader__mark { display: grid; justify-items: center; gap: 18px; transition: opacity .5s, transform 1s var(--e2); }
.loader__mark svg { width: 92px; height: 92px; filter: drop-shadow(0 0 14px rgba(255, 59, 59, .45)); }
.loader .lr, .loader .lm { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 1s var(--e1) forwards; }
.loader .lm { animation-delay: .35s; }
.loader .lc { opacity: 0; animation: fade .4s ease .1s forwards; }
.loader__word { margin: 0; font-family: var(--display); font-weight: 800; font-stretch: 125%; letter-spacing: .5em; margin-inline-start: .5em; font-size: 13px; opacity: 0; animation: fade .6s ease .7s forwards; }
html[lang="ar"] .loader__word { letter-spacing: 0; margin: 0; font-size: 18px; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fade { to { opacity: 1; } }
html.intro.intro-out .loader__mark { opacity: 0; transform: translateY(-30px); }
html.intro.intro-out .loader__shutter { transform: translateY(-101%); }

/* ---------- grain and cursor ---------- */
.grain { position: fixed; inset: -50%; z-index: 120; pointer-events: none; opacity: .07; background-size: 160px 160px; animation: grain 1s steps(6) infinite; mix-blend-mode: overlay; }
@keyframes grain { 0% { transform: translate(0, 0); } 20% { transform: translate(-3%, 2%); } 40% { transform: translate(2%, -4%); } 60% { transform: translate(-4%, -1%); } 80% { transform: translate(3%, 3%); } 100% { transform: translate(0, 0); } }
.cursor { display: none; }
@media (hover: hover) and (pointer: fine) {
  html.has-cursor .cursor { display: block; position: fixed; left: 0; top: 0; z-index: 140; pointer-events: none; }
  .cursor__dot { position: absolute; width: 6px; height: 6px; margin: -3px 0 0 -3px; border-radius: 50%; background: var(--neon); box-shadow: 0 0 10px var(--neon); }
  .cursor__ring { position: absolute; width: 38px; height: 38px; margin: -19px 0 0 -19px; border-radius: 50%; border: 1px solid rgba(244, 238, 232, .45); display: grid; place-items: center; transition: width .4s var(--e1), height .4s var(--e1), margin .4s var(--e1), background .3s, border-color .3s; }
  .cursor__ring b { font-family: var(--mono); font-weight: 500; font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink); opacity: 0; transition: opacity .2s; }
  html.has-cursor .cursor.is-big .cursor__ring { width: 84px; height: 84px; margin: -42px 0 0 -42px; background: var(--neon-hot); border-color: transparent; }
  html.has-cursor .cursor.is-big .cursor__ring b { opacity: 1; }
  html.has-cursor .cursor.is-link .cursor__ring { width: 56px; height: 56px; margin: -28px 0 0 -28px; border-color: var(--neon); }
}

/* ---------- size system: chips and buttons ---------- */
.chip { position: relative; display: inline-flex; align-items: center; height: var(--chip-h); padding: 0 14px; border-radius: 999px; border: 1px solid rgba(244, 238, 232, .26); background: rgba(18, 13, 22, .38); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); font-size: var(--chip-fs); font-weight: 500; letter-spacing: .06em; text-decoration: none; cursor: pointer; white-space: nowrap; transition: background .35s var(--e1), border-color .35s, color .35s; }
.chip:hover { background: var(--text); color: var(--ink); border-color: var(--text); }
.chip--neon { background: var(--neon); border-color: var(--neon); color: #fff; box-shadow: 0 0 22px rgba(255, 59, 59, .38); }
.chip--neon:hover { background: #ff5656; color: #fff; border-color: #ff5656; }
html[lang="ar"] .chip { letter-spacing: 0; font-size: calc(var(--chip-fs) + 1px); }
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: var(--btn-h); padding: 0 24px; border-radius: 999px; border: 1px solid transparent; font-size: var(--btn-fs); font-weight: 600; letter-spacing: .02em; text-decoration: none; cursor: pointer; white-space: nowrap; overflow: hidden; isolation: isolate; transition: color .4s var(--e1), border-color .4s, box-shadow .4s; text-shadow: none; }
.btn::before { content: ''; position: absolute; inset: 0; z-index: -1; border-radius: inherit; transform: translateY(101%); transition: transform .5s var(--e1); }
.btn:hover::before { transform: none; }
.btn--neon { background: var(--neon); color: #fff; box-shadow: 0 0 0 0 rgba(255, 59, 59, .5), 0 10px 30px rgba(255, 59, 59, .3); }
.btn--neon::before { background: var(--text); }
.btn--neon:hover { color: var(--ink); }
.btn--ghost { border-color: rgba(244, 238, 232, .5); color: var(--text); background: rgba(18, 13, 22, .25); }
.btn--ghost::before { background: var(--text); }
.btn--ghost:hover { color: var(--ink); }
.chip::after, .btn::after { content: ''; position: absolute; inset: -6px -2px; }
html[lang="ar"] .btn { letter-spacing: 0; }
[data-magnet] { will-change: transform; }

/* ---------- top bar ---------- */
.top { position: fixed; inset: 0 0 auto; z-index: 90; height: var(--top-h); display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; padding: 0 var(--gut); transition: background .5s var(--e1), transform .6s var(--e1); }
.top.is-solid { background: linear-gradient(rgba(18, 13, 22, .9), rgba(18, 13, 22, .7)); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.top.is-hidden { transform: translateY(-100%); }
.top__end { display: flex; justify-content: flex-end; gap: 8px; }
.clock { display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 11px; letter-spacing: .04em; color: var(--muted); }
html[lang="ar"] .clock { font-family: var(--body); font-size: 12px; }
.clock__dot { width: 7px; height: 7px; border-radius: 50%; background: #6c6470; }
.clock__dot.is-open { background: #3ee08a; box-shadow: 0 0 10px #3ee08a; animation: pulse 2.4s ease-in-out infinite; animation-delay: -.8s; }
.clock__st { color: var(--text); }
@keyframes pulse { 50% { opacity: .45; } }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { width: 34px; height: 34px; filter: drop-shadow(0 0 8px rgba(255, 59, 59, .35)); }
.brand__text { display: grid; line-height: 1; }
.brand__text b { font-family: 'Archivo', sans-serif; font-weight: 800; font-stretch: 125%; font-size: 15px; letter-spacing: .14em; }
.brand__text small { margin-top: 3px; font-family: var(--mono); font-size: 9px; letter-spacing: .5em; color: var(--muted); }
html[lang="ar"] .brand__text b { font-family: 'Lemonada', sans-serif; font-weight: 700; letter-spacing: 0; font-size: 17px; }
html[lang="ar"] .brand__text small { font-family: var(--body); letter-spacing: 0; font-size: 11px; margin-top: 5px; }

/* ---------- shared type ---------- */
.kicker { margin: 0 0 20px; font-family: var(--mono); font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--neon); }
html[lang="ar"] .kicker { font-family: var(--body); letter-spacing: 0; font-size: 14px; font-weight: 600; }
.h2 { margin: 0; font-family: var(--display); font-weight: 800; font-stretch: 112%; font-size: clamp(40px, 5.6vw, 92px); line-height: .96; letter-spacing: -.035em; }
.mega { margin: 0; font-family: var(--display); font-weight: 800; font-stretch: 118%; font-size: clamp(54px, 9vw, 160px); line-height: .9; letter-spacing: -.045em; }
.h2 em, .mega em, .hero__title em, .settle__t em { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -.01em; font-stretch: 100%; }
html[lang="ar"] .h2, html[lang="ar"] .mega { font-stretch: 100%; letter-spacing: 0; line-height: 1.32; font-weight: 700; }
html[lang="ar"] .h2 { font-size: clamp(34px, 4.6vw, 76px); }
html[lang="ar"] .mega { font-size: clamp(44px, 7vw, 124px); }
html[lang="ar"] .h2 em, html[lang="ar"] .mega em, html[lang="ar"] .hero__title em, html[lang="ar"] .settle__t em { font-style: normal; color: var(--neon); font-weight: 700; }
.h2 em, .mega em { color: var(--neon-hot); }
.lede { max-width: 32em; margin: 24px 0 0; font-size: 17px; color: var(--muted); }
html[lang="ar"] .lede { font-size: 18px; }

/* heading lines rise out of masks */
.mask .l { display: block; overflow: hidden; padding: .06em 0 .14em; margin: -.06em 0 -.14em; }
.mask .l > span { display: inline-block; transform: translateY(110%); transition: transform 1.2s var(--e1); }
.mask .l:nth-child(2) > span { transition-delay: .09s; }
.mask .l:nth-child(3) > span { transition-delay: .18s; }
.mask.in .l > span { transform: none; }
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 1s var(--e1), transform 1s var(--e1); }
.reveal.in { opacity: 1; transform: none; }
.wipe { clip-path: inset(100% 0 0 0); transition: clip-path 1.4s var(--e1); }
.wipe.in { clip-path: inset(0 0 0 0); }
html:not(.js) .mask .l > span, html:not(.js) .reveal, html:not(.js) .wipe { transform: none; opacity: 1; clip-path: none; }

/* ---------- hero ---------- */
.hero { position: relative; height: 520vh; }
.hero__stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; background: #0b070d; }
.hero__poster, .hero__video { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__poster { background: #0b070d center / cover no-repeat; transform: scale(1.04); }
.hero__video { object-fit: cover; opacity: 0; transition: opacity .8s var(--e1); will-change: transform; transform: translateZ(0); }
.hero__stage.video-ready .hero__video { opacity: 1; }
.scrim { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(rgba(10, 6, 12, .62), rgba(10, 6, 12, 0) 24%), radial-gradient(ellipse 110% 90% at 60% 40%, rgba(10, 6, 12, 0) 35%, rgba(10, 6, 12, .66) 100%), linear-gradient(90deg, rgba(10, 6, 12, .62), rgba(10, 6, 12, 0) 58%); }
.spill { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse 50% 40% at 72% 30%, rgba(255, 59, 59, .28), transparent 70%); opacity: var(--spill, 0); mix-blend-mode: screen; }
.ring { position: absolute; z-index: 4; left: 50%; bottom: 30px; width: 36px; height: 36px; margin-left: -18px; color: var(--neon); transform: rotate(-90deg); transition: opacity .5s; }
.hero__stage.video-ready .ring, .hero__stage.video-failed .ring { opacity: 0; }

/* the hanging sign */
.hang { position: absolute; z-index: 3; top: calc(var(--top-h) + 4vh); inset-inline-end: 6vw; width: min(36vw, 520px); }
.chain { position: absolute; bottom: 100%; width: 14px; height: 60vh; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='28'%3E%3Crect x='3' y='1' width='8' height='14' rx='4' fill='none' stroke='%239a93a3' stroke-width='2'/%3E%3Crect x='6' y='13' width='2' height='16' rx='1' fill='%23787080'/%3E%3C/svg%3E"); background-repeat: repeat-y; background-position: bottom center; transform: translateX(-50%); filter: drop-shadow(0 2px 2px rgba(0, 0, 0, .6)); }
.chain--a { left: 15%; } .chain--b { left: 85%; }
.sign { position: relative; animation: sway 9s ease-in-out infinite; animation-delay: -3s; transform-origin: 50% -40%; }
@keyframes sway { 50% { transform: rotate(.6deg); } }
.sign__stack { position: relative; width: 100%; }
.sign__stack svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.sign__glow { filter: blur(14px); opacity: 0; mix-blend-mode: screen; }
.sign__lit { opacity: 0; filter: drop-shadow(0 0 6px rgba(255, 70, 70, .9)); }
.sign__lit--border { filter: drop-shadow(0 0 6px rgba(31, 166, 160, .9)); }

.band { position: absolute; z-index: 4; inset-inline-start: var(--gut); max-width: min(52vw, 760px); text-shadow: var(--tshadow); opacity: 0; will-change: opacity; }
.band::before { content: ''; position: absolute; inset: -20% -16%; z-index: -1; pointer-events: none; opacity: calc(.3 + .7 * var(--k, 1)); background: radial-gradient(ellipse 72% 62% at 50% 50%, rgba(10, 6, 12, .64), rgba(10, 6, 12, .42) 46%, rgba(10, 6, 12, 0) 76%); }
.band--1 { bottom: 14vh; opacity: 1; max-width: min(70vw, 1100px); }
.band--step { bottom: 16vh; max-width: min(66vw, 1000px); }
.band--settle { bottom: 13vh; }
.band .kicker { margin-bottom: 14px; }
.hero__title { margin: 0; font-family: var(--display); font-weight: 800; font-stretch: 116%; font-size: clamp(48px, 6.4vw, 116px); line-height: .9; letter-spacing: -.045em; }
.hero__title em { color: var(--neon-hot); text-shadow: 0 0 18px rgba(255, 59, 59, .8), 0 0 46px rgba(255, 59, 59, .5); }
html[lang="ar"] .hero__title { font-stretch: 100%; letter-spacing: 0; line-height: 1.25; font-size: clamp(44px, 6vw, 104px); font-weight: 700; }
.band .l2 { display: block; }
.hero__sub { max-width: 30em; margin: 22px 0 0; font-size: 17px; color: rgba(244, 238, 232, .86); }
.step__n { margin: 0; font-family: var(--mono); font-size: 12px; letter-spacing: .2em; color: var(--muted); }
.step__n b { color: var(--neon); text-shadow: 0 0 10px var(--neon); }
.step__w { margin: 6px 0 0; white-space: nowrap; font-family: var(--display); font-weight: 800; font-stretch: 120%; font-size: clamp(52px, 7vw, 124px); line-height: .9; letter-spacing: -.05em; transform: translateY(calc((1 - var(--k, 1)) * 40px)); }
html[lang="ar"] .step__w { font-stretch: 100%; letter-spacing: 0; line-height: 1.25; font-size: clamp(46px, 6.6vw, 116px); }
.step__t { max-width: 26em; margin: 12px 0 0; font-size: 17px; color: rgba(244, 238, 232, .86); opacity: var(--ks, 1); }
.step__t b { color: var(--text); }
.settle__t { margin: 0; font-family: var(--display); font-weight: 800; font-stretch: 118%; font-size: clamp(60px, 9vw, 160px); line-height: .9; letter-spacing: -.05em; }
.settle__t em { color: var(--neon-hot); text-shadow: 0 0 20px rgba(255, 59, 59, .85), 0 0 60px rgba(255, 59, 59, .5); }
html[lang="ar"] .settle__t { font-stretch: 100%; letter-spacing: 0; line-height: 1.25; font-size: clamp(48px, 7vw, 120px); font-weight: 700; }
.settle__s { margin: 14px 0 0; font-family: var(--mono); font-size: 12px; letter-spacing: .08em; color: var(--muted); opacity: var(--ks, 1); }
html[lang="ar"] .settle__s { font-family: var(--body); letter-spacing: 0; font-size: 14px; }
.settle__cta { display: flex; flex-wrap: wrap; gap: 10px; margin: 24px 0 0; opacity: var(--kb, 1); transform: translateY(calc((1 - var(--kb, 1)) * 14px)); }
.cue { position: absolute; z-index: 4; left: 50%; bottom: 24px; margin: 0; display: grid; justify-items: center; gap: 8px; transform: translateX(-50%); font-family: var(--mono); font-size: 10px; letter-spacing: .24em; text-transform: uppercase; color: var(--muted); opacity: 0; transition: opacity .6s; white-space: nowrap; }
html[lang="ar"] .cue { font-family: var(--body); letter-spacing: 0; font-size: 12px; }
.hero__stage.video-ready .cue, .hero__stage.video-failed .cue { opacity: .9; }
.cue i { width: 1px; height: 34px; background: linear-gradient(var(--neon), transparent); animation: cue 2.4s var(--e2) infinite; animation-delay: -.6s; transform-origin: top; }
@keyframes cue { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }

/* the static hero: phones, tablets held upright, reduced motion */
@media (max-width: 720px), (orientation: portrait) and (max-width: 1024px), (orientation: portrait) and (pointer: coarse), (orientation: landscape) and (pointer: coarse) and (max-height: 560px), (prefers-reduced-motion: reduce) {
  .hero { height: auto; }
  .hero__stage { position: relative; height: 100vh; height: 100svh; min-height: 620px; }
  .hero__video, .hero__poster { object-position: 50% 50%; background-position: 50% 50%; }
  .band, html[dir="rtl"] .band { max-width: none; left: var(--gut); right: var(--gut); }
  .band--step, .cue, .ring { display: none; }
  .band--1 { top: calc(var(--top-h) + 30vh); bottom: auto; opacity: 1; }
  .band--settle { bottom: 6vh; opacity: 1; }
  .band--settle .settle__t { display: none; }
  .hang { top: calc(var(--top-h) + 3vh); inset-inline-end: auto; left: 50%; width: 46vw; max-width: 300px; transform: translateX(-50%); }
  .scrim { background: linear-gradient(rgba(10, 6, 12, .5), rgba(10, 6, 12, .15) 30%, rgba(10, 6, 12, .25) 45%, rgba(10, 6, 12, .92)); }
}

/* ---------- marquee ---------- */
.marquee { overflow: hidden; border-block: 1px solid var(--line); padding: 22px 0; background: var(--ink); }
.marquee__track { display: flex; width: max-content; animation: marquee 48s linear infinite; }
html[dir="rtl"] .marquee__track { animation-name: marquee-rtl; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__track span { display: inline-flex; align-items: center; gap: 28px; padding-inline-end: 28px; font-family: var(--display); font-weight: 800; font-stretch: 125%; font-size: clamp(30px, 4vw, 58px); letter-spacing: -.02em; white-space: nowrap; color: transparent; -webkit-text-stroke: 1px rgba(244, 238, 232, .55); transition: color .4s, -webkit-text-stroke-color .4s; }
.marquee__track span:hover { color: var(--text); -webkit-text-stroke-color: var(--text); }
.marquee__track span i { width: 12px; height: 12px; border-radius: 50%; background: var(--neon); box-shadow: 0 0 14px var(--neon); flex: none; }
html[lang="ar"] .marquee__track span { font-stretch: 100%; letter-spacing: 0; font-weight: 700; }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes marquee-rtl { to { transform: translateX(50%); } }

/* ---------- second film ---------- */
.film { position: relative; min-height: 110vh; display: grid; align-items: end; overflow: hidden; }
.film__frame { position: absolute; inset: 0; background: var(--ink-2) url('../photos/souk-poster.jpg') center / cover no-repeat; }
.film__frame video { width: 100%; height: 100%; object-fit: cover; }
.film__frame::after { content: ''; position: absolute; inset: 0; background: linear-gradient(rgba(18, 13, 22, .2), rgba(18, 13, 22, .1) 40%, rgba(18, 13, 22, .88)); }
.film__text { position: relative; z-index: 1; max-width: 1320px; width: 100%; margin: 0 auto; padding: 0 var(--gut) 12vh; text-shadow: var(--tshadow); }
.film__lede { max-width: 34em; margin: 26px 0 0; font-size: 18px; color: rgba(244, 238, 232, .88); }

/* ---------- horizontal gallery ---------- */
.hgal { position: relative; height: 380vh; background: var(--ink); }
.hgal__stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; display: grid; grid-template-rows: auto 1fr; padding: calc(var(--top-h) + 4vh) 0 5vh; }
.hgal__head { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 20px; padding: 0 var(--gut); }
.hgal__head .kicker { grid-column: 1 / -1; }
.hgal__hint { margin: 0; max-width: 18em; font-size: 13px; color: var(--muted); text-align: end; }
.hgal__track { display: flex; gap: 22px; align-items: stretch; padding: 4vh var(--gut) 0; will-change: transform; }
.card { position: relative; flex: 0 0 min(30vw, 440px); border-radius: 18px; overflow: hidden; background: var(--ink-2); cursor: pointer; border: 0; padding: 0; text-align: start; transition: transform .6s var(--e1); }
.card:nth-child(even) { margin-top: 6vh; }
.card img, .card video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--e1), filter .6s; }
.card video { object-position: 70% 50%; }
.card:hover img, .card:hover video { transform: scale(1.06); }
.card::after { content: ''; position: absolute; inset: 0; background: linear-gradient(transparent 35%, rgba(12, 8, 14, .92)); }
.card__n { position: absolute; z-index: 1; top: 16px; inset-inline-start: 18px; font-family: var(--mono); font-size: 11px; letter-spacing: .14em; padding: 5px 10px; border-radius: 999px; background: rgba(18, 13, 22, .55); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.card__live { position: absolute; z-index: 1; top: 16px; inset-inline-end: 18px; display: inline-flex; align-items: center; gap: 6px; font-family: var(--mono); font-size: 10px; letter-spacing: .14em; color: var(--neon-hot); }
.card__live::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--neon); box-shadow: 0 0 8px var(--neon); animation: pulse 1.6s infinite; }
.card__body { position: absolute; z-index: 1; left: 22px; right: 22px; bottom: 20px; }
.card__w { display: block; font-family: var(--display); font-weight: 800; font-stretch: 112%; font-size: clamp(26px, 2.4vw, 38px); line-height: 1; letter-spacing: -.03em; }
html[lang="ar"] .card__w { font-stretch: 100%; letter-spacing: 0; line-height: 1.35; font-weight: 700; }
.card__eg { display: block; margin-top: 10px; font-size: 13px; color: var(--muted); }
.card__eg b { color: var(--text); font-weight: 600; }
.card__go { display: inline-flex; margin-top: 12px; font-family: var(--mono); font-size: 11px; letter-spacing: .12em; color: var(--neon-hot); opacity: 0; transform: translateY(8px); transition: opacity .4s, transform .4s var(--e1); }
html[lang="ar"] .card__go { font-family: var(--body); letter-spacing: 0; font-size: 13px; }
.card:hover .card__go, .card:focus-visible .card__go { opacity: 1; transform: none; }
.hgal__bar { position: absolute; left: var(--gut); right: var(--gut); bottom: 3vh; height: 2px; background: var(--line); }
.hgal__bar i { display: block; height: 100%; width: var(--p, 0%); background: var(--neon); box-shadow: 0 0 10px var(--neon); }

/* ---------- calculator ---------- */
.calc { padding: 150px 0 140px; background: radial-gradient(ellipse 60% 50% at 80% 40%, rgba(255, 59, 59, .08), transparent 70%), var(--ink); }
.calc__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 7vw; align-items: center; }
.slider { margin-top: 38px; }
.slider label { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: 15px; color: var(--muted); }
.slider output { font-family: var(--display); font-weight: 700; font-stretch: 110%; font-size: 22px; color: var(--text); }
html[lang="ar"] .slider output { font-family: 'Archivo', sans-serif; }
.slider input { -webkit-appearance: none; appearance: none; width: 100%; height: 28px; margin: 10px 0 2px; background: transparent; cursor: pointer; }
.slider input::-webkit-slider-runnable-track { height: 4px; border-radius: 4px; background: linear-gradient(90deg, var(--neon) var(--fill, 50%), rgba(244, 238, 232, .14) var(--fill, 50%)); box-shadow: 0 0 calc(18px * var(--glow, .5)) rgba(255, 59, 59, calc(.6 * var(--glow, .5))); }
html[dir="rtl"] .slider input::-webkit-slider-runnable-track { background: linear-gradient(270deg, var(--neon) var(--fill, 50%), rgba(244, 238, 232, .14) var(--fill, 50%)); }
.slider input::-webkit-slider-thumb { -webkit-appearance: none; width: 24px; height: 24px; margin-top: -10px; border-radius: 50%; background: var(--neon-hot); border: 5px solid var(--neon); box-shadow: 0 0 16px var(--neon); }
.slider input::-moz-range-track { height: 4px; border-radius: 4px; background: rgba(244, 238, 232, .14); }
.slider input::-moz-range-progress { height: 4px; background: var(--neon); }
.slider input::-moz-range-thumb { width: 16px; height: 16px; border-radius: 50%; background: var(--neon-hot); border: 4px solid var(--neon); }
.slider__ends { display: flex; justify-content: space-between; margin: 0; font-family: var(--mono); font-size: 11px; color: var(--muted); }
html[lang="ar"] .slider__ends { font-family: var(--body); font-size: 12px; }
.weekly { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; margin: 42px 0 0; padding-top: 22px; border-top: 1px solid var(--line); }
.weekly small { font-size: 14px; color: var(--muted); }
.weekly b { font-family: 'Tilt Neon', sans-serif; font-weight: 400; font-size: clamp(42px, 5vw, 76px); line-height: 1; color: var(--neon-hot); text-shadow: 0 0 8px var(--neon), 0 0 26px rgba(255, 59, 59, .7), 0 0 60px rgba(255, 59, 59, .4); }
.receipt { position: relative; padding: 30px 28px 34px; background: var(--paper); color: var(--ink-on-cream); border-radius: 4px; box-shadow: 0 50px 100px rgba(0, 0, 0, .5); transform: rotate(-1.4deg); transition: transform .8s var(--e1); font-family: var(--mono); font-size: 13px; }
.receipt:hover { transform: rotate(0) translateY(-6px); }
.receipt::before, .receipt::after { content: ''; position: absolute; left: 0; right: 0; height: 12px; background: radial-gradient(circle at 8px 0, transparent 7px, var(--paper) 7.5px) 0 0 / 16px 12px repeat-x; }
.receipt::before { top: -11px; transform: scaleY(-1); }
.receipt::after { bottom: -11px; }
.receipt__head { display: flex; align-items: center; gap: 10px; margin: 0 0 18px; padding-bottom: 14px; border-bottom: 1.5px dashed rgba(28, 20, 32, .3); font-weight: 500; letter-spacing: .08em; text-transform: uppercase; font-size: 11px; }
html[lang="ar"] .receipt__head { font-family: var(--body); letter-spacing: 0; font-size: 13px; }
.receipt__head img { width: 28px; height: 28px; }
.receipt dl { margin: 0; }
.receipt dl > div { display: flex; justify-content: space-between; gap: 14px; padding: 8px 0; border-bottom: 1px dotted rgba(28, 20, 32, .22); }
html[lang="ar"] .receipt dt, html[lang="ar"] .receipt dd { font-family: var(--body); }
.receipt dd { margin: 0; font-weight: 500; white-space: nowrap; }
.receipt dl > div.total { margin-top: 6px; padding-top: 12px; border-top: 1.5px solid var(--ink-on-cream); border-bottom: 0; font-size: 15px; font-weight: 600; }
.receipt dl > div.total dd { color: #c4161c; }
.receipt__note { margin: 18px 0 0; font-size: 11px; line-height: 1.6; color: rgba(28, 20, 32, .62); }
html[lang="ar"] .receipt__note { font-family: var(--body); font-size: 12px; }
.stamp { position: absolute; right: 18px; bottom: -18px; padding: 7px 12px; border: 2px solid #c4161c; color: #c4161c; font-weight: 600; font-size: 10px; letter-spacing: .14em; text-transform: uppercase; transform: rotate(-8deg); background: rgba(251, 246, 238, .92); border-radius: 3px; }
html[dir="rtl"] .stamp { right: auto; left: 18px; transform: rotate(8deg); }
html[lang="ar"] .stamp { font-family: var(--body); letter-spacing: 0; font-size: 12px; }

/* ---------- four steps on cream ---------- */
.steps { padding: 140px 0; background: var(--cream); color: var(--ink-on-cream); }
.steps .kicker { color: #c4161c; }
.steps .h2 em { color: #c4161c; }
.steps__head { margin-bottom: 60px; }
.tiles { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin: 0; padding: 0; }
.tile { position: relative; display: grid; grid-template-rows: auto 1fr; border-radius: 16px; overflow: hidden; background: var(--paper); transition: transform .6s var(--e1), box-shadow .6s; }
.tile:hover { transform: translateY(-8px); box-shadow: 0 30px 60px rgba(28, 20, 32, .18); }
.tile__ph { position: relative; aspect-ratio: 4 / 5; overflow: hidden; }
.tile__ph img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--e1); }
.tile:hover .tile__ph img { transform: scale(1.06); }
.tile__letter { position: absolute; left: 14px; bottom: 6px; font-family: 'Tilt Neon', sans-serif; font-size: 96px; line-height: 1; color: var(--neon-hot); text-shadow: 0 0 10px var(--neon), 0 0 30px var(--neon); }
html[dir="rtl"] .tile__letter { left: auto; right: 14px; }
.tile__body { padding: 20px 20px 24px; }
.tile__time { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: #c4161c; }
html[lang="ar"] .tile__time { font-family: var(--body); letter-spacing: 0; font-size: 13px; font-weight: 600; }
.tile h3 { margin: 6px 0 0; font-family: var(--display); font-weight: 800; font-stretch: 110%; font-size: 28px; letter-spacing: -.02em; line-height: 1.1; }
html[lang="ar"] .tile h3 { font-stretch: 100%; letter-spacing: 0; line-height: 1.4; font-size: 24px; }
.tile p { margin: 8px 0 0; font-size: 15px; color: rgba(28, 20, 32, .7); }

/* ---------- costs ---------- */
.costs { padding: 150px 0; }
.costs__grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 7vw; align-items: start; }
.costs__photo { margin: 40px 0 0; aspect-ratio: 4 / 3; border-radius: 16px; overflow: hidden; }
.costs__photo img { width: 100%; height: 100%; object-fit: cover; }
.table { width: 100%; border-collapse: collapse; }
.table tr { border-bottom: 1px solid var(--line); transition: background .4s; }
.table tr:hover { background: rgba(255, 59, 59, .06); }
.table th { text-align: start; font-weight: 400; font-size: 16px; color: var(--muted); padding: 24px 12px 24px 0; }
html[dir="rtl"] .table th { padding: 24px 0 24px 12px; }
.table td { padding: 24px 0; text-align: end; }
.table td b { display: block; font-family: var(--display); font-weight: 700; font-stretch: 108%; font-size: clamp(18px, 1.7vw, 24px); letter-spacing: -.01em; }
html[lang="ar"] .table td b { font-stretch: 100%; letter-spacing: 0; }
.tag { display: inline-block; margin-top: 4px; font-family: var(--mono); font-size: 10px; letter-spacing: .14em; color: var(--muted); text-transform: uppercase; }
html[lang="ar"] .tag { font-family: var(--body); letter-spacing: 0; font-size: 11px; }

/* ---------- yes / not yet ---------- */
.fit { display: grid; grid-template-columns: 1fr 1fr; }
.fit__half { padding: 110px clamp(24px, 6vw, 96px); }
.fit__yes { background: var(--teal); color: #071816; }
.fit__yes .kicker { color: #071816; }
.fit__no { background: var(--ink-3); }
.fit__no .kicker { color: var(--muted); }
.fit ul { list-style: none; margin: 0; padding: 0; }
.fit li { display: grid; gap: 4px; padding: 20px 0; border-top: 1px solid rgba(7, 24, 22, .2); }
.fit__no li { border-top-color: var(--line); }
.fit li b { font-family: var(--display); font-weight: 800; font-stretch: 110%; font-size: clamp(22px, 2.2vw, 32px); line-height: 1.1; letter-spacing: -.02em; }
html[lang="ar"] .fit li b { font-stretch: 100%; letter-spacing: 0; line-height: 1.45; font-weight: 700; }
.fit li small { font-size: 15px; opacity: .75; }

/* ---------- apply ---------- */
.apply { position: relative; padding: 150px 0; overflow: hidden; }
.apply__bg { position: absolute; inset: 0; background: var(--ink-2) center / cover no-repeat; }
.apply__bg video { width: 100%; height: 100%; object-fit: cover; opacity: .6; }
.apply__bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(18, 13, 22, .95) 22%, rgba(18, 13, 22, .55) 62%, rgba(18, 13, 22, .7)); }
html[dir="rtl"] .apply__bg::after { background: linear-gradient(270deg, rgba(18, 13, 22, .95) 22%, rgba(18, 13, 22, .55) 62%, rgba(18, 13, 22, .7)); }
.apply__grid { position: relative; display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 7vw; align-items: start; }
.apply__call { margin: 22px 0 0; color: var(--muted); }
.apply__call a { color: var(--text); font-weight: 600; text-decoration: none; border-bottom: 1px solid var(--neon); }
.meter { display: flex; gap: 6px; margin-top: 36px; max-width: 360px; }
.meter i { flex: 1; height: 8px; border-radius: 8px; background: rgba(244, 238, 232, .1); transition: background .4s, box-shadow .4s; }
.meter i.on { background: var(--neon); box-shadow: 0 0 12px var(--neon); }
.meter.all i { background: var(--teal); box-shadow: 0 0 12px var(--teal); }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.box { position: relative; display: grid; gap: 6px; padding: 14px 16px 10px; border-radius: 12px; background: rgba(244, 238, 232, .05); border: 1px solid var(--line); transition: border-color .3s, background .3s, box-shadow .3s; }
.box:focus-within { border-color: var(--neon); background: rgba(255, 59, 59, .06); box-shadow: 0 0 0 4px rgba(255, 59, 59, .12); }
.box.filled { border-color: rgba(255, 59, 59, .5); }
.box.bad { border-color: #ff7a7a; }
.box label { font-family: var(--mono); font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
html[lang="ar"] .box label { font-family: var(--body); letter-spacing: 0; font-size: 12px; }
.box input, .box select { width: 100%; background: transparent; border: 0; color: var(--text); font: inherit; font-size: 16px; padding: 2px 0 4px; outline: none; }
.box select { -webkit-appearance: none; appearance: none; background: 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' fill='none' stroke='%23F4EEE8' stroke-width='1.4'/%3E%3C/svg%3E") no-repeat right 2px center; padding-inline-end: 22px; }
html[dir="rtl"] .box select { background-position: left 2px center; }
.box select option { background: var(--ink); }
.form__err { grid-column: 1 / -1; margin: 0; min-height: 1.3em; color: #ff8a8a; font-size: 14px; }
.form .btn { grid-column: 1 / -1; justify-self: start; }
.form__ok { grid-column: 1 / -1; }
.form__ok.is-on { padding: 16px 18px; border-radius: 12px; border: 1px solid var(--teal); background: rgba(31, 166, 160, .1); }

/* ---------- FAQ ---------- */
.faq { padding: 140px 0; }
.faq__grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 7vw; align-items: start; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { position: relative; display: flex; justify-content: space-between; gap: 20px; align-items: center; padding: 24px 0; cursor: pointer; list-style: none; font-family: var(--display); font-weight: 700; font-stretch: 106%; font-size: clamp(18px, 1.6vw, 22px); transition: color .3s; }
html[lang="ar"] .faq summary { font-stretch: 100%; font-weight: 600; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ''; flex: none; width: 14px; height: 14px; background: linear-gradient(currentColor, currentColor) center / 100% 2px no-repeat, linear-gradient(currentColor, currentColor) center / 2px 100% no-repeat; transition: transform .5s var(--e1); }
.faq details[open] summary::after { transform: rotate(135deg); color: var(--neon); }
.faq summary:hover { color: var(--neon-hot); }
.faq details p { margin: 0; padding: 0 0 26px; max-width: 40em; color: var(--muted); }

/* ---------- footer ---------- */
.foot { padding: 100px 0 30px; border-top: 1px solid var(--line); overflow: hidden; }
.foot__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; }
.foot h3 { margin: 0 0 10px; font-family: var(--mono); font-weight: 500; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--neon); }
html[lang="ar"] .foot h3 { font-family: var(--body); letter-spacing: 0; font-size: 13px; }
.foot p { margin: 0 0 8px; color: var(--muted); font-size: 15px; }
.foot a { text-decoration: none; color: var(--text); }
.foot__mark { position: relative; margin: 70px 0 0; overflow: hidden; isolation: isolate; }
.foot__mark video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.foot .foot__word { position: relative; margin: 0; padding: .04em 0 .1em; text-align: center; font-family: 'Archivo', sans-serif; font-weight: 800; font-stretch: 125%; font-size: 14.4vw; line-height: .82; letter-spacing: -.05em; white-space: nowrap; color: #fff; background: var(--ink); mix-blend-mode: multiply; }
html[lang="ar"] .foot .foot__word { font-family: 'Lemonada', sans-serif; font-stretch: 100%; letter-spacing: 0; line-height: 1.15; font-size: 20vw; font-weight: 700; padding: .06em 0 .32em; }
@keyframes buzz { 0%, 90%, 94%, 100% { opacity: 1; } 92%, 96% { opacity: .35; } }
.foot__base { display: flex; justify-content: space-between; gap: 40px; margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--muted); }
.foot__base p { margin: 0; max-width: 60em; font-size: 12.5px; }
.credit { white-space: nowrap; }
.credit a { color: var(--neon-hot); border-bottom: 1px solid rgba(255, 59, 59, .5); }

body.paused *, body.paused *::before, body.paused *::after { animation-play-state: paused !important; }
@media (max-height: 560px) { .cue { display: none; } }

/* ---------- tablet ---------- */
@media (max-width: 1024px) {
  .hide-s { display: none; }
  .hgal { height: auto; }
  .hgal__stage { position: relative; height: auto; padding: 110px 0 60px; }
  .hgal__head { grid-template-columns: 1fr; }
  .hgal__hint { text-align: start; }
  .hgal__track { overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; transform: none !important; padding-bottom: 6px; }
  .hgal__track::-webkit-scrollbar { display: none; }
  .card { flex: 0 0 min(64vw, 420px); height: 62vh; height: 62svh; scroll-snap-align: start; }
  .card:nth-child(even) { margin-top: 0; }
  .card__go { opacity: 1; transform: none; }
  .hgal__bar { display: none; }
  .calc__grid, .costs__grid, .apply__grid, .faq__grid { grid-template-columns: minmax(0, 1fr); gap: 56px; }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- phone: its own scale, not a squeezed desktop ---------- */
@media (max-width: 720px) {
  :root { --top-h: 58px; --chip-h: 32px; --chip-fs: 11px; --btn-h: 42px; --btn-fs: 13px; --gut: 18px; }
  body { font-size: 15px; }
  .top { grid-template-columns: auto 1fr auto; gap: 8px; }
  .top__start { display: none; }
  .brand { justify-self: start; gap: 8px; }
  .brand img { width: 28px; height: 28px; }
  .brand__text b { font-size: 13px; letter-spacing: .1em; }
  .brand__text small { font-size: 8px; letter-spacing: .4em; }
  html[lang="ar"] .brand__text b { font-size: 15px; }
  .top__end { grid-column: 3; gap: 6px; }
  .chip { padding: 0 12px; }
  .btn { padding: 0 18px; }
  .kicker { font-size: 10px; margin-bottom: 14px; }
  html[lang="ar"] .kicker { font-size: 13px; }
  .h2 { font-size: clamp(34px, 10.4vw, 46px); }
  html[lang="ar"] .h2 { font-size: clamp(28px, 8.6vw, 38px); }
  .mega { font-size: clamp(46px, 14vw, 64px); }
  html[lang="ar"] .mega { font-size: clamp(36px, 11vw, 52px); }
  .lede, .film__lede { font-size: 15.5px; }
  .hero__title { font-size: clamp(40px, 12.4vw, 54px); }
  html[lang="ar"] .hero__title { font-size: clamp(32px, 9.6vw, 42px); }
  .hero__sub { font-size: 14.5px; margin-top: 14px; }
  .band--1 { top: auto; bottom: calc(6vh + 150px); }
  .settle__s { font-size: 11px; }
  .settle__cta { margin-top: 16px; gap: 8px; }
  .marquee { padding: 14px 0; }
  .marquee__track span { font-size: 26px; gap: 18px; padding-inline-end: 18px; }
  .marquee__track span i { width: 8px; height: 8px; }
  .film { min-height: 92vh; min-height: 92svh; }
  .film__text { padding-bottom: 9vh; }
  .card { flex-basis: 78vw; height: 56vh; height: 56svh; border-radius: 14px; }
  .card__w { font-size: 26px; }
  .calc { padding: 100px 0 110px; }
  .slider output { font-size: 18px; }
  .weekly b { font-size: 40px; }
  .receipt { padding: 24px 20px 44px; font-size: 12px; transform: none; }
  .stamp { bottom: 12px; }
  .steps, .costs, .faq, .apply { padding: 100px 0; }
  .tiles { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .tile { grid-template-columns: 120px 1fr; grid-template-rows: auto; }
  .tile__ph { aspect-ratio: auto; height: 100%; min-height: 150px; }
  .tile__letter { font-size: 64px; }
  .tile h3 { font-size: 22px; }
  .tile p { font-size: 14px; }
  .table th, .table td { padding: 18px 0; }
  .table th { font-size: 14px; padding-inline-end: 10px; }
  .fit { grid-template-columns: minmax(0, 1fr); }
  .fit__half { padding: 70px var(--gut); }
  .form { grid-template-columns: minmax(0, 1fr); }
  .meter { margin-top: 26px; }
  .foot { padding-top: 70px; }
  .foot__grid { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .foot .foot__word { font-size: 15vw; }
  html[lang="ar"] .foot .foot__word { font-size: 22vw; }
  .foot__mark { margin-top: 50px; }
  .foot__base { flex-direction: column; gap: 12px; }
  .credit { white-space: normal; }
  .grain { animation: none; opacity: .05; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; transition-delay: 0s !important; }
  .mask .l > span, .reveal { transform: none; opacity: 1; }
  .wipe { clip-path: none; }
  .band { opacity: 1; }
}
