/* ==========================================================================
   Nahar Abi Ali — Portfolio stylesheet
   --------------------------------------------------------------------------
   QUICK EDITS: colours and fonts are defined once in :root below.
   Change --accent to try a different signature colour.
   ========================================================================== */

/* Fonts are served from this site (the fonts/ folder), not from Google. */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("../fonts/inter-latin-ext.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("../fonts/inter-latin.woff2") format('woff2');
  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: 'Manrope';
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("../fonts/manrope-latin-ext.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("../fonts/manrope-latin.woff2") format('woff2');
  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;
}
/* Fixed-weight Manrope for outlined (stroked) text: the all-weights file above draws
   stray lines inside letters when only the outline is shown */
@font-face {
  font-family: 'Manrope Outline';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url("../fonts/manrope-outline-300-latin.woff2") format('woff2');
}
@font-face {
  font-family: 'Manrope Outline';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("../fonts/manrope-outline-800-latin.woff2") format('woff2');
}
@font-face {
  font-family: 'Tajawal';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url("../fonts/tajawal-300-arabic.woff2") format('woff2');
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC, U+102E0-102FB, U+10E60-10E7E, U+10EC2-10EC7, U+10EC9-10EEE, U+10EF0-10EFF, U+1EE00-1EE03, U+1EE05-1EE1F, U+1EE21-1EE22, U+1EE24, U+1EE27, U+1EE29-1EE32, U+1EE34-1EE37, U+1EE39, U+1EE3B, U+1EE42, U+1EE47, U+1EE49, U+1EE4B, U+1EE4D-1EE4F, U+1EE51-1EE52, U+1EE54, U+1EE57, U+1EE59, U+1EE5B, U+1EE5D, U+1EE5F, U+1EE61-1EE62, U+1EE64, U+1EE67-1EE6A, U+1EE6C-1EE72, U+1EE74-1EE77, U+1EE79-1EE7C, U+1EE7E, U+1EE80-1EE89, U+1EE8B-1EE9B, U+1EEA1-1EEA3, U+1EEA5-1EEA9, U+1EEAB-1EEBB, U+1EEF0-1EEF1;
}
@font-face {
  font-family: 'Tajawal';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url("../fonts/tajawal-300-latin.woff2") format('woff2');
  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: 'Tajawal';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/tajawal-400-arabic.woff2") format('woff2');
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC, U+102E0-102FB, U+10E60-10E7E, U+10EC2-10EC7, U+10EC9-10EEE, U+10EF0-10EFF, U+1EE00-1EE03, U+1EE05-1EE1F, U+1EE21-1EE22, U+1EE24, U+1EE27, U+1EE29-1EE32, U+1EE34-1EE37, U+1EE39, U+1EE3B, U+1EE42, U+1EE47, U+1EE49, U+1EE4B, U+1EE4D-1EE4F, U+1EE51-1EE52, U+1EE54, U+1EE57, U+1EE59, U+1EE5B, U+1EE5D, U+1EE5F, U+1EE61-1EE62, U+1EE64, U+1EE67-1EE6A, U+1EE6C-1EE72, U+1EE74-1EE77, U+1EE79-1EE7C, U+1EE7E, U+1EE80-1EE89, U+1EE8B-1EE9B, U+1EEA1-1EEA3, U+1EEA5-1EEA9, U+1EEAB-1EEBB, U+1EEF0-1EEF1;
}
@font-face {
  font-family: 'Tajawal';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/tajawal-400-latin.woff2") format('woff2');
  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: 'Tajawal';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/tajawal-500-arabic.woff2") format('woff2');
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC, U+102E0-102FB, U+10E60-10E7E, U+10EC2-10EC7, U+10EC9-10EEE, U+10EF0-10EFF, U+1EE00-1EE03, U+1EE05-1EE1F, U+1EE21-1EE22, U+1EE24, U+1EE27, U+1EE29-1EE32, U+1EE34-1EE37, U+1EE39, U+1EE3B, U+1EE42, U+1EE47, U+1EE49, U+1EE4B, U+1EE4D-1EE4F, U+1EE51-1EE52, U+1EE54, U+1EE57, U+1EE59, U+1EE5B, U+1EE5D, U+1EE5F, U+1EE61-1EE62, U+1EE64, U+1EE67-1EE6A, U+1EE6C-1EE72, U+1EE74-1EE77, U+1EE79-1EE7C, U+1EE7E, U+1EE80-1EE89, U+1EE8B-1EE9B, U+1EEA1-1EEA3, U+1EEA5-1EEA9, U+1EEAB-1EEBB, U+1EEF0-1EEF1;
}
@font-face {
  font-family: 'Tajawal';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/tajawal-500-latin.woff2") format('woff2');
  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: 'Tajawal';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/tajawal-700-arabic.woff2") format('woff2');
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC, U+102E0-102FB, U+10E60-10E7E, U+10EC2-10EC7, U+10EC9-10EEE, U+10EF0-10EFF, U+1EE00-1EE03, U+1EE05-1EE1F, U+1EE21-1EE22, U+1EE24, U+1EE27, U+1EE29-1EE32, U+1EE34-1EE37, U+1EE39, U+1EE3B, U+1EE42, U+1EE47, U+1EE49, U+1EE4B, U+1EE4D-1EE4F, U+1EE51-1EE52, U+1EE54, U+1EE57, U+1EE59, U+1EE5B, U+1EE5D, U+1EE5F, U+1EE61-1EE62, U+1EE64, U+1EE67-1EE6A, U+1EE6C-1EE72, U+1EE74-1EE77, U+1EE79-1EE7C, U+1EE7E, U+1EE80-1EE89, U+1EE8B-1EE9B, U+1EEA1-1EEA3, U+1EEA5-1EEA9, U+1EEAB-1EEBB, U+1EEF0-1EEF1;
}
@font-face {
  font-family: 'Tajawal';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/tajawal-700-latin.woff2") format('woff2');
  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;
}

:root {
  /* Colours — Electric Purple palette */
  --bg: #0b0a10;          /* page background (violet-black) */
  --bg-2: #14121c;        /* panels, image frames */
  --bg-3: #1d1a28;
  --ink: #eeecf5;         /* main text (cool white) */
  --ink-2: #bdb9cc;       /* secondary text */
  --muted: #8d889f;       /* labels, captions */
  --ink-rgb: 238, 236, 245;    /* --ink as R, G, B */
  --line: rgba(var(--ink-rgb), 0.13);
  --line-2: rgba(var(--ink-rgb), 0.28);
  --accent: #9b5de5;      /* signature colour — Electric Purple */
  --accent-rgb: 155, 93, 229;  /* same colour as R, G, B — used for soft glows and tints */
  --accent-deep: #6a34b8; /* deeper purple, used in gradients */
  --accent-deep-rgb: 106, 52, 184;
  --accent-ink: #0b0a10;  /* text on top of the accent */
  --bg-rgb: 11, 10, 16;   /* --bg as R, G, B — used for translucent panels */

  /* Fonts (loaded from Google Fonts in the HTML <head>) */
  --f-display: "Manrope", "Inter", "Helvetica Neue", Arial, sans-serif;  /* headings, titles, numbers (big headings use ExtraBold 800) */
  --f-body: "Inter", "Helvetica Neue", Arial, sans-serif;                       /* body text */
  --f-label: "Inter", "Helvetica Neue", Arial, sans-serif;                      /* small uppercase labels, buttons */
  --f-outline: "Manrope Outline", "Manrope", "Inter", sans-serif;               /* outlined text (big numbers, footer name) */

  /* Layout */
  --gutter: clamp(16px, 3.2vw, 44px);
  --header-h: 72px;
  --ease: cubic-bezier(0.2, 0.7, 0, 1);
  --ease-io: cubic-bezier(0.76, 0, 0.24, 1);
  /* Motion durations: use one of these four for every interaction.
     fast = colour and fade feedback · base = hover movement, small UI
     slow = menus, dialogs, page transitions · reveal = scroll reveals, large entrances.
     Endless background loops (marquee, pulses, grain) keep their own pace. */
  --t-fast: 0.18s;
  --t-base: 0.3s;
  --t-slow: 0.45s;
  --t-reveal: 0.6s;
  color-scheme: dark;
}

/* LIGHT MODE — used when the visitor switches the theme button to light.
   Same structure as above; the purple is slightly deeper so text stays readable. */
:root[data-theme="light"] {
  --bg: #f4f2f8;
  --bg-2: #e9e6f0;
  --bg-3: #dfdbe9;
  --ink: #14121b;
  --ink-2: #48445a;
  --muted: #6c6780;
  --ink-rgb: 20, 18, 27;
  --line: rgba(var(--ink-rgb), 0.12);
  --line-2: rgba(var(--ink-rgb), 0.26);
  --accent: #7b3fd0;          /* #9B5DE5, deepened for readable text on light backgrounds */
  --accent-rgb: 123, 63, 208;
  --accent-deep: #5a2c9c;
  --accent-deep-rgb: 90, 44, 156;
  --accent-ink: #ffffff;
  --bg-rgb: 244, 242, 248;
  color-scheme: light;
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 8px);
  background: var(--bg);
}
body {
  margin: 0;
  cursor: default;   /* plain arrow over text instead of the browser's text-selection bar */
  background: var(--bg);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 1rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  transition: background-color var(--t-slow) var(--ease), color var(--t-slow) var(--ease);
}
:root[data-theme="light"] .grain { opacity: 0.04; }
img, video, iframe { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { list-style: none; padding: 0; }
em { font-style: normal; font-weight: inherit; color: inherit; }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }
.menu-open, .menu-open body { 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;
}
.skip-link {
  position: fixed; top: 12px; left: 12px; z-index: 1000;
  padding: 0.8em 1.1em; background: var(--accent); color: var(--accent-ink);
  font-family: var(--f-label); font-weight: 500; font-size: 0.8rem; text-transform: uppercase;
  transform: translateY(-220%); transition: transform var(--t-base) var(--ease);
}
.skip-link:focus { transform: none; }

.mono, .eyebrow {
  font-family: var(--f-label); font-size: 0.72rem; font-weight: 500;
  letter-spacing: 0.08em; text-transform: uppercase;
}
.eyebrow { color: var(--muted); }
.num-accent { color: var(--accent); }

