/* ==========================================================
   دليلك — Portfolio
   Black base, one accent, Inter + Alexandria for text,
   Silkscreen / Handjet (pixel) only for small labels and one headline.
   Colours come from the logo: gold lettering, black disc, teal glow.
   ========================================================== */

:root {
  --bg: #060707;
  --navy: #081010;
  --navy-rgb: 8, 16, 16;
  --surface: #0D1111;
  --surface-2: #121818;
  --text: #F4F3EE;
  --muted: #8E9592;
  --dim: #5D6462;
  --accent: #FFCA00;
  --accent-rgb: 255, 202, 0;
  --accent-2: #FFD84D;
  --accent-2-rgb: 255, 216, 77;
  --lav: #FFE58F;
  --lav-rgb: 255, 229, 143;
  --deep: #8F6C00;
  --ink: #0F1C1C;
  --ink-lit: #1B3333;
  --glow-rgb: 47, 86, 86;
  --glow-2-rgb: 62, 115, 115;
  --orb: #3E7373;
  --orb-o: .55;
  --on-accent: #111313;
  --btn-bg: #FFCA00;
  --btn-fg: #111313;
  --btn-hover: #FFD84D;
  --title-px: #FFCA00;
  --sphere: radial-gradient(circle at 32% 28%, #fff 0%, #D3ECE8 8%, #86BAB6 27%, #3E7373 54%, #1B3434 82%, #0D1A1A 100%);
  --sphere-glow-rgb: 62, 115, 115;
  --fcard-a: rgba(30, 54, 54, .8);
  --fcard-b: rgba(11, 21, 21, .8);
  --brand-mark: #FFCA00;
  --line: rgba(255, 255, 255, .08);
  --line-2: rgba(255, 255, 255, .14);
  --f-text: 'Inter', 'Alexandria', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --f-px: 'Silkscreen', ui-monospace, monospace;
  --f-pxa: 'Handjet', 'Silkscreen', ui-monospace, monospace;

  --ease: cubic-bezier(.2, .7, .2, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --pad: clamp(16px, 4vw, 56px);
  --max: 1280px;
  --hand: url("../img/cursor-hand.svg") 11 1, pointer;
  color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: clip; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 calc(17px * var(--k, 1))/1.6 var(--f-text);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
html[lang="ar"] body { line-height: 1.75; }
img, svg, video, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
a, button, [data-open-brief], .card__media { cursor: var(--hand); }
::selection { background: var(--accent); color: var(--on-accent); }
:focus-visible { outline: 1.5px solid var(--lav); outline-offset: 3px; border-radius: 8px; }
[hidden] { display: none !important; }

.container { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--pad); }
.defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.px { font-family: var(--f-px); font-weight: 400; letter-spacing: .04em; direction: ltr; unicode-bidi: isolate; }
html[dir="ltr"] .flip-ltr, html[dir="rtl"] .flip-rtl { transform: scaleX(-1); }
.skip {
  position: fixed; top: 12px; inset-inline-start: 12px; z-index: 200; padding: 10px 16px;
  border-radius: 999px; background: #fff; color: #0A0A12; font-size: 14px;
  transform: translateY(-160%); transition: transform .3s var(--ease-out);
}
.skip:focus { transform: none; }

/* The logo lettering, recoloured through a mask */
.wm {
  display: block; height: var(--h, 32px); aspect-ratio: 766 / 374;
  background: currentColor;
  -webkit-mask: url("../img/wordmark.png") center / contain no-repeat;
  mask: url("../img/wordmark.png") center / contain no-repeat;
}

/* ---------- Dashboard controls: title sizes per section, gold words ---------- */
[data-size="s"] { --ts: .72; }
[data-size="m"] { --ts: .86; }
[data-size="l"] { --ts: 1; }
[data-size="xl"] { --ts: 1.22; }
.hl { font-style: normal; color: var(--accent); }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 1s var(--ease-out), transform 1s var(--ease-out); transition-delay: var(--d, 0ms); }
.reveal.is-in { opacity: 1; transform: none; }
main, .footer { transition: opacity .2s ease; }
.is-switching main, .is-switching .footer { opacity: 0; }

/* ---------- Buttons ---------- */
.pill {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 52px; padding: 0 26px; border-radius: 999px; white-space: nowrap;
  font-size: 16px; font-weight: 500; letter-spacing: -.01em;
  transition: background-color .3s, color .3s, border-color .3s, box-shadow .4s, transform .4s var(--ease-out);
}
.pill--sm { height: 40px; padding: 0 18px; font-size: 14px; }
.pill--light { background: var(--btn-bg); color: var(--btn-fg); }
.pill--light:hover { background: var(--btn-hover); }
.pill--ghost { border: 1px solid var(--line-2); color: var(--text); }
.pill--ghost:hover { border-color: rgba(255, 255, 255, .3); }
.pill:active { transform: scale(.97); }
.pill__icon { width: 16px; height: 16px; color: currentColor; }
.round {
  width: 44px; height: 44px; flex: none; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid var(--line-2); color: var(--muted); transition: border-color .3s, color .3s;
}
.round:hover { border-color: var(--accent-2); color: var(--lav); }
.round svg { width: 18px; height: 18px; }
.link { padding-bottom: 3px; border-bottom: 1px solid var(--line-2); color: var(--muted); direction: ltr; unicode-bidi: isolate; transition: color .3s, border-color .3s; }
.link:hover { color: var(--text); border-color: var(--text); }

/* ---------- Nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 20px var(--pad); border-bottom: 1px solid transparent;
  transition: background-color .4s, padding .4s, border-color .4s, transform .5s var(--ease-out);
}
.nav.is-scrolled {
  background: rgba(5, 5, 7, .72); padding-block: 12px; border-color: var(--line);
  -webkit-backdrop-filter: blur(16px) saturate(1.3); backdrop-filter: blur(16px) saturate(1.3);
}
.nav.is-hidden { transform: translateY(-100%); }
.nav:focus-within { transform: none; }
.nav__brand { color: var(--brand-mark, #fff); transition: color .3s, filter .4s; }
.nav__brand:hover { color: var(--accent-2); filter: drop-shadow(0 0 10px rgba(var(--accent-rgb), .7)); }
.wm--nav { --h: 28px; }
.nav__links { display: flex; align-items: center; gap: 28px; font-size: 14px; }
.nav__link { color: var(--muted); transition: color .3s; }
.nav__link:hover { color: var(--text); }
.lang { color: var(--muted); font: 400 12px/1 var(--f-px); letter-spacing: .06em; padding: 8px 2px; transition: color .3s; }
html[lang="en"] .lang { font: 600 20px/1 var(--f-pxa); }
.lang:hover { color: var(--text); }

/* ---------- Hero ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: 100svh; display: grid; grid-template-rows: auto 1fr auto; grid-template-columns: minmax(0, 1fr);
  padding: clamp(96px, 13vh, 130px) var(--pad) clamp(28px, 5vh, 48px);
}
.hero__top { justify-self: center; margin: 0; font-size: calc(clamp(17px, 1.7vw, 24px) * var(--k, 1)); font-weight: 300; color: var(--muted); letter-spacing: -.01em; }

.dof {
  position: relative; display: grid; grid-template-columns: minmax(0, 1fr); align-content: center;
  gap: clamp(4px, 1.4vw, 18px); margin-inline: calc(var(--pad) * -1); padding-block: 24px;
}
.dof__row { position: relative; min-width: 0; display: flex; justify-content: flex-start; direction: ltr; opacity: var(--o, 1); transition: opacity .5s var(--ease-out); }
.dof__row--main { justify-content: center; }
.dof__track {
  display: flex; gap: clamp(24px, 3.6vw, 56px); width: max-content; direction: ltr;
  animation: drift var(--dur, 90s) linear infinite; will-change: transform;
}
.dof__track[data-dir="-1"] { animation-direction: reverse; }
@keyframes drift { to { transform: translateX(-50%); } }
.dof__item { flex: none; color: var(--accent); filter: blur(var(--b, 0px)); }
.dof__item .wm { --h: clamp(38px, 6vw, 88px); }
.dof__row--low .dof__item .wm { --h: clamp(34px, 5.2vw, 78px); }
.dof__main {
  color: var(--accent);
  filter: blur(var(--b, 0px)) drop-shadow(0 2px 0 var(--deep)) drop-shadow(0 2px 0 var(--deep)) drop-shadow(0 2px 0 var(--deep)) drop-shadow(0 2px 0 var(--deep)) drop-shadow(0 2px 0 var(--deep));
  transform: translate3d(var(--mx, 0px), var(--my, 0px), 0);
  transition: transform .9s var(--ease-out);
}
.wm--hero { --h: calc(clamp(150px, 27vw, 380px) * var(--ts, 1)); }
.dof__orb {
  position: absolute; z-index: -1; top: 4%; inset-inline-end: -14vw;
  width: clamp(280px, 34vw, 560px); aspect-ratio: 1; border-radius: 50%;
  background: var(--orb); filter: blur(90px); opacity: var(--orb-o); pointer-events: none;
}

.hero__bottom { display: grid; grid-template-columns: 1.3fr 1fr 1fr; align-items: end; gap: 24px; font-size: calc(clamp(16px, 1.45vw, 21px) * var(--k, 1)); font-weight: 300; line-height: 1.35; letter-spacing: -.01em; }
.hero__bottom p { margin: 0; color: var(--muted); }
.hero__lead { max-width: 24em; }
.hero__lead .accent { color: var(--accent-2); }
.hero__stat { text-align: center; }
.hero__avail { display: flex; align-items: center; justify-content: flex-end; gap: 10px; }
.hero__avail i { width: 7px; height: 7px; border-radius: 50%; background: var(--accent-2); box-shadow: 0 0 0 0 rgba(var(--accent-2-rgb), .6); animation: pulse 2.4s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 9px rgba(var(--accent-2-rgb), 0); } 100% { box-shadow: 0 0 0 0 rgba(var(--accent-2-rgb), 0); } }

/* ---------- Showreel ---------- */
.reel { padding: clamp(32px, 6vw, 80px) var(--pad) clamp(80px, 10vw, 140px); }
.reel__frame {
  --p: 0;
  position: relative; display: block; width: 100%; max-width: var(--max); margin-inline: auto;
  aspect-ratio: 16 / 9; border-radius: 20px; overflow: hidden; isolation: isolate;
  border: 1px solid var(--line); background: var(--navy);
  transform: scale(calc(.92 + .08 * var(--p))); transform-origin: 50% 0;
}
.reel__bg, .reel__frame video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.reel__bg {
  background:
    radial-gradient(70% 90% at 72% 115%, rgba(var(--glow-2-rgb), .5), transparent 62%),
    radial-gradient(50% 60% at 18% -10%, rgba(var(--glow-rgb), .22), transparent 60%),
    var(--navy);
}
.reel__bg::after {
  content: ''; position: absolute; inset: -20%;
  background: linear-gradient(105deg, transparent 42%, rgba(var(--lav-rgb), .07) 50%, transparent 58%);
  animation: sweep 7s var(--ease) infinite;
}
@keyframes sweep { from { transform: translateX(-40%); } to { transform: translateX(40%); } }
.reel__label, .reel__time { position: absolute; z-index: 1; font-size: 12px; color: var(--lav); }
.reel__label { top: 24px; left: 24px; }
.reel__time { bottom: 24px; right: 24px; }
.reel__play {
  position: absolute; z-index: 1; inset: 0; margin: auto;
  width: clamp(64px, 7vw, 92px); aspect-ratio: 1; border-radius: 50%;
  display: grid; place-items: center; background: var(--btn-bg); color: var(--btn-fg);
  transition: transform .5s var(--ease-out);
}
.reel__play svg { width: 30%; height: 30%; margin-left: 6%; }
.reel__frame:hover .reel__play { transform: scale(1.08); }

/* ---------- Five layers (spheres) ---------- */
.layers {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: clamp(560px, 96vh, 920px); display: grid; place-items: center;
  background:
    radial-gradient(60% 50% at 50% 110%, rgba(var(--glow-rgb), .3), transparent 70%),
    linear-gradient(var(--bg), var(--navy) 26%, var(--navy) 74%, var(--bg));
}
.layers__field { position: absolute; inset: 0; z-index: -1; }
.sph {
  position: absolute; left: var(--x); top: var(--y);
  transform: translate(-50%, -50%) translate3d(calc(var(--px, 0px) * var(--z)), calc(var(--py, 0px) * var(--z)), 0);
  transition: transform 1.2s var(--ease-out);
  pointer-events: none; direction: ltr;
}
.sph i {
  display: grid; place-items: center; width: var(--s); aspect-ratio: 1; border-radius: 50%;
  background: var(--sphere);
  box-shadow: 0 0 calc(var(--s) * .45) rgba(var(--sphere-glow-rgb), .32);
  filter: blur(var(--blur, 0px));
  animation: bob var(--t, 8s) ease-in-out var(--dl, 0s) infinite alternate;
  transition: filter .5s var(--ease-out), scale .6s var(--ease-out), box-shadow .5s;
}
@keyframes bob { to { translate: 0 -16px; } }
.sph--label { display: flex; align-items: center; gap: 14px; pointer-events: auto; }
.sph--label.is-left { flex-direction: row-reverse; }
.sph--label b { font: 400 11px/1 var(--f-px); color: #fff; text-shadow: 0 1px 6px rgba(0, 0, 0, .7); }
.sph__label { font-size: clamp(17px, 1.8vw, 24px); font-weight: 400; color: var(--text); white-space: nowrap; unicode-bidi: plaintext; transition: color .4s; }
.sph--label:hover i { scale: 1.14; }
.sph--label:hover .sph__label { color: var(--lav); }
.layers__copy { position: relative; max-width: 640px; padding: 0 var(--pad); text-align: center; }
.layers__copy::before {
  content: ''; position: absolute; inset: -40% -20%; z-index: -1;
  background: radial-gradient(closest-side, rgba(var(--navy-rgb), .92), rgba(var(--navy-rgb), 0));
}
.layers__copy .sub { margin-inline: auto; }

/* ---------- Sections ---------- */
.section { padding-block: clamp(96px, 12vw, 160px); }
.head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 20px 40px; margin-bottom: clamp(36px, 5vw, 56px); }
.head--center { justify-content: center; text-align: center; }
.kicker { margin: 0 0 18px; font-size: 12px; color: var(--accent-2); }
html[dir="rtl"] .kicker { text-align: right; }
html[dir="rtl"] .kicker--center, .kicker--center, .head--center .kicker { text-align: center; }
.h2 { margin: 0; font-weight: 500; font-size: calc(clamp(36px, 5vw, 64px) * var(--ts, 1)); line-height: 1.08; letter-spacing: -.04em; text-wrap: balance; }
html[lang="ar"] .h2 { letter-spacing: 0; line-height: 1.3; }
.sub { margin: 18px 0 0; max-width: 32em; font-size: calc(clamp(16px, 1.3vw, 19px) * var(--k, 1)); font-weight: 300; color: var(--muted); }

/* ---------- Work ---------- */
.tabs { display: flex; flex-wrap: wrap; gap: 4px; padding: 4px; border-radius: 999px; border: 1px solid var(--line); }
.tab { height: 36px; padding: 0 16px; border-radius: 999px; font-size: 14px; color: var(--muted); transition: color .3s, background-color .3s; }
.tab:hover { color: var(--text); }
.tab[aria-pressed="true"] { background: rgba(255, 255, 255, .08); color: var(--text); }

.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(36px, 4vw, 52px) clamp(16px, 2vw, 24px); }
.card.is-hidden { display: none; }
.card.is-shown { animation: cardIn .7s var(--ease-out) both; }
@keyframes cardIn { from { opacity: 0; transform: translateY(16px); } }
.card__media {
  position: relative; display: block; width: 100%; aspect-ratio: 16 / 9;
  border-radius: 14px; overflow: hidden; isolation: isolate;
  background: var(--navy); border: 1px solid var(--line);
  transition: border-color .4s, box-shadow .6s var(--ease-out);
}
.card__ph, .card__media img, .card__media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease-out), opacity .4s; }
.card__ph {
  background:
    radial-gradient(55% 75% at var(--ox, 30%) var(--oy, 110%), rgba(var(--glow-2-rgb), .6), transparent 70%),
    radial-gradient(35% 45% at calc(100% - var(--ox, 30%)) -10%, rgba(var(--lav-rgb), .1), transparent 70%),
    var(--navy);
}
.card__ph b { position: absolute; bottom: 14px; left: 14px; font: 400 10px/1 var(--f-px); letter-spacing: .06em; color: rgba(var(--lav-rgb), .7); }
.card__media video { opacity: 0; }
.card.is-playing .card__media video { opacity: 1; }
.card:hover .card__ph, .card:hover .card__media img { transform: scale(1.04); }
.card__play {
  position: absolute; inset: 0; margin: auto; z-index: 1;
  width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center;
  background: var(--btn-bg); color: var(--btn-fg); opacity: 0; scale: .8;
  transition: opacity .35s, scale .5s var(--ease-out);
}
.card__play svg { width: 18px; height: 18px; margin-left: 2px; }
.card:hover .card__play, .card__media:focus-visible .card__play { opacity: 1; scale: 1; }
.card__dur { position: absolute; z-index: 1; bottom: 12px; right: 12px; padding: 6px 8px; border-radius: 6px; background: rgba(0, 0, 0, .6); font: 400 10px/1 var(--f-px); color: #fff; }
.card__title { margin: 18px 0 4px; font-size: calc(18px * var(--k, 1)); font-weight: 500; line-height: 1.4; letter-spacing: -.015em; }
.card__meta { margin: 0; font-size: calc(14px * var(--k, 1)); color: var(--dim); }

/* ---------- Testimonial ---------- */
.section--quote { border-block: 1px solid var(--line); }
.tq { max-width: 1000px; margin: 0 auto; text-align: center; transition: opacity .4s var(--ease-out), transform .5s var(--ease-out); }
.tq.is-out { opacity: 0; transform: translateY(10px); }
.tq blockquote { margin: 0; font-size: calc(clamp(26px, 3.4vw, 46px) * var(--ts, 1)); font-weight: 300; line-height: 1.3; letter-spacing: -.03em; }
html[lang="ar"] .tq blockquote { letter-spacing: 0; line-height: 1.6; }
.tq .hl { padding: 0 .12em; border-radius: 6px; background: rgba(var(--accent-rgb), .14); color: var(--lav); }
.tq figcaption { display: grid; justify-items: center; gap: 4px; margin-top: 40px; }
.tq__logo { width: 52px; height: 52px; margin-bottom: 8px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line-2); font-size: 14px; color: var(--lav); }
.tq__name { font-size: 15px; font-weight: 500; }
.tq__role { font-size: 13px; color: var(--dim); }
.tq__nav { display: flex; justify-content: center; align-items: center; gap: 18px; margin-top: 40px; }
.tq__count { font-size: 11px; color: var(--dim); min-width: 4.5em; text-align: center; }

