/* =============================================================================
   Marwan Taha Samir · theme styles
   Logical properties throughout, so an Arabic RTL version is a dir="rtl" away.
   ========================================================================== */

@font-face { font-family: "Poppins"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/poppins-normal-400-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: "Poppins"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/poppins-normal-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: "Poppins"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/poppins-normal-500-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: "Poppins"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/poppins-normal-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: "Poppins"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/poppins-normal-600-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: "Poppins"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/poppins-normal-600-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: "Poppins"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/poppins-normal-700-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: "Poppins"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/poppins-normal-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; }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 800; font-display: swap; src: url("../fonts/poppins-normal-800-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: "Poppins"; font-style: normal; font-weight: 800; font-display: swap; src: url("../fonts/poppins-normal-800-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: "Poppins"; font-style: italic; font-weight: 400; font-display: swap; src: url("../fonts/poppins-italic-400-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: "Poppins"; font-style: italic; font-weight: 400; font-display: swap; src: url("../fonts/poppins-italic-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: "Poppins"; font-style: italic; font-weight: 600; font-display: swap; src: url("../fonts/poppins-italic-600-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: "Poppins"; font-style: italic; font-weight: 600; font-display: swap; src: url("../fonts/poppins-italic-600-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: "Poppins"; font-style: italic; font-weight: 700; font-display: swap; src: url("../fonts/poppins-italic-700-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: "Poppins"; font-style: italic; font-weight: 700; font-display: swap; src: url("../fonts/poppins-italic-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; }
@font-face { font-family: "Poppins"; font-style: italic; font-weight: 800; font-display: swap; src: url("../fonts/poppins-italic-800-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: "Poppins"; font-style: italic; font-weight: 800; font-display: swap; src: url("../fonts/poppins-italic-800-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: "IBM Plex Sans Arabic"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/ibm-plex-sans-arabic-400.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; }
@font-face { font-family: "IBM Plex Sans Arabic"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/ibm-plex-sans-arabic-500.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; }
@font-face { font-family: "IBM Plex Sans Arabic"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/ibm-plex-sans-arabic-600.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; }
@font-face { font-family: "IBM Plex Sans Arabic"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/ibm-plex-sans-arabic-700.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; }
@font-face { font-family: "IBM Plex Sans Arabic"; font-style: normal; font-weight: 800; font-display: swap; src: url("../fonts/ibm-plex-sans-arabic-700.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; }

:root {
  /* Colour */
  --ground: #09090B;
  --surface: #121215;
  --surface-hover: #1C1C21;
  --ink: #F4F1EC;
  --secondary: #A9A49D;          /* 8:1 on ground */
  --placeholder: #8C8780;
  --field-line: #77726C;
  --line: rgb(255 255 255 / 0.12);
  --line-soft: rgb(255 255 255 / 0.06);
  --accent-orange: #FF5A1F;
  --accent-yellow: #FFC414;
  --accent: var(--accent-orange);
  --on-accent: #0B0B0B;
  --glow: 120 42 16;             /* warm stage glow channels */
  --backdrop: rgb(3 3 3 / 0.84);
  --unlit: #2A2827;
  --radius: 4px;

  /* Type */
  --font-display: "Poppins", "IBM Plex Sans Arabic", "Helvetica Neue", Arial, system-ui, sans-serif;
  --font: "Poppins", "IBM Plex Sans Arabic", "Helvetica Neue", Arial, system-ui, sans-serif;
  --display-width: 100%;
  --size-dialog-title: clamp(30px, 3vw, 40px);
  --size-small: 15px;
  --size-note: 13px;
  --text-size: 17px;
  --measure: 62ch;

  /* Layout */
  --margin: max(20px, 5vw);
  --gutter: 24px;
  --section: clamp(96px, 11vw, 168px);
  --header-h: 88px;
  --hit: 44px;

  /* Motion */
  --ease: cubic-bezier(0.33, 0, 0.2, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  color-scheme: dark;
}
:root[data-accent="yellow"] { --accent: var(--accent-yellow); }
:root[dir="rtl"] {
  --font-display: "IBM Plex Sans Arabic", "Poppins", "Helvetica Neue", Arial, system-ui, sans-serif;
  --font: "IBM Plex Sans Arabic", "Poppins", "Helvetica Neue", Arial, system-ui, sans-serif;
}

@media (max-width: 759px) {
  :root { --header-h: 68px; --gutter: 16px; --text-size: 16px; }
}

/* ---------------------------------------------------------------- Base */

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--ground); scrollbar-gutter: stable; scroll-padding-block-start: var(--header-h); -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
html.is-intro, html:has(dialog[open]) { overflow: hidden; }
body {
  margin: 0;
  min-inline-size: 320px;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--text-size);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg, canvas { display: block; max-inline-size: 100%; }
h1, h2, h3, p, figure, dl, dd, ul, ol, fieldset { margin: 0; }
:where(ul[role="list"], ol[role="list"]) { list-style: none; padding: 0; }
a { color: inherit; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
main:focus { outline: none; }
::selection { background: var(--accent); color: var(--on-accent); }
.sr-only { position: absolute; inline-size: 1px; block-size: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.sprite { position: absolute; inline-size: 0; block-size: 0; overflow: hidden; }
.wrap { padding-inline: var(--margin); }
[dir="rtl"] .flip-rtl { transform: scaleX(-1); }
.skip-link { position: fixed; z-index: 300; inset-block-start: 8px; inset-inline-start: 8px; padding: 12px 18px; background: var(--ink); color: var(--ground); font-weight: 700; text-decoration: none; transform: translateY(-200%); }
.skip-link:focus { transform: none; }

/* ---------------------------------------------------------------- Shared pieces */

.accent-word { color: var(--accent); font-style: italic; font-weight: inherit; }
.display .accent-word, .h2 .accent-word { font-weight: 700; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
.eyebrow__dot {
  display: inline-block;
  flex: none;
  inline-size: 8px;
  block-size: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 20%, transparent);
}
.eyebrow__rule { inline-size: clamp(48px, 6vw, 96px); block-size: 1px; background: var(--accent); }
.eyebrow--center { justify-content: center; }
.chapter { font-size: 14px; font-style: italic; color: var(--secondary); }

.section { position: relative; padding-block: var(--section); }
.section-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  padding-block-end: 20px;
  margin-block-end: clamp(48px, 5.5vw, 80px);
  border-block-end: 1px solid var(--line);
}
.section-top--plain { border: 0; padding: 0; margin-block-end: 22px; }

.h2, .display-xl, .display-xxl, .cta__title, .footer__title, .project-head__title, .hero__title, .card__title, .panel__title, .service__name, .figure__value {
  font-family: var(--font-display);
  text-wrap: balance;
}
.h2 { font-size: clamp(34px, 3.8vw, 56px); font-weight: 700; line-height: 1.08; letter-spacing: -0.015em; }
.display-xl { font-size: clamp(40px, 5.4vw, 84px); font-weight: 800; line-height: 1.04; letter-spacing: -0.02em; }
.display-xxl { font-size: clamp(46px, 7.6vw, 118px); font-weight: 800; line-height: 1.02; letter-spacing: -0.025em; }
.section-lead { max-inline-size: 52ch; margin-block-start: 28px; color: var(--secondary); }

.dropcap {
  border-inline-start: 2px solid var(--accent);
  padding-inline-start: 20px;
  font-size: clamp(17.5px, 1.3vw, 19.5px);
  line-height: 1.65;
}
.dropcap-first p:first-child { font-size: clamp(18px, 1.3vw, 20px); line-height: 1.65; color: var(--ink); }

.signature { display: flex; align-items: center; gap: 16px; font-size: 15px; font-style: italic; color: var(--secondary); }
.signature span { inline-size: 44px; block-size: 1px; background: var(--accent); }

/* Pills, buttons, links */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  min-block-size: 52px;
  padding-inline: 24px 20px;
  border: 1px solid rgb(255 255 255 / 0.24);
  border-radius: var(--radius);
  background: transparent;
  color: var(--ink);
  font-family: var(--font);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2em;
  line-height: 1;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  transition: border-color 0.3s var(--ease), background-color 0.3s var(--ease), color 0.3s var(--ease);
}
.pill .icon-long { inline-size: 30px; block-size: 12px; transition: transform 0.35s var(--ease-out); }
.pill:hover { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, transparent); }
.pill:hover .icon-long { transform: translateX(5px); }
[dir="rtl"] .pill:hover .icon-long { transform: scaleX(-1) translateX(5px); }
.pill > svg:not(.icon-long) { inline-size: 18px; block-size: 18px; flex: none; }
.pill--accent { border-color: var(--accent); background: var(--accent); color: var(--on-accent); }
.pill--accent:hover { background: color-mix(in srgb, var(--accent) 85%, #fff); color: var(--on-accent); }
.pill.pill--small { min-block-size: 44px; gap: 10px; padding-inline: 16px; font-size: 11px; letter-spacing: 0.16em; }

.btn-light {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-block-size: 54px;
  padding-inline: 34px;
  border: 0;
  border-radius: var(--radius);
  background: var(--ink);
  color: var(--ground);
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  transition: background-color 0.3s var(--ease), color 0.3s var(--ease);
}
.btn-light:hover { background: var(--accent); color: var(--on-accent); }

.circle-btn {
  display: inline-grid;
  place-items: center;
  flex: none;
  inline-size: 44px;
  block-size: 44px;
  padding: 0;
  border: 1px solid rgb(255 255 255 / 0.28);
  border-radius: var(--radius);
  background: transparent;
  color: var(--ink);
  transition: border-color 0.25s var(--ease), color 0.25s var(--ease), background-color 0.25s var(--ease);
}
.circle-btn svg { inline-size: 20px; block-size: 20px; }
.circle-btn .icon-long { inline-size: 24px; block-size: 10px; }
.circle-btn:hover { border-color: var(--accent); color: var(--accent); background: color-mix(in srgb, var(--accent) 8%, transparent); }

.arrow-link {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  min-block-size: var(--hit);
  padding: 0;
  border: 0;
  background: none;
  color: var(--ink);
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
}
.arrow-link .icon-long { inline-size: 36px; block-size: 12px; transition: transform 0.35s var(--ease-out); }
.arrow-link:hover { color: var(--accent); }
.arrow-link:hover .icon-long { transform: translateX(6px); }

/* Double frame around a picture. */
.frame { position: relative; display: block; padding: 10px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.frame::after { content: ""; position: absolute; inset: 10px; border: 1px solid var(--line-soft); pointer-events: none; }

/* Corner brackets around a picture. */
.brackets { position: relative; }
.brackets::before, .brackets::after { content: ""; position: absolute; z-index: 1; inline-size: 18px; block-size: 18px; pointer-events: none; }
.brackets::before { inset-block-start: -10px; inset-inline-start: -10px; border-block-start: 1px solid var(--ink); border-inline-start: 1px solid var(--ink); }
.brackets::after { inset-block-end: -10px; inset-inline-end: -10px; border-block-end: 1px solid var(--ink); border-inline-end: 1px solid var(--ink); }

/* Giant words behind a section. */
.ghost-word {
  position: absolute;
  z-index: 0;
  inset-inline-start: -0.04em;
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(140px, 24vw, 380px);
  font-weight: 700;
  line-height: 0.8;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  white-space: nowrap;
  color: rgb(255 255 255 / 0.035);
  pointer-events: none;
  user-select: none;
}
.ghost-word--outline { color: transparent; -webkit-text-stroke: 1px rgb(255 255 255 / 0.09); font-style: italic; }

.fig-caption {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-block-start: 14px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.16em;
  line-height: 1.5;
  text-transform: uppercase;
  color: var(--secondary);
}

/* ---------------------------------------------------------------- Opening */

.intro { display: none; }
.js.is-intro .intro { display: block; position: fixed; z-index: 200; inset: 0; }
.intro__half { position: absolute; inset-inline: 0; block-size: 50.5%; background: var(--ground); }
.intro__half--top { inset-block-start: 0; }
.intro__half--bottom { inset-block-end: 0; }
.intro__center {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 22px;
  padding-inline: var(--margin);
  text-align: center;
}
.intro__name {
  position: relative;
  display: grid;
  font-family: var(--font-display);
  font-size: clamp(28px, 6.2vw, 96px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.025em;
  white-space: nowrap;
}
.intro__layer { grid-area: 1 / 1; }
.intro__layer em { font-style: italic; font-weight: 700; }
.intro__layer--dim { color: var(--unlit); }
.intro__layer--lit { color: var(--ink); clip-path: inset(0 100% 0 0); }
.intro__layer--lit em { color: var(--accent); }
.intro__layer--lit .intro__dot { color: var(--ink); }
.intro__layer--shine {
  color: transparent;
  background-image: linear-gradient(100deg, transparent 0 40%, rgb(255 255 255 / 0) 42%, #fff 47.5%, var(--accent) 50%, #fff 52.5%, rgb(255 255 255 / 0) 58%, transparent 60%);
  background-size: 320% 100%;
  background-position: 100% 0;
  -webkit-background-clip: text;
  background-clip: text;
}
.intro__glint { position: absolute; inset-block-start: -0.18em; inset-inline-end: -0.42em; inline-size: 0.42em; block-size: 0.42em; color: var(--accent); transform: scale(0); }
.intro__rule { display: block; inline-size: clamp(120px, 14vw, 200px); block-size: 1px; background: var(--accent); transform: scaleX(0); }
.intro__role { font-size: 12.5px; font-weight: 700; letter-spacing: 0.32em; text-transform: uppercase; color: var(--secondary); opacity: 0; }
.intro__skip {
  position: absolute;
  inset-block-start: 26px;
  inset-inline-end: var(--margin);
  min-block-size: var(--hit);
  padding: 0 4px;
  border: 0;
  background: none;
  color: var(--secondary);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
.intro__skip:hover { color: var(--ink); }

/* ---------------------------------------------------------------- Header */

.site-header { position: fixed; z-index: 60; inset-block-start: 0; inset-inline: 0; block-size: var(--header-h); transition: background-color 0.35s var(--ease), border-color 0.35s var(--ease), backdrop-filter 0.35s var(--ease); border-block-end: 1px solid transparent; }
.site-header.is-solid, .site-header[data-solid] { background: rgb(9 9 11 / 0.96); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-block-end-color: var(--line); }
.admin-bar .site-header { inset-block-start: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { inset-block-start: 46px; } }
.site-header__inner { block-size: 100%; display: flex; align-items: center; gap: 32px; }
.brand { display: inline-flex; align-items: center; flex-shrink: 0; min-block-size: var(--hit); font-family: var(--font-display); font-size: 19px; font-weight: 700; line-height: 1; letter-spacing: -0.015em; text-decoration: none; white-space: nowrap; }
.brand--logo img { block-size: 44px; inline-size: auto; }
.site-nav { margin-inline-start: auto; }
.site-nav__list { display: flex; gap: clamp(24px, 3.4vw, 54px); }
.site-nav__list a { position: relative; display: inline-flex; align-items: center; min-block-size: var(--hit); font-size: 14px; font-weight: 700; letter-spacing: 0.02em; text-transform: uppercase; text-decoration: none; }
.site-nav__list a::after { content: ""; position: absolute; inset-inline: 0; inset-block-end: 8px; block-size: 2px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform 0.35s var(--ease-out); }
[dir="rtl"] .site-nav__list a::after { transform-origin: right; }
.site-nav__list a:hover::after, .site-nav__list a[aria-current="page"]::after { transform: scaleX(1); }
.lang-switch {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  min-block-size: 38px;
  padding-inline: 14px;
  border: 1px solid rgb(255 255 255 / 0.24);
  border-radius: var(--radius);
  background: transparent;
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  transition: border-color 0.25s var(--ease), background-color 0.25s var(--ease), color 0.25s var(--ease);
}
.lang-switch[lang="ar"] {
  font-family: "IBM Plex Sans Arabic", var(--font);
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0;
}
.lang-switch[lang="en"] {
  font-family: "Poppins", var(--font);
  font-size: 12px;
  letter-spacing: 0.12em;
}
.lang-switch:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 10%, transparent);
}
.menu-button { display: grid; place-items: center; inline-size: var(--hit); block-size: var(--hit); margin-inline-end: -10px; padding: 0; border: 0; background: none; }
.menu-button__lines { display: grid; justify-items: end; gap: 6px; }
.menu-button__lines i { display: block; block-size: 2px; background: var(--ink); transition: inline-size 0.3s var(--ease-out); }
.menu-button__lines i:nth-child(1) { inline-size: 24px; }
.menu-button__lines i:nth-child(2) { inline-size: 16px; }
.menu-button__lines i:nth-child(3) { inline-size: 10px; }
.menu-button:hover .menu-button__lines i { inline-size: 24px; }

@media (min-width: 1024px) {
  .menu-button { display: none; }
}
@media (max-width: 1023px) {
  .site-header__inner { gap: 14px; }
  .site-nav { display: none; }
  .site-header__inner > .lang-switch { margin-inline-start: auto; }
}
@media (max-width: 559px) {
  .brand { font-size: clamp(15px, 4.1vw, 17px); line-height: 1; }
  .lang-switch { min-block-size: 34px; padding-inline: 11px; font-size: 12.5px; }
}

/* Side menu */
.menu-panel { inline-size: min(460px, 100vw); block-size: 100dvh; max-inline-size: none; max-block-size: none; margin-block: 0; margin-inline-start: auto; margin-inline-end: 0; padding: 0; border: 0; border-inline-start: 1px solid var(--line); background: var(--surface); color: var(--ink); overflow: auto; }
.menu-panel::backdrop { background: var(--backdrop); }
.menu-panel__inner { display: flex; flex-direction: column; gap: 40px; min-block-size: 100%; padding: 28px clamp(24px, 4vw, 44px) 40px; }
.menu-panel__top { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.menu-panel__actions { display: inline-flex; align-items: center; gap: 12px; }
.menu-panel__links { display: grid; gap: 4px; }
.menu-panel__links a { display: flex; align-items: baseline; gap: 18px; padding-block: 8px; font-family: var(--font-display); font-size: clamp(32px, 4.4vw, 46px); font-weight: 600; line-height: 1.1; text-decoration: none; transition: color 0.25s var(--ease); }
.menu-panel__links a:hover { color: var(--accent); }
.menu-panel__num { font-family: var(--font); font-size: 12px; font-style: italic; font-weight: 400; color: var(--accent); }
.menu-panel__foot { display: grid; gap: 22px; margin-block-start: auto; }
.menu-panel__ask { font-family: var(--font-display); font-size: 22px; font-weight: 600; }

/* ---------------------------------------------------------------- Social circles */

.social { display: flex; flex-wrap: wrap; gap: 10px; }
.social__link { display: grid; place-items: center; inline-size: 44px; block-size: 44px; border: 1px solid rgb(255 255 255 / 0.3); border-radius: 50%; color: var(--ink); transition: border-color 0.25s var(--ease), background-color 0.25s var(--ease), color 0.25s var(--ease); }
.social__link svg { inline-size: 17px; block-size: 17px; }
.social__link:hover { border-color: var(--accent); background: var(--accent); color: var(--on-accent); }

/* ---------------------------------------------------------------- Hero: statement slider over full-bleed atmospheric render */

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr); /* no blow-out from long words or nowrap pills */
  grid-template-rows: 1fr auto;
  min-block-size: clamp(680px, 100svh, 960px);
  padding-block-start: var(--header-h);
  overflow: hidden;
  background: var(--ground);
}
.hero__progress { position: absolute; z-index: 4; inset-block-start: 0; inset-inline: 0; block-size: 2px; }
.hero__progress i { display: block; block-size: 100%; background: var(--accent); transform: scaleX(0); transform-origin: left; }

.hero__backdrop { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.hero__media { position: absolute; inset: 0; overflow: hidden; background: var(--ground); }
.hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    linear-gradient(
      180deg,
      rgb(9 9 11 / 0.82) 0%,
      rgb(9 9 11 / 0.42) 11%,
      rgb(9 9 11 / 0) 24%,
      rgb(9 9 11 / 0) 76%,
      rgb(9 9 11 / 0.65) 100%
    ),
    linear-gradient(
      90deg,
      var(--ground) 0%,
      rgb(9 9 11 / 0.94) 24%,
      rgb(9 9 11 / 0.84) 39%,
      rgb(9 9 11 / 0.50) 53%,
      rgb(9 9 11 / 0.16) 67%,
      rgb(9 9 11 / 0) 79%
    );
}
[dir="rtl"] .hero__media::after {
  background:
    linear-gradient(
      180deg,
      rgb(9 9 11 / 0.82) 0%,
      rgb(9 9 11 / 0.42) 11%,
      rgb(9 9 11 / 0) 24%,
      rgb(9 9 11 / 0) 76%,
      rgb(9 9 11 / 0.65) 100%
    ),
    linear-gradient(
      270deg,
      var(--ground) 0%,
      rgb(9 9 11 / 0.94) 24%,
      rgb(9 9 11 / 0.84) 39%,
      rgb(9 9 11 / 0.50) 53%,
      rgb(9 9 11 / 0.16) 67%,
      rgb(9 9 11 / 0) 79%
    );
}
.hero__slides { position: absolute; inset: 0; z-index: 0; }
.hero__slide { position: absolute; inset: 0; opacity: 0; transition: opacity 0.6s var(--ease); }
.hero__slide.is-current { opacity: 1; }
.hero__slide img { inline-size: 100%; block-size: 100%; object-fit: cover; object-position: var(--fx, 50%) var(--fy, 50%); }
.hero__canvas { position: absolute; inset: 0; z-index: 1; inline-size: 100%; block-size: 100%; opacity: 0; transition: opacity 0.4s var(--ease); }
.hero__canvas.is-ready { opacity: 1; }
.hero.has-webgl .hero__slides { visibility: hidden; }

.hero__stage {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gutter);
  align-items: center;
  padding-block: clamp(40px, 5.5vh, 72px);
}
.hero__texts { grid-column: 1 / span 7; grid-row: 1; display: grid; max-inline-size: min(740px, 100%); }
.hero__text { grid-area: 1 / 1; align-self: center; }
.hero__text:not(.is-current) { visibility: hidden; }
.hero__text .eyebrow { margin-block-end: 26px; }
.hero__title { font-size: clamp(38px, 5.4vw, 84px); font-weight: 800; line-height: 1.04; letter-spacing: -0.02em; }
.hero__title .accent-word { font-weight: inherit; }
.line-mask { display: block; padding-block-end: 0.08em; overflow: hidden; }
.line-mask > span { display: block; }
.hero__lead { display: flex; gap: 16px; max-inline-size: 46ch; margin-block: 28px 38px; font-size: clamp(18px, 1.35vw, 22px); line-height: 1.58; color: rgb(244 244 246 / 0.86); }
.hero__dash { flex: none; inline-size: 22px; block-size: 1px; margin-block-start: 0.82em; background: var(--accent); }

.hero__caption {
  grid-column: 8 / -1;
  grid-row: 1;
  align-self: end;
  justify-self: end;
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  max-inline-size: 100%;
  padding: 9px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgb(9 9 11 / 0.74);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--secondary);
}
.hero__caption a { color: var(--ink); text-decoration: none; }
.hero__caption a:hover { color: var(--accent); }

.hero__bar {
  position: relative;
  z-index: 3;
  border-block-start: 1px solid var(--line);
  background: rgb(9 9 11 / 0.84);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.hero__bar-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 20px; min-block-size: 84px; padding-block: 14px; }
.hero__nav { display: flex; align-items: center; gap: 14px; min-inline-size: 0; }
.hero__count { display: flex; align-items: center; gap: 8px; font-family: var(--font-display); font-size: 16px; letter-spacing: 0.12em; color: var(--secondary); font-variant-numeric: tabular-nums; white-space: nowrap; }
.hero__count-now { color: var(--accent); font-weight: 600; }
.hero__dashes { display: flex; align-items: center; gap: 4px; margin-inline-start: 10px; }
.hero__dot {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-inline-size: 36px;
  min-block-size: 40px;
  padding-inline: 8px;
  border: 0;
  background: transparent;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  font-variant-numeric: tabular-nums;
  color: var(--secondary);
  transition: color 0.25s var(--ease);
}
.hero__dot::after {
  content: "";
  position: absolute;
  inset-inline: 8px;
  inset-block-end: 6px;
  block-size: 2px;
  background: rgb(255 255 255 / 0.18);
  transition: background-color 0.25s var(--ease), transform 0.25s var(--ease);
}
.hero__dot:hover { color: var(--ink); }
.hero__dot.is-on { color: var(--accent); }
.hero__dot.is-on::after { background: var(--accent); }
.hero__autoplay[aria-pressed="false"] .eyebrow__dot { background: transparent; box-shadow: inset 0 0 0 1px var(--secondary); }

@media (max-width: 1023px) {
  .hero { min-block-size: clamp(580px, 100svh, 820px); }
  .hero__stage { grid-template-columns: minmax(0, 1fr); grid-template-rows: 1fr auto; align-items: end; row-gap: 18px; padding-block: clamp(130px, 22svh, 210px) 24px; }
  .hero__texts { grid-column: 1; grid-row: 1; max-inline-size: 38rem; }
  .hero__caption { grid-column: 1; grid-row: 2; justify-self: start; }
}
@media (max-width: 759px) {
  .hero__stage { padding-block: clamp(160px, 28svh, 220px) 20px; }
  .hero__media::after {
    background:
      linear-gradient(
        180deg,
        rgb(9 9 11 / 0.78) 0%,
        rgb(9 9 11 / 0.26) 13%,
        rgb(9 9 11 / 0.14) 28%,
        rgb(9 9 11 / 0.58) 40%,
        rgb(9 9 11 / 0.90) 54%,
        var(--ground) 70%
      ),
      linear-gradient(
        90deg,
        rgb(9 9 11 / 0.68) 0%,
        rgb(9 9 11 / 0.28) 45%,
        rgb(9 9 11 / 0) 80%
      );
  }
  [dir="rtl"] .hero__media::after {
    background:
      linear-gradient(
        180deg,
        rgb(9 9 11 / 0.78) 0%,
        rgb(9 9 11 / 0.26) 13%,
        rgb(9 9 11 / 0.14) 28%,
        rgb(9 9 11 / 0.58) 40%,
        rgb(9 9 11 / 0.90) 54%,
        var(--ground) 70%
      ),
      linear-gradient(
        270deg,
        rgb(9 9 11 / 0.68) 0%,
        rgb(9 9 11 / 0.28) 45%,
        rgb(9 9 11 / 0) 80%
      );
  }
}
@media (max-width: 559px) {
  .hero__dashes { display: none; }
  .hero__bar-inner { min-block-size: 0; padding-block: 14px; gap: 10px 12px; }
  .hero__nav { gap: 10px; }
  .hero__text .eyebrow { margin-block-end: 16px; }
  .hero__lead { margin-block: 18px 24px; }
  .pill { gap: 12px; min-block-size: 48px; padding-inline: 20px 18px; letter-spacing: 0.16em; }
  .pill.pill--small { min-block-size: 44px; gap: 8px; padding-inline: 14px; font-size: 11px; letter-spacing: 0.12em; }
}

/* ---------------------------------------------------------------- About */

.about { overflow: hidden; }
.about .wrap { position: relative; z-index: 1; }
.about__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); row-gap: 48px; align-items: center; }
.about__figure { grid-column: 1 / span 5; grid-row: 1; margin: 0; }
.about__figure .brackets { aspect-ratio: 4 / 5; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.about__figure img { inline-size: 100%; block-size: 100%; object-fit: cover; border-radius: calc(var(--radius) - 1px); filter: grayscale(1) contrast(1.06); transition: filter 0.6s var(--ease); }
.about__figure:hover img { filter: grayscale(0.35) contrast(1.04); }
.about__figure figcaption { margin-block-start: 18px; font-size: var(--size-note); color: var(--secondary); }
.about__text { grid-column: 7 / -1; grid-row: 1; display: grid; gap: 22px; max-inline-size: 640px; }
.about__text .h2 { margin-block-end: 10px; }
.about__text > p { color: var(--ink); }
.about__facts { display: grid; gap: 10px; margin-block-start: 8px; padding-block: 18px; border-block: 1px solid var(--line); font-size: 15px; }
.about__facts div { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 16px; }
.about__facts dt { font-size: 11.5px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--secondary); padding-block-start: 3px; }
@media (max-width: 1023px) {
  .about__text { grid-column: 1 / -1; grid-row: auto; }
  .about__figure { grid-column: 1 / span 9; grid-row: auto; }
}
@media (max-width: 559px) { .about__figure { grid-column: 1 / -1; } .about__facts div { grid-template-columns: minmax(0, 1fr); gap: 2px; } }

/* ---------------------------------------------------------------- Services and figures */

.services__list {
  display: flex;
  flex-direction: column;
  gap: 2px;
  background: var(--ground);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.service {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: clamp(64px, 7vw, 104px) minmax(0, 1fr);
  align-items: center;
  gap: clamp(16px, 3vw, 40px);
  padding: clamp(28px, 3.2vw, 44px) clamp(24px, 3.6vw, 48px);
  background: var(--surface);
}
.service::before {
  content: "";
  position: absolute;
  inset-block: 0;
  inset-inline-start: 0;
  z-index: 0;
  inline-size: 0;
  background: rgb(255 90 31 / 0.14);
  background: color-mix(in srgb, var(--accent) 14%, transparent);
  pointer-events: none;
  transition: inline-size 0.5s var(--ease-out);
}
.service:hover::before { inline-size: 100%; }
.service__num,
.service__body { position: relative; z-index: 1; }
.service__num {
  font-family: var(--font-display);
  font-size: clamp(34px, 3.4vw, 48px);
  font-weight: 600;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  color: rgb(255 255 255 / 0.18);
  transition: color 0.3s var(--ease);
}
.service:hover .service__num { color: var(--accent); }
.service__body { display: grid; gap: 8px; }
.service__name {
  font-size: clamp(22px, 2.2vw, 30px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.service__text { max-inline-size: 60ch; font-size: 15.5px; line-height: 1.65; color: var(--secondary); transition: color 0.3s var(--ease); }
.service:hover .service__text { color: rgb(244 241 236 / 0.86); }
.figures {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-block-start: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.figure { display: grid; gap: 10px; align-content: start; padding: clamp(24px, 3vw, 36px); border-inline-start: 1px solid var(--line); }
.figure:first-child { border-inline-start: 0; }
.figure__no { font-size: 11px; font-weight: 700; letter-spacing: 0.16em; color: var(--secondary); }
.figure__value { font-size: clamp(42px, 4.4vw, 68px); font-weight: 600; line-height: 0.98; letter-spacing: -0.025em; font-variant-numeric: tabular-nums; }
.figure__plus { margin-inline-start: 3px; font-size: 0.45em; vertical-align: 0.85em; color: var(--accent); }
.figure__label { font-size: 14.5px; color: var(--secondary); }
@media (max-width: 1023px) {
  .figures { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .figure:nth-child(odd) { border-inline-start: 0; }
  .figure:nth-child(n + 3) { border-block-start: 1px solid var(--line); }
}
@media (max-width: 759px) {
  .service { grid-template-columns: 52px minmax(0, 1fr); align-items: start; gap: 16px; padding: 24px 20px; }
}

/* ---------------------------------------------------------------- Work: project panels (vave-inspired outline -> color hover -> B&W settle) */

.work__intro { max-inline-size: 860px; margin-block-end: clamp(40px, 5vw, 72px); }
.panels { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; padding: 0; margin-inline: var(--margin); }
.panel {
  position: relative;
  display: grid;
  aspect-ratio: 3 / 2;
  min-block-size: clamp(280px, 28vw, 440px);
  overflow: hidden;
  background: var(--surface);
}
.panel__media {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  opacity: 0;
  transform: scale(1.06);
  filter: grayscale(0) saturate(1.06) brightness(0.95);
  transition: opacity 0.55s var(--ease), transform 0.75s var(--ease-out), filter 0.65s var(--ease);
}
.panel__media::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgb(9 9 11 / 0.58) 0%, rgb(9 9 11 / 0.36) 48%, rgb(9 9 11 / 0.72) 100%);
  transition: background-color 0.45s var(--ease), opacity 0.45s var(--ease);
}
.panel__media img { inline-size: 100%; block-size: 100%; object-fit: cover; }

.panel__body {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  text-align: center;
  gap: 16px;
  padding: clamp(24px, 3vw, 40px);
}
.panel__top { display: flex; align-items: center; justify-content: space-between; inline-size: 100%; gap: 12px; }
.panel__no { display: inline-flex; align-items: center; gap: 8px; font-size: 11.5px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--secondary); transition: color 0.3s var(--ease), text-shadow 0.3s var(--ease); }
.panel__pill { display: inline-flex; align-items: center; padding: 4px 10px; border: 1px solid var(--line); border-radius: var(--radius); font-size: 11px; font-weight: 700; letter-spacing: 0.14em; color: var(--secondary); font-variant-numeric: tabular-nums; transition: color 0.3s var(--ease), border-color 0.3s var(--ease), text-shadow 0.3s var(--ease); }

.panel__title {
  margin-block: auto;
  max-inline-size: 18ch;
  font-size: clamp(24px, 2.75vw, 42px);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.015em;
  text-transform: uppercase;
  color: transparent;
  -webkit-text-stroke: 1.25px rgb(244 244 246 / 0.68);
  transition: color 0.35s var(--ease), -webkit-text-stroke-color 0.35s var(--ease), text-shadow 0.35s var(--ease);
}
@supports not (-webkit-text-stroke: 1px white) {
  .panel__title { color: rgb(244 244 246 / 0.65); }
}
.panel__link { text-decoration: none; }
.panel__link::after { content: ""; position: absolute; inset: 0; z-index: 3; }
.panel__link:focus-visible { outline: none; }
.panel:has(.panel__link:focus-visible) { outline: 2px solid var(--accent); outline-offset: -2px; }

.panel__foot { display: grid; gap: 4px; justify-items: center; }
.panel__client { font-size: 16px; font-weight: 600; line-height: 1.25; color: rgb(244 244 246 / 0.86); transition: color 0.3s var(--ease), text-shadow 0.3s var(--ease); }
.panel__meta { font-size: 12.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--secondary); transition: color 0.3s var(--ease), text-shadow 0.3s var(--ease); }

/* Active hover / focus: reveal full-color image + solid white text + protective dark scrim & shadow */
.panel:hover .panel__media,
.panel:focus-within .panel__media {
  opacity: 1;
  transform: scale(1);
  filter: grayscale(0) saturate(1.06) brightness(0.95);
}
.panel:hover .panel__title,
.panel:focus-within .panel__title {
  color: #ffffff;
  -webkit-text-stroke-color: transparent;
  text-shadow: 0 4px 28px rgb(0 0 0 / 0.78), 0 1px 8px rgb(0 0 0 / 0.68);
}
.panel:hover .panel__client,
.panel:focus-within .panel__client {
  color: #ffffff;
  text-shadow: 0 2px 16px rgb(0 0 0 / 0.82);
}
.panel:hover .panel__meta,
.panel:focus-within .panel__meta,
.panel:hover .panel__no,
.panel:focus-within .panel__no {
  color: rgb(255 255 255 / 0.9);
  text-shadow: 0 2px 14px rgb(0 0 0 / 0.8);
}
.panel:hover .panel__pill,
.panel:focus-within .panel__pill {
  color: rgb(255 255 255 / 0.92);
  border-color: rgb(255 255 255 / 0.34);
  text-shadow: 0 1px 8px rgb(0 0 0 / 0.75);
}

/* After mouse leaves a hovered card: image stays visible in Black & White (never returns blank) */
.panel.is-revealed:not(:hover):not(:focus-within) .panel__media {
  opacity: 1;
  transform: scale(1);
  filter: grayscale(1) contrast(1.05) brightness(0.84);
}
.panel.is-revealed:not(:hover):not(:focus-within) .panel__media::after {
  background: linear-gradient(180deg, rgb(9 9 11 / 0.66) 0%, rgb(9 9 11 / 0.46) 48%, rgb(9 9 11 / 0.76) 100%);
}
.panel.is-revealed:not(:hover):not(:focus-within) .panel__title {
  color: rgb(244 244 246 / 0.92);
  -webkit-text-stroke-color: transparent;
  text-shadow: 0 4px 24px rgb(0 0 0 / 0.82), 0 1px 6px rgb(0 0 0 / 0.72);
}
.panel.is-revealed:not(:hover):not(:focus-within) .panel__client {
  color: rgb(244 244 246 / 0.92);
  text-shadow: 0 2px 14px rgb(0 0 0 / 0.82);
}
.panel.is-revealed:not(:hover):not(:focus-within) .panel__meta,
.panel.is-revealed:not(:hover):not(:focus-within) .panel__no {
  color: rgb(244 244 246 / 0.8);
  text-shadow: 0 2px 12px rgb(0 0 0 / 0.8);
}
.panel.is-revealed:not(:hover):not(:focus-within) .panel__pill {
  color: rgb(244 244 246 / 0.84);
  border-color: rgb(255 255 255 / 0.25);
}

.work__more { display: flex; justify-content: center; margin-block-start: clamp(44px, 5vw, 68px); }
@media (max-width: 759px) {
  .panels { grid-template-columns: minmax(0, 1fr); }
  .panel { aspect-ratio: 4 / 3; min-block-size: 250px; }
}

/* ---------------------------------------------------------------- Close CTA */

.cta { position: relative; padding-block: clamp(64px, 7vw, 112px); }
.cta__card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 28px 48px;
  padding: clamp(32px, 5vw, 64px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.cta__copy { display: grid; gap: 16px; max-inline-size: 620px; }
.cta__title { max-inline-size: 18ch; font-size: clamp(34px, 4vw, 56px); font-weight: 600; line-height: 1.08; letter-spacing: -0.02em; }
.cta__text { max-inline-size: 46ch; color: var(--secondary); }
@media (max-width: 759px) {
  .cta__card { justify-items: start; }
}

/* ---------------------------------------------------------------- Footer */

.site-footer {
  position: relative;
  padding-block: clamp(72px, 8vw, 112px) 36px;
  border-block-start: 1px solid var(--line);
  background: radial-gradient(50% 70% at 85% 100%, rgb(var(--glow) / 0.18), transparent 70%), var(--ground);
}
.footer__top { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 56px; align-items: end; padding-block-end: 56px; border-block-end: 1px solid var(--line); }
.footer__connect { display: grid; justify-items: start; gap: 10px; }
.footer__title { font-size: clamp(40px, 4.4vw, 66px); font-weight: 600; line-height: 1.05; letter-spacing: -0.02em; margin-block-end: 26px; }
.footer__label { font-size: 17px; font-weight: 700; color: var(--secondary); }
.footer__email { margin-block-end: 22px; font-family: var(--font-display); font-size: clamp(26px, 3vw, 44px); font-weight: 500; line-height: 1.15; overflow-wrap: anywhere; }
.footer__email a { text-decoration: none; }
.footer__email a:hover { color: var(--accent); }
.footer__side { display: grid; justify-items: end; gap: 16px; text-align: end; }
.footer__nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px clamp(20px, 3vw, 44px); margin-block-start: 40px; }
.footer__nav a { display: inline-flex; align-items: center; min-block-size: var(--hit); font-size: 13.5px; font-weight: 700; letter-spacing: 0.02em; text-transform: uppercase; text-decoration: none; }
.footer__nav a:hover { color: var(--accent); }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 32px; padding-block-start: 22px; font-size: 14px; color: var(--secondary); }
.footer__top-link { display: inline-flex; align-items: center; gap: 8px; min-block-size: var(--hit); color: var(--ink); font-weight: 700; text-decoration: none; }
.footer__top-link:hover { color: var(--accent); }
.credits { max-inline-size: 120ch; margin-block-start: 18px; font-size: var(--size-note); line-height: 1.6; color: var(--secondary); }
.credits a { text-underline-offset: 3px; }
@media (max-width: 759px) {
  .footer__top { grid-template-columns: minmax(0, 1fr); }
  .footer__side { justify-items: start; text-align: start; }
  .footer__nav { justify-content: flex-start; margin-block-start: 20px; }
}

/* ---------------------------------------------------------------- Work page */

.page-hero { position: relative; overflow: hidden; padding-block: calc(var(--header-h) + clamp(56px, 7vw, 112px)) clamp(48px, 6vw, 84px); }
.page-hero .wrap { position: relative; z-index: 1; }
.page-hero__body { display: grid; gap: clamp(32px, 4vw, 56px); }
.page-hero__foot { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 32px 64px; align-items: end; }
.page-hero__lead { max-inline-size: 52ch; }
@media (max-width: 759px) { .page-hero__foot { grid-template-columns: minmax(0, 1fr); } }
.section--after-head { padding-block-start: 0; }
.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(24px, 3vw, 48px); row-gap: clamp(56px, 6vw, 88px); }
.card { position: relative; }
.card__media { aspect-ratio: 3 / 2; overflow: hidden; }
.card__media img { inline-size: 100%; block-size: 100%; object-fit: cover; transition: transform 1s var(--ease-out); }
.card:hover .card__media img { transform: scale(1.035); }
.card__meta { display: flex; align-items: center; gap: 14px; margin-block-start: 22px; font-size: 11.5px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--secondary); }
.card__no { color: var(--accent); }
.card__title { margin-block-start: 10px; font-size: clamp(24px, 2.2vw, 34px); font-weight: 600; line-height: 1.12; }
.card__link { text-decoration: none; }
.card__link::after { content: ""; position: absolute; inset: 0; }
.card:hover .card__title { color: var(--accent); }
.card__place { margin-block-start: 6px; font-size: 15px; color: var(--secondary); }
@media (max-width: 759px) { .cards { grid-template-columns: minmax(0, 1fr); } }

/* ---------------------------------------------------------------- Project page */

.project-head { padding-block: calc(var(--header-h) + clamp(40px, 5vw, 72px)) clamp(40px, 5vw, 64px); }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-block-end: clamp(40px, 4.5vw, 64px); font-size: 11.5px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--secondary); }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--ink); }
.crumbs [aria-current] { color: var(--ink); }
.project-head .section-top { margin-block-end: 26px; }
.project-head__title { font-size: clamp(46px, 6vw, 96px); font-weight: 600; line-height: 1; letter-spacing: -0.025em; }
.project-head__lead { max-inline-size: 52ch; margin-block-start: 26px; font-size: 18px; color: var(--secondary); }
.project-cover { margin: 0; }
.project-cover__frame { cursor: zoom-in; }
.project-cover__media { display: block; aspect-ratio: 16 / 9; overflow: hidden; }
.project-cover__media img { inline-size: 100%; block-size: 100%; object-fit: cover; }
.facts { margin-block-start: clamp(56px, 6vw, 88px); border-block: 1px solid var(--line); }
.facts__row { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 24px; padding-block: 34px; }
.facts__item dt { font-size: 11px; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--secondary); }
.facts__item dd { margin-block-start: 8px; font-size: 16px; line-height: 1.45; }
.project-text { max-inline-size: calc(var(--measure) + 2 * var(--margin)); padding-block: clamp(56px, 6vw, 88px) 0; font-size: 18px; }
.project-text p + p { margin-block-start: 1em; }
.frames { padding-block-start: clamp(72px, 8vw, 120px); }
.frames__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(28px, 3vw, 40px) var(--gutter); }
.frames__grid:not(.frames__grid--even) .frames__cell:first-child { grid-column: 1 / -1; }
.frames__grid:not(.frames__grid--even) .frames__cell:first-child .frames__item { aspect-ratio: 2 / 1; }
.frames__item { display: block; aspect-ratio: 3 / 2; overflow: hidden; background: var(--surface); cursor: zoom-in; }
.frames__item img { inline-size: 100%; block-size: 100%; object-fit: cover; transition: transform 1s var(--ease-out); }
.frames__item:hover img { transform: scale(1.03); }
.project-credit { padding-block-start: 28px; font-size: var(--size-note); color: var(--secondary); }
.project-nav { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; margin-block-start: clamp(72px, 8vw, 120px); padding-block: 40px; border-block-start: 1px solid var(--line); }
.project-nav__all { display: inline-flex; align-items: center; gap: 12px; min-block-size: var(--hit); font-size: 12.5px; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase; text-decoration: none; }
.project-nav__all .icon-star { inline-size: 18px; block-size: 18px; color: var(--accent); }
.project-nav__all:hover { color: var(--accent); }
.project-nav__next { display: grid; justify-items: end; gap: 8px; text-align: end; text-decoration: none; }
.project-nav__label { font-size: 11.5px; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--secondary); }
.project-nav__name { display: inline-flex; align-items: center; gap: 18px; font-family: var(--font-display); font-size: clamp(26px, 3vw, 44px); font-weight: 600; line-height: 1.1; }
.project-nav__name .icon-long { inline-size: 40px; block-size: 14px; color: var(--accent); transition: transform 0.35s var(--ease-out); }
.project-nav__next:hover .project-nav__name .icon-long { transform: translateX(6px); }
@media (max-width: 759px) {
  .frames__grid { grid-template-columns: minmax(0, 1fr); }
  .frames__grid .frames__item, .frames__grid:not(.frames__grid--even) .frames__cell:first-child .frames__item { aspect-ratio: 3 / 2; }
  .project-cover__media { aspect-ratio: 4 / 3; }
  .project-nav__next { justify-items: start; text-align: start; }
}

