@font-face {
  font-family: 'Source Serif 4';
  src: url(fonts/sourceserif4.woff2) format('woff2');
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Source Serif 4';
  src: url(fonts/sourceserif4-italic.woff2) format('woff2');
  font-weight: 300 700;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: 'Readex Pro';
  src: url(fonts/readex.woff2) format('woff2');
  font-weight: 300 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Amiri';
  src: url(fonts/amiri.woff2) format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;
  --paper: #faf9f5;
  --surface: #ffffff;
  --warm-band: #f2eee5;
  --matte: #eeeadf;
  --ink: #16181b;
  --ink-2: #383e45;
  --muted: #5d646d;
  --line: #dfdad0;
  --line-strong: #c4bdb0;
  --cobalt: #184292;
  --cobalt-hover: #0f2c66;
  --vermilion: #b8422a;
  --focus: #184292;
  --serif: 'Source Serif 4', 'Iowan Old Style', Georgia, serif;
  --sans: 'Readex Pro', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
  --max: 1200px;
  --gutter: clamp(20px, 4vw, 48px);
}

html[lang="ar"] {
  --serif: 'Amiri', 'Noto Naskh Arabic', Georgia, serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  background: var(--paper);
  color: var(--ink);
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 16px/1.65 var(--sans);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

html[lang="ar"] body {
  line-height: 1.85;
}

h1, h2, h3, h4, p, ul, ol, dl, dt, dd, figure, blockquote {
  margin: 0;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration-color: var(--line-strong);
  text-underline-offset: 0.24em;
  text-decoration-thickness: 1px;
  transition: color 0.18s ease, text-decoration-color 0.18s ease;
}

a:hover {
  color: var(--cobalt);
  text-decoration-color: var(--cobalt);
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip-link {
  position: fixed;
  inset-block-start: -96px;
  inset-inline-start: 16px;
  z-index: 90;
  padding: 10px 16px;
  background: var(--surface);
  color: var(--ink);
  border: 1.5px solid var(--cobalt);
  border-radius: 3px;
  font-size: 14px;
  text-decoration: none;
}

.skip-link:focus {
  inset-block-start: 14px;
}

.wrap {
  width: 100%;
  max-width: calc(var(--max) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ── Masthead ─────────────────────────────────────────────────────────────── */

.masthead {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(250, 249, 245, 0.94);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.masthead-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 66px;
}

.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.015em;
  text-decoration: none;
  color: var(--ink);
  white-space: nowrap;
}

html[lang="ar"] .brand {
  font-size: 23px;
  letter-spacing: 0;
}

.brand-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  background: var(--vermilion);
  border-radius: 1px;
  transform: translateY(-1px);
  flex-shrink: 0;
}

.nav-desktop {
  display: flex;
  align-items: center;
  gap: 26px;
  font-size: 14px;
  color: var(--ink-2);
}

.nav-desktop a {
  text-decoration: none;
  padding-block: 6px;
  position: relative;
}

.nav-desktop a::after {
  content: '';
  position: absolute;
  inset-inline: 0;
  bottom: 2px;
  height: 1px;
  background: var(--cobalt);
  transform: scaleX(0);
  transform-origin: start;
  transition: transform 0.2s ease;
}

.nav-desktop a:hover::after {
  transform: scaleX(1);
}

.nav-sep {
  width: 1px;
  height: 15px;
  background: var(--line-strong);
}

.lang-link {
  color: var(--cobalt);
  font-weight: 500;
}

.nav-mobile {
  display: none;
  position: relative;
}

.nav-mobile summary {
  list-style: none;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  padding: 8px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 3px;
  color: var(--ink);
  background: var(--surface);
  user-select: none;
}

.nav-mobile summary::-webkit-details-marker {
  display: none;
}

.nav-mobile-panel {
  position: absolute;
  inset-inline-end: 0;
  top: calc(100% + 8px);
  min-width: 210px;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 3px;
  padding: 8px 0;
  box-shadow: 0 14px 32px -18px rgba(22, 24, 27, 0.22);
  display: flex;
  flex-direction: column;
}

.nav-mobile-panel a {
  padding: 11px 18px;
  font-size: 15px;
  text-decoration: none;
  color: var(--ink);
}

.nav-mobile-panel a:hover {
  background: var(--paper);
  color: var(--cobalt);
}

.nav-mobile-panel .lang-link {
  border-top: 1px solid var(--line);
  margin-top: 4px;
  padding-top: 12px;
  color: var(--cobalt);
}

/* ── Opening Editorial Spread ─────────────────────────────────────────────── */

.opening {
  padding-block: 18px clamp(52px, 6vw, 76px);
}

.dateline {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 24px;
  padding-bottom: 14px;
  margin-bottom: clamp(28px, 4vw, 48px);
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  color: var(--muted);
}

.opening-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.32fr) minmax(290px, 0.86fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: stretch;
}

.opening-copy {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.opening-copy h1 {
  font-family: var(--serif);
  font-size: clamp(2.25rem, 4.35vw, 3.55rem);
  font-weight: 400;
  line-height: 1.09;
  letter-spacing: -0.025em;
  color: var(--ink);
  text-wrap: balance;
  font-optical-sizing: auto;
}

html[lang="ar"] .opening-copy h1 {
  font-size: clamp(2.2rem, 4.3vw, 3.35rem);
  line-height: 1.34;
  letter-spacing: 0;
}

.lead {
  margin-top: clamp(20px, 2.6vw, 28px);
  max-width: 52ch;
  font-size: clamp(16px, 1.35vw, 18px);
  line-height: 1.68;
  color: var(--ink-2);
  text-wrap: pretty;
}

html[lang="ar"] .lead {
  line-height: 1.9;
}

.opening-actions {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 26px;
}

.btn-ink {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 11px 20px;
  background: var(--ink);
  color: var(--paper);
  border: 1px solid var(--ink);
  border-radius: 3px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.btn-ink:hover {
  background: var(--cobalt);
  border-color: var(--cobalt);
  color: #ffffff;
}

.inline-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
}

.inline-link > span:first-child {
  text-decoration: underline;
  text-decoration-color: var(--line-strong);
  text-underline-offset: 0.28em;
  text-decoration-thickness: 1px;
  transition: text-decoration-color 0.18s ease;
}

.inline-link:hover {
  color: var(--cobalt);
}

.inline-link:hover > span:first-child {
  text-decoration-color: var(--cobalt);
}

.fact-ledger {
  margin-top: auto;
  padding-top: 32px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px 20px;
  border-top: 1px solid var(--line);
}

.fact-item {
  min-width: 0;
}

.fact-value {
  display: block;
  font-family: var(--serif);
  font-size: clamp(1.55rem, 2.2vw, 2rem);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

html[lang="ar"] .fact-value {
  letter-spacing: 0;
  line-height: 1.25;
}

.fact-value sup {
  font-size: 0.62em;
  vertical-align: super;
  line-height: 0;
  margin-inline-start: 1px;
  color: var(--cobalt);
}

.fact-label {
  display: block;
  margin-top: 6px;
  font-size: 12.5px;
  line-height: 1.4;
  color: var(--muted);
}

/* Portrait Plate */

.portrait-col {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.portrait-frame {
  background: var(--matte);
  border: 1px solid var(--line);
  border-radius: 2px;
  overflow: hidden;
  aspect-ratio: 4 / 4.6;
}

.portrait-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 88%;
}

.portrait-caption {
  margin-top: 12px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px 14px;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--muted);
}

.portrait-caption a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--cobalt);
  white-space: nowrap;
  font-weight: 500;
  text-decoration: none;
}