/* ---------- Process timeline ---------- */
.timeline { --tp: 0; position: relative; max-width: 1080px; margin-inline: auto; }
.timeline__line {
  position: absolute; top: 0; bottom: 0; left: 50%; width: 1px; translate: -50% 0;
  background: repeating-linear-gradient(to bottom, var(--line-2) 0 6px, transparent 6px 12px);
}
.timeline__line i {
  position: absolute; inset: 0; transform-origin: top; transform: scaleY(var(--tp));
  background: linear-gradient(var(--accent), var(--accent-2)); box-shadow: 0 0 14px rgba(var(--accent-rgb), .7);
}
.steps { display: grid; gap: clamp(40px, 6vw, 80px); margin: 0; padding: 0; list-style: none; }
.step { position: relative; display: grid; grid-template-columns: 1fr 1fr; align-items: center; column-gap: clamp(56px, 9vw, 128px); }
.step::before {
  content: ''; position: absolute; left: 50%; top: 50%; translate: -50% -50%; z-index: 1;
  width: 13px; height: 13px; border-radius: 50%; background: var(--bg); border: 1px solid var(--line-2);
  transition: background-color .5s, border-color .5s, box-shadow .5s;
}
.step.is-lit::before { background: var(--accent); border-color: var(--accent); box-shadow: 0 0 0 6px rgba(var(--accent-rgb), .14), 0 0 22px var(--accent); }
.step__card {
  grid-column: 1; grid-row: 1; padding: clamp(24px, 3vw, 36px); border-radius: 20px;
  background: linear-gradient(180deg, var(--surface-2), var(--surface)); border: 1px solid var(--line);
  transition: border-color .5s, box-shadow .6s;
}
.step.is-lit .step__card { border-color: rgba(var(--accent-rgb), .24); }
.step__num {
  grid-column: 2; grid-row: 1; justify-self: center; direction: ltr;
  font-size: clamp(88px, 11vw, 160px); font-weight: 700; line-height: 1; letter-spacing: -.06em;
  color: var(--ink); transition: color .6s;
}
.step.is-lit .step__num { color: var(--ink-lit); }
.step:nth-child(even) .step__card { grid-column: 2; }
.step:nth-child(even) .step__num { grid-column: 1; }
.step__top { display: flex; align-items: center; gap: 12px; margin-bottom: 22px; }
.step__icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: rgba(var(--accent-rgb), .08); border: 1px solid rgba(var(--accent-rgb), .2); color: var(--accent-2); }
.step__icon svg { width: 20px; height: 20px; }
.step__label { font-size: 14px; color: var(--accent-2); }
.step h3 { margin: 0 0 8px; font-size: calc(clamp(22px, 2.2vw, 28px) * var(--ts, 1)); font-weight: 500; line-height: 1.35; letter-spacing: -.02em; }
html[lang="ar"] .step h3 { letter-spacing: 0; }
.step p { margin: 0; font-size: calc(16px * var(--k, 1)); font-weight: 300; color: var(--muted); }