/* ---------------------------------------------------------------- Plain pages, 404 */

.page-head { padding-block: calc(var(--header-h) + clamp(64px, 9vw, 136px)) clamp(48px, 5vw, 80px); }
.page-head .eyebrow { margin-block-end: 18px; }
.page-head__title { font-family: var(--font-display); font-size: clamp(44px, 6.4vw, 96px); font-weight: 600; line-height: 1; text-wrap: balance; }
.page-head__title a { text-decoration: none; }
.page-head__lead { margin-block-start: 20px; max-inline-size: 56ch; color: var(--secondary); }
.page-head--404 .btn-light { margin-block-start: 32px; }
.prose { margin-block-start: 32px; max-inline-size: var(--measure); }
.prose > * + * { margin-block-start: 1em; }

/* ---------------------------------------------------------------- Lightbox */

.lightbox { inline-size: 100vw; block-size: 100dvh; max-inline-size: none; max-block-size: none; margin: 0; padding: 0; border: 0; background: rgb(3 3 3 / 0.97); color: var(--ink); overflow: hidden; }
.lightbox::backdrop { background: rgb(3 3 3 / 0.97); }
.lightbox[open] { display: grid; grid-template-rows: minmax(0, 1fr) auto; }
.lightbox__figure { display: grid; grid-template-rows: minmax(0, 1fr) auto; place-items: center; min-block-size: 0; margin: 0; padding: clamp(16px, 4vw, 48px) clamp(16px, 4vw, 48px) 0; }
.lightbox__image { inline-size: auto; block-size: auto; max-inline-size: 100%; max-block-size: 100%; min-block-size: 0; object-fit: contain; }
.lightbox__caption { padding-block-start: 14px; max-inline-size: 80ch; font-size: 13px; line-height: 1.45; text-align: center; color: var(--secondary); }
.lightbox__caption [data-lightbox-count] { margin-inline-end: 8px; color: var(--accent); font-variant-numeric: tabular-nums; }
.lightbox__controls { display: flex; justify-content: center; gap: 12px; padding-block: 14px max(18px, env(safe-area-inset-bottom, 0px)); }