.portrait-caption a > span:first-child {
  text-decoration: underline;
  text-decoration-color: rgba(24, 66, 146, 0.35);
  text-underline-offset: 0.25em;
}

.portrait-caption a:hover > span:first-child {
  text-decoration-color: var(--cobalt-hover);
}

/* ── Shared Section Structure ─────────────────────────────────────────────── */

.band {
  padding-block: clamp(48px, 6.5vw, 84px);
  border-top: 1px solid var(--line-strong);
}

.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px 32px;
  margin-bottom: clamp(28px, 3.8vw, 44px);
}

.section-header h2 {
  font-family: var(--serif);
  font-size: clamp(1.75rem, 2.8vw, 2.4rem);
  font-weight: 400;
  line-height: 1.14;
  letter-spacing: -0.02em;
  color: var(--ink);
}

html[lang="ar"] .section-header h2 {
  line-height: 1.42;
  letter-spacing: 0;
}

.section-intro {
  margin-top: 8px;
  max-width: 56ch;
  font-size: 15px;
  line-height: 1.65;
  color: var(--muted);
}

.section-action {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--cobalt);
  text-decoration: none;
  max-width: 100%;
}

.section-action > span:first-child {
  text-decoration: underline;
  text-decoration-color: rgba(24, 66, 146, 0.35);
  text-underline-offset: 0.28em;
  text-decoration-thickness: 1px;
  transition: text-decoration-color 0.18s ease;
}

