/*
 * baraa.si/about and baraa.si/ar/about: the speaker profile page of the programme.
 * Tokens and type follow DESIGN.md (Speaker Programme). One stylesheet serves both
 * languages: layout uses logical properties, and [dir="rtl"] swaps in the Arabic face.
 */
:root {
  --stage: #ac1516;
  --stage-deep: #7c0b08;
  --lanyard: #5e0a08;
  --live: #d4231c;
  --paper: #f7f5f2;
  --paper-2: #ece7e1;
  --paper-3: #ddd6cf;
  --ink: #121010;
  --ink-2: #2b2626;
  --muted: #645d5b;
  --on-stage: #fff6f2;
  --on-stage-muted: #f6d4cd;
  --display: "Bricolage Grotesque", "Hanken Grotesk", sans-serif;
  --text: "Hanken Grotesk", system-ui, sans-serif;
  --gutter: clamp(1rem, 3.4vw, 3rem);
  --max: 1320px;
  --bar-h: 64px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --shadow-card: 0 1px 2px rgb(0 0 0 / 0.12), 0 22px 48px -18px rgb(0 0 0 / 0.5);
  color-scheme: light;
}
[dir="rtl"] {
  --display: "IBM Plex Sans Arabic", "Bricolage Grotesque", sans-serif;
  --text: "IBM Plex Sans Arabic", "Hanken Grotesk", system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}
html {
  background: var(--paper);
  scroll-padding-top: calc(var(--bar-h) + 16px);
}
@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--text);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
}
[dir="rtl"] body {
  line-height: 1.75;
}
h1,
h2,
h3,
p,
ul,
ol,
dl,
dd,
figure {
  margin: 0;
}
ul,
ol {
  padding: 0;
  list-style: none;
}
a {
  color: inherit;
}
img {
  display: block;
  max-width: 100%;
  height: auto;
}
:focus-visible {
  outline: 3px solid var(--live);
  outline-offset: 3px;
  border-radius: 6px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: absolute;
  inset-inline-start: 12px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--ink);
  color: var(--paper);
  font-weight: 700;
  text-decoration: none;
}
.skip-link:focus {
  top: 12px;
}
.ltr {
  direction: ltr;
  unicode-bidi: isolate;
}
.wrap {
  width: min(100% - 2 * var(--gutter), var(--max));
  margin-inline: auto;
}

/* ---------- bar ---------- */
.bar {
  position: sticky;
  top: 0;
  z-index: 60;
  height: var(--bar-h);
  display: flex;
  align-items: center;
  gap: 6px;
  padding-inline: var(--gutter) clamp(12px, 2vw, 28px);
  background: var(--paper);
  box-shadow: 0 1px 0 var(--paper-3), 0 10px 30px -16px rgb(0 0 0 / 0.4);
}
.bar-name {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-inline-end: auto;
  font-family: var(--display);
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -0.02em;
  text-decoration: none;
  white-space: nowrap;
}
[dir="rtl"] .bar-name {
  letter-spacing: 0;
  font-weight: 700;
}
.bar-tabs {
  display: flex;
  gap: 2px;
}
.bar a.tab,
.bar-lang {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  border-radius: 9px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  color: var(--ink-2);
  transition: background-color 0.25s var(--ease-out), color 0.25s var(--ease-out);
}
.bar a.tab:hover,
.bar-lang:hover {
  background: var(--paper-2);
}
.bar a.tab[aria-current="page"] {
  background: var(--ink);
  color: var(--paper);
}
.bar-lang {
  gap: 8px;
  border: 1.5px solid var(--paper-3);
  border-radius: 999px;
  margin-inline: 6px;
  font-family: "IBM Plex Sans Arabic", "Hanken Grotesk", sans-serif;
}
.bar-lang svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}
.bar-send {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 10px;
  background: var(--stage);
  color: var(--on-stage);
  font-weight: 800;
  font-size: 15px;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.25s var(--ease-out);
}
.bar-send:hover {
  background: var(--stage-deep);
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 24px;
  border-radius: 12px;
  font-weight: 800;
  font-size: 16.5px;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.3s var(--ease-out), color 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
}
.i-arrow {
  width: 1.1em;
  height: 1.1em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.35s var(--ease-out);
}
[dir="rtl"] .i-arrow {
  transform: scaleX(-1);
}
.btn:hover .i-arrow {
  transform: translateX(5px);
}
[dir="rtl"] .btn:hover .i-arrow {
  transform: scaleX(-1) translateX(5px);
}
.btn-paper {
  background: var(--paper);
  color: var(--stage);
  box-shadow: 0 16px 34px -14px rgb(0 0 0 / 0.6);
}
.btn-paper:hover {
  background: #fff;
}
.btn-line {
  color: var(--on-stage);
  box-shadow: inset 0 0 0 1.5px rgb(255 246 242 / 0.7);
}
.btn-line:hover {
  background: var(--on-stage);
  color: var(--stage);
}
.btn-ink {
  background: var(--ink);
  color: var(--paper);
}
.btn-ink:hover {
  background: var(--stage);
}