/* ---------------------------------------------------------------- Send-brief dialog */

.brief-dialog {
  inline-size: min(640px, calc(100vw - 32px));
  max-inline-size: none;
  max-block-size: calc(100dvh - 32px);
  margin: auto;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  overflow: auto;
  overscroll-behavior: contain;
}
.brief-dialog::backdrop { background: var(--backdrop); opacity: 0; transition: opacity 0.35s var(--ease); }
.brief-dialog.is-open::backdrop { opacity: 1; }

.brief-dialog__inner { display: grid; gap: 24px; padding: clamp(24px, 4vw, 40px); }
.brief-dialog__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.brief-dialog__title { font-size: var(--size-dialog-title); }
.brief-dialog__close { margin-block-start: -6px; margin-inline-end: -12px; }
.brief-dialog__lead { margin-block-start: -10px; }

.brief-dialog__options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.choice {
  display: grid;
  align-content: end;
  gap: 4px;
  min-block-size: 156px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--ground);
  color: var(--ink);
  text-decoration: none;
  transition: background-color 0.25s var(--ease);
}
.choice:hover { background: var(--surface-hover); }
.choice__icon { inline-size: 28px; block-size: 28px; margin-block-end: auto; }
.choice__name {
  margin-block-start: 24px;
  font-size: 22px;
  font-weight: 600;
  font-stretch: 100%;
  letter-spacing: -0.012em;
  line-height: 1.15;
}
.choice__note { font-size: var(--size-small); line-height: 1.4; color: var(--secondary); }