.section-action:hover {
  color: var(--cobalt-hover);
}

.section-action:hover > span:first-child {
  text-decoration-color: var(--cobalt-hover);
}

/* ── Latest Thoughts Shelf ────────────────────────────────────────────────── */

.thoughts-shelf {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--line);
}

.thoughts-shelf.single {
  grid-template-columns: minmax(0, 1fr);
  max-width: 760px;
}

.thought-entry {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding-block: 26px 8px;
}

.thought-entry:nth-child(odd) {
  padding-inline-end: clamp(20px, 3.5vw, 44px);
}

.thought-entry:nth-child(even) {
  padding-inline-start: clamp(20px, 3.5vw, 44px);
  border-inline-start: 1px solid var(--line);
}

.thoughts-shelf.single .thought-entry {
  padding-inline: 0;
  border-inline-start: 0;
}

.thought-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 14px;
  font-size: 12.5px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.thought-meta-sep {
  color: var(--line-strong);
}

.thought-entry h3 {
  margin-top: 12px;
  font-family: var(--serif);
  font-size: clamp(1.35rem, 2.05vw, 1.7rem);
  font-weight: 400;
  line-height: 1.24;
  letter-spacing: -0.016em;
  color: var(--ink);
}

html[lang="ar"] .thought-entry h3 {
  line-height: 1.5;
  letter-spacing: 0;
}

.thought-entry h3 a {
  text-decoration: none;
}

.thought-entry h3 a:hover {
  color: var(--cobalt);
}

.thought-excerpt {
  margin-top: 10px;
  font-size: 15px;
  line-height: 1.68;
  color: var(--ink-2);
  max-width: 56ch;
}

html[lang="ar"] .thought-excerpt {
  line-height: 1.88;
}

.thought-foot {
  margin-top: auto;
  padding-top: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 13.5px;
}

.thought-author {
  color: var(--muted);
  font-size: 12.5px;
}

.thought-read {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--cobalt);
  font-weight: 500;
  text-decoration: none;
}

.thought-read:hover {
  color: var(--cobalt-hover);
  text-decoration: underline;
}

/* ── Selected Work: Monograph Spread + Editorial Plates ───────────────────── */

.plate-trigger {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  background: var(--matte);
  border: 1px solid var(--line);
  border-radius: 2px;
  overflow: hidden;
  text-align: start;
}

.plate-trigger img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.plate-trigger:hover img,
.plate-trigger:focus-visible img {
  transform: scale(1.018);
}

.plate-hint {
  position: absolute;
  inset-inline-end: 12px;
  bottom: 12px;
  padding: 5px 10px;
  background: rgba(250, 249, 245, 0.94);
  color: var(--ink);
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  font-size: 12px;
  font-weight: 500;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  pointer-events: none;
}

.plate-trigger:hover .plate-hint,
.plate-trigger:focus-visible .plate-hint {
  opacity: 1;
  transform: translateY(0);
}

/* Featured Lead Project (SpIRIT) */

.work-lead {
  display: grid;
  grid-template-columns: minmax(0, 1.36fr) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 54px);
  align-items: start;
  padding-bottom: clamp(36px, 4.8vw, 56px);
  border-bottom: 1px solid var(--line);
}

.work-lead .plate-trigger {
  aspect-ratio: 16 / 10;
}

.work-kicker {
  font-size: 12.5px;
  font-weight: 500;
  color: var(--cobalt);
  letter-spacing: 0.01em;
}

.work-lead h3 {
  margin-top: 8px;
  font-family: var(--serif);
  font-size: clamp(1.65rem, 2.6vw, 2.2rem);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--ink);
}

html[lang="ar"] .work-lead h3 {
  line-height: 1.4;
  letter-spacing: 0;
}

