/* =====================================================================
   AL REEM CAR WASH — QR landing page
   Concept: "Racing stripe & shine". Black showroom, the brand yellow
   used as light: a squeegee-like stripe wipes things into view, a
   construction grid frames the mark (from the brand book), and a
   gloss passes over the logo.
   ===================================================================== */

/* ---------- Fonts (self-hosted, OFL) ---------- */
@font-face {
  font-family: "Readex Pro";
  src: url("../assets/fonts/readex-pro-arabic.woff2") format("woff2");
  font-weight: 160 700; font-style: normal; font-display: swap;
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FEFC;
}
@font-face {
  font-family: "Readex Pro";
  src: url("../assets/fonts/readex-pro-latin.woff2") format("woff2");
  font-weight: 160 700; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Barlow";
  src: url("../assets/fonts/barlow-800-italic-latin.woff2") format("woff2");
  font-weight: 800; font-style: italic; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Tokens ---------- */
:root {
  --y: #fff200;           /* brand yellow */
  --k: #000000;           /* brand black */
  --g: #7e7e7e;           /* brand gray */
  --ink: #f4f4ef;
  --mute: #9b9b96;
  --line: rgba(255, 255, 255, .09);
  --card-bg: linear-gradient(155deg, #171717 0%, #0c0c0c 58%, #090909 100%);
  --radius: 22px;
  --pad: max(18px, env(safe-area-inset-left), env(safe-area-inset-right));
  --max: 560px;

  --f-body: "Readex Pro", system-ui, -apple-system, "Segoe UI", Tahoma, sans-serif;
  --f-display: "Barlow", "Readex Pro", system-ui, sans-serif;

  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-io: cubic-bezier(.76, 0, .24, 1);

  /* Intro length multiplier: 1 = ~2.4s total. 0.8 = faster, 1.2 = slower. */
  --intro-scale: 1;
  --dir: 1;
  color-scheme: dark;
}
[dir="rtl"] { --dir: -1; }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; background: var(--k); }
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  /* no background here: html carries the black so the ambient layer (z-index:-1) stays visible */
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  -webkit-tap-highlight-color: transparent;
}
@supports (overflow: clip) { body { overflow-x: clip; } }
html[lang="ar"] body { line-height: 1.65; }
a { color: inherit; }
svg { display: block; }
button { font: inherit; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
:focus-visible { outline: 2px solid var(--y); outline-offset: 3px; border-radius: 10px; }
.card--ig:focus-visible, .btn--call:focus-visible { outline-color: var(--ink); }
.is-intro, .is-intro body { overflow: hidden; }

.topbar, .page, .footer {
  width: min(100% - 2 * var(--pad), var(--max));
  margin-inline: auto;
  position: relative;
}

/* ---------- Ambient background ---------- */
.ambient { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.ambient__glow {
  position: absolute; inset: -10% -20% auto; height: 90vh;
  background:
    radial-gradient(55% 45% at 78% 0%, rgba(255, 242, 0, .14), transparent 70%),
    radial-gradient(40% 40% at 10% 60%, rgba(255, 255, 255, .035), transparent 70%);
}
[dir="rtl"] .ambient__glow { transform: scaleX(-1); }
.ambient__mark {
  position: absolute;
  top: -4vh;
  inset-inline-end: -46vh;
  height: 124vh; width: calc(124vh * .621);
  fill: none;
  stroke: rgba(126, 126, 126, .32);
  stroke-width: 1.15;
  -webkit-mask-image: linear-gradient(180deg, #000 30%, transparent 92%);
  mask-image: linear-gradient(180deg, #000 30%, transparent 92%);
  will-change: transform;
}
.js .ambient__mark use { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 2.6s var(--ease-io) .25s forwards; }
.ambient__streak {
  position: absolute; top: -20%; bottom: -20%; left: 0; width: 46vw; min-width: 260px;
  background: linear-gradient(90deg, transparent, rgba(255, 242, 0, .045) 42%, rgba(255, 255, 255, .07) 50%, rgba(255, 242, 0, .045) 58%, transparent);
  transform: translate3d(-120%, 0, 0) skewX(-14deg);
  opacity: 0;
}
.is-ready .ambient__streak { animation: streak 6.5s var(--ease-io) 1.4s 2; }

/* ---------- Top bar ---------- */
.topbar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding-top: calc(14px + env(safe-area-inset-top));
  z-index: 2;
}
.topbar__tag {
  margin: 0; display: flex; align-items: center; gap: 9px;
  font-size: 12px; color: var(--mute); letter-spacing: .2em; text-transform: uppercase;
}
html[lang="ar"] .topbar__tag { letter-spacing: 0; font-size: 13px; }
.spark { width: 11px; height: 11px; color: var(--y); flex: none; }
.in .spark { animation: twinkle 1.4s var(--ease-out) .5s both; }

.lang {
  position: relative; display: grid; grid-template-columns: 1fr 1fr;
  padding: 4px; border-radius: 999px;
  background: rgba(255, 255, 255, .05); border: 1px solid var(--line);
}
.lang__btn {
  position: relative; z-index: 1;
  min-width: 52px; height: 40px; padding: 0 12px;
  border: 0; border-radius: 999px; background: none; cursor: pointer;
  color: var(--mute); font-size: 13px; font-weight: 600; letter-spacing: .04em;
  transition: color .45s var(--ease-out);
}
.lang__btn[lang="ar"] { letter-spacing: 0; font-size: 14px; }
.lang__btn[aria-pressed="true"] { color: var(--k); }
@media (hover: hover) { .lang__btn[aria-pressed="false"]:hover { color: var(--ink); } }
.lang__thumb {
  position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc(50% - 4px);
  border-radius: 999px; background: var(--y);
  box-shadow: 0 6px 18px -6px rgba(255, 242, 0, .55);
  transition: transform .6s var(--ease-out);
}
html[lang="en"] .lang__thumb { transform: translateX(100%); }

/* ---------- Hero ---------- */
.hero { padding: 34px 0 6px; }
.lockup { display: flex; align-items: center; gap: 16px; }
.lockup__mark { --mh: 98px; height: var(--mh); width: calc(var(--mh) * .621); flex: none; fill: var(--y); }
.lockup__words { margin: 0; flex: 1; min-width: 0; max-width: 300px; display: flex; flex-direction: column; gap: 9px; }
.lockup__line { display: block; overflow: hidden; padding-block: 1px; }
.lockup__line svg { width: 100%; height: auto; aspect-ratio: 1093 / 110; fill: var(--y); }
.lockup__line + .lockup__line svg { aspect-ratio: 1096 / 91; }

.hero__title {
  margin: 30px 0 0;
  font-weight: 500; font-size: clamp(31px, 9vw, 44px); line-height: 1.08; letter-spacing: -.025em;
  text-wrap: balance;
}
html[lang="ar"] .hero__title { font-weight: 600; line-height: 1.32; letter-spacing: 0; font-size: clamp(30px, 8.6vw, 44px); }
.hero__title em {
  font-style: normal; color: var(--y);
  background: linear-gradient(var(--y), var(--y)) no-repeat 0 100% / 0 2px;
  padding-bottom: 2px;
  transition: background-size 1s var(--ease-out) calc(var(--d, 0) * 1ms + 450ms);
}
[dir="rtl"] .hero__title em { background-position: 100% 100%; }
.hero__title.in em, .no-js .hero__title em { background-size: 100% 2px; }
.hero__sub { margin: 14px 0 0; max-width: 36ch; color: var(--mute); font-size: 15px; }

/* ---------- Blocks ---------- */
.block { margin-top: 46px; }
.block__head { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.block__idx { font: italic 800 14px/1 var(--f-display); color: var(--y); }
.block__title { margin: 0; font-size: 12.5px; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; }
html[lang="ar"] .block__title { font-size: 15px; letter-spacing: 0; font-weight: 600; }
.block__rule { flex: 1; height: 1px; background: linear-gradient(90deg, rgba(255,255,255,.18), rgba(255,255,255,.04)); transform-origin: left; }
[dir="rtl"] .block__rule { transform-origin: right; background: linear-gradient(270deg, rgba(255,255,255,.18), rgba(255,255,255,.04)); }
.js .block__head:not(.in) .block__rule { transform: scaleX(0); }
.block__head.in .block__rule { transform: none; transition: transform 1.2s var(--ease-out) calc(var(--d, 0) * 1ms + 150ms); }

/* ---------- Social bento ---------- */
.bento {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: 1fr 1fr;
  grid-template-rows: 178px 134px 134px 78px;
  gap: 10px;
}
.bento__item { min-width: 0; }
.bento__item--ig { grid-column: 1 / -1; }
.bento__item--tt { grid-column: 1; grid-row: 2 / span 2; }
.bento__item--sc { grid-column: 2; grid-row: 2; }
.bento__item--fb { grid-column: 2; grid-row: 3; }
.bento__item--x  { grid-column: 1 / -1; }

.card, .loc {
  --wipe: var(--y);
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; flex-direction: column; justify-content: space-between;
  height: 100%; padding: 16px;
  border-radius: var(--radius);
  background: var(--card-bg);
  border: 1px solid var(--line);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05), 0 18px 40px -24px rgba(0, 0, 0, .9);
  color: var(--ink); text-decoration: none;
  transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) scale(var(--s, 1));
  transition: transform .6s var(--ease-out), border-color .4s ease;
  touch-action: manipulation;
}
/* pointer spotlight */
.card::before, .loc::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(220px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 242, 0, .13), transparent 65%);
  opacity: 0; transition: opacity .45s ease;
}
/* lit border that follows the pointer */
.card::after, .loc::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none;
  background: radial-gradient(150px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 242, 0, .95), transparent 70%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  opacity: 0; transition: opacity .45s ease;
}
.card:active, .loc:active { --s: .972; transition-duration: .18s; }
.card:active::before, .card:active::after, .loc:active::before, .loc:active::after,
.card:focus-visible::after, .loc:focus-visible::after { opacity: 1; }
@media (hover: hover) {
  .card:hover::before, .card:hover::after, .loc:hover::before, .loc:hover::after { opacity: 1; }
  .card:hover, .loc:hover { border-color: rgba(255, 255, 255, .16); }
}