.brief-details summary {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-block-size: var(--hit);
  font-size: 16px;
  font-weight: 600;
  list-style: none;
  cursor: pointer;
}
.brief-details summary::-webkit-details-marker { display: none; }
.brief-details__optional { font-weight: 400; color: var(--secondary); }
.brief-details__mark { position: relative; inline-size: 14px; block-size: 14px; flex: none; }
.brief-details__mark::before,
.brief-details__mark::after {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  inset-block-start: 6px;
  inline-size: 14px;
  block-size: 2px;
  background: currentColor;
  transition: transform 0.3s var(--ease);
}
.brief-details__mark::after { transform: rotate(90deg); }
.brief-details[open] .brief-details__mark::after { transform: rotate(0deg); }

.brief-details__body { display: grid; gap: 22px; padding-block-start: 14px; }
@media (prefers-reduced-motion: no-preference) {
  .brief-details[open] .brief-details__body { animation: fields-in 0.4s var(--ease); }
}
@keyframes fields-in { from { opacity: 0; transform: translateY(8px); } }

.field { min-inline-size: 0; padding: 0; border: 0; }
.field legend { padding: 0; margin-block-end: 10px; font-size: 14px; font-weight: 600; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; display: inline-flex; }
.chip input { position: absolute; inset: 0; margin: 0; opacity: 0; cursor: pointer; }
.chip span {
  display: inline-flex;
  align-items: center;
  min-block-size: var(--hit);
  padding-inline: 16px;
  border: 1px solid var(--field-line);
  border-radius: var(--radius);
  font-size: var(--size-small);
  white-space: nowrap;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.chip input:hover + span { border-color: var(--ink); }
.chip input:checked + span { border-color: var(--ink); background: var(--ink); color: var(--ground); }
.chip input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }

