:root {
  --bg: #0E0E0F;
  --bg-2: #161618;
  --line: #2A2A2D;
  --gold: #C9A24A;
  --gold-soft: #C9A24A33;
  --ivory: #F2EDE4;
  --muted: #A39E95;
  --radius: 14px;
  --pad: clamp(20px, 5vw, 64px);
  --max: 1320px;
  --font: 'IBM Plex Sans Arabic', system-ui, -apple-system, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ivory); font-family: var(--font); font-weight: 300; line-height: 1.7; }
body.locked { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { font-weight: 700; line-height: 1.2; margin: 0; }
[hidden] { display: none !important; }

.skip { position: absolute; inset-inline-start: -999px; top: 0; background: var(--gold); color: var(--bg); padding: 8px 14px; z-index: 100; }
.skip:focus { inset-inline-start: 8px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 24px;
  padding: 14px var(--pad);
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.mono { font-weight: 700; letter-spacing: .12em; color: var(--gold); font-size: 18px; direction: ltr; }
.nav { display: flex; gap: 28px; margin-inline-start: auto; font-weight: 500; font-size: 15px; }
.nav a { color: var(--muted); transition: color .2s; }
.nav a:hover { color: var(--ivory); }
.lang { border: 1px solid var(--line); background: none; border-radius: 999px; padding: 4px 14px; font-weight: 500; min-width: 48px; }
.lang:hover { border-color: var(--gold); color: var(--gold); }
@media (max-width: 720px) { .nav { display: none; } .lang { margin-inline-start: auto; } }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 26px; border-radius: 999px; font-weight: 500; font-size: 15px; transition: background .2s, color .2s, border-color .2s; border: 1px solid transparent; background: none; }
.btn-gold { background: var(--gold); color: var(--bg); }
.btn-gold:hover { background: var(--ivory); }
.btn-ghost { border-color: var(--line); color: var(--ivory); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }
.icon-btn { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: var(--bg); font-size: 16px; flex: none; }
.icon-btn:hover { border-color: var(--gold); color: var(--gold); }

/* Hero */
.hero { position: relative; min-height: min(92vh, 900px); display: flex; align-items: flex-end; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; background: url('../img/video/alrimal.jpg') center/cover no-repeat; transform: scale(1.04); }
.hero-bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, #0E0E0F55 0%, #0E0E0F99 45%, var(--bg) 100%); }
.hero-inner { position: relative; padding: 0 var(--pad) clamp(48px, 9vh, 110px); max-width: var(--max); width: 100%; margin: 0 auto; }
.eyebrow { color: var(--gold); font-weight: 500; letter-spacing: .04em; margin: 0 0 14px; }
.hero-name { font-size: clamp(40px, 8vw, 104px); letter-spacing: -.01em; }
.hero-role { font-size: clamp(18px, 2.4vw, 28px); font-weight: 500; color: var(--ivory); margin: 10px 0 0; }
.hero-line { color: var(--muted); max-width: 560px; margin: 14px 0 30px; font-size: clamp(15px, 1.4vw, 18px); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }

/* Sections */
.section { max-width: var(--max); margin: 0 auto; padding: clamp(72px, 11vw, 140px) var(--pad) 0; }
.section-head { display: flex; align-items: baseline; gap: 16px; margin-bottom: 32px; }
.section-head h2 { font-size: clamp(30px, 4.6vw, 56px); }
.kicker { color: var(--gold); font-weight: 500; font-size: 14px; letter-spacing: .1em; direction: ltr; }
.sub { font-size: 15px; font-weight: 500; color: var(--gold); letter-spacing: .04em; margin: 56px 0 18px; }

/* Filters + grid */
.filters { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 28px; scrollbar-width: none; }
.filters::-webkit-scrollbar { display: none; }
.filters button { flex: none; border: 1px solid var(--line); background: none; border-radius: 999px; padding: 8px 18px; font-size: 14px; color: var(--muted); }
.filters button[aria-pressed="true"] { background: var(--ivory); color: var(--bg); border-color: var(--ivory); }
.filters button:hover:not([aria-pressed="true"]) { border-color: var(--gold); color: var(--ivory); }

.grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(10px, 1.6vw, 20px); }
@media (min-width: 768px) { .grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1280px) { .grid { grid-template-columns: repeat(4, 1fr); } }
.card { display: block; text-align: start; background: none; border: 0; padding: 0; }
.card-img { display: block; aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden; background: var(--bg-2); }
.card-img img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%; transition: transform .6s cubic-bezier(.2,.7,.2,1), filter .4s; filter: saturate(.92); }
.card:hover .card-img img, .card:focus-visible .card-img img { transform: scale(1.05); filter: none; }
.card-title { display: block; font-weight: 500; font-size: clamp(14px, 1.3vw, 17px); margin-top: 12px; }
.card-cat { display: block; color: var(--muted); font-size: 13px; }