.card__top { display: flex; align-items: center; gap: 10px; }
.card__top .card__go { margin-inline-start: auto; }
.card__icon {
  width: 44px; height: 44px; flex: none; border-radius: 14px;
  display: grid; place-items: center;
  background: var(--y); color: var(--k);
  transition: transform .7s var(--ease-out);
}
.card__icon svg { width: 21px; height: 21px; }
.card__kicker { font-size: 12px; color: var(--mute); }
.card__idx { font: italic 800 13px/1 var(--f-display); color: var(--g); }
.card__bottom { display: flex; flex-direction: column; min-width: 0; }
.card__name { font-size: 17px; font-weight: 600; line-height: 1.25; }
.card__meta { display: block; margin-top: 2px; font-size: 12.5px; color: var(--mute); overflow-wrap: anywhere; }
[dir="rtl"] .card__meta[dir="ltr"], [dir="rtl"] .loc__coords { text-align: right; }

/* arrow: one leaves, one arrives */
.card__go {
  position: relative; flex: none; width: 34px; height: 34px; border-radius: 50%;
  border: 1px solid var(--line); overflow: hidden;
  transform: scaleX(var(--dir));
  transition: background-color .4s ease, border-color .4s ease, color .4s ease;
}
.card__go svg {
  position: absolute; left: 50%; top: 50%; width: 15px; height: 15px; margin: -7.5px 0 0 -7.5px;
  transition: transform .6s var(--ease-out);
}
.card__go svg + svg { transform: translate(-190%, 190%); }
@media (hover: hover) {
  .card:hover .card__go svg:first-child, .loc:hover .card__go svg:first-child { transform: translate(190%, -190%); }
  .card:hover .card__go svg + svg, .loc:hover .card__go svg + svg { transform: none; }
  .card:hover .card__go { background: var(--y); border-color: var(--y); color: var(--k); }
}
.card:active .card__go svg:first-child { transform: translate(190%, -190%); }
.card:active .card__go svg + svg { transform: none; }