/* ---------- hero: the speaker profile on the red stage ---------- */
.profile {
  position: relative;
  overflow: hidden;
  color: var(--on-stage);
  background: radial-gradient(120% 90% at 25% 10%, #c0181a 0%, var(--stage) 45%, var(--stage-deep) 100%);
}
.profile-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 5rem);
  padding-block: clamp(3rem, 7vw, 6rem) clamp(4rem, 8vw, 7rem);
}
.crumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--on-stage-muted);
}
.crumbs li + li::before {
  content: "/";
  margin-inline-end: 6px;
  opacity: 0.6;
}
.crumbs a {
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 28px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--on-stage-muted);
}
[dir="rtl"] .eyebrow {
  letter-spacing: 0;
  font-size: 15px;
}
.eyebrow i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--on-stage);
  box-shadow: 0 0 0 4px rgb(255 246 242 / 0.18);
}
.profile h1 {
  margin-top: 14px;
  font-family: var(--display);
  font-weight: 800;
  font-stretch: 80%;
  font-size: clamp(3.6rem, 10vw, 8.4rem);
  line-height: 0.86;
  letter-spacing: -0.03em;
}
[dir="rtl"] .profile h1 {
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.05;
  font-size: clamp(3.2rem, 8.5vw, 7rem);
}
.profile h1 small {
  display: block;
  margin-bottom: 0.2em;
  font-size: 0.32em;
  font-weight: 700;
  font-stretch: 100%;
  letter-spacing: -0.01em;
  line-height: 1.1;
  color: var(--on-stage-muted);
}
.aka {
  margin-top: 14px;
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  color: var(--on-stage-muted);
}
.aka b {
  color: var(--on-stage);
  font-weight: 700;
}
.bio-lead {
  max-width: 40rem;
  margin-top: clamp(1.5rem, 3vw, 2.25rem);
  font-size: clamp(1.1rem, 1.6vw, 1.32rem);
  line-height: 1.6;
}
.bio-lead strong {
  font-weight: 800;
}
.profile-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

/* the portrait, printed on a badge card */
.portrait {
  position: relative;
  justify-self: center;
  width: min(100%, 360px);
  padding: 14px 14px 0;
  border-radius: 18px;
  background: var(--paper);
  color: var(--ink);
  box-shadow: var(--shadow-card), 0 40px 80px -30px rgb(30 0 0 / 0.7);
  transform: rotate(2.2deg);
}
[dir="rtl"] .portrait {
  transform: rotate(-2.2deg);
}
.portrait::before {
  content: "";
  position: absolute;
  top: -11px;
  left: 50%;
  width: 72px;
  height: 22px;
  margin-left: -36px;
  border-radius: 6px;
  background: var(--lanyard);
  box-shadow: inset 0 -3px 0 rgb(0 0 0 / 0.25);
}
.portrait-frame {
  overflow: hidden;
  border-radius: 10px;
  aspect-ratio: 4 / 5;
  background: #1a1414;
}
.portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 12%;
  filter: grayscale(1) contrast(1.06) brightness(1.04);
}
.portrait figcaption {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 14px 4px 12px;
}
.portrait figcaption b {
  white-space: nowrap;
  font-family: var(--display);
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -0.02em;
}
[dir="rtl"] .portrait figcaption b {
  letter-spacing: 0;
  font-weight: 700;
}
.portrait figcaption span {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--muted);
}
.portrait-ribbon {
  margin-inline: -14px;
  padding: 13px 10px;
  border-radius: 0 0 18px 18px;
  background: var(--stage);
  color: var(--on-stage);
  text-align: center;
  font-family: "Bricolage Grotesque", sans-serif;
  font-weight: 800;
  font-stretch: 75%;
  font-size: 17px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
}
[dir="rtl"] .portrait-ribbon {
  font-family: var(--display);
  letter-spacing: 0.04em;
  font-size: 18px;
}