/* PLACEHOLDER highlight (purple dashed outline) — remove class="ph" once you've added real text */
.ph {
  background: rgba(var(--accent-rgb), 0.09);
  outline: 1px dashed rgba(var(--accent-rgb), 0.55);
  outline-offset: 2px;
  border-radius: 2px;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
.is-ph { text-decoration: underline dashed rgba(var(--accent-rgb), 0.7); text-underline-offset: 5px; }

/* ---------- Atmosphere: film grain, progress, curtain, cursor ---------- */
.grain {
  position: fixed; inset: -20%; z-index: 150; pointer-events: none; opacity: 0.065; will-change: transform;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1.1s steps(6) infinite;
}
@keyframes grain {
  0%, 100% { transform: translate(0, 0); }
  20% { transform: translate(-4%, 3%); }
  40% { transform: translate(3%, -4%); }
  60% { transform: translate(-2%, 5%); }
  80% { transform: translate(4%, 2%); }
}

.progress {
  position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 70;
  background: linear-gradient(90deg, var(--accent-deep), var(--accent)); transform: scaleX(0); transform-origin: left;
}

.transition-curtain {
  position: fixed; inset: 0; z-index: 250; pointer-events: none;
  display: grid; place-items: center; overflow: hidden;
  background:
    radial-gradient(70% 60% at 20% 15%, rgba(255, 255, 255, 0.22), transparent 70%),
    radial-gradient(75% 65% at 85% 88%, rgba(11, 10, 16, 0.4), transparent 70%),
    linear-gradient(135deg, var(--accent), var(--accent-deep));
  color: var(--accent-ink);
  transform: translateY(100%); visibility: hidden;
  transition: transform var(--t-slow) var(--ease-io), visibility 0s linear var(--t-slow);
}
/* Film grain + a band of light that crosses the screen, so the purple isn't flat */
.transition-curtain::before {
  content: ""; position: absolute; inset: 0; opacity: 0.35; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.transition-curtain::after {
  content: ""; position: absolute; inset: -20% -60%; transform: translateX(-70%);
  background: linear-gradient(105deg, transparent 42%, rgba(255, 255, 255, 0.3) 50%, transparent 58%);
}
.is-leaving .transition-curtain::after, .is-arriving .transition-curtain::after, .curtain-exit .transition-curtain::after { animation: curtainSweep var(--t-reveal) var(--ease-io) both; }
@keyframes curtainSweep { to { transform: translateX(70%); } }
.transition-curtain span { position: relative; z-index: 1; font-family: var(--f-display); font-weight: 800; font-size: clamp(2.6rem, 8vw, 6.5rem); line-height: 1; letter-spacing: -0.04em; }
/* A ring around the logo, echoing the globe */
.transition-curtain span::before {
  content: ""; position: absolute; inset: -0.5em -0.95em; border: 2px solid rgba(255, 255, 255, 0.55); border-radius: 50%; rotate: -14deg;
}
.is-leaving .transition-curtain span, .is-arriving .transition-curtain span { animation: curtainLogo var(--t-reveal) var(--ease) 0.15s both; }
@keyframes curtainLogo { from { opacity: 0; transform: scale(0.86); } to { opacity: 1; transform: none; } }
.is-leaving .transition-curtain { transform: translateY(0); visibility: visible; transition: transform var(--t-slow) var(--ease-io); }
.is-arriving .transition-curtain { transform: translateY(0); visibility: visible; transition: none; }
.curtain-exit .transition-curtain { visibility: visible; animation: curtainOut var(--t-reveal) var(--ease-io) forwards; }
@keyframes curtainOut { from { transform: translateY(0); } to { transform: translateY(-100%); } }

.cursor { position: fixed; top: 0; left: 0; z-index: 200; pointer-events: none; display: none; transition: opacity var(--t-base); }
.has-cursor .cursor { display: block; }
.cursor.is-hidden { opacity: 0; }
/* The dot replaces the system pointer. The system pointer stays in text fields, and while the
   image/video viewer is open (it sits above the page, where the dot can't reach) */
:root.has-cursor:not(:has(dialog[open])) * { cursor: none !important; }
:root.has-cursor:not(:has(dialog[open])) :is(input, textarea, select, [contenteditable]) { cursor: text !important; }
:root.has-cursor:has(dialog[open]) .cursor { display: none; }
/* Cursor = small purple dot that grows into a circle with a label
   ("View", "Play"...) over projects. Desktop only. */
.cursor__dot {
  position: absolute; width: 10px; height: 10px; border-radius: 50%;
  background: var(--accent); translate: -50% -50%;
  display: grid; place-items: center;
  transition: width var(--t-slow) var(--ease), height var(--t-slow) var(--ease);
}
.cursor.is-active .cursor__dot { width: 88px; height: 88px; }
.cursor__label {
  font-family: var(--f-label); font-weight: 500; font-size: 0.68rem; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--accent-ink); opacity: 0; transition: opacity var(--t-fast);
}
.cursor.is-active .cursor__label { opacity: 1; transition-delay: 0.15s; }

.float-preview {
  position: fixed; top: 0; left: 0; z-index: 150; pointer-events: none;
  width: clamp(300px, 30vw, 500px); display: none;
}
.has-cursor .float-preview { display: block; }
.float-preview__inner {
  position: relative; overflow: hidden; background: var(--bg-2);
  opacity: 0; transform: scale(0.92); transition: opacity var(--t-base), transform var(--t-slow) var(--ease);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
}
.float-preview__inner:not(:has(img)) { aspect-ratio: 3 / 2; }   /* placeholder art needs a set shape */
.float-preview.is-visible .float-preview__inner { opacity: 1; transform: none; }
.float-preview img { display: block; width: 100%; height: auto; }   /* the whole picture, never cropped */

/* ---------- Preloader ---------- */
.preloader {
  position: fixed; inset: 0; z-index: 300; background: var(--bg);
  display: none; align-items: center; justify-content: center;
  padding: var(--gutter);
  transition: background-color var(--t-reveal) var(--ease-io);
}
.js .preloader { display: flex; animation: preFail 0s 10s forwards; }   /* only if the scripts never arrive */
.skip-pre .preloader { display: none !important; }
.preloader.is-done { background-color: transparent; pointer-events: none; }
@keyframes preFail { to { visibility: hidden; } }

/* Wireframe globe, drawn by initGlobe() in main.js */
.globe { display: block; width: 100%; aspect-ratio: 5 / 4; }

/* Intro: just the globe, in the exact middle of the screen (phones included) */
.intro { position: relative; z-index: 1; display: flex; justify-content: center; align-items: center; width: 100%; }
.intro__globe {
  width: min(70vmin, 640px); transform-origin: 0 0;
  opacity: 0; animation: introFade var(--t-reveal) var(--ease) 0.1s forwards;
  transition: transform var(--t-reveal) var(--ease-io);
}
.preloader.is-done .intro__loading { opacity: 0; animation: none; }
@keyframes introFade { to { opacity: 1; } }

/* Loading bar: only fades in if the page takes longer than the normal intro */
.intro__loading {
  position: absolute; z-index: 1; left: 50%; bottom: var(--gutter); translate: -50% 0; display: flex; flex-direction: column; align-items: center; gap: 0.7rem;
  color: var(--muted); opacity: 0; animation: introFade 0.4s ease 2.3s forwards; transition: opacity var(--t-base);
}
.intro__loading-bar { position: relative; display: block; width: 140px; height: 2px; overflow: hidden; background: var(--line-2); }
.intro__loading-bar i { position: absolute; inset: 0 auto 0 0; width: 40%; background: var(--accent); animation: loadingSweep 1.2s ease-in-out infinite; }
@keyframes loadingSweep { from { transform: translateX(-100%); } to { transform: translateX(250%); } }

/* Titles (intro + hero): one main line, a smaller line under it */
.roles__main, .roles__sub { display: block; }
.roles__main { white-space: nowrap; }
.roles__sub em { font-style: normal; color: var(--accent); white-space: nowrap; }
.roles__sub i { font-style: normal; color: var(--muted); }

@media (max-width: 960px) {
  .intro__globe { width: min(84vmin, 640px); }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.6em;
  padding: 0.95em 1.4em; border: 1px solid var(--line-2); border-radius: 999px;
  font-family: var(--f-label); font-weight: 500; font-size: 0.74rem; letter-spacing: 0.08em; text-transform: uppercase;
  line-height: 1; white-space: nowrap;
  transition: background-color var(--t-base) var(--ease), color var(--t-base) var(--ease), border-color var(--t-base);
}
.btn__icon { display: inline-block; transition: transform var(--t-slow) var(--ease); }
.btn:hover .btn__icon { transform: translateY(2px); }
.btn--accent { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn--accent:hover { background: var(--ink); border-color: var(--ink); }
.btn--ghost:hover { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.btn--cv { padding: 0.8em 1.15em; border-color: var(--accent); color: var(--accent); }
.btn--cv:hover { background: var(--accent); color: var(--accent-ink); }
.btn--xl { font-size: 0.85rem; padding: 1.35em 2.1em; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 60; height: var(--header-h);
  display: flex; align-items: center; gap: clamp(12px, 2vw, 32px);
  padding: 0 var(--gutter); border-bottom: 1px solid transparent;
  transition: transform var(--t-slow) var(--ease), background-color var(--t-slow), border-color var(--t-slow);
}
.site-header.is-scrolled {
  background: rgba(var(--bg-rgb), 0.74);
  -webkit-backdrop-filter: blur(14px) saturate(1.2); backdrop-filter: blur(14px) saturate(1.2);
  border-bottom-color: var(--line);
}
.site-header.is-hidden { transform: translateY(-100%); }
.site-header:focus-within, .menu-open .site-header { transform: none; }
/* Beirut clock: a small pill at the top-right of the header on computers, and at the bottom of the phone menu */
.local-clock {
  display: inline-flex; align-items: center; gap: 0.5em; padding: 0.45em 0.85em; border: 1px solid var(--line-2); border-radius: 999px; white-space: nowrap;
  color: var(--ink-2);
}
.local-clock::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.local-clock time { color: var(--ink); direction: ltr; font-variant-numeric: tabular-nums; }
.footer-bar { align-items: center; }
.mobile-menu > .local-clock { align-self: flex-start; }
@media (max-width: 480px) {
  .footer-bar { flex-direction: column; align-items: center; }   /* stacked, so the floating buttons don't cover it */
}
.brand { display: flex; align-items: center; gap: 0.85rem; min-height: 44px; margin-inline-end: auto; }
.brand__mark { font-family: var(--f-display); font-weight: 800; font-size: 1.35rem; line-height: 1; letter-spacing: -0.04em; }
.brand__mark sup { color: var(--accent); }
.brand__mark sup, .transition-curtain sup, .ai-avatar sup { font-size: 0.55em; line-height: 0; vertical-align: super; margin-inline-start: 0.04em; }
.brand__name { font-family: var(--f-label); font-weight: 500; font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-2); }
.rec__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); animation: blink 1.2s steps(2, start) infinite; }
@keyframes blink { to { visibility: hidden; } }
.nav__list { display: flex; gap: clamp(12px, 1.8vw, 28px); }
.nav__list a {
  position: relative; padding: 0.4em 0;
  font-family: var(--f-label); font-weight: 500; font-size: 0.74rem; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ink-2); transition: color var(--t-base);
}
.nav__list a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--accent);
  transform: scaleX(0); transform-origin: right; transition: transform var(--t-slow) var(--ease);
}
.nav__list a:hover, .nav__list a.is-active { color: var(--ink); }
.nav__list a:hover::after, .nav__list a.is-active::after { transform: scaleX(1); transform-origin: left; }
.menu-toggle {
  display: none; align-items: center; gap: 0.6rem;
  font-family: var(--f-label); font-weight: 500; font-size: 0.74rem; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 0.6em 0;
}
.menu-toggle__icon { position: relative; width: 22px; height: 10px; }
.menu-toggle__icon::before, .menu-toggle__icon::after {
  content: ""; position: absolute; left: 0; right: 0; height: 1.5px; background: currentColor;
  transition: transform var(--t-slow) var(--ease), top var(--t-slow) var(--ease);
}
.menu-toggle__icon::before { top: 0; }
.menu-toggle__icon::after { top: 8px; }
.menu-toggle[aria-expanded="true"] .menu-toggle__icon::before { top: 4px; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle__icon::after { top: 4px; transform: rotate(-45deg); }

/* Header icon buttons: sound + theme */
.icon-toggle {
  display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; margin: 0 -4px;
  font-family: var(--f-label); font-weight: 500; font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ink-2); transition: color var(--t-base);
}
.icon-toggle:hover { color: var(--ink); }
.icon-toggle[hidden] { display: none; }
.sound-toggle svg, .theme-toggle svg { width: 17px; height: 17px; display: block; }
.sound-toggle .i-sound-off { display: none; }
.sound-off .sound-toggle .i-sound-on { display: none; }
.sound-off .sound-toggle .i-sound-off { display: block; }
.sound-on .sound-toggle { color: var(--accent); }
/* the sound waves pulse gently while sound is playing */
.sound-on.sound-live .sound-toggle .w1 { animation: wavePulse 1.6s ease-in-out infinite; }
.sound-on.sound-live .sound-toggle .w2 { animation: wavePulse 1.6s ease-in-out -0.4s infinite; }
@keyframes wavePulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.25; } }
/* Until the browser lets the sound start: pulse the icon + a small hint under it */
.sound-toggle { position: relative; }
.sound-hint {
  position: absolute; top: 100%; left: 50%; transform: translateX(-50%); margin-top: 2px;
  white-space: nowrap; font-family: var(--f-label); font-weight: 500; font-size: 0.6rem; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--accent); opacity: 0; pointer-events: none; transition: opacity var(--t-slow);
}
.sound-hint__tap { display: none; }
@media (hover: none) { .sound-hint__click { display: none; } .sound-hint__tap { display: inline; } }
.sound-waiting .sound-hint { opacity: 1; }
.sound-waiting .sound-toggle svg { animation: hintPulse 1.8s ease-in-out infinite; }
@keyframes hintPulse { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.18); opacity: 0.55; } }
.theme-toggle .i-sun { display: none; }
:root[data-theme="light"] .theme-toggle .i-sun { display: block; }
:root[data-theme="light"] .theme-toggle .i-moon { display: none; }

/* Mobile menu */
.mobile-menu {
  position: fixed; inset: 0; z-index: 55; background: var(--bg);
  display: flex; flex-direction: column; justify-content: flex-end; gap: 2rem;
  padding: calc(var(--header-h) + 24px) var(--gutter) 32px;
  visibility: hidden; clip-path: inset(0 0 100% 0);
  transition: clip-path var(--t-reveal) var(--ease-io), visibility 0s linear var(--t-reveal);
}
.mobile-menu.is-open { visibility: visible; clip-path: inset(0 0 0 0); transition: clip-path var(--t-reveal) var(--ease-io); }
.mobile-menu__links a {
  display: flex; justify-content: space-between; align-items: baseline;
  font-family: var(--f-display); font-weight: 800; text-transform: uppercase; letter-spacing: -0.04em;
  font-size: clamp(2.4rem, 11vw, 4.8rem); line-height: 1; padding: 0.14em 0;
  border-bottom: 1px solid var(--line);
}
.mobile-menu__links a span { font-family: var(--f-label); font-weight: 500; letter-spacing: 0.08em; font-size: 0.75rem; color: var(--accent); }
.mobile-menu__foot { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; justify-content: space-between; }

/* ---------- Generic section ---------- */
.section {
  position: relative;
  padding-block: clamp(56px, 6.5vw, 104px);
  padding-inline: max(var(--gutter), calc((100% - 1680px) / 2));
}
.section-head {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px var(--gutter);
  align-items: end; border-top: 1px solid var(--line); padding-top: 18px;
  margin-bottom: clamp(40px, 6vw, 88px);
}
.section-head__num { grid-column: 1 / span 8; grid-row: 1; align-self: start; color: var(--accent); }   /* the title sits under it, on the left */
.section-head__title {
  grid-column: 1 / span 8; grid-row: 2; font-family: var(--f-display); font-weight: 800; text-transform: uppercase;
  font-size: clamp(2.5rem, 6.6vw, 6.5rem); line-height: 0.9; letter-spacing: -0.045em;
}
.section-head__aside { grid-column: 9 / -1; grid-row: 2; justify-self: end; text-align: end; color: var(--ink-2); }

/* ---------- Hero ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: space-between;
  /* extra space at the bottom keeps the floating WhatsApp / assistant buttons clear of the hero text */
  padding: calc(var(--header-h) + clamp(18px, 3vw, 40px)) var(--gutter) calc(clamp(28px, 4vw, 56px) + 64px);
}