.work-desc {
  margin-top: 14px;
  font-size: 15.5px;
  line-height: 1.68;
  color: var(--ink-2);
}

html[lang="ar"] .work-desc {
  line-height: 1.88;
}

.spec-list {
  margin-top: 22px;
  border-top: 1px solid var(--line);
}

.spec-row {
  display: grid;
  grid-template-columns: 108px minmax(0, 1fr);
  gap: 12px;
  padding-block: 11px;
  border-bottom: 1px solid var(--line);
  font-size: 13.5px;
  line-height: 1.5;
}

.spec-row dt {
  color: var(--muted);
  font-weight: 500;
}

.spec-row dd {
  color: var(--ink-2);
}

.work-record {
  margin-top: 18px;
  font-size: 14px;
}

.work-record a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--cobalt);
  font-weight: 500;
  text-decoration: none;
}

.work-record a > span:first-child {
  text-decoration: underline;
  text-decoration-color: rgba(24, 66, 146, 0.35);
  text-underline-offset: 0.28em;
}

.work-record a:hover > span:first-child {
  text-decoration-color: var(--cobalt-hover);
}

/* Pair Row (Projects 2 & 3) */

.work-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(28px, 4vw, 48px);
  padding-block: clamp(36px, 4.8vw, 56px);
  border-bottom: 1px solid var(--line);
}

.work-pair .plate-trigger {
  aspect-ratio: 14 / 9;
}

/* Triptych Row (Projects 4, 5, 6) */

.work-triptych {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(24px, 3vw, 36px);
  padding-top: clamp(36px, 4.8vw, 56px);
}

.work-triptych .plate-trigger {
  aspect-ratio: 16 / 9.2;
}

.work-plate {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.work-plate-body {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.work-plate h3 {
  margin-top: 6px;
  font-family: var(--serif);
  font-size: clamp(1.28rem, 1.7vw, 1.52rem);
  font-weight: 400;
  line-height: 1.22;
  letter-spacing: -0.015em;
  color: var(--ink);
}

html[lang="ar"] .work-plate h3 {
  line-height: 1.48;
  letter-spacing: 0;
}

.work-plate p.work-desc {
  margin-top: 9px;
  font-size: 14.5px;
  line-height: 1.65;
}

html[lang="ar"] .work-plate p.work-desc {
  line-height: 1.86;
}

.work-disciplines {
  margin-top: auto;
  padding-top: 14px;
  font-size: 12.5px;
  color: var(--muted);
}

/* ── Research & Publications ──────────────────────────────────────────────── */

.pub-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.42fr);
  gap: clamp(28px, 5vw, 68px);
  align-items: start;
}

.pub-aside h2 {
  font-family: var(--serif);
  font-size: clamp(1.75rem, 2.8vw, 2.4rem);
  font-weight: 400;
  line-height: 1.14;
  letter-spacing: -0.02em;
}

html[lang="ar"] .pub-aside h2 {
  line-height: 1.42;
  letter-spacing: 0;
}

.pub-summary {
  margin-top: 14px;
  font-size: 15px;
  line-height: 1.68;
  color: var(--ink-2);
}

.venues-block {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.venues-label {
  font-size: 12.5px;
  font-weight: 500;
  color: var(--muted);
}

.venues-list {
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.85;
  color: var(--ink);
  display: flex;
  flex-wrap: wrap;
  gap: 2px 10px;
}

.venue-item {
  white-space: nowrap;
}

.venue-sep {
  color: var(--line-strong);
}

.pub-scholar {
  margin-top: 22px;
}

.pub-list {
  border-top: 1px solid var(--line-strong);
}

.pub-row {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr) auto;
  gap: 8px 20px;
  align-items: baseline;
  padding-block: 22px;
  padding-inline: 8px;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  color: inherit;
  transition: background 0.16s ease;
}

.pub-row:hover {
  background: var(--warm-band);
}

