/* Eng. Abdullah Abotarbosh — executive profile. On a desktop the whole profile sits on one screen: name and portrait,
   the numbers, a three-part dossier, and the contact line. On a phone the dossier folds into tabs to stay short. */
:root {
  --paper: #fbfaf7;
  --paper-2: #f2eee6;
  --ink: #0d0d0f;
  --ink-2: #2a2a2e;
  --muted: #74706a;
  --line: #e4dfd5;
  --gold: #b0864a;
  --gold-soft: #d8bf93;
  --navy: #1d2b4a;
  --band: #0c0c0e;
  --band-line: #2a2824;
  --serif: "Playfair Display", "Times New Roman", serif;
  --ar: "IBM Plex Sans Arabic", "Segoe UI", Tahoma, sans-serif;
  --en: "Inter", "Segoe UI", Helvetica, Arial, sans-serif;
  --gutter: clamp(16px, 4vw, 64px);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body { background: var(--paper); color: var(--ink); font-family: var(--ar); line-height: 1.6; min-height: 100vh; min-height: 100dvh; display: grid; grid-template-rows: auto auto auto auto 1fr; overflow-x: hidden; }
html[lang="en"] body { font-family: var(--en); }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

/* Top bar */
.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px var(--gutter); border-bottom: 1px solid var(--line); }
.top .who { font-weight: 600; font-size: 14px; }
.top .tag { font-family: var(--en); font-size: 10.5px; letter-spacing: .34em; color: var(--muted); text-transform: uppercase; }
.top-end { display: flex; align-items: center; gap: 20px; }
.lang { font-family: var(--en); font-size: 12px; letter-spacing: .14em; border: 1px solid var(--line); padding: 6px 14px; border-radius: 999px; transition: border-color .2s, color .2s; }
.lang:hover { border-color: var(--gold); color: var(--gold); }
.lang[lang="ar"] { font-family: var(--ar); letter-spacing: 0; }

/* Hero: text and portrait */
.hero { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "text photo" "about photo"; column-gap: clamp(24px, 5vw, 80px); padding: clamp(22px, 4vh, 48px) var(--gutter) 0; }
.hero-text { grid-area: text; align-self: end; }
.about { grid-area: about; max-width: 620px; color: var(--ink-2); font-size: 15px; margin: 16px 0 clamp(20px, 3.5vh, 36px); }
.roles { display: flex; flex-wrap: wrap; gap: 4px 14px; color: var(--navy); font-size: 14px; font-weight: 500; }
.roles span + span::before { content: ""; display: inline-block; width: 1px; height: 12px; background: var(--gold-soft); margin-inline-end: 14px; vertical-align: -1px; }
.name { font-size: clamp(40px, min(6.4vw, 9vh), 96px); line-height: 1; font-weight: 700; letter-spacing: -.01em; margin-top: 12px; }
html[lang="en"] .name { font-family: var(--serif); font-weight: 600; letter-spacing: -.02em; line-height: 1.04; }
.name-alt { font-family: var(--en); font-size: 11px; letter-spacing: .38em; color: var(--muted); text-transform: uppercase; margin-top: 12px; }
.name-alt[lang="ar"] { font-family: var(--ar); letter-spacing: 0; font-size: 14px; text-transform: none; }
.rule { width: 64px; height: 1px; background: var(--gold); margin: 18px 0 14px; }
.motto { font-family: var(--serif); font-style: italic; color: var(--navy); font-size: clamp(24px, min(2.6vw, 4vh), 40px); line-height: 1.15; direction: ltr; unicode-bidi: isolate; }
html[lang="ar"] .motto { text-align: right; }
.m-br { display: none; }