.hero__meta { display: flex; justify-content: space-between; gap: 1rem; color: var(--ink-2); }
/* Name (left) + animated purple orb (right) */
.hero__stage {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: clamp(16px, 4vw, 64px);
  margin: clamp(8px, min(3vw, 2.2svh), 40px) 0;
}
.hero__title {
  display: flex; flex-direction: column; align-items: flex-start; margin: 0;
  font-family: var(--f-display); font-weight: 800; text-transform: uppercase;
  font-size: clamp(3.2rem, min(14.5vw, 18svh), 15rem); line-height: 0.9; letter-spacing: -0.05em;
}
.hero__line { display: block; overflow: hidden; padding-block: 0.07em; margin-block: -0.03em; }
.hero__lead { display: flex; flex-direction: column; gap: clamp(14px, 2vw, 28px); min-width: 0; }
.word { display: inline-block; white-space: nowrap; }

/* Right side of the hero */
.hero__side { width: clamp(150px, 29vw, 420px); opacity: 0; transform: translateY(24px); transition: opacity var(--t-reveal) var(--ease) 0.3s, transform var(--t-reveal) var(--ease) 0.3s; }
.is-loaded .hero__side { opacity: 1; transform: none; }
.hero__side > * { display: none; }
.hero__side[data-side="globe"] { width: clamp(136px, min(38vw, 60svh), 620px); }
.hero__side[data-side="globe"] .side-globe,
.hero__side[data-side="tile"] .side-tile,
.hero__side[data-side="timeline"] .side-tl,
.hero__side[data-side="motto"] .side-motto,
.hero__side[data-side="mosaic"] .side-mosaic { display: block; }
.hero__side[data-side="motto"] .side-motto { display: flex; }
.hero__side[data-side="mosaic"] .side-mosaic { display: grid; }

/* A — rotating work tile */
.side-tile { position: relative; }
.side-tile__media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--bg-2); }
.side-tile__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.08); transition: opacity var(--t-reveal) var(--ease), transform 4s linear; }
.side-tile__media img.is-on { opacity: 1; transform: scale(1); }
.side-tile__bar { display: flex; justify-content: space-between; gap: 0.75rem; margin-top: 0.8rem; color: var(--ink-2); }
.side-tile__bar .rec__dot, .side-tl__meta .rec__dot { display: inline-block; margin-inline-end: 0.4em; vertical-align: 0.05em; }
.side-tile:hover .side-tile__media img.is-on { transform: scale(1.04); }

/* B — editing timeline */
.side-tl__viewer { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: var(--bg-2); border: 1px solid var(--line); }
.side-tl__viewer img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity var(--t-fast); }
.side-tl__viewer img.is-on { opacity: 1; }
.side-tl__meta { display: flex; justify-content: space-between; margin: 0.7rem 0; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.side-tl__tracks { position: relative; display: grid; gap: 5px; padding: 8px 0; border-block: 1px solid var(--line); }
.trk { display: grid; grid-template-columns: 26px 1fr; align-items: center; gap: 6px; }
.trk__id { color: var(--muted); font-size: 0.6rem; }
.lane { position: relative; height: 22px; overflow: hidden; background: rgba(var(--ink-rgb), 0.04); }
.lane__in { position: absolute; inset: 0; width: 200%; animation: laneScroll 14s linear infinite; }
.lane__in i { position: absolute; top: 2px; bottom: 2px; left: calc(var(--x) / 2); width: calc(var(--w) / 2); border-radius: 3px; background: rgba(var(--ink-rgb), 0.18); border: 1px solid rgba(var(--ink-rgb), 0.25); }
.lane--main .lane__in i { background: rgba(var(--accent-rgb), 0.55); border-color: var(--accent); }
.lane--audio .lane__in i {
  border-color: rgba(var(--accent-rgb), 0.35); background-color: rgba(var(--accent-rgb), 0.08);
  background-image: repeating-linear-gradient(90deg, rgba(var(--accent-rgb), 0.6) 0 2px, transparent 2px 4px);
  background-size: 100% 70%; background-position: center; background-repeat: no-repeat;
}
@keyframes laneScroll { to { transform: translateX(-50%); } }
.side-tl__head { position: absolute; top: -6px; bottom: -6px; left: calc(26px + 6px + 38%); width: 2px; background: var(--accent); box-shadow: 0 0 10px rgba(var(--accent-rgb), 0.7); }
.side-tl__head::before { content: ""; position: absolute; top: 0; left: -5px; border: 6px solid transparent; border-top: 8px solid var(--accent); }

/* C — CREATE / EDIT / DESIGN / REPEAT */
.side-motto { flex-direction: column; align-items: flex-end; text-align: end; }
.side-motto span { font-family: var(--f-outline);
  font-family: var(--f-display); font-weight: 800; text-transform: uppercase; letter-spacing: -0.04em;
  font-size: clamp(2.2rem, 6.4vw, 6.4rem); line-height: 0.95;
  color: transparent; -webkit-text-stroke: 1.5px rgba(var(--ink-rgb), 0.45);
  animation: mottoFill 4.8s var(--ease) infinite; animation-delay: calc(var(--k) * 1.2s);
}
@keyframes mottoFill {
  0% { color: transparent; -webkit-text-stroke-color: rgba(var(--ink-rgb), 0.45); transform: none; }
  6%, 22% { color: var(--accent); -webkit-text-stroke-color: var(--accent); transform: translateX(-0.12em); }
  30%, 100% { color: transparent; -webkit-text-stroke-color: rgba(var(--ink-rgb), 0.45); transform: none; }
}
[dir="rtl"] .side-motto { align-items: flex-start; }
html[lang="ar"] .side-motto span { -webkit-text-stroke-width: 1px; line-height: 1.25; }

/* D — flipping work mosaic */
.side-mosaic { grid-template-columns: repeat(3, 1fr); gap: 6px; perspective: 900px; }
.side-mosaic .cell { position: relative; aspect-ratio: 1; transform-style: preserve-3d; transition: transform var(--t-reveal) var(--ease); }
.side-mosaic .cell.is-flipped { transform: rotateY(180deg); }
.side-mosaic .cell img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; backface-visibility: hidden; }
.side-mosaic .cell img:last-child { transform: rotateY(180deg); }

/* A — timer line under the work tile */
.side-tile__timer { height: 2px; background: var(--line); margin-top: 0.6rem; overflow: hidden; }
.side-tile__timer i { display: block; height: 100%; background: var(--accent); transform-origin: left; transform: scaleX(0); }
.side-tile__timer i.is-running { animation: tileTimer 2.8s linear forwards; }
[dir="rtl"] .side-tile__timer i { transform-origin: right; }
@keyframes tileTimer { to { transform: scaleX(1); } }
.char {
  display: inline-block; transform: translateY(110%);
  transition: transform var(--t-reveal) var(--ease); transition-delay: calc(var(--i) * 30ms + 60ms);
}
.is-loaded .char { transform: none; }
/* Continuous motion on the name: a slow wave through the letters,
   plus letters lifting and turning purple near the cursor (--lift, set in main.js) */
.char__in {
  display: inline-block;
  translate: 0 calc(var(--lift, 0) * -0.07em);
  color: color-mix(in srgb, var(--ink), var(--accent) calc(var(--lift, 0) * 100%));
  transition: translate var(--t-base) var(--ease), color var(--t-base) var(--ease);
}
/* Section titles get the same effect: letters near the cursor lift and turn purple */
.tw { display: inline-block; white-space: nowrap; }
.tc {
  display: inline-block;
  translate: 0 calc(var(--lift, 0) * -0.07em);
  color: color-mix(in srgb, currentColor, var(--accent) calc(var(--lift, 0) * 100%));
  transition: translate var(--t-base) var(--ease), color var(--t-base) var(--ease);
}
.is-loaded .char__in { animation: nameWave 5.2s ease-in-out infinite; animation-delay: calc(var(--i) * -0.32s); }
@keyframes nameWave {
  0%, 100% { transform: translateY(0) scaleY(1); }
  25% { transform: translateY(-0.035em) scaleY(1.03); }
  50% { transform: translateY(0) scaleY(1); }
  75% { transform: translateY(0.03em) scaleY(0.98); }
}

.hero__bottom { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 28px var(--gutter); align-items: end; }
.hero__roles {
  margin: 0;
  font-family: var(--f-display); font-weight: 400; letter-spacing: -0.035em;
  line-height: 1.05;
}
.hero__roles .roles__main { font-size: clamp(2rem, min(4.6vw, 7.2svh), 4.4rem); }
.hero__roles .roles__sub { font-size: clamp(1.1rem, min(2.3vw, 3.6svh), 2.2rem); margin-top: 0.35em; }
.hero__aside { grid-column: 1 / span 7; display: flex; flex-direction: column; gap: clamp(0.9rem, 2.2svh, 1.3rem); }
/* Wide screens: the floating buttons sit to the right of the hero text, so the extra bottom space isn't needed */
@media (min-width: 1101px) { .hero { padding-bottom: clamp(24px, 4svh, 56px); } }
/* Wide screens: name and intro stacked on the left, the globe filling the full height on the right */
@media (min-width: 1101px) {
  /* the text sits at the bottom of the screen; the globe is centred on the text block beside it */
  .hero { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: auto auto; align-content: end; column-gap: clamp(24px, 4vw, 64px); }
  .hero__stage { display: contents; }
  .hero__lead { grid-column: 1; grid-row: 1; margin-bottom: clamp(20px, 3svh, 40px); }
  /* nudged outwards so the tip of the ring (not the empty edge of its canvas) lines up with the page margin */
  .hero__side { grid-column: 2; grid-row: 1 / span 2; align-self: center; translate: 7% 0; }
  [dir="rtl"] .hero__side { translate: -7% 0; }
  .hero__side[data-side="globe"] { width: clamp(360px, min(46vw, 82svh), 820px); }
  .hero__bottom { grid-column: 1; grid-row: 2; }
  .hero__aside { grid-column: 1 / span 10; }
}
/* Tall portrait screens (phones, tablets): the hero hugs its content instead of filling the screen,
   so there's no empty band in the middle and the next section peeks in as a cue to scroll */