/* ---------- at a glance ---------- */
.glance {
  padding-block: clamp(3rem, 6vw, 5rem) 0;
}
.glance dl {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 2px solid var(--ink);
}
.glance div {
  padding: 22px 22px 24px 0;
  border-bottom: 1.5px solid var(--paper-3);
}
[dir="rtl"] .glance div {
  padding: 22px 0 24px 22px;
}
.glance div:not(:nth-child(3n + 1)) {
  padding-inline-start: 22px;
  border-inline-start: 1.5px solid var(--paper-3);
}
.glance dt {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
[dir="rtl"] .glance dt {
  letter-spacing: 0;
  font-size: 14px;
}
.glance dd {
  margin-top: 6px;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.15rem, 1.7vw, 1.4rem);
  line-height: 1.2;
  letter-spacing: -0.015em;
}
[dir="rtl"] .glance dd {
  letter-spacing: 0;
  line-height: 1.45;
}

/* ---------- sections ---------- */
.block {
  padding-block: clamp(4rem, 8vw, 7rem) 0;
}
.block-head {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  align-items: end;
  gap: 12px 48px;
  padding-bottom: clamp(1.5rem, 3vw, 2.5rem);
}
.block-head h2 {
  font-family: var(--display);
  font-weight: 800;
  font-stretch: 84%;
  font-size: clamp(2.8rem, 6.4vw, 5.2rem);
  line-height: 0.92;
  letter-spacing: -0.015em;
  text-wrap: balance;
}
[dir="rtl"] .block-head h2 {
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.15;
  font-size: clamp(2.4rem, 5.4vw, 4.4rem);
}
.block-head p {
  max-width: 38ch;
  font-size: 18px;
  color: var(--muted);
}
.n {
  display: block;
  margin-bottom: 14px;
  font-family: var(--text);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--stage);
}
[dir="rtl"] .n {
  letter-spacing: 0;
  font-size: 15px;
}

/* own words: long-form bio */
.words {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 24px 48px;
}
.words-quote {
  align-self: start;
  position: sticky;
  top: calc(var(--bar-h) + 32px);
  padding: 28px 28px 30px;
  border-radius: 16px;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.5rem, 2.4vw, 2.1rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
}
[dir="rtl"] .words-quote {
  letter-spacing: 0;
  line-height: 1.5;
}
.words-quote::before {
  content: "\201C";
  display: block;
  height: 0.55em;
  font-size: 2.6em;
  line-height: 1;
  color: var(--live);
}
[dir="rtl"] .words-quote::before {
  content: "\201D";
}
.words-body p {
  max-width: 62ch;
  font-size: 18.5px;
  line-height: 1.7;
  color: var(--ink-2);
}
[dir="rtl"] .words-body p {
  line-height: 1.9;
}
.words-body p + p {
  margin-top: 1.1em;
}
.words-body strong {
  color: var(--ink);
}

/* roles */
.roles {
  border-top: 2px solid var(--ink);
}
.role {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 10px 48px;
  padding-block: 28px 30px;
  border-bottom: 1.5px solid var(--paper-3);
}
.role h3 {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
}
[dir="rtl"] .role h3 {
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.35;
}
.role-at {
  margin-top: 8px;
  font-weight: 700;
  color: var(--stage);
}
.role-tag {
  display: inline-block;
  margin-top: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--paper-2);
  font-size: 13px;
  font-weight: 700;
}
.role ul li {
  position: relative;
  padding-inline-start: 22px;
  color: var(--ink-2);
}
.role ul li + li {
  margin-top: 10px;
}
.role ul li::before {
  content: "";
  position: absolute;
  inset-inline-start: 2px;
  top: 0.62em;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--stage);
}