/* ---------- Services index ---------- */
.index { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.index li { border-bottom: 1px solid var(--line); }
.index button {
  display: grid; grid-template-columns: 4em 1fr auto 24px; align-items: center; gap: 20px;
  width: 100%; padding: clamp(20px, 2.6vw, 30px) 0; text-align: start;
}
.index__n { font: 400 11px/1 var(--f-px); color: var(--dim); }
.index__t { font-size: calc(clamp(28px, 4vw, 52px) * var(--ts, 1)); font-weight: 500; line-height: 1.15; letter-spacing: -.035em; transition: color .35s; }
html[lang="ar"] .index__t { letter-spacing: 0; line-height: 1.4; }
.index__m { font-size: calc(15px * var(--k, 1)); font-weight: 300; color: var(--muted); }
.index__a { width: 22px; height: 22px; color: var(--lav); opacity: 0; transform: translateX(-8px); transition: opacity .35s, transform .5s var(--ease-out); }
html[dir="rtl"] .index__a { transform: scaleX(-1) translateX(-8px); }
.index button:hover .index__t { color: var(--accent); text-shadow: 0 0 32px rgba(var(--accent-rgb), .35); }
.index button:hover .index__a { opacity: 1; transform: none; }
html[dir="rtl"] .index button:hover .index__a { transform: scaleX(-1); }

/* ---------- Contact ---------- */
.contact {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: clamp(640px, 100svh, 940px); display: grid; place-items: center;
  padding: 120px var(--pad) 180px; text-align: center;
}
.contact__cards { position: absolute; inset: 0; z-index: -1; }
.fcard {
  position: absolute; left: var(--x); top: var(--y); width: 236px;
  display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px;
  text-align: start; direction: inherit; opacity: var(--op, 1); filter: blur(var(--blur, 0px));
  background: linear-gradient(180deg, var(--fcard-a), var(--fcard-b));
  border: 1px solid rgba(var(--lav-rgb), .14);
  box-shadow: 0 24px 48px rgba(0, 0, 0, .45), inset 0 1px 0 rgba(255, 255, 255, .06);
  transform: translate(-50%, -50%) translate3d(calc(var(--px, 0px) * var(--z)), calc(var(--py, 0px) * var(--z)), 0) rotate(var(--r, 0deg));
  transition: transform 1.2s var(--ease-out);
}
.fcard__dot { width: 8px; height: 8px; flex: none; border-radius: 50%; background: var(--accent-2); box-shadow: 0 0 10px var(--accent); }
.fcard b { display: block; font-size: 14px; font-weight: 500; line-height: 1.35; }
.fcard small { display: block; font-size: 12px; color: var(--muted); line-height: 1.4; }
.contact__copy { position: relative; max-width: 760px; }
.contact__title { margin: 0 0 4px; font-family: var(--f-pxa); font-weight: 600; font-size: calc(clamp(84px, 13vw, 200px) * var(--ts, 1)); line-height: .95; color: var(--title-px); letter-spacing: .01em; }
.contact .sub { margin: 8px auto 40px; }
.contact__cta { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 18px 28px; }
.contact__rim {
  position: absolute; z-index: -1; left: 50%; top: calc(100% - 120px);
  width: max(1500px, 150vw); aspect-ratio: 1; translate: -50% 0; border-radius: 50%;
  background: var(--bg); pointer-events: none;
  box-shadow: 0 -1px 0 rgba(var(--lav-rgb), .8), 0 -24px 70px rgba(var(--glow-2-rgb), .6), 0 -90px 220px rgba(var(--glow-rgb), .45), inset 0 40px 80px rgba(var(--glow-rgb), .3);
}

/* ---------- Footer ---------- */
.footer {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 14px 32px;
  padding: 28px var(--pad) 32px; border-top: 1px solid var(--line); font-size: 13px; color: var(--dim);
}
.footer__links { display: flex; gap: 22px; }
.footer a { transition: color .3s; }
.footer a:hover { color: var(--text); }
.footer__private { display: inline-flex; align-items: center; gap: 8px; }
.footer__private svg { width: 15px; height: 15px; }
.footer__draft { font-size: 10px; color: var(--accent-2); opacity: .7; }

/* ---------- Dialogs ---------- */
dialog { color: var(--text); }
dialog::backdrop { background: rgba(3, 3, 8, .82); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
dialog[open] { animation: dlgIn .45s var(--ease-out); }
@keyframes dlgIn { from { opacity: 0; transform: translateY(16px) scale(.985); } }
.modal {
  width: min(1100px, calc(100% - 32px)); max-height: calc(100svh - 32px); padding: 0; overflow: auto;
  border: 1px solid var(--line); border-radius: 22px; background: var(--surface);
}
.modal__close { position: absolute; top: 14px; inset-inline-end: 14px; z-index: 2; background: rgba(0, 0, 0, .55); color: var(--text); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.modal__media { position: relative; aspect-ratio: 16 / 9; display: grid; place-items: center; background: #000; }
.modal__media.is-portrait { aspect-ratio: auto; height: min(76svh, 860px); }
.modal__media video { width: 100%; height: 100%; object-fit: contain; }
.modal__media iframe { display: block; width: 100%; height: 100%; border: 0; }
.modal__media.is-portrait iframe { width: auto; aspect-ratio: 9 / 16; margin-inline: auto; }
.reel__thumb { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; object-fit: cover; opacity: .45; }
.modal__ph { display: grid; justify-items: center; gap: 18px; padding: 24px; text-align: center; color: var(--muted); font-size: 15px; font-weight: 300; }
.modal__ph .wm { --h: 44px; color: var(--accent); }
.modal__info { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 28px; padding: clamp(22px, 3vw, 36px); }
.modal__info .kicker { margin-bottom: 10px; }
.modal__title { margin: 0 0 10px; font-size: clamp(24px, 2.6vw, 32px); font-weight: 500; line-height: 1.3; letter-spacing: -.02em; }
.modal__desc { margin: 0; color: var(--muted); font-weight: 300; }
.modal__facts { display: grid; gap: 12px; margin: 0; align-content: start; }
.modal__facts div { display: flex; justify-content: space-between; gap: 16px; padding-bottom: 12px; border-bottom: 1px solid var(--line); font-size: 15px; }
.modal__facts dt { color: var(--dim); }
.modal__facts dd { margin: 0; text-align: end; }

.sheet {
  width: min(560px, calc(100% - 24px)); max-height: calc(100svh - 24px); padding: clamp(22px, 3.5vw, 32px); overflow: auto;
  border: 1px solid var(--line); border-radius: 24px; background: var(--surface);
}
.sheet__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.sheet__head .kicker { margin: 0; }
.brief__progress { height: 2px; margin-bottom: 22px; border-radius: 2px; background: var(--line); overflow: hidden; }
.brief__progress i { display: block; height: 100%; width: var(--w, 25%); background: var(--accent); transition: width .6s var(--ease-out); }
.brief__step { margin: 0 0 8px; font-size: 13px; color: var(--dim); }
.brief__q { margin: 0 0 22px; font-size: clamp(22px, 2.6vw, 28px); font-weight: 500; line-height: 1.35; letter-spacing: -.02em; }
html[lang="ar"] .brief__q { letter-spacing: 0; }
.brief__pane { animation: paneIn .45s var(--ease-out); }
@keyframes paneIn { from { opacity: 0; transform: translateY(8px); } }
.brief__hint { margin: 16px 0 0; font-size: 13px; color: var(--dim); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { min-height: 46px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line-2); font-size: 15px; color: var(--muted); transition: background-color .25s, border-color .25s, color .25s; }
.chip:hover { color: var(--text); border-color: rgba(255, 255, 255, .3); }
.chip[aria-pressed="true"] { background: var(--btn-bg); border-color: var(--btn-bg); color: var(--btn-fg); }
.field { display: grid; gap: 8px; margin-bottom: 14px; }
.field label { font-size: 14px; color: var(--muted); }
.field input, .field textarea {
  width: 100%; padding: 13px 15px; border-radius: 12px; font: inherit; font-size: 16px; color: var(--text);
  background: var(--bg); border: 1px solid var(--line-2); transition: border-color .3s;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent-2); }
.field textarea { min-height: 104px; resize: vertical; }
.brief__error { min-height: 20px; margin: 12px 0 0; font-size: 14px; color: #FF8F8F; }
.brief__nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 14px; }
.brief__nav #briefNext { margin-inline-start: auto; }
.summary { display: grid; gap: 10px; margin: 0 0 22px; }
.summary div { display: flex; justify-content: space-between; gap: 16px; padding-bottom: 10px; border-bottom: 1px solid var(--line); font-size: 15px; }
.summary dt { color: var(--dim); }
.summary dd { margin: 0; text-align: end; }
.send { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.send .pill svg { width: 18px; height: 18px; }

/* ---------- Glow ---------- */
/* Hero: a soft teal light under the pointer, like the glow inside the logo disc */
.hero::before {
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(520px circle at var(--sx, 50%) var(--sy, 45%), rgba(var(--glow-2-rgb), .3), transparent 65%);
  opacity: var(--so, 0); transition: opacity .8s var(--ease-out);
}
/* The logo's own teal halo behind the big wordmark */
.dof__row--main::before {
  content: ''; position: absolute; left: 50%; top: 50%; z-index: -1; pointer-events: none;
  width: min(92vw, 1100px); aspect-ratio: 2.2 / 1; translate: -50% -50%;
  background: radial-gradient(closest-side, rgba(var(--glow-2-rgb), .5), rgba(var(--glow-rgb), .16) 58%, transparent);
}
/* Gold bloom: a blurred copy of the wordmark that slowly breathes behind it */
.dof__bloom {
  position: absolute; left: 50%; top: 50%; z-index: -1; pointer-events: none; color: var(--accent);
  transform: translate(-50%, -50%) translate3d(calc(var(--mx, 0px) * 1.3), calc(var(--my, 0px) * 1.3), 0);
  filter: blur(44px); opacity: .3; transition: transform .9s var(--ease-out);
  animation: bloom 6s ease-in-out infinite;
}
@keyframes bloom { 50% { opacity: .5; } }

.pill--light:hover { box-shadow: 0 10px 36px -8px rgba(var(--accent-rgb), .6), 0 0 0 4px rgba(var(--accent-rgb), .12); }
.kicker { text-shadow: 0 0 14px rgba(var(--accent-rgb), .4); }

.reel__play { box-shadow: 0 0 0 10px rgba(var(--accent-rgb), .1), 0 0 70px rgba(var(--accent-rgb), .35); }
.reel__play::after {
  content: ''; position: absolute; inset: 0; border-radius: 50%; pointer-events: none;
  border: 1px solid rgba(var(--accent-rgb), .6); animation: ring 2.8s var(--ease-out) infinite;
}
@keyframes ring { from { transform: scale(1); opacity: .8; } to { transform: scale(1.9); opacity: 0; } }

.card:hover .card__media { border-color: rgba(var(--accent-rgb), .35); box-shadow: 0 24px 60px -24px rgba(var(--accent-rgb), .42); }
.sph--label:hover i { box-shadow: 0 0 0 1.5px rgba(var(--accent-rgb), .7), 0 0 34px rgba(var(--accent-rgb), .45); }
.step.is-lit .step__card { box-shadow: 0 0 50px -18px rgba(var(--accent-rgb), .35), inset 0 1px 0 rgba(var(--accent-rgb), .12); }
.contact__title { text-shadow: 0 0 22px rgba(var(--accent-rgb), .45), 0 0 90px rgba(var(--accent-rgb), .22); }

/* ---------- Toast ---------- */
.toast {
  position: fixed; bottom: 24px; left: 50%; z-index: 120; translate: -50% 16px;
  padding: 11px 18px; border-radius: 999px; background: #fff; color: #0A0A12; font-size: 14px;
  opacity: 0; pointer-events: none; transition: opacity .35s var(--ease-out), translate .35s var(--ease-out);
}
.toast.is-on { opacity: 1; translate: -50% 0; }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .nav__link { display: none; }
  .nav__links { gap: 18px; }
  .hero__bottom { grid-template-columns: 1fr; gap: 10px; }
  .hero__stat, .hero__avail { text-align: start; justify-content: flex-start; }
  .grid { grid-template-columns: 1fr; }
  .head { align-items: flex-start; }
  .timeline__line { left: 6px; translate: none; }
  html[dir="rtl"] .timeline__line { left: auto; right: 6px; }
  .step { grid-template-columns: 1fr; padding-inline-start: 34px; }
  .step::before { left: 6px; translate: -50% -50%; top: 36px; }
  html[dir="rtl"] .step::before { left: auto; right: 6px; translate: 50% -50%; }
  .step__card, .step:nth-child(even) .step__card { grid-column: 1; }
  .step__num { display: none; }
  .index button { grid-template-columns: 2.6em 1fr 22px; }
  .index__m { grid-column: 2; grid-row: 2; margin-top: -8px; }
  .index__a { grid-column: 3; grid-row: 1; }
  .modal__info { grid-template-columns: 1fr; }
  .send { grid-template-columns: 1fr; }
  .fcard { width: 190px; }
  .fcard:nth-child(n+5) { display: none; }
  .footer { justify-content: flex-start; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
  .reel__frame { transform: none; }
}