/* Instagram — featured, in brand yellow */
.card--ig {
  --wipe: #ffffff;
  background:
    repeating-linear-gradient(115deg, transparent 0 22px, rgba(0, 0, 0, .035) 22px 23px),
    radial-gradient(120% 90% at 100% 0%, #fffa8a 0%, transparent 55%),
    var(--y);
  color: var(--k); border-color: transparent;
  box-shadow: 0 24px 50px -28px rgba(255, 242, 0, .55);
}
.card--ig::before { background: radial-gradient(220px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, .55), transparent 65%); }
.card--ig::after { background: radial-gradient(150px circle at var(--mx, 50%) var(--my, 50%), rgba(0, 0, 0, .6), transparent 70%); }
.card--ig .card__icon { background: var(--k); color: var(--y); }
.card--ig .card__kicker, .card--ig .card__meta { color: rgba(0, 0, 0, .62); }
.card--ig .card__go { border-color: rgba(0, 0, 0, .2); }
@media (hover: hover) { .card--ig:hover .card__go { background: var(--k); border-color: var(--k); color: var(--y); } }
.card__name--xl {
  margin-top: 2px;
  font: italic 800 clamp(42px, 13vw, 66px)/.88 var(--f-display);
  text-transform: uppercase; letter-spacing: -.01em;
}
html[lang="ar"] .card__name--xl { font-family: var(--f-body); font-style: normal; font-weight: 700; line-height: 1.15; letter-spacing: 0; font-size: clamp(36px, 11vw, 56px); }
@media (hover: hover) { .card--ig:hover .card__icon { transform: rotate(-12deg) scale(1.06); } }