/* selected work */
.work {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 1px 0 var(--paper-3), 0 18px 40px -26px rgb(0 0 0 / 0.45);
  overflow: hidden;
  transition: transform 0.45s var(--ease-out), box-shadow 0.45s var(--ease-out);
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 1px 0 var(--paper-3), 0 30px 60px -28px rgb(0 0 0 / 0.55);
}
.card-media {
  aspect-ratio: 16 / 10;
  background: var(--ink);
  overflow: hidden;
}
.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease-out);
}
.card:hover .card-media img {
  transform: scale(1.035);
}
.card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 10px;
  padding: 20px 22px 22px;
}
.card-kind {
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--stage);
}
[dir="rtl"] .card-kind {
  letter-spacing: 0;
  font-size: 14px;
}
.card h3 {
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.45rem;
  line-height: 1.1;
  letter-spacing: -0.02em;
}
[dir="rtl"] .card h3 {
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.4;
}
.card p {
  font-size: 16px;
  color: var(--ink-2);
}
.card-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding-top: 8px;
  font-weight: 800;
  text-decoration: none;
  color: var(--ink);
}
.card-link::after {
  content: "";
  position: absolute;
  inset: 0;
}
.card-link:hover .i-arrow {
  transform: translateX(4px);
}
[dir="rtl"] .card-link:hover .i-arrow {
  transform: scaleX(-1) translateX(4px);
}

/* toolkit */
.kit {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.kit-group {
  padding: 22px 22px 24px;
  border-radius: 16px;
  border: 1.5px solid var(--paper-3);
}
.kit-group h3 {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.3rem;
  letter-spacing: -0.015em;
}
[dir="rtl"] .kit-group h3 {
  font-weight: 700;
  letter-spacing: 0;
}
.kit-group h3 span {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: var(--stage);
  color: var(--on-stage);
  font-family: "Bricolage Grotesque", sans-serif;
  font-size: 17px;
}
.kit-group > p {
  margin-top: 8px;
  font-size: 15.5px;
  color: var(--muted);
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 14px;
}
.chips li {
  padding: 5px 11px;
  border: 1.5px solid var(--paper-3);
  border-radius: 999px;
  background: var(--paper);
  font-size: 13.5px;
  font-weight: 700;
  direction: ltr;
}

/* recognition */
.creds {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 48px;
  border-top: 2px solid var(--ink);
}
.cred {
  display: grid;
  grid-template-columns: 5.5rem minmax(0, 1fr);
  align-items: baseline;
  gap: 16px;
  padding-block: 20px;
  border-bottom: 1.5px solid var(--paper-3);
}
.cred b {
  font-family: "Bricolage Grotesque", sans-serif;
  font-weight: 800;
  font-stretch: 80%;
  font-size: 1.7rem;
  line-height: 1;
  color: var(--stage);
  direction: ltr;
  text-align: start;
}
.cred h3 {
  font-size: 17.5px;
  font-weight: 800;
  line-height: 1.3;
}
.cred p {
  margin-top: 4px;
  font-size: 15px;
  color: var(--muted);
}

/* faq */
.faq {
  border-top: 2px solid var(--ink);
}
.faq details {
  border-bottom: 1.5px solid var(--paper-3);
}
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 72px;
  padding-block: 18px;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary h3 {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.15rem, 1.8vw, 1.45rem);
  line-height: 1.25;
  letter-spacing: -0.012em;
}
[dir="rtl"] .faq summary h3 {
  letter-spacing: 0;
  line-height: 1.5;
}
.faq summary i {
  position: relative;
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--paper-2);
  transition: background-color 0.3s var(--ease-out), transform 0.4s var(--ease-out);
}
.faq summary i::before,
.faq summary i::after {
  content: "";
  position: absolute;
  inset: 50% auto auto 50%;
  width: 14px;
  height: 2px;
  margin: -1px 0 0 -7px;
  border-radius: 2px;
  background: var(--ink);
}
.faq summary i::after {
  transform: rotate(90deg);
  transition: transform 0.3s var(--ease-out);
}
.faq details[open] summary i {
  background: var(--stage);
}
.faq details[open] summary i::before,
.faq details[open] summary i::after {
  background: var(--on-stage);
}
.faq details[open] summary i::after {
  transform: rotate(0deg);
}
.faq summary:hover i {
  background: var(--paper-3);
}
.faq .answer {
  max-width: 70ch;
  padding-bottom: 24px;
  font-size: 17.5px;
  color: var(--ink-2);
}
.faq .answer p + p {
  margin-top: 0.8em;
}