.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.text-field { display: grid; gap: 8px; font-size: 14px; font-weight: 600; }
.text-field input {
  min-block-size: 48px;
  inline-size: 100%;
  padding-inline: 14px;
  border: 1px solid var(--field-line);
  border-radius: var(--radius);
  background: var(--ground);
  color: var(--ink);
  font-size: 16px;
  font-weight: 400;
}
.text-field input::placeholder { color: var(--placeholder); opacity: 1; }
.text-field input:focus-visible { outline: 2px solid var(--accent); outline-offset: 0; border-color: var(--accent); }

.brief-details__preview { font-size: 14px; line-height: 1.5; color: var(--secondary); }
.brief-details__preview span { display: block; margin-block-end: 2px; color: var(--ink); font-weight: 600; }
.brief-details__preview output { display: block; }

.text-button {
  justify-self: start;
  min-block-size: var(--hit);
  padding: 0;
  border: 0;
  background: none;
  color: var(--ink);
  font-size: 14px;
  text-decoration: underline;
  text-underline-offset: 5px;
}

.brief-dialog__sample { font-size: var(--size-note); color: var(--secondary); }

@media (max-width: 519px) {
  .brief-dialog__options,
  .field-row { grid-template-columns: minmax(0, 1fr); }
  .choice { min-block-size: 0; }
  .choice__name { margin-block-start: 18px; }
}