/* TikTok — tall, with its signature chromatic offset (kept subtle) */
.card__hero-icon { flex: 1; display: grid; place-items: center; }
.card__hero-icon svg {
  width: 52px; height: 52px; color: var(--ink);
  filter: drop-shadow(-2px -1.5px 0 rgba(37, 244, 238, .7)) drop-shadow(2px 1.5px 0 rgba(254, 44, 85, .7));
  transition: transform .7s var(--ease-out), filter .5s ease;
}
@media (hover: hover) {
  .card--tt:hover .card__hero-icon svg { transform: scale(1.08) rotate(-4deg); filter: drop-shadow(-3.5px -2.5px 0 rgba(37, 244, 238, .85)) drop-shadow(3.5px 2.5px 0 rgba(254, 44, 85, .85)); }
  .card--sc:hover .card__icon { transform: translateY(-3px) rotate(-10deg); }
  .card--fb:hover .card__icon { transform: scale(1.1); }
  .card--x:hover .card__icon { transform: rotate(90deg); }
}

/* X — slim strip */
.card--x { flex-direction: row; align-items: center; gap: 14px; padding: 14px 16px 14px 14px; padding-inline: 14px 16px; }
.card__inline { flex: 1; min-width: 0; display: flex; align-items: baseline; flex-wrap: wrap; column-gap: 10px; }
.card--x .card__meta { margin-top: 0; }

/* ---------- Direct contact ---------- */
.phone { display: block; text-decoration: none; margin-bottom: 18px; width: fit-content; }
[dir="rtl"] .phone { margin-inline-start: 0; margin-left: auto; text-align: right; }
.phone__cc { display: block; font: italic 800 17px/1 var(--f-display); color: var(--g); letter-spacing: .04em; margin-bottom: 6px; }
.phone__num {
  display: block; font: italic 800 clamp(52px, 17vw, 100px)/.92 var(--f-display);
  color: var(--y); letter-spacing: -.012em; white-space: nowrap;
  background: linear-gradient(100deg, var(--y) 0 40%, #fffbb0 50%, var(--y) 60% 100%) 120% 0 / 250% 100%;
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  padding-inline-end: .06em;
}
.phone.in .phone__num { animation: shine 1.6s var(--ease-io) calc(var(--d, 0) * 1ms + 500ms) both; }
@media (hover: hover) { .phone:hover .phone__num { animation: shine 1.2s var(--ease-io) both; } }

.actions { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.btn {
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; align-items: center; gap: 12px;
  min-height: 66px; padding-block: 10px; padding-inline: 10px 16px;
  border-radius: 18px; text-decoration: none;
  transition: transform .5s var(--ease-out), color .45s ease, box-shadow .5s ease;
  touch-action: manipulation;
}
.btn:active { transform: scale(.965); transition-duration: .15s; }
.btn__icon { width: 46px; height: 46px; flex: none; border-radius: 13px; display: grid; place-items: center; transition: background-color .45s ease, color .45s ease; }
.btn__icon svg { width: 21px; height: 21px; }
.btn__text { min-width: 0; }
.btn__roll { display: block; height: 1.4em; overflow: hidden; font-weight: 600; font-size: 16px; line-height: 1.4; }
.btn__roll > span { display: block; transition: transform .6s var(--ease-out); }
.btn__hint { display: block; font-size: 12px; opacity: .62; line-height: 1.3; }
@media (hover: hover) { .btn:hover .btn__roll > span { transform: translateY(-100%); } }

.btn--call { background: var(--y); color: var(--k); box-shadow: 0 18px 40px -22px rgba(255, 242, 0, .7); }
.btn--call .btn__icon { background: var(--k); color: var(--y); }
.btn--call::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, .7) 50%, transparent 70%);
  transform: translateX(-120%);
}
@media (hover: hover) { .btn--call:hover::before { transform: translateX(120%); transition: transform .9s var(--ease-io); } }
.btn--call.in .btn__icon svg { animation: ring 1s ease calc(var(--d, 0) * 1ms + 900ms) 1 both; }