/* ---------- call to action ---------- */
.cta {
  margin-top: clamp(4rem, 8vw, 7rem);
  color: var(--on-stage);
  background: radial-gradient(120% 120% at 80% 0%, #c0181a 0%, var(--stage) 45%, var(--stage-deep) 100%);
}
.cta-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  align-items: center;
  gap: 32px 48px;
  padding-block: clamp(3.5rem, 7vw, 6rem);
}
.cta h2 {
  font-family: var(--display);
  font-weight: 800;
  font-stretch: 84%;
  font-size: clamp(3rem, 7vw, 5.6rem);
  line-height: 0.9;
  letter-spacing: -0.015em;
}
[dir="rtl"] .cta h2 {
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.15;
}
.cta-grid > div > p {
  margin-top: 16px;
  max-width: 36ch;
  font-size: 18.5px;
  color: var(--on-stage-muted);
}
.contacts {
  display: grid;
  gap: 10px;
}
.contacts a {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 64px;
  padding: 10px 18px;
  border-radius: 14px;
  background: rgb(255 246 242 / 0.08);
  box-shadow: inset 0 0 0 1.5px rgb(255 246 242 / 0.22);
  text-decoration: none;
  transition: background-color 0.3s var(--ease-out), color 0.3s var(--ease-out);
}
.contacts a:hover {
  background: var(--paper);
  color: var(--stage);
}
.contacts svg {
  width: 22px;
  height: 22px;
  flex: none;
}
.contacts .stroke {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.contacts .fill {
  fill: currentColor;
}
.contacts small {
  display: block;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.8;
}
[dir="rtl"] .contacts small {
  letter-spacing: 0;
  font-size: 13.5px;
}
.contacts b {
  font-weight: 800;
  font-size: 17px;
}

/* ---------- footer ---------- */
.foot {
  padding-block: 28px calc(28px + env(safe-area-inset-bottom));
  background: var(--stage-deep);
  color: var(--on-stage-muted);
  font-size: 15px;
}
.foot .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px 24px;
}
.foot nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
}
.foot a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--on-stage);
  text-decoration: none;
  font-weight: 600;
}
.foot a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* ================= case studies, work index, notes, Arabic home ================= */

/* hero variants on the red stage */
.page-hero .wrap {
  padding-block: clamp(3rem, 7vw, 5.5rem) clamp(3.5rem, 7vw, 6rem);
}
.page-hero h1 {
  margin-top: 14px;
  font-family: var(--display);
  font-weight: 800;
  font-stretch: 80%;
  font-size: clamp(3.4rem, 9vw, 7.4rem);
  line-height: 0.88;
  letter-spacing: -0.03em;
}
[dir="rtl"] .page-hero h1 {
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.1;
}
.page-hero .bio-lead {
  max-width: 46rem;
}
.profile .case-title,
.profile .home-title {
  font-size: clamp(2.2rem, 4.6vw, 4.1rem);
  font-stretch: 86%;
  line-height: 0.98;
  letter-spacing: -0.022em;
  text-wrap: balance;
}
[dir="rtl"] .profile .case-title,
[dir="rtl"] .profile .home-title {
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1.3;
  letter-spacing: 0;
}
.profile .case-title {
  overflow-wrap: anywhere;
}
.case-hero .profile-grid,
.home-hero .profile-grid {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}
.case-cover,
.stage-still {
  position: relative;
  margin: 0;
  padding: 10px;
  border-radius: 18px;
  background: var(--paper);
  box-shadow: var(--shadow-card), 0 40px 80px -30px rgb(30 0 0 / 0.7);
  transform: rotate(1.4deg);
}
[dir="rtl"] .case-cover,
[dir="rtl"] .stage-still {
  transform: rotate(-1.4deg);
}
.case-cover img,
.stage-still img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 10px;
  background: var(--ink);
}
.stage-still img {
  aspect-ratio: 16 / 9;
}
.case-cover figcaption {
  padding: 10px 6px 4px;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
}
.concept {
  display: inline-block;
  margin-inline-end: 8px;
  padding: 2px 8px;
  border-radius: 6px;
  background: var(--ink);
  color: var(--paper);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* key numbers */
.numbers {
  padding-top: clamp(2.5rem, 5vw, 4rem);
}
.numbers dl {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  border-top: 2px solid var(--ink);
}
.numbers div {
  display: flex;
  flex-direction: column-reverse;
  justify-content: flex-end;
  gap: 6px;
  padding: 22px 22px 24px 0;
  border-bottom: 1.5px solid var(--paper-3);
}
[dir="rtl"] .numbers div {
  padding: 22px 0 24px 22px;
}
.numbers div + div {
  padding-inline-start: 22px;
  border-inline-start: 1.5px solid var(--paper-3);
}
.numbers dd {
  font-family: "Bricolage Grotesque", var(--display);
  font-weight: 800;
  font-stretch: 82%;
  font-size: clamp(2rem, 3.6vw, 3rem);
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--stage);
  unicode-bidi: plaintext;
}
[dir="rtl"] .numbers dd {
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.2;
}
.numbers dt {
  max-width: 28ch;
  font-size: 15.5px;
  font-weight: 600;
  color: var(--ink-2);
}

