/* =========================================================
   Mohammed Alqahtani — Luxury Executive Blended Editorial
   Palette taken from the MA monogram: charcoal + crimson on warm ivory
   ========================================================= */
:root {
  --ivory: #F7F4EE;
  --ivory-2: #EFEAE0;
  --paper: #FBF9F5;
  --ink: #1C1C1C;
  --charcoal: #2A2A2A;
  --text: #2E2D2B;
  --muted: #5F5B55;
  --line: #DCD5C8;
  --crimson: #8E0E26;
  --crimson-2: #A5142F;
  --night: #171717;
  --night-2: #222120;
  --on-night: #F4F0E8;
  --on-night-muted: #B8B1A5;
  --on-night-line: rgba(244, 240, 232, .14);

  --f-ar: "IBM Plex Sans Arabic", "Segoe UI", Tahoma, sans-serif;
  --f-en: "Manrope", "Segoe UI", system-ui, sans-serif;
  --f-serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --f-body: var(--f-ar);
  --f-display: var(--f-ar);

  --wrap: 1180px;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --sec-y: clamp(4.5rem, 10vw, 8.5rem);
  --radius: 4px;
  --ease: cubic-bezier(.22, .61, .36, 1);
  --header-h: 72px;
}
html[lang="en"] { --f-body: var(--f-en); --f-display: var(--f-serif); }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 8px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--ivory); color: var(--text);
  font-family: var(--f-body); font-size: clamp(1rem, .96rem + .2vw, 1.0625rem); line-height: 1.75;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: clip;
}
html[lang="en"] body { line-height: 1.7; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button { font: inherit; color: inherit; }
body.no-scroll, body.menu-open { overflow: hidden; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.wrap.narrow { --wrap: 900px; }
.ico { width: 1.05em; height: 1.05em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
[dir="rtl"] .lb-next .ico, [dir="ltr"] .lb-prev .ico { transform: scaleX(-1); }
:focus-visible { outline: 2px solid var(--crimson); outline-offset: 3px; border-radius: 2px; }
.dark :focus-visible { outline-color: var(--on-night); }

.skip { position: fixed; inset-inline-start: 1rem; top: -60px; z-index: 100; background: var(--ink); color: var(--ivory); padding: .6rem 1rem; text-decoration: none; transition: top .2s; }
.skip:focus { top: 1rem; }

/* ---------- Logo ---------- */
.logo-svg .ink { fill: var(--ink); }
.logo-svg .accent { fill: var(--crimson); }

/* ---------- Progress + header ---------- */
.progress { position: fixed; inset: 0 0 auto 0; height: 2px; z-index: 60; pointer-events: none; }
.progress span { display: block; height: 100%; background: var(--crimson); transform-origin: 0 50%; transform: scaleX(0); }
[dir="rtl"] .progress span { transform-origin: 100% 50%; }

.topbar { position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--header-h); transition: background .35s var(--ease), box-shadow .35s var(--ease), backdrop-filter .35s; }
.topbar.scrolled { background: rgba(247, 244, 238, .86); backdrop-filter: saturate(140%) blur(14px); -webkit-backdrop-filter: saturate(140%) blur(14px); box-shadow: 0 1px 0 var(--line); }
.bar { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.brand { display: inline-flex; align-items: center; gap: .7rem; text-decoration: none; color: var(--ink); }
.brand .logo-svg { width: 34px; height: 34px; }
.brand-name { font-weight: 600; font-size: .95rem; letter-spacing: .01em; white-space: nowrap; }
html[lang="en"] .brand-name { font-family: var(--f-en); letter-spacing: .02em; }
.nav { display: flex; gap: clamp(1rem, 2.2vw, 2rem); }
.nav a { position: relative; text-decoration: none; font-size: .93rem; color: var(--muted); padding: .35rem 0; transition: color .25s; }
.nav a::after { content: ""; position: absolute; inset-inline: 0; bottom: 0; height: 1.5px; background: var(--crimson); transform: scaleX(0); transition: transform .35s var(--ease); }
.nav a:hover, .nav a.active { color: var(--ink); }
.nav a:hover::after, .nav a.active::after { transform: scaleX(1); }
.bar-actions { display: flex; align-items: center; gap: .5rem; }
.lang { min-width: 44px; height: 40px; padding: 0 .9rem; border: 1px solid var(--line); background: transparent; border-radius: 999px; cursor: pointer; font-weight: 600; font-size: .9rem; transition: border-color .25s, background .25s, color .25s; }
.lang:hover { border-color: var(--ink); background: var(--ink); color: var(--ivory); }
.lang[lang="ar"] { font-family: var(--f-ar); }
.lang[lang="en"] { font-family: var(--f-en); letter-spacing: .06em; }
.burger { display: none; width: 44px; height: 40px; border: 0; background: transparent; cursor: pointer; position: relative; }
.burger span { position: absolute; inset-inline: 11px; height: 1.5px; background: var(--ink); transition: transform .3s var(--ease), top .3s; }
.burger span:first-child { top: 15px; } .burger span:last-child { top: 23px; }
.burger[aria-expanded="true"] span:first-child { top: 19px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { top: 19px; transform: rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100svh; width: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: calc(var(--header-h) + .5rem) var(--gutter) 6.5rem; overflow: hidden; isolation: isolate; text-align: center;
  background:
    radial-gradient(60% 55% at 50% 38%, #FDFBF7 0%, rgba(253, 251, 247, 0) 70%),
    linear-gradient(180deg, var(--ivory) 0%, var(--ivory) 70%, var(--ivory-2) 100%); }
.hero-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; display: grid; place-items: center; }
.hero-mark { width: min(78vw, 660px); opacity: .032; margin-top: -14vh; will-change: transform; }
.hero-mark .logo-svg { width: 100%; height: auto; }
.hero-mark .logo-svg .accent { fill: var(--crimson); }
.hero-inner { width: min(100%, 1000px); display: flex; flex-direction: column; align-items: center; }

/* Portrait — no frame, no visible rectangle: multiply-blend removes the white
   studio backdrop into the ivory page; a radial mask softens every edge. */
.portrait { height: clamp(260px, 53svh, 560px); aspect-ratio: 1000 / 1400; position: relative; }
.portrait img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; will-change: transform;
  -webkit-mask-image: radial-gradient(ellipse 50% 56% at 50% 40%, #000 64%, rgba(0,0,0,.6) 80%, transparent 100%);
          mask-image: radial-gradient(ellipse 50% 56% at 50% 40%, #000 64%, rgba(0,0,0,.6) 80%, transparent 100%); }
.reveal-portrait { animation: portraitIn 1.4s var(--ease) both; }
@keyframes portraitIn { from { opacity: 0; transform: translateY(18px) scale(.985); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }

.hero-copy { position: relative; margin-top: clamp(-4.5rem, -7svh, -2.5rem); display: flex; flex-direction: column; align-items: center; gap: .85rem; max-width: 860px; }
.hero-role { font-size: clamp(.78rem, .72rem + .25vw, .92rem); color: var(--muted); font-weight: 500; letter-spacing: .01em; max-width: 46rem; line-height: 1.6; }
html[lang="en"] .hero-role { text-transform: uppercase; letter-spacing: .12em; font-size: clamp(.68rem, .62rem + .22vw, .8rem); }
.hero-name { color: var(--ink); font-family: var(--f-ar); font-weight: 700; font-size: clamp(2.4rem, 1.4rem + 4.4vw, 5.2rem); line-height: 1.1; letter-spacing: -.005em; }
html[lang="en"] .hero-name { font-family: var(--f-en); font-weight: 600; letter-spacing: -.035em; white-space: nowrap; font-size: min(8.2vw, 5.4rem); line-height: 1.05; }
.hero-headline { font-family: var(--f-display); color: var(--crimson); font-weight: 500; font-size: clamp(1.25rem, 1rem + 1.1vw, 1.9rem); line-height: 1.4; }
html[lang="en"] .hero-headline { font-style: italic; font-size: clamp(1.4rem, 1.1rem + 1.3vw, 2.2rem); line-height: 1.25; }
.hero-intro { color: var(--muted); max-width: 40rem; font-size: clamp(.95rem, .9rem + .2vw, 1.05rem); }
.hero-cta { display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem; margin-top: .6rem; }
.h-in { animation: heroIn 1s var(--ease) both; }
.h-in.h1 { animation-delay: .35s; } .h-in.h2 { animation-delay: .48s; } .h-in.h3 { animation-delay: .62s; } .h-in.h4 { animation-delay: .76s; } .h-in.h5 { animation-delay: .9s; }
@keyframes heroIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: .6rem; min-height: 48px; padding: .7rem 1.5rem; border-radius: 999px; text-decoration: none; font-weight: 600; font-size: .93rem; line-height: 1.2; transition: transform .3s var(--ease), background .3s, color .3s, border-color .3s, box-shadow .3s; }
.btn:hover { transform: translateY(-2px); }
.btn-dark { background: var(--ink); color: var(--ivory); box-shadow: 0 10px 28px -14px rgba(28, 28, 28, .6); }
.btn-dark:hover { background: var(--crimson); }
.btn-line { border: 1px solid var(--ink); color: var(--ink); }
.btn-line:hover { background: var(--ink); color: var(--ivory); }

.scroll-cue { position: absolute; bottom: 1.4rem; inset-inline: 0; margin-inline: auto; width: max-content; display: flex; flex-direction: column; align-items: center; gap: .5rem; text-decoration: none; color: var(--muted); font-size: .72rem; letter-spacing: .14em; }
html[lang="en"] .scroll-cue { text-transform: uppercase; }
.cue-line { width: 1px; height: 38px; background: linear-gradient(var(--line), var(--line)); position: relative; overflow: hidden; }
.cue-line::after { content: ""; position: absolute; inset-inline: 0; top: -40%; height: 40%; background: var(--crimson); animation: cue 2.2s var(--ease) infinite; }
@keyframes cue { to { top: 100%; } }

/* ---------- Shared section heads ---------- */
section { position: relative; }
.kicker { font-family: var(--f-en); font-size: .75rem; letter-spacing: .2em; text-transform: uppercase; color: var(--crimson); font-weight: 600; display: inline-flex; align-items: center; gap: .8rem; }
html[lang="ar"] .kicker { font-family: var(--f-ar); letter-spacing: .02em; font-size: .85rem; }
.kicker::before { content: ""; width: 28px; height: 1.5px; background: currentColor; }
.sec-head { max-width: 46rem; margin-bottom: clamp(2.5rem, 5vw, 4rem); display: grid; gap: 1rem; }
.sec-head h2, .contact h2 { font-family: var(--f-display); color: var(--ink); font-weight: 600; font-size: clamp(2rem, 1.4rem + 2.6vw, 3.5rem); line-height: 1.15; letter-spacing: -.01em; }
html[lang="en"] .sec-head h2, html[lang="en"] .contact h2 { font-weight: 500; letter-spacing: -.015em; line-height: 1.05; font-size: clamp(2.3rem, 1.6rem + 3vw, 4.1rem); }
.lead { color: var(--muted); font-size: clamp(1rem, .95rem + .3vw, 1.15rem); max-width: 38rem; }
.sub-title { font-size: .8rem; font-weight: 600; color: var(--muted); letter-spacing: .14em; text-transform: uppercase; margin-bottom: 1.2rem; display: flex; align-items: center; gap: .8rem; font-family: var(--f-en); }
html[lang="ar"] .sub-title { font-family: var(--f-ar); letter-spacing: .02em; font-size: .9rem; }
.sub-title::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* Reveal */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .1s; } .reveal.d2 { transition-delay: .2s; } .reveal.d3 { transition-delay: .3s; }

/* ---------- Principle (sticky, words light up) ---------- */
.principle { height: 170vh; background: var(--ivory); }
.principle-sticky { position: sticky; top: 0; height: 100vh; display: flex; align-items: center; }
.principle .kicker { margin-bottom: 1.6rem; }
.statement { font-family: var(--f-display); font-weight: 500; color: var(--ink); font-size: clamp(1.7rem, 1.1rem + 2.6vw, 3.3rem); line-height: 1.45; letter-spacing: -.005em; }
html[lang="en"] .statement { line-height: 1.2; font-size: clamp(2rem, 1.3rem + 3vw, 3.9rem); }
.statement .w { opacity: .14; transition: opacity .45s var(--ease), color .45s; }
.statement .w.lit { opacity: 1; }

/* ---------- Impact (dark band) ---------- */
.dark { background: var(--night); color: var(--on-night); }
.dark .sec-head h2, .dark h2 { color: var(--on-night); }
.dark .lead { color: var(--on-night-muted); }
.dark .kicker { color: #E0697E; }
.impact { padding-block: var(--sec-y); background:
  radial-gradient(70% 60% at 85% 0%, rgba(142, 14, 38, .22), transparent 60%), var(--night); }
html[dir="rtl"] .impact { background: radial-gradient(70% 60% at 15% 0%, rgba(142, 14, 38, .22), transparent 60%), var(--night); }
.metrics { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--on-night-line); }
.metric { padding: clamp(1.8rem, 3vw, 2.6rem) clamp(1rem, 2.4vw, 2.2rem); border-bottom: 1px solid var(--on-night-line); border-inline-end: 1px solid var(--on-night-line); }
.metric:nth-child(3n) { border-inline-end: 0; }
.metric:nth-child(3n+1) { padding-inline-start: 0; }
.metric-num { font-family: var(--f-en); font-weight: 300; font-size: clamp(3.4rem, 2.2rem + 4.4vw, 6.2rem); line-height: 1; letter-spacing: -.04em; color: var(--on-night); direction: ltr; display: flex; align-items: baseline; justify-content: flex-start; font-variant-numeric: tabular-nums; }
[dir="rtl"] .metric-num { justify-content: flex-end; }
.metric-num .suffix { color: #E0697E; font-weight: 400; font-size: .5em; margin-inline-start: .08em; letter-spacing: 0; }
.metric-label { margin-top: 1rem; font-size: 1.05rem; font-weight: 600; color: var(--on-night); }
.metric-note { margin-top: .35rem; font-size: .9rem; color: var(--on-night-muted); line-height: 1.6; max-width: 22rem; }

/* ---------- Gallery ---------- */
.moments { padding-block: var(--sec-y); background: var(--ivory); }
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(.75rem, 1.6vw, 1.25rem); }
.shot { display: block; width: 100%; padding: 0; border: 0; background: var(--ivory-2); cursor: zoom-in; position: relative; overflow: hidden; border-radius: var(--radius); aspect-ratio: 3 / 2; }
.shot img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease), filter .6s; filter: saturate(.92); }
.shot::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(18, 18, 18, .62)); opacity: .85; transition: opacity .5s; }
.shot-cap { position: absolute; inset-inline: 1rem; bottom: .85rem; z-index: 1; color: #fff; font-size: .88rem; font-weight: 500; display: flex; align-items: baseline; gap: .6rem; text-align: start; }
.shot-num { font-family: var(--f-en); font-size: .72rem; letter-spacing: .1em; opacity: .75; }
.shot:hover img, .shot:focus-visible img { transform: scale(1.035); filter: saturate(1); }
.shot:hover::after { opacity: 1; }
.shot-wrap.reveal { transform: translateY(30px) scale(.985); }
.shot-wrap.reveal.in { transform: none; }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 80; background: rgba(14, 14, 14, .94); display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 1rem; padding: clamp(.75rem, 3vw, 2.5rem); opacity: 0; transition: opacity .22s ease; }
.lightbox[hidden] { display: none; }
.lightbox.open { opacity: 1; }
.lb-figure { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .9rem; height: 100%; min-height: 0; }
.lb-img { max-width: 100%; max-height: calc(100svh - 9rem); width: auto; height: auto; object-fit: contain; border-radius: 2px; opacity: 0; transform: scale(.985); transition: opacity .35s, transform .35s var(--ease); }
.lb-img.loaded { opacity: 1; transform: none; }
.lb-cap { color: #EDE8DF; font-size: .92rem; display: flex; gap: 1rem; align-items: baseline; }
.lb-count { font-family: var(--f-en); font-size: .78rem; letter-spacing: .1em; color: #A9A296; }
.lb-btn { width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .22); background: rgba(255, 255, 255, .04); color: #fff; display: grid; place-items: center; cursor: pointer; transition: background .25s, border-color .25s; }
.lb-btn:hover { background: rgba(255, 255, 255, .14); border-color: rgba(255, 255, 255, .5); }
.lb-btn .ico { width: 20px; height: 20px; }
.lb-close { position: absolute; top: clamp(.75rem, 2vw, 1.5rem); inset-inline-end: clamp(.75rem, 2vw, 1.5rem); z-index: 2; }
.lightbox :focus-visible { outline-color: #fff; }

/* ---------- Journey ---------- */
.journey { padding-block: var(--sec-y); background: var(--paper); border-top: 1px solid var(--line); }
.journey-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.journey-aside { position: sticky; top: calc(var(--header-h) + 2rem); }
.journey-aside .sec-head { margin-bottom: 0; }
.timeline { position: relative; display: grid; gap: clamp(2.2rem, 4vw, 3rem); padding-inline-start: 2rem; margin-bottom: clamp(3.5rem, 7vw, 5rem); }
.timeline::before { content: ""; position: absolute; inset-inline-start: 5px; top: .6rem; bottom: .6rem; width: 1px; background: linear-gradient(var(--crimson), var(--line) 30%); }
.tl-item { position: relative; }
.tl-dot { position: absolute; inset-inline-start: calc(-2rem + 0px); top: .55rem; width: 11px; height: 11px; border-radius: 50%; background: var(--paper); border: 2px solid var(--crimson); }
.tl-date { font-family: var(--f-en); font-size: .8rem; letter-spacing: .08em; color: var(--crimson); font-weight: 600; }
html[lang="ar"] .tl-date { font-family: var(--f-ar); letter-spacing: 0; font-size: .9rem; }
.tl-title { margin-top: .4rem; font-size: clamp(1.15rem, 1rem + .6vw, 1.45rem); color: var(--ink); font-weight: 600; line-height: 1.4; }
.tl-org { margin-top: .2rem; color: var(--muted); font-size: .95rem; }
.tl-points { margin-top: 1.1rem; display: grid; gap: .6rem; }
.tl-points li { position: relative; padding-inline-start: 1.3rem; color: var(--text); font-size: .98rem; line-height: 1.7; }
.tl-points li::before { content: ""; position: absolute; inset-inline-start: 0; top: .78em; width: 7px; height: 1.5px; background: var(--crimson); }
.domains { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 2rem; }
.domain { display: grid; grid-template-columns: auto 1fr; gap: 1rem; padding: 1.25rem 0; border-top: 1px solid var(--line); }
.dom-i { font-family: var(--f-en); font-size: .78rem; color: var(--crimson); font-weight: 600; padding-top: .25rem; letter-spacing: .06em; }
.domain h4 { font-size: 1.02rem; color: var(--ink); font-weight: 600; line-height: 1.45; }
.domain p { margin-top: .3rem; font-size: .9rem; color: var(--muted); line-height: 1.6; }

/* ---------- Credentials ---------- */
.soft { background: var(--ivory-2); }
.credentials { padding-block: var(--sec-y); }
.cred-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(1.5rem, 4vw, 3rem); margin-bottom: clamp(2.5rem, 5vw, 3.5rem); }
.cred-col { display: grid; gap: 1rem; align-content: start; }
.cred-col .sub-title { margin-bottom: .2rem; }
.cred-card { position: relative; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem 1.6rem; transition: border-color .3s, transform .4s var(--ease), box-shadow .4s; }
.cred-card::before { content: ""; position: absolute; inset-inline-start: -1px; top: 1.5rem; width: 3px; height: 2rem; background: var(--crimson); }
.cred-card:hover { border-color: #C9BFAE; box-shadow: 0 18px 40px -28px rgba(28, 28, 28, .35); }
.cred-year { display: inline-block; font-family: var(--f-en); font-size: .78rem; font-weight: 600; letter-spacing: .08em; color: var(--crimson); }
html[lang="ar"] .cred-year { font-family: var(--f-ar); letter-spacing: 0; font-size: .85rem; }
.cred-year.is-progress { color: var(--muted); border: 1px dashed #B5AC9C; border-radius: 999px; padding: .1rem .7rem; }
.cred-card h4 { margin-top: .45rem; font-size: 1.12rem; color: var(--ink); font-weight: 600; line-height: 1.45; }
.cred-card p { margin-top: .2rem; color: var(--muted); font-size: .93rem; }
.chips-grid { display: grid; grid-template-columns: 3fr 2fr; gap: clamp(1.5rem, 4vw, 3rem); }
.chips { display: flex; flex-wrap: wrap; gap: .55rem; }
.chips li { padding: .5rem 1rem; border-radius: 999px; background: var(--ink); color: var(--ivory); font-size: .88rem; font-weight: 500; line-height: 1.4; }
.chips-quiet li { background: transparent; color: var(--ink); border: 1px solid #C2B8A6; }

/* ---------- Contact ---------- */
.contact { padding-block: var(--sec-y) calc(var(--sec-y) * .8); text-align: center; overflow: hidden; }
.contact-inner { display: flex; flex-direction: column; align-items: center; gap: 1.2rem; }
.contact-mark { width: 64px; margin-bottom: .6rem; }
.contact-mark .logo-svg { width: 100%; height: auto; }
.contact-mark .logo-svg .ink { fill: var(--on-night); }
.contact-mark .logo-svg .accent { fill: #C8203F; }
.contact h2 { max-width: 16em; margin-inline: auto; }
.contact .lead { margin-inline: auto; }
.contact-links { display: flex; flex-wrap: wrap; justify-content: center; gap: .9rem; margin-top: 1.2rem; }
.c-link { display: inline-flex; align-items: center; gap: .9rem; text-decoration: none; padding: .9rem 1.3rem; border: 1px solid var(--on-night-line); border-radius: var(--radius); min-width: min(100%, 290px); text-align: start; transition: border-color .3s, background .3s; }
.c-link:hover { border-color: rgba(244, 240, 232, .45); background: rgba(255, 255, 255, .04); }
.c-link > .ico:first-child { width: 22px; height: 22px; color: #E0697E; }
.c-link span { display: grid; flex: 1; }
.c-link small { font-size: .75rem; color: var(--on-night-muted); }
.c-link bdi { font-family: var(--f-en); font-size: .95rem; word-break: break-all; }
.mail-alt { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: .5rem; margin-top: 1rem; font-size: .85rem; color: var(--on-night-muted); }
.mail-chip { display: inline-flex; align-items: center; min-height: 36px; padding: .35rem .95rem; border-radius: 999px; border: 1px solid var(--on-night-line); background: transparent; color: var(--on-night); text-decoration: none; font-size: .82rem; font-family: var(--f-en); cursor: pointer; transition: border-color .25s, background .25s; }
html[lang="ar"] button.mail-chip { font-family: var(--f-ar); }
.mail-chip:hover { border-color: rgba(244, 240, 232, .5); background: rgba(255, 255, 255, .05); }
.mail-chip.done { border-color: #E0697E; color: #fff; }
.cv-buttons { display: flex; flex-wrap: wrap; justify-content: center; gap: .8rem; margin-top: 1rem; }
.btn-light { background: var(--on-night); color: var(--ink); }
.btn-light:hover { background: #fff; }
.btn-outline-light { border: 1px solid rgba(244, 240, 232, .5); color: var(--on-night); }
.btn-outline-light:hover { background: var(--on-night); color: var(--ink); }
.btn[lang="ar"] { font-family: var(--f-ar); }
.btn[lang="en"] { font-family: var(--f-en); }
.location { margin-top: 1.5rem; color: var(--on-night-muted); font-size: .85rem; }

/* ---------- Footer ---------- */
.footer { background: var(--night); color: var(--on-night-muted); border-top: 1px solid var(--on-night-line); font-size: .85rem; }
.foot { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding-block: 1.4rem; flex-wrap: wrap; }
.foot-brand { display: inline-flex; align-items: center; gap: .7rem; }
.foot-brand .logo-svg { width: 22px; height: 22px; }
.foot-brand .logo-svg .ink { fill: var(--on-night); }
.foot-brand .logo-svg .accent { fill: #C8203F; }
.to-top { text-decoration: none; display: inline-flex; align-items: center; gap: .4rem; color: var(--on-night); }
.to-top:hover { color: #fff; }

.noscript { padding: 3rem 1.5rem; text-align: center; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .journey-grid { grid-template-columns: 1fr; }
  .journey-aside { position: static; margin-bottom: 1rem; }
  .cred-grid, .chips-grid { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  :root { --header-h: 64px; }
  .burger { display: block; }
  .nav { position: fixed; inset: var(--header-h) 0 0 0; background: var(--ivory); flex-direction: column; align-items: stretch; gap: 0; padding: 1.5rem var(--gutter); opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .3s, transform .3s var(--ease), visibility .3s; }
  .nav.open { opacity: 1; visibility: visible; transform: none; }
  .nav a { font-size: 1.35rem; color: var(--ink); padding: 1rem 0; border-bottom: 1px solid var(--line); }
  .nav a::after { display: none; }
  .topbar:has(.nav.open) { background: var(--ivory); }
  .metrics { grid-template-columns: repeat(2, 1fr); }
  .metric, .metric:nth-child(3n+1) { padding-inline: 0 1.2rem; border-inline-end: 0; }
  .metric:nth-child(odd) { border-inline-end: 1px solid var(--on-night-line); }
  .metric:nth-child(even) { padding-inline-start: 1.2rem; }
}
@media (max-width: 640px) {
  .brand-name { display: none; }
  .hero { padding-bottom: 6.75rem; }
  .portrait { height: clamp(250px, 44svh, 400px); }
  .hero-cta .btn { flex: 1 1 100%; }
  .domains { grid-template-columns: 1fr; }
  .principle { height: 150vh; }
}
@media (max-width: 560px) {
  .gallery { grid-template-columns: 1fr; }
  .metric-num { font-size: clamp(2.8rem, 13vw, 3.6rem); }
  .metric-note { font-size: .84rem; }
  .lightbox { grid-template-columns: 1fr; grid-template-rows: 1fr auto; padding: 4rem .5rem 1rem; }
  .lb-figure { grid-column: 1; grid-row: 1; }
  .lb-prev, .lb-next { position: absolute; bottom: 1rem; }
  .lb-prev { inset-inline-start: 1rem; } .lb-next { inset-inline-end: 1rem; }
  .lb-img { max-height: calc(100svh - 10rem); }
  .cv-buttons .btn, .c-link { width: 100%; }
}
@media (max-height: 640px) and (min-width: 861px) {
  .portrait { height: 44svh; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .reveal { opacity: 1; transform: none; }
  .principle { height: auto; }
  .principle-sticky { position: static; height: auto; padding-block: var(--sec-y); }
  .statement .w { opacity: 1; }
  .cue-line::after { display: none; }
}

@media print {
  .topbar, .progress, .scroll-cue, .lightbox, .hero-bg { display: none !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
  .principle { height: auto; } .principle-sticky { position: static; height: auto; }
  .statement .w { opacity: 1; }
}