.btn--wa { background: #0d0d0d; color: var(--ink); border: 1px solid var(--line); }
.btn--wa .btn__icon { background: rgba(255, 255, 255, .07); color: var(--y); }
.btn--wa::before {
  content: ""; position: absolute; inset: 0; z-index: -1; background: var(--y);
  transform: scaleY(0); transform-origin: 50% 100%;
  transition: transform .6s var(--ease-out);
}
.btn--wa:active::before { transform: scaleY(1); }
.btn--wa:active { color: var(--k); }
.btn--wa:active .btn__icon { background: var(--k); }
@media (hover: hover) {
  .btn--wa:hover::before { transform: scaleY(1); }
  .btn--wa:hover { color: var(--k); }
  .btn--wa:hover .btn__icon { background: var(--k); }
}

/* ---------- Location ---------- */
.loc { display: grid; grid-template-columns: 128px 1fr; align-items: center; gap: 18px; padding: 12px; }
.loc__viz {
  position: relative; display: grid; place-items: center; aspect-ratio: 1; overflow: hidden;
  border-radius: 16px; border: 1px solid var(--line);
  background: radial-gradient(circle at 50% 50%, rgba(255, 242, 0, .1), transparent 62%), #060606;
}
.loc__radar { position: absolute; inset: 0; width: 100%; height: 100%; }
.loc__radar circle { fill: none; stroke: rgba(255, 255, 255, .12); stroke-width: 1; }
.loc__axis { stroke: rgba(255, 255, 255, .09); stroke-dasharray: 2 4; }
.loc__tick { stroke: var(--y); stroke-width: 1.5; }
.loc__sweep { transform-origin: 100px 100px; opacity: 0; }
.loc__sweep path { fill: rgba(255, 242, 0, .13); }
.loc.in .loc__sweep { animation: sweep 2.6s linear calc(var(--d, 0) * 1ms + 700ms) 2; }
.loc__pin { position: relative; z-index: 1; width: 30px; height: 30px; color: var(--y); transform: translateY(-7px); filter: drop-shadow(0 8px 10px rgba(255, 242, 0, .35)); }
.loc__pin svg { width: 100%; height: 100%; }
.loc.in .loc__pin { animation: pinDrop .9s var(--ease-out) calc(var(--d, 0) * 1ms + 450ms) both; }
.loc__pulse { position: absolute; left: 50%; top: 50%; width: 26px; height: 26px; margin: -13px 0 0 -13px; border-radius: 50%; border: 1.5px solid var(--y); opacity: 0; }
.loc.in .loc__pulse { animation: pulse 2.4s var(--ease-out) calc(var(--d, 0) * 1ms + 900ms) 3; }
.loc.in .loc__pulse--2 { animation-delay: calc(var(--d, 0) * 1ms + 2100ms); }
.loc__body { display: flex; flex-direction: column; min-width: 0; }
.loc__place { font-size: 20px; font-weight: 600; line-height: 1.25; }
.loc__coords { margin-top: 4px; font: italic 800 13px/1.2 var(--f-display); letter-spacing: .05em; color: var(--g); }
.loc__cta { margin-top: 14px; display: inline-flex; align-items: center; gap: 10px; color: var(--y); font-weight: 600; font-size: 15px; }
.loc__cta .card__go { border-color: rgba(255, 242, 0, .35); width: 30px; height: 30px; }
.loc__hint { margin-top: 4px; font-size: 12px; color: var(--mute); }
@media (max-width: 359px) {
  .loc { grid-template-columns: 100px 1fr; gap: 14px; }
  .loc__place { font-size: 18px; }
  .lockup__mark { --mh: 84px; }
  .card__kicker { display: none; }
}

/* ---------- Footer ---------- */
.footer {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  margin-top: 56px; padding: 22px 0 calc(26px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  color: var(--g); font-size: 12px;
}
.footer p { margin: 0; }
.footer__mark { height: 22px; width: calc(22px * .621); fill: var(--g); }

/* ---------- Language switch transition ---------- */
.page, .footer > p, .topbar__tag { transition: opacity .22s ease, transform .22s ease; }
.is-switching .page, .is-switching .footer > p, .is-switching .topbar__tag { opacity: 0; transform: translateY(6px); }

/* =====================================================================
   Entrance choreography (only when JS is running — without JS
   everything is simply visible)
   ===================================================================== */
.js [data-reveal] { opacity: 0; transform: translate3d(0, 22px, 0); }
.js [data-reveal].in {
  opacity: 1; transform: none;
  transition: opacity .9s var(--ease-out) calc(var(--d, 0) * 1ms), transform 1.1s var(--ease-out) calc(var(--d, 0) * 1ms);
}
.js [data-reveal="mask"] { opacity: 1; transform: none; }
.js [data-reveal="mask"] > svg { transform: translate3d(0, 108%, 0); }
.js [data-reveal="mask"].in > svg { transform: none; transition: transform 1s var(--ease-out) calc(var(--d, 0) * 1ms); }

/* card wipe: a stripe of light reveals each card */
.js [data-reveal="card"] { opacity: 1; transform: none; }
.card__wipe {
  position: absolute; inset: 0; z-index: 5; pointer-events: none;
  background: linear-gradient(90deg, transparent 76%, var(--wipe) 76%);
  transform: translateX(-101%);
}
[dir="rtl"] .card__wipe { background: linear-gradient(270deg, transparent 76%, var(--wipe) 76%); transform: translateX(101%); }
.js [data-reveal="card"]:not(.in) > .card, .js .loc[data-reveal="card"]:not(.in) { visibility: hidden; }
.js [data-reveal="card"].in > .card, .js .loc[data-reveal="card"].in { animation: clipIn .95s var(--ease-io) calc(var(--d, 0) * 1ms) both; }
.js [data-reveal="card"].in .card__wipe { animation: wipe .95s var(--ease-io) calc(var(--d, 0) * 1ms) both; }
[dir="rtl"].js [data-reveal="card"].in > .card, [dir="rtl"].js .loc[data-reveal="card"].in { animation-name: clipInR; }
[dir="rtl"].js [data-reveal="card"].in .card__wipe { animation-name: wipeR; }
/* once a card has entered, drop its entrance animation so a language switch can't replay it */
.js [data-reveal="card"].settled > .card, .js .loc[data-reveal="card"].settled { animation: none; }
.settled .card__wipe { display: none; }
.reveal-all [data-reveal],.reveal-all [data-reveal] > svg, .reveal-all [data-reveal] > .card { opacity: 1 !important; transform: none !important; visibility: visible !important; }

/* hero mark: hidden while the intro mark is flying to it */
.js:not(.is-ready) .lockup__mark { opacity: 0; }
.is-intro .lockup__mark { opacity: 0 !important; }
.no-intro.is-ready .lockup__mark { animation: markIn 1.1s var(--ease-out) both; }

/* =====================================================================
   Intro
   ===================================================================== */
.intro { display: none; }
.is-intro .intro {
  display: block; position: fixed; inset: 0; z-index: 50; cursor: pointer; overflow: hidden;
  animation: introFailsafe .4s 4.4s forwards;
}
.intro__curtain {
  --lead: 120px;
  position: absolute; top: -15vh; bottom: -15vh;
  inset-inline-start: calc(-1 * (var(--lead) + 30vh));
  width: calc(100vw + var(--lead) + 60vh);
  will-change: transform;
}
.intro__skew { display: flex; height: 100%; transform: skewX(-12deg); }
[dir="rtl"] .intro__skew { transform: skewX(12deg); }
.intro__stripe { background: var(--y); }
.intro__stripe--thin { flex: 0 0 12px; }
.intro__gap { flex: 0 0 14px; }
.intro__stripe--thick { flex: 0 0 94px; }
.intro__black { flex: 1; background: var(--k); }

.intro__stage {
  position: absolute; left: 50%; top: 47%; transform: translate(-50%, -50%);
  display: flex; flex-direction: column; align-items: center; gap: clamp(24px, 4.5vh, 40px);
}
.intro__mark { --ih: min(34vh, 290px); position: relative; height: var(--ih); width: calc(var(--ih) * .621); will-change: transform; }
.intro__mark > svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.intro__lines use {
  fill: none; stroke: var(--y); stroke-width: 2.4; stroke-linejoin: round;
  stroke-dasharray: 1; stroke-dashoffset: 1;
  animation: draw calc(var(--intro-scale) * .95s) var(--ease-io) both;
}
.intro__lines use:nth-child(1) { animation-delay: calc(var(--intro-scale) * .08s); }
.intro__lines use:nth-child(2) { animation-delay: calc(var(--intro-scale) * .16s); }
.intro__lines use:nth-child(3) { animation-delay: calc(var(--intro-scale) * .5s); }
.intro__lines use:nth-child(4) { animation-delay: calc(var(--intro-scale) * .4s); }
.intro__lines { animation: fadeOut calc(var(--intro-scale) * .45s) ease calc(var(--intro-scale) * 1.2s) both; }
.intro__fill { fill: var(--y); animation: rise calc(var(--intro-scale) * .75s) var(--ease-io) calc(var(--intro-scale) * .78s) both; }
.intro__gloss { animation: gloss calc(var(--intro-scale) * .9s) var(--ease-io) calc(var(--intro-scale) * 1.05s) both; }

.g { position: absolute; background: rgba(126, 126, 126, .42); pointer-events: none; }
.g--h1, .g--h2 { left: -100vw; right: -100vw; height: 1px; animation: gridX calc(var(--intro-scale) * 1s) var(--ease-out) both; }
.g--v1, .g--v2 { top: -100vh; bottom: -100vh; width: 1px; animation: gridY calc(var(--intro-scale) * 1s) var(--ease-out) both; }
.g--h1 { top: 0; } .g--h2 { bottom: 0; animation-delay: calc(var(--intro-scale) * .08s); }
.g--v1 { left: 0; animation-delay: calc(var(--intro-scale) * .04s); } .g--v2 { right: 0; animation-delay: calc(var(--intro-scale) * .12s); }

.intro__wm { width: min(74vw, 330px); display: flex; flex-direction: column; gap: 8px; direction: ltr; }
.intro__wm-line { display: block; overflow: hidden; padding-block: 1px; }
.intro__wm-line svg { width: 100%; height: auto; aspect-ratio: 1093 / 110; fill: var(--y); animation: lineUp calc(var(--intro-scale) * .8s) var(--ease-out) calc(var(--intro-scale) * 1.02s) both; }
.intro__wm-line + .intro__wm-line svg { aspect-ratio: 1096 / 91; animation-delay: calc(var(--intro-scale) * 1.1s); }

.intro__meta {
  position: absolute; left: 0; right: 0; bottom: calc(26px + env(safe-area-inset-bottom)); margin: 0;
  display: flex; justify-content: center; align-items: center; gap: 12px;
  font: italic 800 11px/1 var(--f-display); letter-spacing: .22em; color: var(--g);
  animation: fadeIn .6s ease calc(var(--intro-scale) * .9s) both;
}
.intro__meta i { width: 26px; height: 1px; background: var(--g); }
.intro__skip {
  position: absolute; top: calc(14px + env(safe-area-inset-top)); inset-inline-end: var(--pad);
  min-height: 40px; padding: 0 16px; border-radius: 999px; cursor: pointer;
  background: rgba(0, 0, 0, .4); border: 1px solid rgba(255, 255, 255, .2); color: var(--ink);
  font-size: 13px; font-weight: 500;
  animation: fadeIn .5s ease .45s both;
}
@media (hover: hover) { .intro__skip:hover { border-color: var(--y); color: var(--y); } }

.is-leaving .g, .is-leaving .intro__meta, .is-leaving .intro__skip, .is-leaving .intro__lines { animation: fadeOut .25s ease both; }
.is-leaving .intro__wm-line svg { animation: lineOut .45s var(--ease-io) both; }
.is-leaving .intro__fill { animation: none; }
.is-leaving { cursor: default; pointer-events: none; }

/* =====================================================================
   Keyframes
   ===================================================================== */
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes fadeOut { from { opacity: 1; } to { opacity: 0; } }
@keyframes rise {
  from { -webkit-clip-path: inset(100% 0 0 0); clip-path: inset(100% 0 0 0); }
  to { -webkit-clip-path: inset(0 0 0 0); clip-path: inset(0 0 0 0); }
}
@keyframes gloss { from { transform: translateX(0) skewX(-18deg); } to { transform: translateX(800px) skewX(-18deg); } }
@keyframes gridX { from { transform: scaleX(0); opacity: 0; } to { transform: scaleX(1); opacity: 1; } }
@keyframes gridY { from { transform: scaleY(0); opacity: 0; } to { transform: scaleY(1); opacity: 1; } }
@keyframes lineUp { from { transform: translateY(108%); } to { transform: none; } }
@keyframes lineOut { to { transform: translateY(-108%); } }
@keyframes introFailsafe { to { opacity: 0; visibility: hidden; } }
@keyframes markIn { from { opacity: 0; transform: translateY(14px) scale(.94); } to { opacity: 1; transform: none; } }
@keyframes clipIn {
  0% { -webkit-clip-path: inset(0 100% 0 0 round var(--radius)); clip-path: inset(0 100% 0 0 round var(--radius)); }
  80%, 100% { -webkit-clip-path: inset(0 0 0 0 round var(--radius)); clip-path: inset(0 0 0 0 round var(--radius)); }
}
@keyframes clipInR {
  0% { -webkit-clip-path: inset(0 0 0 100% round var(--radius)); clip-path: inset(0 0 0 100% round var(--radius)); }
  80%, 100% { -webkit-clip-path: inset(0 0 0 0 round var(--radius)); clip-path: inset(0 0 0 0 round var(--radius)); }
}
@keyframes wipe { 0% { transform: translateX(-100%); } 80% { transform: translateX(0); } 100% { transform: translateX(26%); } }
@keyframes wipeR { 0% { transform: translateX(100%); } 80% { transform: translateX(0); } 100% { transform: translateX(-26%); } }
@keyframes streak {
  0% { transform: translate3d(-120%, 0, 0) skewX(-14deg); opacity: 0; }
  10% { opacity: 1; } 90% { opacity: 1; }
  100% { transform: translate3d(320%, 0, 0) skewX(-14deg); opacity: 0; }
}
@keyframes shine { from { background-position: 120% 0; } to { background-position: -20% 0; } }
@keyframes ring {
  0%, 100% { transform: rotate(0); }
  15% { transform: rotate(-14deg); } 30% { transform: rotate(12deg); }
  45% { transform: rotate(-9deg); } 60% { transform: rotate(6deg); } 75% { transform: rotate(-3deg); }
}
@keyframes twinkle { 0% { transform: scale(0) rotate(-90deg); } 60% { transform: scale(1.35) rotate(10deg); } 100% { transform: scale(1) rotate(0); } }
@keyframes pinDrop { from { opacity: 0; transform: translateY(-34px); } 60% { opacity: 1; } to { opacity: 1; transform: translateY(-7px); } }
@keyframes pulse { 0% { opacity: .9; transform: scale(.5); } 100% { opacity: 0; transform: scale(3.6); } }
@keyframes sweep { 0% { opacity: 0; transform: rotate(0); } 12% { opacity: 1; } 88% { opacity: 1; } 100% { opacity: 0; transform: rotate(360deg); } }

/* =====================================================================
   Larger screens
   ===================================================================== */
@media (min-width: 640px) {
  :root { --max: 640px; }
  .bento { grid-template-rows: 200px 156px 156px 84px; gap: 12px; }
  .lockup__mark { --mh: 120px; }
  .lockup__words { max-width: 360px; }
  .loc { grid-template-columns: 170px 1fr; }
}

@media (min-width: 1024px) {
  :root { --max: 1220px; }
  .topbar { padding-top: 28px; }
  .page {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
    grid-template-areas: "hero social" "contact location";
    column-gap: clamp(56px, 7vw, 120px);
    align-items: start;
  }
  .hero { grid-area: hero; padding-top: 72px; }
  .social { grid-area: social; margin-top: 72px; }
  .contact { grid-area: contact; }
  .location { grid-area: location; }
  .lockup__mark { --mh: 150px; }
  .lockup { gap: 22px; }
  .lockup__words { max-width: 420px; gap: 12px; }
  .hero__title { font-size: clamp(46px, 4.3vw, 68px); margin-top: 44px; }
  html[lang="ar"] .hero__title { font-size: clamp(42px, 4vw, 62px); }
  .hero__sub { font-size: 17px; }
  .bento { grid-template-rows: 214px 168px 168px 88px; }
  .block { margin-top: 64px; }
  .loc { grid-template-columns: 190px 1fr; padding: 14px; }
  .ambient__mark { inset-inline-end: -30vh; height: 140vh; width: calc(140vh * .621); top: -10vh; }
}

/* =====================================================================
   Reduced motion: no intro, no ambient motion, gentle fades only
   ===================================================================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; animation-delay: 0s !important; scroll-behavior: auto !important; }
  .js [data-reveal] { transform: none; }
  .js [data-reveal].in { transition: opacity .35s ease !important; }
  .js [data-reveal="mask"] > svg { transform: none; }
  .card__wipe, .ambient__streak, .loc__sweep, .loc__pulse { display: none; }
  .js .ambient__mark use { stroke-dasharray: none; animation: none; }
  .card, .loc { transform: none !important; }
  .btn__roll > span, .card__go svg { transition: none; }
}