/* case study body: stack aside + prose */
.case-body {
  display: grid;
  grid-template-columns: minmax(0, 0.32fr) minmax(0, 1fr);
  gap: 32px 64px;
  padding-top: clamp(3rem, 6vw, 5rem);
}
.case-aside {
  align-self: start;
  position: sticky;
  top: calc(var(--bar-h) + 28px);
  display: grid;
  gap: 12px;
}
.case-aside h2 {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
[dir="rtl"] .case-aside h2 {
  letter-spacing: 0;
  font-size: 15px;
}
.case-aside .chips {
  margin-top: 0;
}
.case-live {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  font-weight: 800;
  color: var(--stage);
  text-decoration: none;
}
.prose {
  max-width: 68ch;
  font-size: 18.5px;
  line-height: 1.72;
  color: var(--ink-2);
}
[dir="rtl"] .prose {
  line-height: 1.95;
}
.prose > * + * {
  margin-top: 1em;
}
.prose h2 {
  margin-top: 1.9em;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(1.6rem, 2.6vw, 2.1rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.prose h2:first-child {
  margin-top: 0;
}
[dir="rtl"] .prose h2 {
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.4;
}
.prose h3 {
  margin-top: 1.5em;
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--ink);
}
.prose ul,
.prose ol {
  display: grid;
  gap: 10px;
}
.prose ul li {
  position: relative;
  padding-inline-start: 22px;
}
.prose ul li::before {
  content: "";
  position: absolute;
  inset-inline-start: 2px;
  top: 0.68em;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--stage);
}
.prose ol {
  list-style: decimal;
  padding-inline-start: 1.4em;
}
.prose strong {
  color: var(--ink);
}
.prose a {
  color: var(--stage);
  font-weight: 700;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
}
.prose code {
  padding: 1px 6px;
  border-radius: 6px;
  background: var(--paper-2);
  font-size: 0.9em;
}
.prose blockquote {
  margin-inline: 0;
  padding: 4px 20px;
  border-inline-start: 4px solid var(--stage);
  color: var(--ink);
}
.prose-cover {
  width: 100%;
  border-radius: 14px;
}

/* gallery */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr));
  gap: 14px;
}
.gallery figure {
  margin: 0;
  padding: 10px;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 1px 0 var(--paper-3), 0 18px 40px -26px rgb(0 0 0 / 0.45);
}
.gallery img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 10px;
  background: var(--ink);
}
.gallery figcaption {
  padding: 10px 6px 4px;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink-2);
}

/* work index */
.work-index {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.work-index .card h2,
.card h2 {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(1.4rem, 2vw, 1.75rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
[dir="rtl"] .card h2 {
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.45;
}
.card .chips {
  margin-top: 4px;
}

/* Arabic home: keynote steps, facts, photo wall */
.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.steps > li {
  padding: 24px 22px 26px;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 1px 0 var(--paper-3), 0 18px 40px -26px rgb(0 0 0 / 0.45);
}
.step-n {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--stage);
  color: var(--on-stage);
  font-family: "Bricolage Grotesque", sans-serif;
  font-weight: 800;
  font-size: 18px;
}
.steps h3 {
  margin-top: 16px;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.45rem;
  line-height: 1.35;
}
.steps p {
  margin-top: 8px;
  color: var(--ink-2);
}
.steps .chips a {
  text-decoration: none;
}
.chips a {
  color: inherit;
}
.chips li:has(a):hover {
  border-color: var(--stage);
  color: var(--stage);
}
.facts-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}
.facts-strip li {
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--paper-2);
  font-weight: 600;
}
.photo-wall {
  columns: 4 14rem;
  column-gap: 14px;
}
.photo-wall li {
  break-inside: avoid;
  margin-bottom: 14px;
}
.photo-wall figure {
  margin: 0;
  padding: 8px 8px 10px;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 1px 0 var(--paper-3), 0 14px 30px -22px rgb(0 0 0 / 0.45);
}
.photo-wall img {
  width: 100%;
  border-radius: 8px;
}
.photo-wall figcaption {
  padding: 8px 4px 0;
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1.5;
}
.not-found .wrap {
  min-height: 60vh;
}