/* ---------------------------------------------------------------- Reduced motion */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; }
  .hero__slide { transition-duration: 0.4s !important; }
}
/* Shared by the dialogs */
.display { font-family: var(--font-display); font-weight: 600; letter-spacing: -0.015em; line-height: 1.05; }
.icon-btn { display: inline-grid; place-items: center; inline-size: var(--hit); block-size: var(--hit); flex: none; padding: 0; border: 0; border-radius: var(--radius); background: transparent; color: var(--ink); transition: background-color 0.2s var(--ease), color 0.2s var(--ease); }
.icon-btn svg { inline-size: 20px; block-size: 20px; }
.icon-btn:hover { background: var(--ink); color: var(--ground); }

/* ---------------------------------------------------------------- Arabic / RTL typography and directional refinements */

[dir="rtl"] .hero__progress i { transform-origin: right; }
[dir="rtl"] .intro__layer--lit { clip-path: inset(0 0% 0 100%); }
[dir="rtl"] .intro__layer--shine { background-position: 0% 0; }
[dir="rtl"] .arrow-link:hover .icon-long,
[dir="rtl"] .project-nav__next:hover .project-nav__name .icon-long {
  transform: scaleX(-1) translateX(6px);
}
[dir="rtl"] .site-footer {
  background: radial-gradient(50% 70% at 15% 100%, rgb(var(--glow) / 0.18), transparent 70%), var(--ground);
}