.pub-year {
  font-size: 13.5px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.pub-info h3 {
  font-family: var(--serif);
  font-size: clamp(1.16rem, 1.55vw, 1.36rem);
  font-weight: 400;
  line-height: 1.35;
  color: var(--ink);
  transition: color 0.16s ease;
}

html[lang="ar"] .pub-info h3 {
  line-height: 1.58;
}

.pub-row:hover .pub-info h3 {
  color: var(--cobalt);
}

.pub-venue {
  margin-top: 5px;
  font-size: 13.5px;
  color: var(--muted);
}

.pub-arrow {
  font-size: 15px;
  color: var(--muted);
  transition: color 0.16s ease, transform 0.16s ease;
}

.pub-row:hover .pub-arrow {
  color: var(--cobalt);
  transform: translate(2px, -2px);
}

html[dir="rtl"] .pub-row:hover .pub-arrow {
  transform: translate(-2px, -2px);
}

/* ── Scientific Papers · أوراق علمية ──────────────────────────────────────── */

.channel-band {
  background: var(--warm-band);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding-block: clamp(44px, 5.5vw, 68px);
}

.channel-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px clamp(28px, 5vw, 64px);
  align-items: end;
}

.channel-copy-col {
  min-width: 0;
}

.channel-kicker {
  font-size: 13px;
  font-weight: 500;
  color: var(--cobalt);
}

.channel-title {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 18px;
  font-family: var(--serif);
  font-size: clamp(1.85rem, 3.1vw, 2.75rem);
  font-weight: 400;
  line-height: 1.18;
  letter-spacing: -0.02em;
  color: var(--ink);
}

html[lang="ar"] .channel-title {
  letter-spacing: 0;
  line-height: 1.4;
}

.channel-title-alt {
  font-family: 'Amiri', 'Source Serif 4', serif;
  color: var(--cobalt);
  font-weight: 400;
}

html[lang="ar"] .channel-title-alt {
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 0.8em;
}

.channel-copy {
  margin-top: 14px;
  max-width: 56ch;
  font-size: 15.5px;
  line-height: 1.68;
  color: var(--ink-2);
}

.channel-aside {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 14px;
}

.channel-subs {
  display: flex;
  align-items: baseline;
  gap: 7px;
  color: var(--muted);
  font-size: 14px;
  font-variant-numeric: tabular-nums;
}

.channel-subs strong {
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 400;
  color: var(--ink);
}

/* ── Background: Experience, Bio, Education & Recognition ─────────────────── */

.background-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.96fr);
  gap: clamp(36px, 5.5vw, 76px);
  align-items: start;
}

.sub-heading {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.03em;
  margin-bottom: 16px;
}

html[lang="ar"] .sub-heading {
  letter-spacing: 0;
}

.timeline {
  border-top: 1px solid var(--line-strong);
}

.timeline-row {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 6px 20px;
  align-items: baseline;
  padding-block: 18px;
  border-bottom: 1px solid var(--line);
}

.timeline-period {
  font-size: 13px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.timeline-role {
  font-family: var(--serif);
  font-size: 18.5px;
  font-weight: 400;
  line-height: 1.3;
  color: var(--ink);
}

html[lang="ar"] .timeline-role {
  font-size: 20px;
  line-height: 1.5;
}

.timeline-place {
  margin-top: 4px;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--muted);
}

.profile-stack {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.bio-copy {
  font-size: 15.5px;
  line-height: 1.72;
  color: var(--ink-2);
}

html[lang="ar"] .bio-copy {
  line-height: 1.92;
}

.compact-list {
  list-style: none;
  padding: 0;
  border-top: 1px solid var(--line);
}

.compact-list li {
  padding-block: 12px;
  border-bottom: 1px solid var(--line);
}

.compact-primary {
  display: block;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.4;
}

.compact-secondary {
  display: block;
  margin-top: 3px;
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.45;
}

.award-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
}

.award-year {
  font-size: 13px;
  color: var(--muted);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.practice-line {
  font-size: 14.5px;
  line-height: 1.8;
  color: var(--ink-2);
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

/* ── Footer & Colophon ────────────────────────────────────────────────────── */

.site-footer {
  border-top: 1px solid var(--line-strong);
  padding-block: clamp(44px, 5.5vw, 68px) 36px;
}

.footer-contact {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px clamp(28px, 4.5vw, 56px);
  align-items: end;
  padding-bottom: 36px;
  border-bottom: 1px solid var(--line);
}

.footer-contact h2 {
  font-family: var(--serif);
  font-size: clamp(1.55rem, 2.4vw, 2.05rem);
  font-weight: 400;
  line-height: 1.18;
  letter-spacing: -0.02em;
}

html[lang="ar"] .footer-contact h2 {
  line-height: 1.45;
  letter-spacing: 0;
}

.footer-contact p {
  margin-top: 10px;
  max-width: 48ch;
  font-size: 15px;
  line-height: 1.65;
  color: var(--ink-2);
}

.social-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  justify-content: flex-end;
}

.social-row a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}