@media (max-width: 1080px) {
  .steps {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 900px) {
  .case-hero .profile-grid,
  .home-hero .profile-grid {
    grid-template-columns: 1fr;
  }
  .case-cover,
  .stage-still {
    order: 0;
  }
  .case-body {
    grid-template-columns: 1fr;
  }
  .case-aside {
    position: static;
    order: 1;
  }
  .work-index {
    grid-template-columns: 1fr;
  }
  .numbers div + div {
    padding-inline-start: 0;
    border-inline-start: 0;
  }
}
@media (max-width: 600px) {
  .prose {
    font-size: 17.5px;
  }
  .photo-wall {
    columns: 2;
    column-gap: 10px;
  }
}

/* ---------- motion ---------- */
@media (prefers-reduced-motion: no-preference) {
  .profile-copy > * {
    animation: rise 0.9s var(--ease-out) both;
  }
  .profile-copy > *:nth-child(2) { animation-delay: 0.05s; }
  .profile-copy > *:nth-child(3) { animation-delay: 0.12s; }
  .profile-copy > *:nth-child(4) { animation-delay: 0.2s; }
  .profile-copy > *:nth-child(5) { animation-delay: 0.28s; }
  .portrait {
    animation: hang 1.6s var(--ease-out) 0.15s both;
    transform-origin: 50% -20px;
  }
  @supports (animation-timeline: view()) {
    .reveal {
      animation: rise linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 55%;
    }
  }
}
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(26px);
  }
}
@keyframes hang {
  0% {
    opacity: 0;
    transform: translateY(-60px) rotate(-7deg);
  }
  45% {
    opacity: 1;
    transform: translateY(0) rotate(5deg);
  }
  75% {
    transform: rotate(1deg);
  }
  100% {
    transform: rotate(2.2deg);
  }
}
[dir="rtl"] .portrait {
  animation-name: hang-rtl;
}
@keyframes hang-rtl {
  0% {
    opacity: 0;
    transform: translateY(-60px) rotate(7deg);
  }
  45% {
    opacity: 1;
    transform: translateY(0) rotate(-5deg);
  }
  75% {
    transform: rotate(-1deg);
  }
  100% {
    transform: rotate(-2.2deg);
  }
}

/* ---------- tablet ---------- */
@media (max-width: 1080px) {
  .work {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 900px) {
  .bar-tabs {
    display: none;
  }
  .profile-grid {
    grid-template-columns: 1fr;
  }
  .portrait {
    width: min(78%, 320px);
    order: -1;
    margin-top: 12px;
  }
  .block-head,
  .words,
  .role,
  .cta-grid {
    grid-template-columns: 1fr;
  }
  .words-quote {
    position: static;
  }
  .creds {
    grid-template-columns: 1fr;
  }
  .glance dl {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .glance div,
  [dir="rtl"] .glance div {
    padding-inline: 0 16px;
    border-inline-start: 0;
  }
  .glance div:not(:nth-child(3n + 1)) {
    padding-inline-start: 0;
    border-inline-start: 0;
  }
  .glance div:nth-child(2n) {
    padding-inline-start: 16px;
    border-inline-start: 1.5px solid var(--paper-3);
  }
}

/* ---------- phone ---------- */
@media (max-width: 600px) {
  body {
    font-size: 16.5px;
  }
  .bar {
    padding-inline: 16px 10px;
    gap: 4px;
  }
  .bar-name {
    font-size: 19px;
  }
  .bar-lang {
    padding: 0 12px;
    margin-inline: 0;
  }
  .bar-lang svg {
    display: none;
  }
  .bar-send {
    padding: 0 14px;
    font-size: 14.5px;
  }
  .profile-actions .btn {
    flex: 1 1 100%;
  }
  .work,
  .kit {
    grid-template-columns: 1fr;
  }
  .glance dl {
    grid-template-columns: 1fr;
  }
  .glance div:nth-child(2n) {
    padding-inline-start: 0;
    border-inline-start: 0;
  }
  .cred {
    grid-template-columns: 4.4rem minmax(0, 1fr);
  }
  .cred b {
    font-size: 1.4rem;
  }
  .words-body p {
    font-size: 17.5px;
  }
}