[dir="rtl"] .eyebrow,
[dir="rtl"] .pill,
[dir="rtl"] .pill.pill--small,
[dir="rtl"] .site-nav__list a,
[dir="rtl"] .footer__nav a,
[dir="rtl"] .hero__caption,
[dir="rtl"] .service__name,
[dir="rtl"] .panel__no,
[dir="rtl"] .panel__title,
[dir="rtl"] .panel__meta,
[dir="rtl"] .about__facts dt,
[dir="rtl"] .facts__item dt,
[dir="rtl"] .fig-caption,
[dir="rtl"] .crumbs,
[dir="rtl"] .project-nav__all,
[dir="rtl"] .project-nav__label,
[dir="rtl"] .intro__role,
[dir="rtl"] .intro__skip,
[dir="rtl"] .card__meta,
[dir="rtl"] .figure__no {
  letter-spacing: 0;
  text-transform: none;
}

[dir="rtl"] .h2,
[dir="rtl"] .display-xl,
[dir="rtl"] .display-xxl,
[dir="rtl"] .hero__title,
[dir="rtl"] .project-head__title,
[dir="rtl"] .page-head__title,
[dir="rtl"] .cta__title,
[dir="rtl"] .footer__title,
[dir="rtl"] .brand,
[dir="rtl"] .intro__name,
[dir="rtl"] .choice__name,
[dir="rtl"] .display {
  letter-spacing: 0;
}