.social-row a > span:first-child {
  text-decoration: underline;
  text-decoration-color: var(--line-strong);
  text-underline-offset: 0.28em;
  text-decoration-thickness: 1px;
  transition: text-decoration-color 0.18s ease;
}

.social-row a:hover {
  color: var(--cobalt);
}

.social-row a:hover > span:first-child {
  text-decoration-color: var(--cobalt);
}

.colophon {
  margin-top: 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px 24px;
  font-size: 13px;
  color: var(--muted);
}

.colophon-links {
  display: flex;
  align-items: center;
  gap: 20px;
}

.colophon-links a {
  text-decoration: none;
  color: var(--muted);
}

.colophon-links a:hover {
  color: var(--cobalt);
}

/* ── Daylight Plate Viewer Dialog ─────────────────────────────────────────── */

.plate-dialog {
  width: min(980px, calc(100vw - 32px));
  max-height: calc(100vh - 36px);
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 28px 64px -28px rgba(22, 24, 27, 0.24);
  overflow: auto;
}

.plate-dialog::backdrop {
  background: rgba(250, 249, 245, 0.92);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.plate-dialog-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}

.plate-dialog-count {
  font-size: 12.5px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.plate-dialog-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.plate-dialog-btn {
  padding: 6px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 3px;
  background: var(--surface);
  color: var(--ink);
  font-size: 13px;
  font-weight: 500;
}

.plate-dialog-btn:hover {
  border-color: var(--cobalt);
  color: var(--cobalt);
}

.plate-dialog-stage {
  padding: 20px;
  background: var(--paper);
  display: flex;
  justify-content: center;
}

.plate-dialog-stage img {
  max-height: 62vh;
  width: auto;
  max-width: 100%;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: var(--surface);
}

.plate-dialog-caption {
  padding: 18px 22px 22px;
  background: var(--surface);
  border-top: 1px solid var(--line);
}

.plate-dialog-caption h3 {
  margin-top: 4px;
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 400;
  color: var(--ink);
}

.plate-dialog-caption p {
  margin-top: 8px;
  max-width: 66ch;
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--ink-2);
}

/* ── Responsive Breakpoints ───────────────────────────────────────────────── */

@media (max-width: 1020px) {
  .opening-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 36px;
  }

  .portrait-col {
    max-width: 420px;
  }

  .fact-ledger {
    margin-top: 34px;
  }

  .work-lead {
    grid-template-columns: minmax(0, 1fr);
  }

  .work-triptych {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pub-layout,
  .background-grid,
  .footer-contact {
    grid-template-columns: minmax(0, 1fr);
  }

  .social-row {
    justify-content: flex-start;
  }
}

@media (max-width: 760px) {
  .nav-desktop {
    display: none;
  }

  .nav-mobile {
    display: block;
  }

  .fact-ledger {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px 18px;
  }

  .thoughts-shelf {
    grid-template-columns: minmax(0, 1fr);
  }

  .thought-entry:nth-child(odd),
  .thought-entry:nth-child(even) {
    padding-inline: 0;
    border-inline-start: 0;
  }

  .thought-entry + .thought-entry {
    border-top: 1px solid var(--line);
  }

  .work-pair,
  .work-triptych {
    grid-template-columns: minmax(0, 1fr);
  }

  .channel-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .channel-aside {
    align-items: flex-start;
  }

  .pub-row {
    grid-template-columns: minmax(0, 1fr) auto;
    padding-inline: 0;
  }

  .pub-year {
    grid-column: 1 / -1;
  }

  .timeline-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
  }

  .spec-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 3px;
  }
}

@media (max-width: 400px) {
  .opening-actions {
    gap: 12px 18px;
  }

  .btn-ink {
    width: 100%;
    justify-content: center;
  }

  .award-row {
    flex-direction: column;
    gap: 2px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

@media print {
  .masthead,
  .plate-hint,
  .plate-dialog,
  .opening-actions {
    display: none !important;
  }

  body {
    background: #ffffff;
    color: #000000;
  }
}