/* Overlay */
.overlay { position: fixed; inset: 0; z-index: 50; background: var(--bg); overflow-y: auto; padding: 0 var(--pad) 64px; overscroll-behavior: contain; }
.ov-bar { position: sticky; top: 0; z-index: 2; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 0; background: color-mix(in srgb, var(--bg) 90%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); max-width: 1200px; margin: 0 auto; }
.ov-bar h2 { font-size: clamp(22px, 3.2vw, 38px); }
.ov-cat { color: var(--gold); font-size: 13px; font-weight: 500; margin: 0 0 4px; }
.ov-desc { color: var(--muted); max-width: 1200px; margin: 4px auto 32px; }
.gallery { display: grid; gap: clamp(12px, 2vw, 24px); max-width: 1200px; margin: 0 auto; }
.gallery img { width: 100%; height: auto; object-fit: contain; border-radius: 10px; background: var(--bg-2); }
.ov-nav { display: flex; justify-content: space-between; gap: 12px; max-width: 1200px; margin: 40px auto 0; }

/* Video */
.vgrid { display: grid; grid-template-columns: 1fr; gap: clamp(12px, 1.8vw, 22px); }
@media (min-width: 768px) { .vgrid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1280px) { .vgrid { grid-template-columns: repeat(4, 1fr); } }
.vcard { position: relative; display: block; background: none; border: 0; padding: 0; text-align: start; }
.vcard .vthumb { display: block; position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: var(--bg-2); }
.vcard img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.vcard:hover img { transform: scale(1.05); }
.vplay { position: absolute; inset: 0; margin: auto; width: 58px; height: 58px; border-radius: 50%; background: #0E0E0FAA; border: 1px solid var(--gold); display: grid; place-items: center; transition: background .2s; }
.vplay::before { content: ''; border-style: solid; border-width: 9px 0 9px 15px; border-color: transparent transparent transparent var(--gold); margin-left: 4px; }
.vcard:hover .vplay { background: var(--gold); }
.vcard:hover .vplay::before { border-left-color: var(--bg); }
.vmeta { display: block; color: var(--muted); font-size: 13px; direction: ltr; text-align: start; }
[dir="rtl"] .vmeta { text-align: right; }
.reels { display: flex; gap: 14px; overflow-x: auto; padding-bottom: 8px; scroll-snap-type: x mandatory; }
.reels .vcard { flex: 0 0 clamp(170px, 22vw, 240px); scroll-snap-align: start; }
.reels .vthumb { aspect-ratio: 9 / 16; }

.vmodal { position: fixed; inset: 0; z-index: 60; background: #000000E6; display: grid; place-items: safe center; padding: 16px var(--pad); overflow-y: auto; overscroll-behavior: contain; }
.vm-box { width: min(1100px, 100%); }
.vm-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 12px; }
.vm-bar h2 { font-size: clamp(18px, 2.4vw, 26px); }
.vm-frame { aspect-ratio: 16 / 9; width: min(100%, calc((100dvh - 150px) * 16 / 9)); margin: 0 auto; background: #000; border-radius: 12px; overflow: hidden; }
.vm-frame.vertical { aspect-ratio: 9 / 16; width: min(100%, calc((100dvh - 150px) * 9 / 16)); }
.vm-frame iframe { width: 100%; height: 100%; border: 0; }
.vm-fallback { display: inline-block; margin-top: 12px; color: var(--gold); text-decoration: underline; }

/* About */
.about { display: grid; gap: 40px; }
@media (min-width: 960px) { .about { grid-template-columns: 1.2fr 1fr; gap: 80px; } }
.about-text { font-size: clamp(17px, 1.7vw, 22px); color: var(--ivory); margin: 0; }
.about-side .sub { margin-top: 0; }
.timeline { list-style: none; margin: 0; padding: 0; border-inline-start: 1px solid var(--line); }
.timeline li { position: relative; padding: 0 0 26px; padding-inline-start: 24px; }
.timeline li::before { content: ''; position: absolute; inset-inline-start: -5px; top: 9px; width: 9px; height: 9px; border-radius: 50%; background: var(--gold); }
.tl-company { font-weight: 700; display: block; }
.tl-role { color: var(--muted); display: block; }
.tl-years { color: var(--gold); font-size: 13px; font-weight: 500; }
.pills { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.pills li { border: 1px solid var(--line); border-radius: 999px; padding: 8px 18px; font-weight: 500; direction: ltr; }
.pills-quiet li { color: var(--muted); font-weight: 300; }

/* Contact */
.contact { text-align: center; padding-bottom: clamp(72px, 10vw, 120px); }
.contact-title { font-size: clamp(36px, 7vw, 88px); margin: 14px 0; }
.contact-text { color: var(--muted); margin: 0 auto 32px; max-width: 520px; }
.contact-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.contact-mail { color: var(--muted); margin-top: 22px; font-size: 14px; }
.site-footer { border-top: 1px solid var(--line); text-align: center; padding: 26px var(--pad); color: var(--muted); font-size: 13px; }

/* Reveal */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s ease, transform .8s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .card-img img, .vcard img { transition: none; }
}