.portrait { grid-area: photo; align-self: end; position: relative; width: clamp(220px, 24vw, 360px); }
.portrait::before { content: ""; position: absolute; inset: 10% -7% 0; border: 1px solid var(--gold-soft); border-bottom: 0; border-radius: 999px 999px 0 0; }
.portrait img { position: relative; width: 100%; aspect-ratio: 720 / 1004; object-fit: cover; object-position: center top; border-radius: 999px 999px 0 0; background: var(--paper-2);
  mask-image: linear-gradient(to bottom, #000 84%, transparent); -webkit-mask-image: linear-gradient(to bottom, #000 84%, transparent); }

/* Numbers */
.band { background: var(--band); color: #f4efe6; display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: clamp(14px, 2.4vh, 24px) var(--gutter); border-inline-start: 1px solid var(--band-line); display: grid; gap: 2px; align-content: center; }
.stat:first-child { border-inline-start: 0; }
.stat b { font-family: var(--serif); font-weight: 500; font-size: clamp(32px, min(3.6vw, 5.4vh), 52px); line-height: 1; direction: ltr; unicode-bidi: isolate; }
html[lang="ar"] .stat b { text-align: right; }
.stat b sup { font-size: .5em; vertical-align: .6em; margin-inline-start: 2px; color: var(--gold-soft); }
.stat b.word { font-family: var(--ar); font-weight: 700; color: var(--gold-soft); font-size: clamp(26px, min(2.8vw, 4.4vh), 40px); }
html[lang="en"] .stat b.word { font-family: var(--serif); font-style: italic; font-weight: 500; direction: ltr; }
.stat small { color: #b9b2a6; font-size: 13px; }

/* Dossier */
.dossier { display: grid; grid-template-columns: 1.3fr .9fr 1.1fr; padding: 0 var(--gutter); }
.tabs { display: none; }
.panel { padding: clamp(16px, 2.8vh, 28px) clamp(16px, 2.4vw, 36px); border-inline-start: 1px solid var(--line); }
.panel:first-of-type { border-inline-start: 0; padding-inline-start: 0; }
.panel:last-of-type { padding-inline-end: 0; }
.kicker { display: flex; align-items: baseline; gap: 10px; margin-bottom: 12px; }
.kicker i { font-style: normal; font-family: var(--en); font-size: 11px; color: var(--gold); letter-spacing: .1em; }
.kicker h2 { font-size: 16px; font-weight: 700; }
.kicker em { font-style: normal; font-family: var(--en); font-size: 10px; letter-spacing: .3em; color: var(--muted); text-transform: uppercase; margin-inline-start: auto; }
html[lang="en"] .kicker em { font-family: var(--ar); letter-spacing: 0; text-transform: none; font-size: 12px; }
html[lang="en"] .kicker h2 { font-family: var(--serif); font-weight: 600; font-size: 18px; }

.creds { list-style: none; display: grid; gap: 4px; }
.creds li { display: grid; grid-template-columns: 44px 1fr; gap: 10px; align-items: baseline; font-size: 13.5px; }
.creds li b { font-family: var(--en); font-size: 11.5px; letter-spacing: .08em; color: var(--navy); font-weight: 700; direction: ltr; unicode-bidi: isolate; }
html[lang="ar"] .creds li b { text-align: right; }
.creds li span { color: var(--ink-2); }

.ventures { list-style: none; display: grid; gap: 9px; }
.ventures li { display: grid; padding-bottom: 9px; border-bottom: 1px solid var(--line); }
.ventures li:last-child { border-bottom: 0; padding-bottom: 0; }
.ventures small { font-size: 11.5px; color: var(--gold); font-weight: 600; }
.ventures strong { font-family: var(--serif); font-weight: 600; font-size: 21px; line-height: 1.25; }
.ventures strong.ar { font-family: var(--ar); font-weight: 700; font-size: 18px; }
.ventures span { font-size: 13px; color: var(--muted); }

.expertise { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 7px 18px; }
.expertise li { font-size: 13.5px; font-weight: 600; display: grid; line-height: 1.35; }
.expertise li small { font-family: var(--en); font-weight: 400; font-size: 11px; color: var(--muted); }
html[lang="en"] .expertise li small { font-family: var(--ar); font-size: 12px; }
.gov { margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line); font-size: 13px; color: var(--ink-2); display: grid; }
.gov b { font-size: 11.5px; color: var(--gold); font-weight: 600; }

/* Footer: the contact line */
.foot { align-self: end; background: var(--band); color: #e9e3d8; padding: clamp(16px, 2.6vh, 26px) var(--gutter); display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: clamp(20px, 4vw, 56px); }
.mark { font-family: var(--serif); font-style: italic; font-size: 19px; color: var(--gold-soft); direction: ltr; unicode-bidi: isolate; display: grid; gap: 2px; }
html[lang="ar"] .mark { text-align: right; }
.mark small { font-family: var(--en); font-style: normal; font-size: 10px; letter-spacing: .26em; color: #6f6a61; text-transform: uppercase; }
.contacts { display: flex; gap: clamp(20px, 4vw, 56px); }
.contact { display: grid; gap: 1px; }
.contact small { font-family: var(--en); font-size: 10px; letter-spacing: .32em; color: #8f887c; text-transform: uppercase; }
html[lang="ar"] .contact small { font-family: var(--ar); letter-spacing: .02em; font-size: 11.5px; text-transform: none; }
.contact a { font-family: var(--en); font-size: 16px; letter-spacing: .04em; direction: ltr; unicode-bidi: isolate; border-bottom: 1px solid transparent; transition: border-color .2s, color .2s; }
html[lang="ar"] .contact a { text-align: right; }
.contact a:hover { color: var(--gold-soft); border-color: var(--gold-soft); }
.save { font-size: 13px; border: 1px solid #4a453d; padding: 9px 18px; border-radius: 999px; white-space: nowrap; transition: border-color .2s, color .2s, background .2s; }
.save:hover { border-color: var(--gold-soft); color: var(--band); background: var(--gold-soft); }

/* Entrance */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(10px); animation: in .9s cubic-bezier(.2, .7, .2, 1) forwards; }
  .d1 { animation-delay: .08s } .d2 { animation-delay: .18s } .d3 { animation-delay: .3s }
  @keyframes in { to { opacity: 1; transform: none; } }
}

/* Desktop: exactly one screen. The portrait stands on the black band; text, summary and dossier fill the other side. */
@media (min-width: 1100px) and (min-height: 720px) {
  body { height: 100vh; height: 100dvh; overflow: hidden; grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: auto minmax(0, 1fr) auto auto auto auto;
    grid-template-areas: "top top" "text photo" "about photo" "dossier photo" "band band" "foot foot"; }
  .top { grid-area: top; }
  .hero { display: contents; }
  .hero-text { grid-area: text; padding-inline-start: var(--gutter); align-self: end; }
  .about { grid-area: about; padding-inline-start: var(--gutter); margin: clamp(8px, 1.6vh, 16px) 0 clamp(14px, 2.4vh, 24px); font-size: 14.5px; }
  .dossier { grid-area: dossier; margin-inline-start: var(--gutter); padding: 0; border-top: 1px solid var(--line); }
  .panel { padding-block: clamp(12px, 2.2vh, 22px) clamp(14px, 2.6vh, 26px); }
  .portrait { grid-area: photo; align-self: end; height: 100%; width: auto; aspect-ratio: 720 / 1004; max-width: 25vw; margin-inline: clamp(28px, 3.4vw, 56px) var(--gutter); margin-top: clamp(16px, 3vh, 32px); }
  .portrait img { height: 100%; width: 100%; }
  .band { grid-area: band; }
  .foot { grid-area: foot; }
  .creds { gap: 2px; }
  .creds li { font-size: 13px; }
  .ventures strong { font-size: 19px; }
  .ventures { gap: 7px; } .ventures li { padding-bottom: 7px; }
  .expertise li { font-size: 13px; }
}
@media (min-width: 1100px) and (min-height: 720px) {
  .name { font-size: clamp(40px, min(5.6vw, 7.6vh), 88px); }
  .motto { font-size: clamp(22px, min(2.4vw, 3.6vh), 36px); }
}
@media (min-width: 1100px) and (min-height: 720px) {
  .kicker em { display: none; }
  .name-br { display: none; } /* the English name reads on one line on a wide screen */
}
/* A shorter desktop screen (a laptop): everything tightens so the profile still fits without scrolling. */
@media (min-width: 1100px) and (min-height: 720px) and (max-height: 880px) {
  .top { padding-block: 10px; }
  .stat { padding-block: 10px; }
  .stat b { font-size: clamp(28px, 4.6vh, 40px); }
  .stat b.word { font-size: clamp(24px, 3.8vh, 34px); }
  .foot { padding-block: 10px; }
  .gov { display: none; }
  .creds li, .expertise li { font-size: 12.5px; }
  .ventures strong { font-size: 17px; }
  .ventures span { font-size: 12px; }
  .rule { margin: 12px 0 10px; }
  .roles { font-size: 13px; }
}
/* The summary shows on a desktop only where the screen is tall enough to keep everything in view. */
@media (min-width: 1100px) and (min-height: 720px) and (max-height: 999px) {
  .about { display: none; }
  .hero-text { padding-bottom: clamp(14px, 2.4vh, 24px); }
}

/* Tablet and phone: the dossier as tabs */
@media (max-width: 1099px), (max-height: 719px) {
  .dossier { grid-template-columns: 1fr; }
  .tabs { display: flex; gap: 6px; padding-top: 20px; }
  .tabs button { flex: 1; font: inherit; font-size: 13px; font-weight: 600; background: none; border: 1px solid var(--line); color: var(--muted); padding: 9px 6px; border-radius: 999px; cursor: pointer; }
  .tabs button[aria-selected="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
  .panel, .panel:first-of-type, .panel:last-of-type { border-inline-start: 0; padding: 16px 0 22px; }
  .panel[hidden] { display: none; }
  .panel .kicker { display: none; }
  .foot { grid-template-columns: 1fr; justify-items: center; text-align: center; gap: 14px; }
  .mark, html[lang="ar"] .mark { text-align: center; order: 3; }
}
@media (max-width: 760px) {
  .top .tag { display: none; }
  .hero { grid-template-columns: minmax(0, 1fr) 112px; grid-template-areas: "text photo" "about about"; column-gap: 16px; padding-top: 22px; }
  .hero-text { align-self: center; }
  .roles { font-size: 12.5px; }
  .roles span + span::before { display: none; }
  .roles { flex-direction: column; gap: 0; }
  .name { font-size: clamp(34px, 10.5vw, 48px); margin-top: 8px; }
  .name-alt { font-size: 9.5px; letter-spacing: .26em; }
  .rule { margin: 14px 0 10px; }
  .motto { font-size: 22px; }
  .m-br { display: inline; }
  .portrait { width: 112px; align-self: center; }
  .about { font-size: 14px; margin: 14px 0 20px; }
  .band { grid-template-columns: repeat(2, 1fr); }
  .stat { padding: 14px var(--gutter); }
  .stat:nth-child(3) { border-inline-start: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--band-line); }
  .stat b { font-size: 32px; }
  .stat b.word { font-size: 26px; }
  .contacts { flex-direction: column; align-items: center; gap: 10px; }
  .contact, html[lang="ar"] .contact a { text-align: center; }
}
@media (max-width: 370px) {
  .hero { grid-template-columns: minmax(0, 1fr) 92px; }
  .portrait { width: 92px; }
  .expertise { grid-template-columns: 1fr; }
}

/* Business card: a button in the top bar opens the card; its code saves the contact (with photo) on any phone. */
.card-btn { display: inline-flex; align-items: center; gap: 8px; font: inherit; font-size: 12.5px; font-weight: 600; color: var(--ink); background: none; border: 1px solid var(--line); padding: 6px 12px 6px 14px; border-radius: 999px; cursor: pointer; transition: border-color .2s, color .2s; }
.card-btn svg { width: 18px; height: 18px; color: var(--gold); }
.card-btn:hover { border-color: var(--gold); color: var(--gold); }
.card-dialog { margin: auto; border: 0; padding: 0; background: transparent; max-width: calc(100vw - 32px); overflow: visible; }
.card-dialog::backdrop { background: rgba(12, 12, 14, .72); backdrop-filter: blur(6px); }
.card-dialog[open] { animation: cardIn .45s cubic-bezier(.2, .7, .2, 1); }
@keyframes cardIn { from { opacity: 0; transform: translateY(14px) scale(.98); } }

.bcard { width: min(620px, calc(100vw - 32px)); aspect-ratio: 1.75; position: relative; overflow: hidden; border-radius: 16px; color: #efe8db;
  background: radial-gradient(120% 90% at 0% 0%, #1b1a1d, #0b0b0d 60%), #0b0b0d; box-shadow: 0 30px 80px rgba(0,0,0,.45), inset 0 0 0 1px rgba(216,191,147,.28);
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 28px; padding: 30px 32px; }
.bcard::before { content: ""; position: absolute; inset: 10px; border: 1px solid rgba(216,191,147,.16); border-radius: 10px; pointer-events: none; }
.bcard::after { content: ""; position: absolute; inset-inline-end: -60px; bottom: -80px; width: 260px; height: 260px; border-radius: 50%; border: 1px solid rgba(216,191,147,.12); pointer-events: none; }
.bc-main { display: flex; flex-direction: column; min-width: 0; position: relative; z-index: 1; }
.bc-kicker { font-family: var(--en); font-size: 9.5px; letter-spacing: .4em; text-transform: uppercase; color: #8f887c; }
.bc-name { font-size: 30px; line-height: 1.1; font-weight: 700; color: #fbf6ec; margin-top: 10px; }
html[lang="en"] .bc-name { font-family: var(--serif); font-weight: 600; font-size: 31px; }
.bc-alt { font-family: var(--en); font-size: 9.5px; letter-spacing: .32em; color: #8f887c; margin-top: 4px; }
.bc-alt[lang="ar"] { font-family: var(--ar); letter-spacing: 0; font-size: 12.5px; }
.bc-title { color: var(--gold-soft); font-size: 13px; font-weight: 600; margin-top: 8px; }
.bc-rule { width: 44px; height: 1px; background: var(--gold); margin: 12px 0 10px; }
.bc-bio { font-size: 12px; line-height: 1.7; color: #b9b2a6; }
.bc-contacts { list-style: none; margin-top: auto; display: grid; gap: 3px; }
.bc-contacts li { display: flex; align-items: center; gap: 10px; }
.bc-contacts i { font-style: normal; font-family: var(--serif); font-size: 11px; color: var(--gold-soft); width: 14px; }
.bc-contacts a { font-family: var(--en); font-size: 13px; letter-spacing: .03em; direction: ltr; unicode-bidi: isolate; color: #efe8db; }
.bc-side { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; position: relative; z-index: 1; text-align: center; }
.bc-qr { width: 132px; height: 132px; background: #fff; padding: 6px; border-radius: 10px; }
.bc-side small { font-size: 11px; color: #b9b2a6; max-width: 140px; line-height: 1.4; }
.bc-motto { font-family: var(--serif); font-style: italic; font-size: 12px; color: var(--gold-soft); direction: ltr; margin-top: 4px; }
.card-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.card-actions a, .card-actions button { font: inherit; font-size: 13.5px; font-weight: 600; padding: 10px 20px; border-radius: 999px; cursor: pointer; }
.ca-primary { background: var(--gold-soft); color: var(--band); border: 1px solid var(--gold-soft); }
.ca-ghost { background: rgba(12,12,14,.4); color: #efe8db; border: 1px solid #4a453d; }
.ca-ghost:hover { border-color: var(--gold-soft); color: var(--gold-soft); }

/* A phone: the card stands upright, like a vertical business card */
@media (max-width: 560px) {
  .card-btn span { display: none; }
  .card-btn { padding: 7px; }
  .bcard { width: min(340px, calc(100vw - 32px)); aspect-ratio: auto; grid-template-columns: 1fr; gap: 18px; padding: 26px 24px; }
  .bc-name { font-size: 27px; }
  .bc-contacts { margin-top: 14px; }
  .bc-side { flex-direction: row; justify-content: flex-start; gap: 14px; text-align: start; border-top: 1px solid rgba(216,191,147,.18); padding-top: 16px; }
  .bc-qr { width: 104px; height: 104px; }
  .bc-side small { max-width: none; }
  .bc-motto { display: none; }
}
.bcard:focus { outline: none; }
html[lang="en"] .bc-alt[lang="ar"] { text-align: left; }

/* The rotating dossier tabs on phones: a steady height and a soft fade, so the page doesn't jump every three seconds. */
@media (max-width: 1099px), (max-height: 719px) {
  .panel { min-height: 236px; }
  .panel:not([hidden]) { animation: panelIn .5s ease; }
  @keyframes panelIn { from { opacity: 0; transform: translateY(4px); } }
}