@media (max-width: 1100px) and (orientation: portrait) { .hero { min-height: 0; } .hero__bottom { margin-top: clamp(8px, 2svh, 32px); } }
.hero__intro { color: var(--ink-2); max-width: 44ch; }
/* keep hero text readable over the animated lines */
.hero__intro, .hero__roles, .hero__meta { text-shadow: 0 0 10px var(--bg), 0 0 3px var(--bg); }
.hero__aside .btn--ghost { background: rgba(var(--bg-rgb), 0.85); }
.hero__aside .btn--ghost:hover { background: var(--ink); }
.tags { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; }
.tags li {
  font-family: var(--f-label); font-weight: 500; font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 0.5em 0.85em; color: var(--ink-2);   /* plain text, no frame: these aren't buttons */
}
.tags .tags__label { border: 0; padding-inline-start: 0; color: var(--muted); }
.tags .tags__label::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); margin-inline-end: 0.6em; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 0.75rem; }
/* Outlined pills, like the section links under each chapter title; purple on hover */
.hero__aside .hero__cta .btn { background: transparent; border-color: var(--line-2); color: var(--ink); }
.hero__aside .hero__cta .btn:hover, .hero__aside .hero__cta .btn:focus-visible { background: var(--accent); border-color: var(--accent); color: #fff; }

/* Text stays visible from the first paint and only slides into place. */
.boot [data-hero-fade] { transform: translateY(22px); transition: transform var(--t-reveal) var(--ease); transition-delay: var(--d, 0.2s); }
.boot.is-loaded [data-hero-fade] { transform: none; }

/* ---------- Marquee ---------- */
.marquee { display: flex; overflow: hidden; white-space: nowrap; border-block: 1px solid var(--line); padding: clamp(14px, 2vw, 24px) 0; }
.marquee__track { display: flex; flex-shrink: 0; animation: marquee 40s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__track span {
  display: inline-flex; align-items: center; gap: 0.7em; padding-inline-end: 0.7em;
  font-family: var(--f-display); font-weight: 800; text-transform: uppercase; letter-spacing: -0.04em;
  font-size: clamp(1.6rem, 3.6vw, 3.3rem); line-height: 1;
}
.marquee__track span::after { content: ""; width: 0.6em; height: 3px; margin-inline-start: 0.3em; background: var(--accent); border-radius: 2px; }
@keyframes marquee { to { transform: translateX(-100%); } }

/* buttons grow slightly and smoothly on hover (desktop) */
.btn, .icon-toggle { transition-property: background-color, color, border-color, transform; transition-duration: var(--t-base); transition-timing-function: var(--ease); }
@media (hover: hover) and (pointer: fine) {
  .btn:hover { transform: scale(1.06); }
  .icon-toggle:hover { transform: scale(1.15); }
}

/* Placeholder artwork (shown until real images are added) */
.ph-art {
  position: absolute; inset: 0; overflow: hidden;
  background: radial-gradient(120% 80% at 100% 100%, rgba(var(--accent-rgb), 0.1), transparent 60%), var(--bg-2);
}
.ph-art__grid {
  position: absolute; inset: 0; opacity: 0.7;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 12.5% 16.666%;
}
.ph-art__shape { position: absolute; transition: transform var(--t-reveal) var(--ease); }
.ph-art--v0 .ph-art__shape { width: 62%; aspect-ratio: 1; border-radius: 50%; background: var(--accent); right: -14%; bottom: -26%; }
.ph-art--v1 .ph-art__shape { top: 16%; bottom: 16%; right: 16%; width: 22%; background: repeating-linear-gradient(90deg, var(--accent) 0 7px, transparent 7px 15px); }
.ph-art--v2 .ph-art__shape { width: 36%; aspect-ratio: 1; background: var(--accent); right: 12%; top: 16%; rotate: 12deg; }
.ph-art--v3 .ph-art__shape { width: 78%; aspect-ratio: 2 / 1; left: 11%; bottom: 0; border: 1px solid var(--accent); border-bottom: 0; border-radius: 999px 999px 0 0; }
a:hover .ph-art__shape { transform: translate(-5%, -5%) scale(1.04); }
.ph-art--video .ph-art__shape { opacity: 0.85; }
.ph-art__num {
  position: absolute; top: 0.1em; left: 0.22em;
  font-family: var(--f-outline); font-weight: 300; letter-spacing: -0.05em; line-height: 1;
  font-size: clamp(3.5rem, 8vw, 7.5rem); color: transparent; -webkit-text-stroke: 1px var(--accent);
}
.ph-art__label {
  position: absolute; left: 50%; top: 50%; translate: -50% -50%;
  font-family: var(--f-label); font-weight: 500; font-size: 0.66rem; letter-spacing: 0.08em; text-transform: uppercase; white-space: nowrap;
  color: var(--ink-2); background: rgba(var(--bg-rgb), 0.72); padding: 0.45em 0.75em; border: 1px dashed var(--line-2);
}
.ph-art__tc { position: absolute; top: 7%; right: 6%; font-family: var(--f-label); font-weight: 500; font-size: 0.68rem; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.ph-art__tl { position: absolute; left: 6%; right: 6%; bottom: 9%; height: 13%; display: flex; gap: 3px; }
.ph-art__tl i { flex: 1; border: 1px solid var(--line-2); background: rgba(var(--ink-rgb), 0.04); }
.ph-art__tl i:nth-child(2) { flex: 2.4; background: rgba(var(--accent-rgb), 0.25); border-color: rgba(var(--accent-rgb), 0.6); }
.ph-art__tl i:nth-child(4) { flex: 1.7; }
.ph-art__tl::before { content: ""; position: absolute; left: 38%; top: -35%; bottom: -35%; width: 1px; background: var(--accent); }

/* ---------- Category chapters ---------- */
.chapter__head {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px var(--gutter);
  align-items: start; margin-bottom: clamp(40px, 6vw, 96px);
}
.chapter__num {
  grid-column: 1 / span 5; grid-row: 1;
  font-family: var(--f-outline); font-weight: 800; line-height: 0.8; letter-spacing: -0.06em;
  font-size: clamp(8rem, 22vw, 20rem); color: var(--bg); -webkit-text-stroke: 3px var(--accent); paint-order: stroke fill;   /* outer edge only */
  user-select: none;
}
.chapter__content { grid-column: 7 / -1; grid-row: 1; padding-top: clamp(8px, 2vw, 24px); }
.chapter--flip .chapter__num { grid-column: 8 / -1; text-align: end; }
.chapter--flip .chapter__content { grid-column: 1 / span 6; }
.chapter__title {
  margin: 0.7rem 0 1.4rem;
  font-family: var(--f-display); font-weight: 800; text-transform: uppercase;
  font-size: clamp(2.5rem, 5.8vw, 5.6rem); line-height: 0.9; letter-spacing: -0.045em;
}
.chapter__desc { color: var(--ink-2); max-width: 54ch; font-size: 1.05rem; }
.disciplines { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.6rem; }
.disciplines li {
  font-family: var(--f-label); font-weight: 500; font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 0.55em 0.9em; border: 1px solid var(--line-2); border-radius: 999px;
}
.chapter__link { display: inline-flex; gap: 0.5em; margin-top: 1.6rem; color: var(--accent); border-bottom: 1px solid currentColor; padding-bottom: 0.15em; }
.chapter__link:hover { color: var(--ink); }
/* Invisible extra tap area, so small text links are easy to hit on phones. */
.brand, .chapter__link, .footer-bar a { position: relative; }
.brand::after, .chapter__link::after, .footer-bar a::after { content: ""; position: absolute; inset: -4px 0; }

.project-list { border-bottom: 1px solid var(--line); }

/* ---------- Video & Motion showcase (Before/After · Short-Form · Long-Form) ---------- */
.vshow { display: grid; gap: clamp(80px, 10vw, 150px); }
.vs-jump ul { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0; padding: 0; list-style: none; }
.vs-jump a {
  display: inline-flex; align-items: baseline; gap: 0.3em; padding: 0.7em 1.15em; border: 1px solid var(--line-2); border-radius: 999px;
  font-family: var(--f-label); font-weight: 500; font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase;
  transition: background-color var(--t-base) var(--ease), color var(--t-base) var(--ease), border-color var(--t-base) var(--ease);
}
.vs-jump sup { color: var(--accent); font-size: 0.8em; }
.vs-jump a:hover, .vs-jump a:focus-visible { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.vs-jump a:hover sup, .vs-jump a:focus-visible sup { color: inherit; }
.vs-block { scroll-margin-top: calc(var(--header-h) + 16px); }

.vs-head {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 14px var(--gutter); align-items: end;
  border-top: 1px solid var(--line); padding-top: 18px; margin-bottom: clamp(32px, 4.5vw, 64px);
}
/* The small number sits above the title on the left; the description and count sit on the right */
.vs-head__idx { grid-column: 1 / span 8; grid-row: 1; align-self: start; color: var(--accent); }
.vs-head__title {
  grid-column: 1 / span 8; grid-row: 2; margin: 0;
  font-family: var(--f-display); font-weight: 800; text-transform: uppercase;
  font-size: clamp(2rem, 4.6vw, 4.4rem); line-height: 0.92; letter-spacing: -0.045em;
}
.vs-head__desc { grid-column: 9 / -1; grid-row: 1 / span 2; align-self: end; margin: 0; color: var(--ink-2); max-width: 40ch; }
.vs-head__count { grid-column: 9 / -1; grid-row: 3; color: var(--muted); }
.vs-cats { grid-column: 1 / span 8; grid-row: 3; display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0.6rem 0 0; padding: 0; list-style: none; }
.vs-cats li {
  font-family: var(--f-label); font-weight: 500; font-size: 0.68rem; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 0.5em 0.85em; border: 1px solid var(--line-2); border-radius: 999px;
}
.vs-cats li span { color: var(--accent); }

/* 1 · Before & After (featured) */
.vs-ba { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 32px var(--gutter); align-items: center; }
.vs-ba__stage { grid-column: 1 / span 7; }
.vs-ba__stage .ba-wrap { padding: 0; }
.vs-ba__stage .ba--side { max-width: 640px; }
.vs-ba__info { grid-column: 9 / -1; }
.vs-badge { display: inline-block; padding: 0.45em 0.85em; border-radius: 999px; background: var(--accent); color: var(--accent-ink); }
.vs-ba__title { margin: 1.1rem 0 0.4rem; font-family: var(--f-display); font-weight: 600; letter-spacing: -0.03em; font-size: clamp(1.5rem, 2.4vw, 2.2rem); line-height: 1.05; }
.vs-ba__type { margin: 0; color: var(--muted); }
.vs-ba__legend { margin: 1.6rem 0 0; border-top: 1px solid var(--line); }
.vs-ba__legend div { display: grid; grid-template-columns: 7rem minmax(0, 1fr); gap: 1rem; padding: 0.8rem 0; border-bottom: 1px solid var(--line); }
.vs-ba__legend dt { display: flex; align-items: center; gap: 0.55em; font-family: var(--f-label); font-weight: 600; font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; }
.vs-ba__legend dd { margin: 0; color: var(--ink-2); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); }
.dot--after { background: var(--accent); }
.vs-ba__links { display: flex; flex-wrap: wrap; gap: 0 1.6rem; }
.vs-ba__note { margin: 1.4rem 0 0; color: var(--ink-2); font-size: 0.98rem; max-width: 46ch; }

/* Video cards (short + long) */
.vs-shorts, .vs-longs { list-style: none; margin: 0; padding: 0; display: grid; align-items: start; }
.vs-shorts { grid-template-columns: repeat(var(--n, 6), minmax(0, 1fr)); gap: clamp(28px, 3vw, 44px) clamp(12px, 1.5vw, 24px); }
.vs-shorts .vcard:nth-child(even) { margin-top: clamp(24px, 4vw, 64px); }   /* editorial stagger */
.vs-longs { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(28px, 3vw, 48px) clamp(16px, 2vw, 28px); }   /* equal sizes, in order */
/* odd number of long videos: the first one runs full width */

.vcard__media {
  position: relative; display: block; width: 100%; padding: 0; border: 0; margin: 0; font: inherit; color: #fff; text-align: start;
  aspect-ratio: 9 / 16; overflow: hidden; background: var(--bg-2); cursor: pointer;
  transition: transform var(--t-slow) var(--ease), box-shadow var(--t-slow) var(--ease);
}
.vcard--long .vcard__media { aspect-ratio: 16 / 9; }
/* Soft corners on every video frame */
.vcard__media, .ba--side .ba-side__item, .ba:not(.ba--side) { border-radius: 14px; }
.vcard__media > img, .vcard__media > video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform var(--t-reveal) var(--ease), opacity var(--t-slow); }
.vcard__media:not(.is-empty)::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.55), transparent 38%), linear-gradient(to bottom, rgba(0, 0, 0, 0.25), transparent 22%);
}
.vcard__preview { opacity: 0; }
.vcard.is-previewing .vcard__preview { opacity: 1; }
button.vcard__media:hover, button.vcard__media:focus-visible { z-index: 1; transform: translateY(-4px) scale(1.03); box-shadow: 0 18px 44px rgba(0, 0, 0, 0.45); }
button.vcard__media:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.vcard__ratio { position: absolute; right: 10px; bottom: 10px; z-index: 2; font-size: 0.6rem; color: rgba(255, 255, 255, 0.8); }
.vcard--long .vcard__ratio { right: 16px; bottom: 14px; }
.vcard__media.is-empty .vcard__ratio { color: var(--muted); }
.vcard__play {
  position: absolute; left: 50%; top: 50%; z-index: 2; width: 52px; height: 52px; translate: -50% -50%; border-radius: 50%;
  background: rgba(0, 0, 0, 0.35); border: 1px solid rgba(255, 255, 255, 0.7);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  transition: transform var(--t-slow) var(--ease);
}
.vcard__play::after { content: ""; position: absolute; left: 54%; top: 50%; translate: -50% -50%; border-style: solid; border-width: 8px 0 8px 13px; border-color: transparent transparent transparent #fff; }
button.vcard__media:hover .vcard__play, button.vcard__media:focus-visible .vcard__play { transform: scale(1.12); }
.vcard__soon {
  position: absolute; left: 10px; bottom: 10px; z-index: 2; font-size: 0.58rem; color: var(--ink-2);
  padding: 0.4em 0.6em; outline: 1px dashed rgba(var(--accent-rgb), 0.55); background: rgba(var(--accent-rgb), 0.09);
}
.vcard--long .vcard__soon { left: 16px; bottom: 14px; font-size: 0.66rem; }
.vcard__media.is-empty { cursor: default; }
.vcard__media .ph-art__tc, .vcard__media .ph-art__tl, .vcard__media.is-empty .ph-art__num, .vcard__media.is-empty .ph-art__label { display: none; }
.vcard__media:not(.is-empty) .ph-art__num { display: none; }
.vcard__media:not(.is-empty) .ph-art__label { left: 10px; top: auto; bottom: 10px; translate: none; font-size: 0.58rem; }

.vcard__info { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0.15rem 0.7rem; align-items: baseline; margin-top: 0.85rem; padding-top: 0.75rem; border-top: 1px solid var(--line); }
.vcard__num { font-family: var(--f-label); font-weight: 500; font-size: 0.68rem; color: var(--accent); }
.vcard__title { margin: 0; font-family: var(--f-display); font-weight: 500; letter-spacing: -0.02em; font-size: clamp(0.95rem, 1.05vw, 1.08rem); line-height: 1.2; }
.vcard__meta { grid-column: 2; font-family: var(--f-label); font-weight: 500; font-size: 0.64rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.vcard--long .vcard__info { margin-top: 1rem; padding-top: 1rem; gap: 0.25rem 1rem; }
/* One-line summary on wide cards: at most two lines, so the cards stay light */
.vcard__desc {
  grid-column: 2; margin-top: 0.35rem; color: var(--ink-2); font-size: 0.9rem; line-height: 1.45;
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden;
}

/* Graphic Design categories: square logos · 4:5 social posts · 16:9 TV & program graphics */
.gs-grid {
  list-style: none; margin: 0; padding: 0; --cols: 4; --gap: clamp(12px, 1.5vw, 24px);
  display: flex; flex-wrap: wrap; justify-content: center; row-gap: clamp(28px, 3vw, 44px); column-gap: var(--gap);
}
/* Each card takes one column's width; the cards in a row are centred */
.gs-grid > li { flex: 0 0 calc((100% - (var(--cols) - 1) * var(--gap)) / var(--cols)); min-width: 0; }
.gs-grid--tv { --cols: 3; }
/* Logos and posts get wider gaps between them (the post decks fan out sideways) */
.gs-grid--logo, .gs-grid--social { --gap: clamp(20px, 6vw, 96px); }
.gs-grid.gs-grid--social { --gap: clamp(28px, 11vw, 190px); }
.gs-grid.gs-grid--social > li { flex-basis: clamp(150px, 20vw, 290px); }
.gcard__media {
  width: 100%; padding: 0; border: 0; cursor: pointer; font: inherit; color: inherit;
  position: relative; display: block; overflow: hidden; border-radius: 14px; background: var(--bg-2); aspect-ratio: 1;
  transition: transform var(--t-slow) var(--ease), box-shadow var(--t-slow) var(--ease);
}
.gs-grid--social .gcard__media { aspect-ratio: 4 / 5; }
.gs-grid--tv .gcard__media { aspect-ratio: 16 / 9; }
.gcard__media > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.gcard__media:not(.is-empty):hover, .gcard__media:not(.is-empty):focus-visible { z-index: 1; transform: translateY(-4px) scale(1.03); box-shadow: 0 18px 44px rgba(0, 0, 0, 0.45); }
.gcard__go {
  position: absolute; right: 12px; bottom: 12px; z-index: 2; padding: 0.5em 0.85em; border-radius: 999px; background: var(--accent); color: #fff; font-size: 0.62rem;
  opacity: 0; transform: translateY(6px); transition: opacity var(--t-base) var(--ease), transform var(--t-base) var(--ease);
}
[dir="rtl"] .gcard__go { right: auto; left: 12px; }
.gcard__media:hover .gcard__go, .gcard__media:focus-visible .gcard__go { opacity: 1; transform: none; }
.gcard__media.is-empty { cursor: default; display: grid; place-items: center; outline: 1px dashed rgba(var(--accent-rgb), 0.45); outline-offset: -1px; background: rgba(var(--accent-rgb), 0.05); }
.gcard__soon { color: var(--muted); font-size: 0.66rem; }
/* A client's set of posts: two more posts fan out behind the cover, and spread further on hover */
.gcard--deck { position: relative; }
.gcard--deck .vcard__info { margin-top: clamp(30px, 3.4vw, 48px); }
.gcard .vcard__desc { display: block; -webkit-line-clamp: unset; line-clamp: none; overflow: visible; }   /* logo descriptions show in full */   /* clear room under the fanned cards before the title */
.gcard--deck .gcard__media { z-index: 1; }
.gcard__deck { position: absolute; top: 0; left: 0; right: 0; z-index: 0; aspect-ratio: 4 / 5; pointer-events: none; }
.gs-grid--tv .gcard__deck { aspect-ratio: 16 / 9; }
.gs-grid--logo .gcard__deck { aspect-ratio: 1; }
.gcard__deck img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 14px; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  filter: brightness(0.45) saturate(0.8);   /* dimmed so they sit behind the cover (no bright white edges) */
  transition: transform var(--t-reveal) var(--ease), filter var(--t-reveal) var(--ease);
}
.gcard--deck:hover .gcard__deck img { filter: brightness(0.7) saturate(0.9); }
.gcard__deck img:nth-child(1) { transform: rotate(-4deg) translate(-3%, 1%); }
.gcard__deck img:nth-child(2) { transform: rotate(4deg) translate(3%, 1%); }
.gcard--deck:hover .gcard__deck img:nth-child(1) { transform: rotate(-8deg) translate(-10%, 2%); }
.gcard--deck:hover .gcard__deck img:nth-child(2) { transform: rotate(8deg) translate(10%, 2%); }
@media (max-width: 1100px) { .gs-grid { --cols: 3; } .gs-grid--tv { --cols: 2; } }
@media (max-width: 600px) { .gs-grid { --cols: 2; } .gs-grid--tv { --cols: 1; } }
@media (max-width: 600px) { .gs-grid.gs-grid--social { --gap: 28px; } .gs-grid.gs-grid--social > li { flex-basis: calc((100% - 28px) / 2); } }
.vcard--long .vcard__num { font-size: 0.74rem; }
.vcard--long .vcard__title { font-size: clamp(1.2rem, 1.8vw, 1.6rem); }
.vcard--long .vcard__meta { font-size: 0.7rem; }

/* Video player overlay */
html.vlb-open { overflow: hidden; }
dialog.vlb {
  position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0;
  background: rgba(var(--bg-rgb), 0.94); color: var(--ink);
}
dialog.vlb[open] { display: grid; place-items: center; animation: vlbIn var(--t-base) ease both; }
dialog.vlb::backdrop { background: rgba(0, 0, 0, 0.4); }
.vlb__frame { width: min(92vw, 1280px, calc((100dvh - 150px) * 16 / 9)); animation: vlbFrame var(--t-reveal) var(--ease) both; }
.vlb.is-vertical .vlb__frame { width: min(92vw, calc((100dvh - 150px) * 9 / 16)); }
.vlb__stage { position: relative; aspect-ratio: 16 / 9; background: #000; }
.vlb.is-vertical .vlb__stage { aspect-ratio: 9 / 16; }
.vlb.is-ig .vlb__frame { container-type: inline-size; width: min(92vw, 420px, calc((100dvh - 330px) * 9 / 16)); }
.vlb.is-ig .vlb__stage { aspect-ratio: auto; height: calc(100cqw * 16 / 9 + 200px); background: #fff; }
.vlb__stage iframe, .vlb__stage video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.vlb__cap { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem 1rem; margin: 0.9rem 0 0; }
.vlb.is-long .vlb__cap { display: none; }   /* long-form videos: just the video */
.vlb__title { flex: 1 1 0; min-width: 0; font-family: var(--f-display); font-weight: 500; letter-spacing: -0.02em; font-size: 1.05rem; }   /* long titles wrap in their own space */
/* A title in the other language (e.g. an Arabic video title on the English page) keeps its own punctuation order, aligned with the rest */
.vcard__title, .vlb__title { unicode-bidi: plaintext; }
html:not([lang="ar"]) .vcard__title, html:not([lang="ar"]) .vlb__title { text-align: left; }
html[lang="ar"] .vcard__title, html[lang="ar"] .vlb__title { text-align: right; }
/* "Instagram ↗" / "YouTube ↗": a small pill that always sits at the end of the title's line */
.vlb__ext {
  flex: none; margin-inline-start: auto; display: inline-flex; align-items: center; gap: 0.45em; padding: 0.45em 0.85em; border-radius: 999px;
  border: 1px solid var(--line-2); color: var(--ink-2); font-size: 0.66rem; letter-spacing: 0.08em; text-transform: uppercase; white-space: nowrap;
  transition: border-color var(--t-base), color var(--t-base), background-color var(--t-base);
}
.vlb__ext svg { width: 14px; height: 14px; }
.vlb__ext span:last-child { color: var(--accent); transition: color var(--t-base); }
.vlb__ext:hover, .vlb__ext:focus-visible { border-color: var(--accent); background: var(--accent); color: #fff; }
.vlb__ext:hover span:last-child, .vlb__ext:focus-visible span:last-child { color: #fff; }
[dir="rtl"] .vlb__ext span:last-child { display: inline-block; transform: scaleX(-1); }
html[lang="ar"] .vlb__ext { letter-spacing: 0; text-transform: none; font-size: 0.78rem; }
.vlb__desc { flex-basis: 100%; color: var(--ink-2); font-size: 0.92rem; }
.vlb__desc:empty { display: none; }
/* Images (logos) in the viewer: a square on white, shown whole */
.vlb.is-image .vlb__frame { width: min(92vw, calc(100dvh - 190px), 760px); }
.vlb.is-image .vlb__stage { aspect-ratio: 1; background: #fff; border-radius: 14px; overflow: hidden; }
.vlb__stage img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
/* A set of posts: 4:5 frame with arrows, a counter and thumbnails */
.vlb__view { position: relative; }
.vlb [hidden] { display: none !important; }   /* hidden controls (arrows, thumbnails…) never show over a video */
.vlb.is-gallery .vlb__frame { width: min(92vw, var(--gw, 600px)); }
/* the image takes its own shape and fits the screen height; the text and thumbnails keep the frame's width */
.vlb.is-gallery .vlb__stage { aspect-ratio: auto; width: 100%; height: clamp(240px, calc(100dvh - 380px), 660px); background: transparent; border-radius: 0; }
@media (max-width: 600px) { .vlb.is-gallery .vlb__stage { height: clamp(220px, calc(100dvh - 430px), 520px); } }   /* room for the thumbnails on phones */
.vlb.is-gallery .vlb__stage img { object-fit: cover; }   /* posts fill the frame edge to edge (no white sliver) */
/* Swiping: the images sit on a track that follows the finger */
.vlb__track { position: absolute; inset: 0; will-change: transform; }
.vlb__slide { position: absolute; inset: 0; }
/* In a gallery each image keeps its own shape, centred in the fixed frame with rounded corners */
.vlb.is-gallery .vlb__slide img { inset: 0; margin: auto; width: auto; height: auto; max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 14px; }
.vlb.is-gallery .vlb__stage { touch-action: pan-y pinch-zoom; cursor: grab; user-select: none; -webkit-user-select: none; }
.vlb.is-dragging .vlb__stage { cursor: grabbing; }
.vlb__slide { -webkit-user-drag: none; }
.vlb__track.is-nudge { animation: vlbNudge 1.1s var(--ease); }   /* a slow teaching hint, deliberately longer */
@keyframes vlbNudge { 0%, 100% { transform: none; } 35% { transform: translateX(-46px); } 60% { transform: translateX(6px); } }
[dir="rtl"] .vlb__track.is-nudge { animation-name: vlbNudgeRtl; }
@keyframes vlbNudgeRtl { 0%, 100% { transform: none; } 35% { transform: translateX(46px); } 60% { transform: translateX(-6px); } }
/* "Swipe" hint: a finger sliding across, shown on touch screens for 2 seconds when a carousel opens
   (or until the first swipe, if sooner). Kept faint so it doesn't hide the image */
.vlb__hint {
  position: absolute; left: 50%; bottom: 14px; z-index: 3; translate: -50% 0; display: none; align-items: center; gap: 0.55rem;
  padding: 0.5rem 0.95rem 0.5rem 0.75rem; border-radius: 999px; pointer-events: none; opacity: 0.75;
  background: rgba(11, 10, 16, 0.38); color: #fff; -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
  font-family: var(--f-label); font-weight: 600; font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase;
  transition: opacity var(--t-slow), translate var(--t-slow) var(--ease);
}
.vlb__hint-finger { position: relative; width: 30px; height: 12px; }
.vlb__hint-finger::before { content: ""; position: absolute; top: 50%; left: 2px; right: 2px; height: 1px; translate: 0 -50%; background: rgba(255, 255, 255, 0.35); }
.vlb__hint-finger::after {
  content: ""; position: absolute; top: 50%; left: 0; width: 12px; height: 12px; border-radius: 50%; translate: 0 -50%;
  background: var(--accent); box-shadow: 0 0 0 4px rgba(var(--accent-rgb), 0.3); animation: vlbFinger 1.8s ease-in-out infinite;
}
@keyframes vlbFinger { 0% { left: 18px; opacity: 0; } 15% { opacity: 1; } 70% { left: 0; opacity: 1; } 100% { left: 0; opacity: 0; } }
[dir="rtl"] .vlb__hint-finger::after { animation-name: vlbFingerRtl; }
@keyframes vlbFingerRtl { 0% { left: 0; opacity: 0; } 15% { opacity: 1; } 70% { left: 18px; opacity: 1; } 100% { left: 18px; opacity: 0; } }
.vlb.is-dragging .vlb__hint, .vlb.has-swiped .vlb__hint { opacity: 0; translate: -50% 8px; }
/* Phones and tablets: swipe instead of arrows */
@media (hover: none) and (pointer: coarse), (max-width: 700px) {
  .vlb__nav { display: none !important; }
  .vlb__hint:not([hidden]) { display: inline-flex; }
}
@media (prefers-reduced-motion: reduce) { .vlb__hint-finger::after { animation: none; left: 9px; } }
.vlb__nav {
  position: absolute; top: 50%; z-index: 2; translate: 0 -50%; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(11, 10, 16, 0.6); color: #fff; border: 1px solid rgba(255, 255, 255, 0.25); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  transition: background-color var(--t-base), border-color var(--t-base);
}
.vlb__nav:hover, .vlb__nav:focus-visible { background: var(--accent); border-color: var(--accent); }
.vlb__nav--prev { left: 10px; }
.vlb__nav--next { right: 10px; }
[dir="rtl"] .vlb__nav--prev { left: auto; right: 10px; }
[dir="rtl"] .vlb__nav--next { right: auto; left: 10px; }
[dir="rtl"] .vlb__nav span { display: inline-block; transform: scaleX(-1); }
/* What the current image is, e.g. "Reel · YouTube thumbnail · 16:9" */
.vlb__tag { flex-basis: 100%; color: var(--accent); font-size: 0.68rem; letter-spacing: 0.06em; text-transform: uppercase; }
.vlb__count { margin-inline-start: auto; color: var(--accent); font-size: 0.72rem; direction: ltr; unicode-bidi: isolate; }
/* Section overview: one card per section (e.g. Posts, Text Box, Reports), each opening its own carousel */
.vlb.is-overview .vlb__view, .vlb.is-overview .vlb__thumbs { display: none; }
.vlb__overview { --sec-h: clamp(170px, 30vh, 250px); display: flex; flex-wrap: wrap; justify-content: center; gap: clamp(20px, 2.6vw, 34px) clamp(16px, 2.4vw, 32px); }
.vlb__overview[hidden] { display: none; }
.vlb__sec { width: min(100%, calc(var(--sec-h) * var(--ar, 0.8))); display: flex; flex-direction: column; gap: 0.75rem; padding: 0; text-align: start; color: var(--ink); animation: vlbSecIn var(--t-slow) var(--ease) both; }
.vlb__sec:nth-child(2) { animation-delay: 0.05s; } .vlb__sec:nth-child(3) { animation-delay: 0.1s; } .vlb__sec:nth-child(4) { animation-delay: 0.15s; } .vlb__sec:nth-child(5) { animation-delay: 0.2s; }
@keyframes vlbSecIn { from { opacity: 0; transform: translateY(10px); } }
.vlb__sec-media { position: relative; display: block; aspect-ratio: var(--ar, 4 / 5); border-radius: 12px; overflow: hidden; background: var(--bg-2); outline: 1px solid var(--line-2); outline-offset: -1px; transition: outline-color var(--t-base); }
.vlb__sec-media img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--t-reveal) var(--ease); }
.vlb__sec-name { font-family: var(--f-display); font-weight: 700; font-size: 1rem; letter-spacing: -0.01em; line-height: 1.2; }
/* "View" sits in the card's top corner, over the image */
.vlb__sec-go {
  position: absolute; top: 10px; left: 10px; z-index: 1; padding: 0.45em 0.8em; border-radius: 999px; font-size: 0.62rem; letter-spacing: 0.08em; text-transform: uppercase;
  background: rgba(11, 10, 16, 0.62); color: #fff; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); transition: background-color var(--t-base);
}
[dir="rtl"] .vlb__sec-go { left: auto; right: 10px; }
.vlb__sec:hover .vlb__sec-go, .vlb__sec:focus-visible .vlb__sec-go { background: var(--accent); }
.vlb__sec:hover .vlb__sec-media, .vlb__sec:focus-visible .vlb__sec-media { outline-color: var(--accent); }
.vlb__sec:hover .vlb__sec-media img, .vlb__sec:focus-visible .vlb__sec-media img { transform: scale(1.05); }
html[lang="ar"] .vlb__sec-go { letter-spacing: 0; text-transform: none; font-size: 0.78rem; }
.vlb.is-overview .vlb__cap { margin-top: clamp(1.6rem, 3vw, 2.4rem); justify-content: center; text-align: center; }
.vlb.is-overview .vlb__title { display: none; }   /* the overview shows only the description */
.vlb.is-overview .vlb__desc { max-width: 62ch; margin-inline: auto; }
/* Back to the overview, above a section's carousel */
/* "All sections": top-left corner, level with the close button in the top-right (sides swap in Arabic) */
.vlb__back { position: fixed; top: 18px; left: 18px; z-index: 2; height: 48px; display: inline-flex; align-items: center; gap: 0.5em; margin: 0; padding: 0 1.1em; border-radius: 999px; border: 1px solid var(--line-2); background: var(--bg-2); color: var(--ink-2); font-size: 0.68rem; letter-spacing: 0.08em; text-transform: uppercase; transition: border-color var(--t-base), color var(--t-base); }
.vlb__back[hidden] { display: none; }
.vlb__back:hover, .vlb__back:focus-visible { border-color: var(--accent); color: var(--ink); }
[dir="rtl"] .vlb__back span { display: inline-block; transform: scaleX(-1); }
html[lang="ar"] .vlb__back { letter-spacing: 0; text-transform: none; font-size: 0.8rem; }
@media (max-width: 600px) { .vlb__overview { --sec-h: 150px; } }
@media (prefers-reduced-motion: reduce) { .vlb__sec { animation: none; } }
/* The text under a gallery image stays quieter so the work leads */
/* Inside an image carousel: just the category · size on the left and the counter on the right */
.vlb.is-gallery:not(.is-overview) .vlb__title, .vlb.is-gallery:not(.is-overview) .vlb__desc { display: none; }
.vlb.is-gallery:not(.is-overview) .vlb__tag { order: -1; flex: 1 1 auto; flex-basis: auto; font-size: 0.72rem; }
.vlb.is-gallery:not(.is-overview) .vlb__cap { margin-top: 1rem; }
.vlb.is-gallery .vlb__desc { font-size: 0.84rem; line-height: 1.55; }
.vlb__thumbs { display: flex; justify-content: safe center; gap: 8px; margin-top: 0.9rem; padding: 4px; overflow-x: auto; scrollbar-width: none; }
.vlb__thumbs::-webkit-scrollbar { display: none; }
/* When the thumbnails don't all fit (phones), both edges fade to show the row scrolls */
.vlb__thumbs.is-scrollable { justify-content: flex-start; -webkit-mask-image: linear-gradient(to right, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(to right, transparent, #000 10%, #000 90%, transparent); scroll-behavior: smooth; }
.vlb__thumbs button { flex: none; width: 46px; aspect-ratio: 4 / 5; padding: 0; border: 0; border-radius: 6px; overflow: hidden; opacity: 0.45; outline: 2px solid transparent; outline-offset: 2px; transition: opacity var(--t-base), outline-color var(--t-base); }
.vlb__thumbs button:hover, .vlb__thumbs button.is-on { opacity: 1; }
.vlb__thumbs button.is-on { outline-color: var(--accent); }
.vlb__thumbs img { display: block; width: 100%; height: 100%; object-fit: cover; }
.vlb__close {
  position: fixed; top: 18px; right: 18px; width: 48px; height: 48px; border-radius: 50%; padding: 0; cursor: pointer;
  border: 1px solid var(--line-2); background: var(--bg-2); color: var(--ink); transition: transform var(--t-base) var(--ease), background-color var(--t-base), color var(--t-base);
}
.vlb__close span::before, .vlb__close span::after { content: ""; position: absolute; left: 50%; top: 50%; width: 18px; height: 1.5px; background: currentColor; translate: -50% -50%; rotate: 45deg; }
.vlb__close span::after { rotate: -45deg; }
.vlb__close:hover, .vlb__close:focus-visible { transform: scale(1.08) rotate(90deg); background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
@keyframes vlbIn { from { opacity: 0; } }
@keyframes vlbFrame { from { opacity: 0; transform: translateY(18px) scale(0.97); } }

@media (max-width: 1100px) {
  .vs-shorts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .vs-shorts .vcard:nth-child(even) { margin-top: 0; }
  .vs-shorts .vcard:nth-child(3n + 2) { margin-top: clamp(24px, 5vw, 56px); }
  .vs-ba__stage { grid-column: 1 / span 7; }
  .vs-ba__info { grid-column: 8 / -1; }
}
@media (max-width: 900px) {
  .vs-head__idx { grid-column: 1 / -1; }
  .vs-head__title { grid-column: 1 / -1; grid-row: 2; }
  .vs-head__desc { grid-column: 1 / -1; grid-row: 3; }
  .vs-cats { grid-column: 1 / -1; grid-row: 4; margin-top: 0.2rem; }
  .vs-head__count { grid-column: 1 / -1; grid-row: 5; }
  .vs-ba__stage, .vs-ba__info { grid-column: 1 / -1; }
  .vs-ba__stage .ba--side { max-width: 560px; margin-inline: auto; }
}
@media (max-width: 720px) {
  .vs-longs { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .vs-shorts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .vs-shorts .vcard:nth-child(3n + 2) { margin-top: 0; }
  .vs-shorts .vcard:nth-child(even) { margin-top: 36px; }
  .vlb__close { top: 12px; right: 12px; }
  .vlb__back { top: 12px; left: 12px; }
  html[dir="rtl"] .vlb__close { right: auto; left: 12px; }
  html[dir="rtl"] .vlb__back { left: auto; right: 12px; }
}
[dir="rtl"] .vcard__ratio { right: auto; left: 10px; }
[dir="rtl"] .vcard__soon { left: auto; right: 10px; }
[dir="rtl"] .vlb__close { right: auto; left: 18px; }
[dir="rtl"] .vlb__back { left: auto; right: 18px; }

/* ---------- About ---------- */
.about__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 48px var(--gutter); }
.about__portrait { grid-column: 1 / span 4; position: sticky; top: calc(var(--header-h) + 24px); align-self: start; }
.portrait { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: var(--bg-2); clip-path: inset(0); transition: clip-path var(--t-reveal) var(--ease-io); }
.portrait img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 35%; transition: transform var(--t-reveal) var(--ease), filter var(--t-reveal) ease 0.15s; }
/* Portrait entrance: a purple scan line wipes the photo in, black-and-white turns to colour, focus corners lock on */
.reveal-ready .about__portrait:not(.is-seen) .portrait { clip-path: inset(0 0 100% 0); }
.reveal-ready .about__portrait:not(.is-seen) .portrait img { transform: scale(1.18); filter: grayscale(1) contrast(1.15); }
.reveal-ready .about__portrait:not(.is-seen) .portrait__caption { opacity: 0; transform: translateY(12px); }
.portrait::after {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; transform: translateY(-100%); opacity: 0; pointer-events: none;
  background: var(--accent); box-shadow: 0 0 22px 7px rgba(var(--accent-rgb), 0.75);
}
.about__portrait.is-seen .portrait::after { animation: portraitScan var(--t-reveal) var(--ease-io) both; }
@keyframes portraitScan { 0% { top: 0; opacity: 1; } 90% { opacity: 1; } 100% { top: 100%; opacity: 0; } }
.portrait::before {
  --c: linear-gradient(var(--accent), var(--accent));
  content: ""; position: absolute; z-index: 1; inset: 14px; opacity: 0; pointer-events: none;
  background: var(--c) 0 0 / 28px 2px, var(--c) 0 0 / 2px 28px, var(--c) 100% 0 / 28px 2px, var(--c) 100% 0 / 2px 28px,
    var(--c) 0 100% / 28px 2px, var(--c) 0 100% / 2px 28px, var(--c) 100% 100% / 28px 2px, var(--c) 100% 100% / 2px 28px;
  background-repeat: no-repeat;
}
.about__portrait.is-seen .portrait::before { animation: portraitLock var(--t-reveal) var(--ease) 0.6s both; }
@keyframes portraitLock { 0% { opacity: 0; transform: scale(1.08); } 30% { opacity: 1; transform: none; } 75% { opacity: 1; transform: none; } 100% { opacity: 0; transform: none; } }
.portrait:hover img { transform: scale(1.04); }
/* After the entrance (about 2.8s), the photo keeps drifting slowly inside its frame: a gentle zoom and pan, back and forth */
@media (prefers-reduced-motion: no-preference) {
  .about__portrait.is-seen .portrait img { animation: portraitDrift 16s ease-in-out 2.8s infinite alternate; }
}
@keyframes portraitDrift {
  0% { transform: scale(1) translate(0, 0); }
  50% { transform: scale(1.06) translate(-1.2%, -0.8%); }
  100% { transform: scale(1.1) translate(1%, -1.6%); }
}
.portrait .ph-art { background: radial-gradient(80% 60% at 50% 40%, rgba(var(--accent-rgb), 0.14), transparent 70%), var(--bg-2); }
.portrait__caption { display: flex; justify-content: space-between; margin-top: 0.8rem; color: var(--muted); transition: opacity var(--t-reveal) ease 0.55s, transform var(--t-reveal) var(--ease) 0.55s; }
.about__content { grid-column: 6 / -1; }
.about__lead { font-family: var(--f-display); font-weight: 400; letter-spacing: -0.03em; font-size: clamp(1.6rem, 3vw, 2.7rem); line-height: 1.15; margin-bottom: 2rem; }
.about__bio p { color: var(--ink-2); max-width: 64ch; font-size: 1.05rem; }
.about__bio p + p { margin-top: 1em; }
/* Highlights: four big numbers in a 2 × 2 grid (they count up in main.js) */
.stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 var(--gutter); margin: clamp(40px, 5vw, 64px) 0 0; padding: 0; list-style: none; }
.stat { display: flex; flex-direction: column; gap: 0.7rem; padding: clamp(22px, 2.6vw, 34px) 0; border-top: 1px solid var(--line-2); }
.stat:nth-last-child(-n + 2) { border-bottom: 1px solid var(--line-2); }
.stat__num {
  direction: ltr; unicode-bidi: isolate; align-self: flex-start; white-space: nowrap;
  font-family: var(--f-display); font-weight: 800; letter-spacing: -0.05em; line-height: 0.9;
  font-size: clamp(2.4rem, 5.6vw, 5.4rem); font-variant-numeric: tabular-nums;
}
.stat__num [data-count] { display: inline-block; font-variant-numeric: tabular-nums; }
.stat__num em { display: inline-block; color: var(--accent); font-weight: 500; margin-inline-start: 0.04em; }
.stat.is-done .stat__num em { animation: statPlus var(--t-reveal) var(--ease); }
@keyframes statPlus { 0% { transform: scale(1); } 40% { transform: scale(1.3); } 100% { transform: scale(1); } }
.stat__label { font-family: var(--f-label); font-weight: 500; font-size: clamp(0.66rem, 0.9vw, 0.76rem); letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
html[lang="ar"] .stat__label { letter-spacing: 0; text-transform: none; font-size: 0.85rem; }
.about__block { margin-top: clamp(48px, 6vw, 84px); }
.about__block-title { display: flex; justify-content: space-between; color: var(--muted); padding-bottom: 0.9rem; border-bottom: 1px solid var(--line-2); }
.about__block-title > h3 { font: inherit; letter-spacing: inherit; }   /* Experience: heading + a side label that isn't part of it */
.xp li { display: grid; grid-template-columns: minmax(9rem, 12rem) minmax(0, 1fr); gap: 0.5rem 2rem; padding: 1.4rem 0; border-bottom: 1px solid var(--line); }
.xp__years { font-family: var(--f-label); font-weight: 500; font-size: 0.74rem; color: var(--accent); padding-top: 0.35em; }
.xp h4 { font-family: var(--f-display); font-weight: 500; letter-spacing: -0.02em; font-size: 1.3rem; line-height: 1.2; }
.xp__org { color: var(--ink-2); margin-top: 0.25rem; }
.xp__desc { color: var(--muted); margin-top: 0.5rem; font-size: 0.95rem; }
.about__block:has(.skills) { container: skills / inline-size; }
.skills { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem var(--gutter); margin-top: 1.6rem; }
@container skills (max-width: 400px) { .skills { grid-template-columns: minmax(0, 1fr); } }
@container skills (min-width: 800px) { .skills { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.skills h4 { font-family: var(--f-label); font-size: 0.72rem; font-weight: 400; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); }
.chips { display: flex; flex-wrap: wrap; gap: 0.45rem; margin-top: 0.9rem; }
.chips li { padding: 0.5em 0.95em; font-size: 0.92rem; }   /* plain text, no frame: these aren't buttons */
.skills .chips { flex-direction: column; align-items: flex-start; }   /* one skill per line */
.about__cta { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: clamp(40px, 5vw, 64px); }

/* ---------- Contact ---------- */
.contact { min-height: 92vh; display: flex; flex-direction: column; justify-content: center; overflow: hidden; }
.contact__title {
  margin: 1.2rem 0 2rem;
  font-family: var(--f-display); font-weight: 800; text-transform: uppercase;
  font-size: clamp(2.6rem, 8.6vw, 8.6rem); line-height: 0.9; letter-spacing: -0.05em;
}
.contact__lead { color: var(--ink-2); max-width: 58ch; font-size: 1.12rem; }
/* Big email pill, with smaller pills for LinkedIn and the CV below it. All turn purple on hover */
.contact__row { display: flex; flex-direction: column; align-items: flex-start; gap: clamp(18px, 2.4vw, 32px); margin: clamp(32px, 5vw, 56px) 0 clamp(24px, 3vw, 36px); }
.contact__email, .contact__links a, .contact__pill {
  display: inline-flex; align-items: center; max-width: 100%; border: 1px solid var(--line-2); border-radius: 999px; white-space: nowrap;
  transition: background-color var(--t-base) var(--ease), border-color var(--t-base) var(--ease), color var(--t-base) var(--ease);
}
.contact__email:hover, .contact__email:focus-visible, .contact__links a:hover, .contact__links a:focus-visible, .contact__pill:hover, .contact__pill:focus-visible {
  background: var(--accent); border-color: var(--accent); color: var(--accent-ink);
}
.contact__email:hover, .contact__email:focus-visible, .contact__links a:hover, .contact__links a:focus-visible, .contact__pill:hover, .contact__pill:focus-visible { color: #fff; }
.contact__email {
  gap: 0.55em; padding: clamp(16px, 2.2vw, 30px) clamp(22px, 4vw, 56px);
  font-family: var(--f-display); font-weight: 800; letter-spacing: -0.045em; line-height: 1.1; font-size: clamp(1.1rem, 5.4vw, 4.6rem);
}
.contact__email::after { content: "↗"; font-weight: 400; }
.contact__pills, .contact__links { display: flex; flex-wrap: wrap; gap: 12px; margin: 0; }
.contact__links li { display: flex; }
.contact__links a, .contact__pill { gap: 0.8rem; padding: 14px 24px; font-family: var(--f-label); font-weight: 500; font-size: 0.85rem; letter-spacing: 0.08em; text-transform: uppercase; }
.contact__links svg { width: 20px; height: 20px; fill: currentColor; }
/* Small notes for clients */
.site-note { max-width: 62ch; margin: clamp(28px, 3vw, 44px) 0 0; padding-inline-start: 1rem; border-inline-start: 2px solid var(--accent); color: var(--ink-2); font-size: 0.92rem; line-height: 1.6; }
.site-note span { color: var(--accent); font-weight: 500; }

/* ---------- Footer ---------- */
.site-footer { padding: clamp(48px, 7vw, 112px) var(--gutter) 96px; overflow: hidden; }
.footer-name, .footer-name::selection { -webkit-user-select: none; user-select: none; }
.footer-name::selection { background: transparent; color: var(--bg); }   /* selecting the note above never fills the name */ /* bottom space keeps the footer clear of the floating buttons */
.footer-name {
  display: block; text-align: center; white-space: nowrap; user-select: none;
  font-family: var(--f-outline); font-weight: 800; text-transform: uppercase; line-height: 0.82;
  font-size: 13.6vw; letter-spacing: -0.035em;   /* fills the footer from edge to edge */
  /* purple outline, like the title numbers: the letters are filled with the page colour and the
     stroke is drawn underneath, so only the outer edge shows (no lines where a letter's shapes overlap) */
  color: var(--bg); -webkit-text-stroke: 2px var(--accent); paint-order: stroke fill;
  margin-bottom: -0.026em;   /* the letters' base sits exactly on the line below */
}
.footer-bar {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem clamp(24px, 5vw, 64px);   /* centred under the name */
  padding: 22px 0; border-top: 1px solid var(--line); color: var(--muted);
}
.footer-bar a:hover { color: var(--accent); }

/* ---------- Before / after comparison ---------- */
.ba-wrap { padding: 0 var(--gutter) clamp(40px, 5vw, 80px); }
.ba { position: relative; aspect-ratio: 16 / 9; max-width: 1200px; margin-inline: auto; overflow: hidden; background: transparent; user-select: none; touch-action: pan-y; }
.ba--vertical { aspect-ratio: 9 / 16; width: min(420px, 100%); }
.ba video, .ba img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ba__before { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.ba__line { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; translate: -50% 0; background: #fff; box-shadow: 0 0 12px rgba(0, 0, 0, 0.4); pointer-events: none; }
.ba__knob {
  position: absolute; top: 50%; left: 50%; translate: -50% -50%; width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center; background: var(--accent); color: var(--accent-ink);
  font-weight: 700; font-size: 0.95rem; letter-spacing: 0.1em; box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
}
.ba__label {
  position: absolute; top: 14px; padding: 0.4em 0.75em; border-radius: 999px; pointer-events: none;
  background: rgba(0, 0, 0, 0.55); color: #fff; font-family: var(--f-label); font-weight: 600; font-size: 0.66rem; letter-spacing: 0.1em; text-transform: uppercase;
}
.ba__label--before { left: 14px; }
.ba__label--after { right: 14px; background: var(--accent); color: var(--accent-ink); }
.ba__range { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; -webkit-appearance: none; appearance: none; }
.ba__range:focus-visible + .ba__play, .ba:focus-within .ba__line { box-shadow: 0 0 0 3px var(--accent); }
.ba__play {
  position: absolute; z-index: 2; left: 14px; bottom: 14px; width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center; background: rgba(0, 0, 0, 0.55); color: #fff;
}
.ba__play span { width: 0; height: 0; border-style: solid; border-width: 7px 0 7px 12px; border-color: transparent transparent transparent currentColor; margin-left: 3px; }
.ba.is-playing .ba__play span { width: 12px; height: 14px; border: 0; margin: 0; border-left: 4px solid currentColor; border-right: 4px solid currentColor; }
.ba__sound { position: absolute; z-index: 2; right: 14px; bottom: 14px; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: rgba(0, 0, 0, 0.55); color: #fff; }
.ba__sound svg { width: 20px; height: 20px; }
.ba__sound .ba__waves { display: none; }
.ba.has-sound .ba__sound { background: var(--accent); color: var(--accent-ink); }
.ba.has-sound .ba__sound .ba__waves { display: inline; }
.ba.has-sound .ba__sound .ba__x { display: none; }
/* side-by-side layout */
.ba--side { aspect-ratio: auto; width: auto; max-width: 900px; overflow: visible; background: none; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(8px, 1.6vw, 20px); }
.ba--side .ba-side__item { position: relative; margin: 0; aspect-ratio: 16 / 9; overflow: hidden; background: transparent; }   /* no dark rim at the rounded corners in light mode */
/* A playing video is drawn on its own layer, and after a repaint (e.g. switching to light mode) the browser can
   let the video's black backing show along the rounded edges. The mask forces the rounded clip onto that layer too */
.ba--side .ba-side__item, .ba:not(.ba--side) { isolation: isolate; -webkit-mask-image: -webkit-radial-gradient(white, black); mask-image: radial-gradient(white, black); }
.ba video { border-radius: inherit; background: transparent; }
.ba--side.ba--vertical .ba-side__item { aspect-ratio: 9 / 16; }
.ba--side .ba-side__controls { grid-column: 1 / -1; display: flex; justify-content: center; gap: 10px; }
.ba--side .ba__play, .ba--side .ba__sound { position: static; background: var(--bg-2); color: var(--ink); border: 1px solid var(--line-2); }
.ba--side.has-sound .ba__sound { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
@media (max-width: 720px) { .ba--side .ba__label { top: 8px; font-size: 0.58rem; } .ba--side .ba__label--before { left: 8px; } .ba--side .ba__label--after { right: 8px; } }
.ba__caption { text-align: center; margin-top: 0.9rem; color: var(--muted); }
/* YouTube thumbnail + play button (the player loads on click) */
.yt { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; border: 0; display: block; background: #000; cursor: pointer; }
.yt img { width: 100%; height: 100%; object-fit: cover; opacity: 0.9; transition: opacity var(--t-base), transform var(--t-reveal) var(--ease); }
.yt:hover img { opacity: 1; transform: scale(1.03); }
.yt__play { position: absolute; left: 50%; top: 50%; width: 52px; height: 52px; translate: -50% -50%; border-radius: 50%; background: rgba(0, 0, 0, 0.35); border: 1px solid rgba(255, 255, 255, 0.7); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); transition: transform var(--t-slow) var(--ease); }
.yt__play::after { content: ""; position: absolute; left: 54%; top: 50%; translate: -50% -50%; border-style: solid; border-width: 8px 0 8px 13px; border-color: transparent transparent transparent #fff; }
.yt:hover .yt__play { transform: scale(1.1); }
.noscript { padding: calc(var(--header-h) + 40px) var(--gutter); color: var(--ink-2); }

/* ---------- Back-to-top button ---------- */
.to-top {
  position: fixed; z-index: 58;
  right: max(var(--gutter), env(safe-area-inset-right, 0px));
  bottom: calc(var(--fab-bottom) + env(safe-area-inset-bottom, 0px));
  width: 54px; height: 54px; border-radius: 50%;
  display: grid; place-items: center; overflow: hidden;
  background: rgba(var(--bg-rgb), 0.85); border: 1px solid var(--line); color: var(--ink);
  opacity: 0; transform: translateY(18px) scale(0.85); pointer-events: none;
  transition: opacity var(--t-slow) var(--ease), transform var(--t-slow) var(--ease), background-color var(--t-base), color var(--t-base), border-color var(--t-base);
}
.to-top.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.menu-open .to-top { opacity: 0; pointer-events: none; }
.to-top svg { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.to-top__track { fill: none; stroke: var(--line); stroke-width: 1.5; }
.to-top__ring { fill: none; stroke: var(--accent); stroke-width: 2.2; stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: calc(100 - var(--p, 0) * 100); }
.to-top__arrow { position: relative; font-size: 1.15rem; line-height: 1; animation: toTopBob 2.4s ease-in-out infinite; }
@keyframes toTopBob { 0%, 100% { transform: translateY(2px); } 50% { transform: translateY(-3px); } }
.to-top.is-launching .to-top__arrow { animation: toTopLaunch var(--t-reveal) var(--ease-io) forwards; }
@keyframes toTopLaunch { 0% { transform: translateY(0); } 45% { transform: translateY(-160%); opacity: 1; } 46% { opacity: 0; transform: translateY(160%); } 100% { transform: translateY(0); opacity: 1; } }
@media (hover: hover) and (pointer: fine) {
  .to-top:hover { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); transform: scale(1.08); }
}
@media (max-width: 720px) { .to-top { width: 48px; height: 48px; } }
.has-wa .to-top { bottom: calc(var(--fab-bottom) + 68px + env(safe-area-inset-bottom, 0px)); }

/* ---------- Floating WhatsApp button (bottom-right) ---------- */
:root { --fab-bottom: clamp(16px, 2.6vw, 32px); }
.wa-fab {
  position: fixed; z-index: 58; right: max(var(--gutter), env(safe-area-inset-right, 0px));
  bottom: calc(var(--fab-bottom) + env(safe-area-inset-bottom, 0px));
  width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center;
  background: var(--accent); color: #fff;   /* white icon on purple */
  box-shadow: 0 8px 28px rgba(var(--accent-rgb), 0.35);
  opacity: 0; transform: translateY(16px) scale(0.85);
  transition: opacity var(--t-slow) var(--ease) 0.4s, transform var(--t-reveal) var(--ease) 0.4s, box-shadow var(--t-base);
}
.is-loaded .wa-fab { opacity: 1; transform: none; }
.wa-fab svg { width: 28px; height: 28px; }
.wa-fab__tip {
  position: absolute; right: calc(100% + 12px); top: 50%; translate: 0 -50%;
  white-space: nowrap; padding: 0.5em 0.9em; border-radius: 999px;
  background: var(--ink); color: var(--bg);
  font-family: var(--f-label); font-weight: 500; font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase;
  opacity: 0; transform: translateX(6px); pointer-events: none; transition: opacity var(--t-fast), transform var(--t-base) var(--ease);
}
.wa-fab:hover, .wa-fab:focus-visible { transform: scale(1.08); box-shadow: 0 10px 36px rgba(var(--accent-rgb), 0.55); transition-delay: 0s; }
.wa-fab:hover .wa-fab__tip, .wa-fab:focus-visible .wa-fab__tip { opacity: 1; transform: none; }
@media (max-width: 720px) { .wa-fab { width: 52px; height: 52px; } .wa-fab svg { width: 26px; height: 26px; } }
.menu-open .wa-fab, .menu-open .ai-fab { opacity: 0; pointer-events: none; }
.fabs-wait .wa-fab, .fabs-wait .ai-fab { opacity: 0 !important; pointer-events: none; transition-delay: 0s !important; }

/* ---------- AI assistant (launcher bottom-left + chat panel) ---------- */
.ai-fab {
  position: fixed; z-index: 58; left: max(var(--gutter), env(safe-area-inset-left, 0px));
  bottom: calc(var(--fab-bottom) + env(safe-area-inset-bottom, 0px));
  display: inline-flex; align-items: center; gap: 0.6rem; height: 50px; padding: 0 1.15rem 0 0.95rem; border-radius: 999px;
  background: rgba(var(--bg-rgb), 0.88); border: 1px solid var(--line-2); color: var(--ink);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  font-family: var(--f-label); font-weight: 500; font-size: 0.74rem; letter-spacing: 0.06em; text-transform: uppercase;
  opacity: 0; transform: translateY(16px);
  transition: opacity var(--t-slow) var(--ease) 0.45s, transform var(--t-reveal) var(--ease) 0.45s, border-color var(--t-base), background-color var(--t-base);
}
.is-loaded .ai-fab { opacity: 1; transform: none; }
.ai-fab svg { width: 20px; height: 20px; color: var(--accent); }
.ai-fab:hover, .ai-fab[aria-expanded="true"] { border-color: var(--accent); transition-delay: 0s; }
@media (max-width: 720px) {
  .ai-fab { width: 52px; height: 52px; padding: 0; justify-content: center; }
  .ai-fab__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
}

.ai-panel {
  position: fixed; z-index: 140;
  left: max(var(--gutter), env(safe-area-inset-left, 0px));
  bottom: calc(var(--fab-bottom) + 62px + env(safe-area-inset-bottom, 0px));
  width: min(390px, calc(100vw - 2 * var(--gutter)));
  height: min(600px, calc(100vh - var(--fab-bottom) - 62px - 90px));
  display: flex; flex-direction: column; overflow: hidden;
  background: var(--bg); color: var(--ink); border: 1px solid var(--line-2); border-radius: 18px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
  opacity: 0; transform: translateY(14px) scale(0.98); transform-origin: bottom left;
  transition: opacity var(--t-base) var(--ease), transform var(--t-slow) var(--ease);
}
.ai-panel.is-open { opacity: 1; transform: none; }
.ai-panel[hidden] { display: none; }
:root[data-theme="light"] .ai-panel { box-shadow: 0 24px 70px rgba(30, 20, 60, 0.18); }
@media (max-width: 720px) {
  .ai-panel { inset: 0; width: 100%; height: 100%; border: 0; border-radius: 0;
    padding: env(safe-area-inset-top, 0px) env(safe-area-inset-right, 0px) env(safe-area-inset-bottom, 0px) env(safe-area-inset-left, 0px); }
  .ai-open, .ai-open body { overflow: hidden; }
  .ai-open .ai-fab, .ai-open .wa-fab, .ai-open .to-top { opacity: 0; pointer-events: none; }
}

.ai-head { display: flex; align-items: center; gap: 0.75rem; padding: 14px 12px 14px 16px; border-bottom: 1px solid var(--line); }
.ai-avatar {
  flex: none; width: 38px; height: 38px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: var(--accent); color: var(--accent-ink);
  font-family: var(--f-display); font-weight: 800; font-size: 0.72rem; letter-spacing: -0.04em; white-space: nowrap;
}
.ai-head__text { flex: 1; min-width: 0; }
.ai-title { font-family: var(--f-display); font-weight: 600; font-size: 1rem; line-height: 1.2; }
.ai-sub { display: flex; align-items: center; gap: 0.45rem; margin-top: 2px; color: var(--muted); font-size: 0.75rem; }
.ai-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 rgba(var(--accent-rgb), 0.6); animation: aiPulse 2.4s infinite; }
@keyframes aiPulse { 70% { box-shadow: 0 0 0 7px rgba(var(--accent-rgb), 0); } 100% { box-shadow: 0 0 0 0 rgba(var(--accent-rgb), 0); } }
.ai-icon-btn { flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; color: var(--ink-2); transition: background-color var(--t-fast), color var(--t-fast); }
.ai-icon-btn:hover { background: var(--bg-2); color: var(--ink); }
.ai-icon-btn svg { width: 18px; height: 18px; }

.ai-log { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 16px; display: flex; flex-direction: column; gap: 10px; scroll-behavior: smooth; }
.ai-msg { display: flex; flex-direction: column; max-width: 88%; opacity: 0; transform: translateY(8px); transition: opacity var(--t-base) var(--ease), transform var(--t-slow) var(--ease); }
.ai-msg.is-in { opacity: 1; transform: none; }
.ai-msg--user { align-self: flex-end; align-items: flex-end; }
.ai-msg--bot { align-self: flex-start; }
.ai-bubble { padding: 10px 14px; border-radius: 16px; font-size: 0.93rem; line-height: 1.5; overflow-wrap: anywhere; }
.ai-msg--user .ai-bubble { background: var(--accent); color: var(--accent-ink); border-end-end-radius: 4px; }
.ai-msg--bot .ai-bubble { background: var(--bg-2); border: 1px solid var(--line); border-end-start-radius: 4px; }
.ai-bubble p + p, .ai-bubble p + ul, .ai-bubble ul + p { margin-top: 0.55em; }
.ai-bubble ul { list-style: disc; padding-inline-start: 1.15em; }
.ai-bubble li + li { margin-top: 0.2em; }
.ai-bubble a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.ai-msg--user .ai-bubble a { color: inherit; }
.ai-cta {
  display: flex; align-items: center; gap: 0.7rem; margin-top: 8px; padding: 10px 14px; border-radius: 14px;
  background: rgba(var(--accent-rgb), 0.12); border: 1px solid rgba(var(--accent-rgb), 0.55); color: var(--ink);
  transition: background-color var(--t-fast), transform var(--t-base) var(--ease);
}
.ai-cta:hover { background: rgba(var(--accent-rgb), 0.22); transform: translateY(-1px); }
.ai-cta svg { flex: none; width: 24px; height: 24px; color: var(--accent); }
.ai-cta span { display: flex; flex-direction: column; }
.ai-cta strong { font-weight: 600; font-size: 0.9rem; }
.ai-cta small { color: var(--muted); font-size: 0.75rem; }
.ai-typing .ai-bubble { display: flex; gap: 5px; padding: 14px 16px; }
.ai-typing span { width: 7px; height: 7px; border-radius: 50%; background: var(--ink-2); animation: aiDots 1.2s infinite ease-in-out; }
.ai-typing span:nth-child(2) { animation-delay: 0.15s; }
.ai-typing span:nth-child(3) { animation-delay: 0.3s; }
@keyframes aiDots { 0%, 60%, 100% { transform: translateY(0); opacity: 0.4; } 30% { transform: translateY(-5px); opacity: 1; } }

.ai-chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 16px 12px; }
.ai-chips[hidden] { display: none; }
.ai-chip {
  padding: 0.5em 0.85em; border-radius: 999px; border: 1px solid var(--line-2); font-size: 0.8rem; line-height: 1.2; color: var(--ink);
  transition: background-color var(--t-fast), color var(--t-fast), border-color var(--t-fast);
}
.ai-chip:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.ai-form { display: flex; align-items: flex-end; gap: 8px; padding: 12px 16px; border-top: 1px solid var(--line); }
.ai-form textarea {
  flex: 1; min-width: 0; resize: none; max-height: 120px; padding: 10px 12px; border-radius: 12px;
  background: var(--bg-2); color: var(--ink); border: 1px solid var(--line-2); font: inherit; font-size: 0.95rem; line-height: 1.4;
  transition: border-color var(--t-fast);
}
.ai-form textarea::placeholder { color: var(--muted); }
.ai-form textarea:focus { outline: none; border-color: var(--accent); }
.ai-send { flex: none; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: var(--accent-ink); transition: opacity var(--t-fast), transform var(--t-base) var(--ease); }
.ai-send svg { width: 20px; height: 20px; }
[dir="rtl"] .ai-send svg { transform: scaleX(-1); }
.ai-send:hover { transform: scale(1.06); }
.ai-form.is-busy .ai-send { opacity: 0.45; pointer-events: none; }
.ai-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 12px; padding: 0 16px 14px; }
.ai-wa { display: inline-flex; align-items: center; gap: 0.45rem; color: var(--accent); font-family: var(--f-label); font-weight: 500; font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase; }
.ai-wa svg { width: 18px; height: 18px; }
.ai-wa:hover { text-decoration: underline; text-underline-offset: 4px; }
.ai-note { color: var(--muted); font-size: 0.7rem; }

/* ---------- Arabic (right-to-left) ---------- */
html[lang="ar"] {
  --f-display: "Tajawal", "Manrope", sans-serif;
  --f-body: "Tajawal", "Inter", sans-serif;
  --f-label: "Tajawal", "Inter", sans-serif;
  --f-outline: "Tajawal", "Manrope Outline", sans-serif;
}
/* Arabic letters connect, so no letter-spacing anywhere */
html[lang="ar"] body, html[lang="ar"] body * { letter-spacing: 0 !important; }
/* Arabic name: words and lines closer together, with room under each line so the dots below ي aren't cut off */
html[lang="ar"] .hero__title { font-size: clamp(3rem, min(12vw, 13svh), 12rem); line-height: 1.05; letter-spacing: 0; word-spacing: -0.12em; }
html[lang="ar"] .hero__line { padding-block: 0.12em 0.32em; margin-block: 0 -0.3em; }
html[lang="ar"] .hero__line + .hero__line { margin-bottom: 0; }   /* the second (last) line of the name */
html[lang="ar"] .section-head__title, html[lang="ar"] .chapter__title, html[lang="ar"] .contact__title, html[lang="ar"] .mobile-menu__links a { line-height: 1.2; }
/* Arabic letters join, so no tight spacing; the fill (page colour, painted over the outline) hides the seams where joined letters overlap */
html[lang="ar"] .footer-name {
  font-size: 13vw; line-height: 1.1; letter-spacing: 0; padding-bottom: 0.32em; margin-bottom: 0;
  color: var(--bg); -webkit-text-stroke-width: 2px; paint-order: stroke fill;
}
html[lang="ar"] .mono, html[lang="ar"] .eyebrow, html[lang="ar"] .btn, html[lang="ar"] .nav__list a { font-size: 0.8rem; }
/* numbers, timecodes and the email stay left-to-right */
.ph-art__tc, [data-site="email"], .xp__years, .brand__mark, .transition-curtain span, .ai-avatar { direction: ltr; unicode-bidi: isolate; }
[dir="rtl"] .xp__years { text-align: end; }
[dir="rtl"] .marquee__track { animation-name: marqueeRtl; }
@keyframes marqueeRtl { to { transform: translateX(100%); } }
.lang-toggle { width: auto; min-width: 32px; padding: 0 4px 0.45em; line-height: 1; font-family: "Tajawal", var(--f-label); font-size: 0.95rem; font-weight: 500; letter-spacing: 0; text-transform: none; }   /* bottom padding lifts the low-sitting Arabic letter level with the icons */
.lang-toggle[lang="en"] { padding-bottom: 0; }   /* "EN" (shown on the Arabic site) needs no offset */

/* ---------- Scroll reveal ---------- */
.reveal-ready [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity var(--t-reveal) var(--ease), transform var(--t-reveal) var(--ease); transition-delay: var(--d, 0s); }
.reveal-ready [data-reveal].is-in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .hero__aside { grid-column: 1 / -1; }
  .about__portrait { grid-column: 1 / span 5; }
  .about__content { grid-column: 6 / -1; }
}
@media (max-width: 900px) {
  :root { --header-h: 64px; }
  .nav, .brand__name, .site-header .local-clock { display: none; }
  .menu-toggle { display: inline-flex; }
  .section-head__title { grid-column: 1 / -1; }
  .section-head__num { grid-column: 1 / -1; }
  .section-head__aside { grid-column: 1 / -1; grid-row: 3; justify-self: start; text-align: start; }
  .chapter__num, .chapter--flip .chapter__num { grid-column: 1 / -1; grid-row: 1; text-align: start; font-size: clamp(6rem, 28vw, 11rem); }
  .chapter__content, .chapter--flip .chapter__content { grid-column: 1 / -1; grid-row: 2; }
  .about__portrait { position: relative; top: 0; grid-column: 1 / -1; max-width: 420px; }
  .about__content { grid-column: 1 / -1; }
}
@media (max-width: 720px) {
  .site-header .btn--cv { display: none; }
  /* Phones: name and globe share the first row, the titles go full width below */
  .hero__lead { display: contents; }
  .hero__title { grid-column: 1; grid-row: 1; }
  .hero__side { grid-column: 2; grid-row: 1; }
  .hero__roles { grid-column: 1 / -1; grid-row: 2; }
  html[lang="ar"] .hero__title { font-size: 3rem; }
  .xp li { grid-template-columns: 1fr; }
}

@media (max-width: 360px) {
  .hero__side[data-side="globe"] { width: 96px; }
  .hero__roles .roles__main { font-size: 1.75rem; }
}

/* ---------- Reduced motion: respect the user's system setting ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important; animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important; transition-delay: 0s !important;
  }
  .grain { animation: none !important; }
  .char__in { animation: none !important; }
  .marquee__track { animation: none !important; }
}

/* ---------- Print: a clean, readable version ---------- */
@media print {
  .local-clock, .grain, .cursor, .to-top, .wa-fab, .ai-fab, .ai-panel, .float-preview, .progress, .transition-curtain, .preloader, .site-header, .mobile-menu, .marquee { display: none !important; }
  body { background: #fff; color: #000; }
}