[dir="rtl"] .hero__title,
[dir="rtl"] .display-xl,
[dir="rtl"] .display-xxl,
[dir="rtl"] .project-head__title,
[dir="rtl"] .page-head__title {
  line-height: 1.24;
}

[dir="rtl"] .h2,
[dir="rtl"] .cta__title,
[dir="rtl"] .footer__title,
[dir="rtl"] .menu-panel__links a {
  line-height: 1.26;
}

[dir="rtl"] .line-mask {
  padding-block: 0.1em 0.16em;
}

[dir="rtl"] .accent-word,
[dir="rtl"] .intro__layer em,
[dir="rtl"] .chapter,
[dir="rtl"] .signature {
  font-style: normal;
}

[dir="rtl"] .panel__title {
  line-height: 1.3;
  color: var(--surface);
  -webkit-text-stroke: 0;
  --stroke-c: rgb(244 244 246 / 0.68);
  text-shadow:
    1px 0 0 var(--stroke-c),
    -1px 0 0 var(--stroke-c),
    0 1px 0 var(--stroke-c),
    0 -1px 0 var(--stroke-c),
    0.75px 0.75px 0 var(--stroke-c),
    -0.75px 0.75px 0 var(--stroke-c),
    0.75px -0.75px 0 var(--stroke-c),
    -0.75px -0.75px 0 var(--stroke-c);
}

[dir="rtl"] .eyebrow,
[dir="rtl"] .pill,
[dir="rtl"] .hero__caption,
[dir="rtl"] .fig-caption,
[dir="rtl"] .about__facts dt,
[dir="rtl"] .facts__item dt,
[dir="rtl"] .crumbs,
[dir="rtl"] .project-nav__all,
[dir="rtl"] .project-nav__label {
  font-size: 13px;
}