/* Concept 03: The Bridge
   One superfamily, two scripts: IBM Plex Sans + IBM Plex Sans Arabic (+ Plex Mono for index marks).
   Palette: paper, ink, one decisive cobalt. Square corners everywhere.
   All layout uses logical properties so ar.html mirrors from dir="rtl" alone. */

:root {
  --paper: #f3f0e8;
  --paper-2: #e9e5da;
  --ink: #111418;
  --muted: #474c52;
  --rule: #c9c3b6;
  --cobalt: #2335c8;
  --cobalt-ink: #1a2799;
  --on-cobalt: #ffffff;
  --error: #a3261b;

  --font-lat: "IBM Plex Sans", system-ui, sans-serif;
  --font-ar: "IBM Plex Sans Arabic", "IBM Plex Sans", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;

  --gutter: clamp(16px, 3.2vw, 48px);
  --max: 1320px;
  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: clamp(1.2rem, 1.05rem + 0.6vw, 1.5rem);
  --step-2: clamp(1.5rem, 1.2rem + 1.2vw, 2.25rem);
  --step-3: clamp(2.25rem, 1.4rem + 3.6vw, 5.25rem);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
* { border-radius: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-lat);
  font-size: var(--step-0);
  line-height: 1.6;
  font-feature-settings: "kern", "liga";
  text-rendering: optimizeLegibility;
}
html[lang="ar"] body { font-family: var(--font-ar); line-height: 1.85; }
:lang(ar) { font-family: var(--font-ar); letter-spacing: 0 !important; text-transform: none !important; }
:lang(en) { font-family: var(--font-lat); }
html[lang="ar"] [lang="en"] { line-height: 1.55; }

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { color: var(--cobalt); }
h1, h2, h3, p, ol, ul, dl, dd, figure { margin: 0; }
ol, ul { padding: 0; list-style: none; }

:focus-visible {
  outline: 3px solid var(--cobalt);
  outline-offset: 3px;
}
.on-cobalt :focus-visible, .btn--primary:focus-visible { outline-color: var(--ink); }

.skip {
  position: absolute; inset-inline-start: 16px; top: -100px;
  background: var(--ink); color: var(--paper); padding: 12px 16px; z-index: 10;
}
.skip:focus { top: 12px; }

.wrap { max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }

/* ---------- Header ---------- */
.site-header { border-bottom: 1px solid var(--ink); }
.site-header .wrap {
  display: flex; align-items: center; gap: 24px; min-height: 68px;
}
.lockup { text-decoration: none; display: grid; line-height: 1.2; margin-inline-end: auto; }
.lockup__practice { font-weight: 600; font-size: 1rem; }
.lockup__name { font-size: var(--step--1); color: var(--muted); }
.nav { display: flex; gap: 28px; align-items: center; }
.nav a { text-decoration: none; font-size: 0.95rem; padding-block: 8px; }
.nav a:hover { text-decoration: underline; }
.lang-switch {
  font-size: 0.95rem; text-decoration: none; padding: 8px 12px;
  border: 1px solid var(--ink);
}
.lang-switch:hover { background: var(--ink); color: var(--paper); }
html[lang="ar"] .lang-switch { font-family: var(--font-lat); }
.lang-switch:lang(ar) { font-size: 1.05rem; padding-block: 4px 8px; }
.menu-btn { display: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 12px;
  font: inherit; font-weight: 600; font-size: 1rem; line-height: 1.2;
  padding: 16px 22px; min-height: 52px;
  border: 1.5px solid var(--ink); background: transparent; color: var(--ink);
  text-decoration: none; cursor: pointer;
  transition: background-color 160ms var(--ease), color 160ms var(--ease), border-color 160ms var(--ease);
}
.btn--primary { background: var(--cobalt); border-color: var(--cobalt); color: var(--on-cobalt); }
.btn--primary:hover { background: var(--cobalt-ink); border-color: var(--cobalt-ink); color: var(--on-cobalt); }
.btn:not(.btn--primary):hover { background: var(--ink); color: var(--paper); }
.arrow { display: inline-block; transition: transform 180ms var(--ease); }
html[dir="rtl"] .arrow { transform: scaleX(-1); }
.btn:hover .arrow, .tlink:hover .arrow { transform: translateX(4px); }
html[dir="rtl"] .btn:hover .arrow, html[dir="rtl"] .tlink:hover .arrow { transform: scaleX(-1) translateX(4px); }

.tlink { justify-self: start; font-weight: 600; text-decoration: none; border-bottom: 1.5px solid currentColor; padding-bottom: 2px; }
.tlink:hover { color: var(--cobalt); }

/* ---------- Section markers (bilingual, structural) ---------- */
.marker {
  display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap;
  padding-block: 14px; border-top: 1px solid var(--ink);
  font-size: var(--step--1);
}
.marker__num { font-family: var(--font-mono); color: var(--cobalt); font-weight: 500; }
.marker__primary { font-weight: 600; }
.marker__primary:lang(en) { text-transform: uppercase; letter-spacing: 0.08em; }
.marker__secondary { color: var(--muted); margin-inline-start: auto; }
.marker__secondary:lang(ar) { font-size: 1.05rem; }
.marker__secondary:lang(en) { text-transform: uppercase; letter-spacing: 0.08em; }

.section { padding-block: clamp(56px, 8vw, 112px); }
.section__head { display: grid; gap: 20px; margin-block: 28px clamp(32px, 4vw, 56px); }
.h2 { font-size: var(--step-2); line-height: 1.15; font-weight: 600; letter-spacing: -0.01em; max-width: 22ch; }
html[lang="ar"] .h2 { line-height: 1.45; letter-spacing: 0; }
.lede { font-size: var(--step-1); line-height: 1.5; max-width: 40ch; color: var(--ink); }

/* ---------- Hero: the bridge ---------- */
.hero { padding-block: clamp(36px, 5vw, 72px) clamp(40px, 5vw, 72px); }
.hero__eyebrow {
  font-family: var(--font-mono); font-size: var(--step--1); color: var(--muted);
  display: flex; justify-content: center; gap: 10px; margin-bottom: clamp(28px, 4vw, 52px);
}
html[lang="ar"] .hero__eyebrow { font-family: var(--font-ar); }
.bridge {
  display: grid;
  grid-template-columns: 1fr 3px 1fr;
  column-gap: clamp(20px, 3vw, 48px);
  row-gap: clamp(28px, 3.5vw, 48px);
}
.bridge__rule { grid-column: 2; grid-row: 1 / span 2; background: var(--cobalt); }
.bridge__name { grid-row: 1; text-align: end; align-self: end; }
.bridge__name--primary { grid-column: 1; }
.bridge__name--secondary { grid-column: 3; }

.name {
  font-size: var(--step-3); line-height: 1.0; font-weight: 600; letter-spacing: -0.025em;
}
.name:lang(ar) { font-size: calc(var(--step-3) * 1.08); line-height: 1.35; letter-spacing: 0; font-weight: 600; }
.name span { display: block; }
html[lang="ar"] .name:lang(en) { line-height: 1.0; }
.name--secondary { color: var(--cobalt); }
.bridge__tag { display: block; margin-top: 14px; font-size: var(--step--1); color: var(--muted); }
.bridge__tag:lang(en) { font-family: var(--font-mono); }

.bridge__body { grid-column: 1; grid-row: 2; justify-self: end; max-width: 34rem; }
.bridge__portrait { grid-column: 3; grid-row: 2; justify-self: start; }
.hero__line { font-size: var(--step-1); line-height: 1.45; }
html[lang="ar"] .hero__line { line-height: 1.8; }
.creds { margin-top: 20px; border-top: 1px solid var(--rule); }
.creds li { padding-block: 8px; border-bottom: 1px solid var(--rule); font-size: 0.9375rem; color: var(--muted); }
.creds li::before { content: ""; display: inline-block; width: 8px; height: 8px; background: var(--cobalt); margin-inline-end: 12px; vertical-align: 0.1em; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

.portrait { width: min(280px, 100%); }
.portrait img { width: 100%; aspect-ratio: 1; object-fit: cover; filter: saturate(0.9) contrast(1.02); border: 1px solid var(--ink); }
.portrait figcaption, .caption {
  font-family: var(--font-mono); font-size: 0.8125rem; color: var(--muted); margin-top: 10px; line-height: 1.5;
}
html[lang="ar"] .portrait figcaption, html[lang="ar"] .caption { font-family: var(--font-ar); font-size: 0.9rem; }

/* ---------- Router ---------- */
.router { background: var(--ink); color: var(--paper); padding-block: clamp(40px, 5vw, 72px); }
.router .marker { border-top-color: var(--paper); }
.router .marker__num { color: #aab4ff; }
.router .marker__secondary { color: #c9ccd2; }
.router :focus-visible { outline-color: #aab4ff; }
.router__legend { font-size: var(--step-2); font-weight: 600; line-height: 1.2; margin-block: 28px 32px; padding: 0; }
html[lang="ar"] .router__legend { line-height: 1.5; }
.router fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.router__options { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border: 1px solid var(--paper); }
.route { position: relative; }
.route + .route { border-inline-start: 1px solid var(--paper); }
.route input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.route label {
  display: grid; grid-template-rows: auto 1fr auto; gap: 18px; min-height: 196px;
  padding: 24px; cursor: pointer; height: 100%;
  transition: background-color 180ms var(--ease), color 180ms var(--ease);
}
.route__key { font-family: var(--font-mono); font-size: 0.8125rem; color: #c9ccd2; display: flex; justify-content: space-between; }
.route__title { font-size: var(--step-1); font-weight: 600; line-height: 1.3; }
.route__title:lang(ar), html[lang="ar"] .route__title { line-height: 1.6; }
.route__alt { font-size: 0.95rem; color: #c9ccd2; }
.route__alt:lang(en) { line-height: 1.4; }
.route__check {
  width: 22px; height: 22px; border: 1.5px solid currentColor; display: inline-grid; place-items: center;
}
.route__check::after {
  content: ""; width: 10px; height: 10px; background: currentColor; transform: scale(0);
  transition: transform 180ms var(--ease);
}
.route label:hover { background: #1d2227; }
.route input:checked + label { background: var(--cobalt); color: var(--on-cobalt); }
.route input:checked + label .route__key,
.route input:checked + label .route__alt { color: #dfe3ff; }
.route input:checked + label .route__check::after { transform: scale(1); }
.route input:focus-visible + label { outline: 3px solid #aab4ff; outline-offset: -6px; }

.router__panel { border: 1px solid var(--paper); border-top: 0; padding: 28px 24px; }
.router__panel-body { display: grid; grid-template-columns: 1fr auto; gap: 24px 48px; align-items: end; }
.router__panel-body > .btn { justify-self: start; }
.router__panel[data-state="active"] .router__panel-body > * { animation: rise 240ms var(--ease); }
.router__panel h3 { font-size: var(--step-1); font-weight: 600; line-height: 1.3; margin-bottom: 8px; }
.router__panel p { max-width: 60ch; color: #dcdfe4; }
.router__panel .btn--primary:focus-visible { outline-color: #aab4ff; }
.router__panel .also { margin-top: 12px; font-size: 0.95rem; color: #c9ccd2; }
.router__panel .also a:hover { color: #aab4ff; }
@keyframes rise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

html[dir="ltr"] .route__alt, html[dir="ltr"] .langs__alt { text-align: left; }
html[dir="rtl"] .route__alt, html[dir="rtl"] .langs__alt { text-align: right; }

/* ---------- Record ---------- */
.record { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--ink); }
.record > div { padding: 24px 24px 28px 0; }
html[dir="rtl"] .record > div { padding: 24px 0 28px 24px; }
.record > div + div { padding-inline-start: 24px; border-inline-start: 1px solid var(--rule); }
.record dt { font-family: var(--font-mono); font-size: var(--step--1); color: var(--cobalt); margin-bottom: 10px; }
html[lang="ar"] .record dt { font-family: var(--font-ar); font-weight: 600; }
.record dd { font-size: 1.0625rem; line-height: 1.5; }
html[lang="ar"] .record dd { line-height: 1.8; }
.record .langs { font-size: var(--step-1); font-weight: 600; line-height: 1.5; }
.langs__alt { display: block; font-size: 1rem; font-weight: 400; color: var(--muted); margin-top: 6px; }

/* ---------- Point of view ---------- */
.pov { display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; }
.pov__text { grid-column: 1 / span 7; display: grid; gap: 28px; counter-reset: pov; }
.pov__text p { font-size: var(--step-1); line-height: 1.5; padding-inline-start: 56px; position: relative; }
html[lang="ar"] .pov__text p { line-height: 1.85; }
.pov__text p:not(.draft-note)::before {
  counter-increment: pov; content: "0" counter(pov);
  position: absolute; inset-inline-start: 0; top: 0.35em;
  font-family: var(--font-mono); font-size: 0.8125rem; color: var(--cobalt);
}
.pov__figure { grid-column: 9 / span 4; align-self: start; }
.pov__figure img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: 30% 50%; }
.draft-note { font-size: var(--step--1); color: var(--muted); margin-top: 8px; }

/* ---------- Ways to work ---------- */
.modes { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--ink); }
.mode { padding: 24px 24px 32px 0; display: grid; grid-template-rows: auto auto 1fr auto; gap: 14px; }
html[dir="rtl"] .mode { padding: 24px 0 32px 24px; }
.mode + .mode { padding-inline-start: 24px; border-inline-start: 1px solid var(--rule); }
.mode__num { font-family: var(--font-mono); font-size: 0.8125rem; color: var(--cobalt); }
.mode h3 { font-size: 1.25rem; line-height: 1.3; font-weight: 600; }
html[lang="ar"] .mode h3 { line-height: 1.6; }
.mode p { color: var(--muted); }
.mode.is-match { box-shadow: inset 0 4px 0 var(--cobalt); }

/* ---------- Governance ---------- */
.gov { display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; }
.gov__list { grid-column: 1 / -1; }
.gov__list li {
  display: grid; grid-template-columns: 5fr 5fr 2fr; gap: 24px; padding-block: 18px;
  border-top: 1px solid var(--rule); align-items: baseline;
}
.gov__list li:last-child { border-bottom: 1px solid var(--rule); }
.gov__org { font-size: var(--step-1); font-weight: 600; line-height: 1.3; }
.gov__role { color: var(--muted); }
.gov__years { font-family: var(--font-mono); font-size: var(--step--1); text-align: end; }
html[lang="ar"] .gov__years { font-family: var(--font-ar); }

/* ---------- Press ---------- */
.press { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--ink); }
.press li { padding: 22px 24px 26px 0; }
html[dir="rtl"] .press li { padding: 22px 0 26px 24px; }
.press li + li { padding-inline-start: 24px; border-inline-start: 1px solid var(--rule); }
.press__outlet { font-family: var(--font-mono); font-size: 0.8125rem; color: var(--cobalt); display: block; margin-bottom: 10px; }
.press a { text-decoration: none; font-weight: 500; font-size: 1.0625rem; line-height: 1.4; display: block; }
.press a:hover { text-decoration: underline; }
.press__note { display: block; font-size: 0.875rem; color: var(--muted); margin-top: 8px; }

/* ---------- Teaching ---------- */
.lessons { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; }
.lessons a { text-decoration: none; display: grid; gap: 12px; }
.lessons .thumb { aspect-ratio: 16 / 9; overflow: hidden; background: var(--ink); border: 1px solid var(--ink); }
.lessons .thumb img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(0.2); }
.lessons .num { font-family: var(--font-mono); font-size: 0.8125rem; color: var(--cobalt); }
html[lang="ar"] .lessons .num { font-family: var(--font-ar); font-size: 0.875rem; }
.lessons .t { font-weight: 600; line-height: 1.35; }
.lessons a:hover .t { text-decoration: underline; }
.section__foot { margin-top: 32px; }

/* ---------- Contact ---------- */
.contact { background: var(--paper-2); }
.contact__grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; }
.contact__intro { grid-column: 1 / span 4; }
.contact__intro .h2 { margin-bottom: 20px; }
.contact__links { margin-top: 28px; display: grid; gap: 8px; }
.form { grid-column: 6 / span 7; display: grid; grid-template-columns: 1fr 1fr; gap: 20px 24px; }
.field { display: grid; gap: 8px; }
.field--full { grid-column: 1 / -1; }
.field label, .field legend { font-weight: 600; font-size: 0.95rem; }
.field .opt { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea {
  font: inherit; color: var(--ink); background: var(--paper);
  border: 1.5px solid var(--ink); padding: 12px 14px; min-height: 50px; width: 100%;
  transition: border-color 140ms var(--ease), box-shadow 140ms var(--ease);
}
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%); background-size: 6px 6px; background-repeat: no-repeat; background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%; padding-inline-end: 40px; }
html[dir="rtl"] .field select { background-position: 14px 50%, 20px 50%; }
.field ::placeholder { color: var(--muted); opacity: 1; }
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible {
  outline: none; border-color: var(--cobalt); box-shadow: 0 0 0 3px var(--cobalt);
}
.field.is-preselected select { border-color: var(--cobalt); box-shadow: inset 4px 0 0 var(--cobalt); }
html[dir="rtl"] .field.is-preselected select { box-shadow: inset -4px 0 0 var(--cobalt); }
.hint { font-size: 0.875rem; color: var(--muted); }
.hint--pre { color: var(--cobalt); font-weight: 500; }
.error { font-size: 0.875rem; color: var(--error); font-weight: 600; }
.field [aria-invalid="true"] { border-color: var(--error); }
.form__actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; }
.form__status { grid-column: 1 / -1; }
.form__status:not(:empty) { border-inline-start: 4px solid var(--cobalt); padding: 14px 18px; background: var(--paper); font-weight: 500; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: var(--paper); padding-block: 48px; font-size: 0.95rem; }
.site-footer a:hover { color: #aab4ff; }
.site-footer :focus-visible { outline-color: #aab4ff; }
.footer__row { display: flex; flex-wrap: wrap; gap: 12px 28px; align-items: baseline; padding-bottom: 24px; border-bottom: 1px solid #3a3f45; }
.footer__row strong { margin-inline-end: auto; }
.independence { margin-top: 24px; max-width: 70ch; color: #d6d9de; }
.fineprint { margin-top: 12px; font-size: 0.8125rem; color: #a9aeb5; }

.draft-flag {
  display: inline-block; font-size: 0.8125rem; border: 1px solid var(--cobalt); color: var(--cobalt);
  padding: 2px 8px; margin-inline-start: 12px; font-weight: 500;
}

.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .lessons { grid-template-columns: repeat(3, 1fr); }
  .modes, .record, .press { grid-template-columns: repeat(2, 1fr); }
  .modes .mode:nth-child(3), .record > div:nth-child(3), .press li:nth-child(3) { border-inline-start: 0; padding-inline-start: 0; }
  .modes .mode:nth-child(n+3), .record > div:nth-child(n+3), .press li:nth-child(n+3) { border-top: 1px solid var(--rule); }
  .pov__text { grid-column: 1 / -1; }
  .pov__figure { grid-column: 1 / span 8; }
  .contact__intro { grid-column: 1 / -1; }
  .form { grid-column: 1 / -1; }
}

@media (max-width: 860px) {
  .nav { display: none; }
  .nav.is-open {
    display: grid; position: absolute; inset-inline: 0; top: 68px; background: var(--paper);
    border-bottom: 1px solid var(--ink); padding: 8px var(--gutter) 16px; gap: 0; z-index: 5;
  }
  .nav.is-open a { padding-block: 14px; border-top: 1px solid var(--rule); }
  .site-header { position: relative; }
  .menu-btn {
    display: inline-flex; align-items: center; gap: 8px; font: inherit; font-size: 0.95rem;
    background: transparent; color: var(--ink); border: 1px solid var(--ink); padding: 8px 12px; cursor: pointer; min-height: 40px;
  }
  .router__options { grid-template-columns: 1fr; }
  .route + .route { border-inline-start: 0; border-top: 1px solid var(--paper); }
  .route label { min-height: 0; grid-template-columns: auto 1fr; grid-template-rows: auto auto; gap: 6px 16px; padding: 20px; }
  .route__key { grid-column: 1; grid-row: 1 / span 2; flex-direction: column; justify-content: flex-start; gap: 10px; }
  .route__key > span:first-child { display: none; }
  .route__title { grid-column: 2; }
  .route__alt { grid-column: 2; }
  .router__panel-body { grid-template-columns: 1fr; }
  .gov__list li { grid-template-columns: 1fr auto; gap: 4px 16px; }
  .gov__role { grid-column: 1; grid-row: 2; }
  .gov__years { grid-column: 2; grid-row: 1; }
}

@media (max-width: 640px) {
  .hero__eyebrow { justify-content: flex-start; flex-wrap: wrap; }
  .bridge { grid-template-columns: 1fr; row-gap: 0; }
  .bridge__rule { grid-column: 1; grid-row: 2; height: 3px; width: 72px; margin-block: 18px; }
  .bridge__name { text-align: start; }
  .bridge__name--primary { grid-column: 1; grid-row: 1; }
  .bridge__name--secondary { grid-column: 1; grid-row: 3; }
  .bridge__name--secondary .name { font-size: calc(var(--step-3) * 0.8); }
  .bridge__name--secondary .name:lang(ar) { font-size: calc(var(--step-3) * 0.9); }
  .bridge__body { grid-column: 1; grid-row: 5; justify-self: stretch; max-width: none; margin-top: 28px; }
  .bridge__portrait { grid-column: 1; grid-row: 4; margin-top: 28px; }
  .portrait { display: grid; grid-template-columns: 120px 1fr; gap: 16px; align-items: end; width: 100%; }
  .portrait figcaption { margin: 0; }
  .hero__ctas .btn { flex: 1 1 100%; justify-content: space-between; }
  .modes, .record, .press { grid-template-columns: 1fr; }
  .modes .mode, .record > div, .press li { border-inline-start: 0 !important; padding-inline-start: 0 !important; }
  .modes .mode + .mode, .record > div + div, .press li + li { border-top: 1px solid var(--rule); }
  .lessons { grid-template-columns: 1fr 1fr; gap: 20px 14px; }
  .pov__text p { padding-inline-start: 40px; }
  .pov__figure { grid-column: 1 / -1; }
  .form { grid-template-columns: 1fr; }
  .form .btn { width: 100%; justify-content: space-between; }
  .lockup__name { display: none; }
  .lang-switch { padding: 8px 10px; }
  .marker__secondary { margin-inline-start: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

@media print {
  .router, .site-header nav, .form { display: none; }
}

/* ---------- Merge (2026-10-06): 01 Record's display face for his name; Arabic name stacked under English ---------- */
:root { --font-name: "Libre Caslon Display", "Iowan Old Style", Georgia, serif; --font-name-ar: "Amiri", "Noto Naskh Arabic", serif; }
.bridge { grid-template-columns: minmax(0, 1.4fr) 3px minmax(0, 1fr); }
.bridge__name--primary { grid-column: 1; grid-row: 1; text-align: start; }
.bridge__body { grid-column: 1; grid-row: 2; justify-self: start; }
.bridge__portrait { grid-column: 3; grid-row: 1 / span 2; align-self: end; }
.name:lang(en) { font-family: var(--font-name); font-weight: 400; letter-spacing: -0.005em; line-height: 0.98; font-size: calc(var(--step-3) * 1.12); }
.name:lang(ar) { font-family: var(--font-name-ar); font-weight: 700; }
.name--secondary { margin-top: 14px; font-size: calc(var(--step-2) * 1.05) !important; line-height: 1.3; }
.name--secondary:lang(en) { line-height: 1.1; }
.name--secondary span { display: inline; }
.lockup__name { font-family: var(--font-name); font-weight: 400; letter-spacing: 0; }
html[lang="ar"] .lockup__name { font-family: var(--font-name-ar); font-weight: 700; }
@media (max-width: 640px) {
  .bridge__name--primary { grid-row: 1; }
  .bridge__rule { grid-row: 2; }
  .bridge__portrait { grid-column: 1; grid-row: 3; align-self: start; }
  .bridge__body { grid-row: 4; }
  .name:lang(en) { font-size: calc(var(--step-3) * 1.0); }
  .name--secondary { font-size: calc(var(--step-2) * 0.95) !important; }
}
.name, .name span { font-family: inherit; }
h1.name, h1.name span, p.name:lang(en), p.name:lang(en) span { font-family: var(--font-name); }
html[lang="ar"] h1.name, html[lang="ar"] h1.name span { font-family: var(--font-name-ar); }
html[dir="ltr"] .name--secondary { text-align: left; }
html[dir="rtl"] .name--secondary { text-align: right; }
.bridge__portrait { align-self: start; }
.portrait { width: min(320px, 100%); }
@media (max-width: 640px) {
  .bridge { grid-template-columns: 1fr; }
  .bridge__body { justify-self: stretch; max-width: none; }
  h1.name:lang(en) { font-size: clamp(2.4rem, 11vw, 3.2rem); }
  .bridge__portrait { justify-self: stretch; }
}
html[lang="ar"] h1.name { line-height: 1.15; }

/* ---------- Logo mark (from the original Leaders Consultant logo) ---------- */
.lockup--mark { grid-template-columns: auto 1fr; column-gap: 12px; align-items: center; }
.lockup__mark { grid-row: 1 / span 2; width: 32px; height: 32px; object-fit: contain; }
.lockup--mark .lockup__practice, .lockup--mark .lockup__name { grid-column: 2; }
@media (max-width: 640px) { .lockup__mark { width: 28px; height: 28px; } }

/* ---------- Areas of expertise (full list from the original site) ---------- */
.expertise { margin-top: clamp(40px, 5vw, 64px); border-top: 1px solid var(--rule); padding-top: 24px; }
.expertise__h { font-size: var(--step--1); font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 16px; }
html[lang="ar"] .expertise__h { text-transform: none; letter-spacing: 0; font-size: 1.05rem; }
.expertise__list { list-style: none; margin: 0; padding: 0; columns: 3 16rem; column-gap: clamp(20px, 3vw, 48px); }
.expertise__list li { break-inside: avoid; padding-block: 10px; border-bottom: 1px solid var(--rule); font-size: 1rem; line-height: 1.4; }
.expertise__list li::before { content: ""; display: inline-block; width: 7px; height: 7px; background: var(--cobalt); margin-inline-end: 12px; vertical-align: 0.12em; }
.lockup__practice { white-space: nowrap; }

/* =====================================================================
   Motion layer (concept 05). Design unchanged: transform, opacity and
   clip-path only. Everything is gated on html.motion (set in <head> only
   when prefers-reduced-motion is not "reduce") AND the media query below,
   so with JS off or reduced motion the page is fully static and visible.
   Scroll reveals hide nothing until script.js adds .rv to an element that
   is still below the fold.
   ===================================================================== */
:root {
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);   /* expo-out: fast arrival, long settle */
  --ease-soft: cubic-bezier(0.33, 1, 0.68, 1); /* cubic-out for small UI feedback */
}

@media (prefers-reduced-motion: no-preference) {

  /* ---------- Hero load sequence (about 1.3 s, name readable by ~150 ms) ---------- */
  @keyframes m-rise { from { opacity: 0; transform: translateY(var(--m-y, 18px)); } to { opacity: 1; transform: none; } }
  @keyframes m-fade { from { opacity: 0; } to { opacity: 1; } }
  @keyframes m-draw-y { from { transform: scaleY(0); } to { transform: none; } }
  @keyframes m-draw-x { from { transform: scaleX(0); } to { transform: none; } }
  @keyframes m-unmask { from { clip-path: inset(0 0 100% 0); transform: scale(1.06); } to { clip-path: inset(0 0 0 0); transform: none; } }

  .motion .hero__eyebrow { animation: m-fade 600ms var(--ease-soft) backwards; }
  .motion h1.name > span { animation: m-rise 760ms var(--ease-out) backwards; --m-y: 0.32em; }
  .motion h1.name > span:nth-child(2) { animation-delay: 90ms; }
  .motion .name--secondary { animation: m-rise 700ms var(--ease-out) 230ms backwards; --m-y: 14px; }
  .motion .bridge__rule { transform-origin: 50% 0; animation: m-draw-y 900ms var(--ease-out) 120ms backwards; }
  .motion .bridge__portrait img { animation: m-unmask 1000ms var(--ease-out) 200ms backwards; }
  .motion .bridge__portrait figcaption { animation: m-fade 500ms var(--ease-soft) 700ms backwards; }
  .motion .hero__line { animation: m-rise 700ms var(--ease-out) 340ms backwards; --m-y: 12px; }
  .motion .creds li { animation: m-rise 600ms var(--ease-out) backwards; --m-y: 8px; }
  .motion .creds li:nth-child(1) { animation-delay: 440ms; }
  .motion .creds li:nth-child(2) { animation-delay: 500ms; }
  .motion .creds li:nth-child(3) { animation-delay: 550ms; }
  .motion .hero__ctas { animation: m-rise 600ms var(--ease-out) 620ms backwards; --m-y: 8px; }

  .motion.hero-done .hero * { animation: none; }

  /* ---------- Scroll reveals ---------- */
  /* Hidden state is instant (no transition) so it never "fades out"; only the reveal animates. */
  .motion .rv:not(.in) { opacity: 0; transform: translateY(var(--rv-y, 16px)); }
  .motion .rv.in {
    transition: opacity 650ms var(--ease-soft), transform 800ms var(--ease-out);
    transition-delay: var(--rv-d, 0ms);
  }
  .motion .rv--mask:not(.in) img { clip-path: inset(0 0 100% 0); transform: scale(1.05); }
  .motion .rv--mask.in img {
    transition: clip-path 1000ms var(--ease-out), transform 1200ms var(--ease-out);
    transition-delay: var(--rv-d, 0ms);
  }
  .motion .rv--mask:not(.in) { transform: none; }

  /* Section markers: the top rule draws from the reading start edge, then the label fades in. */
  .motion .marker.rv-line { position: relative; border-top-color: transparent; }
  .motion .marker.rv-line::before {
    content: ""; position: absolute; inset-inline: 0; top: -1px; height: 1px;
    background: var(--ink); transform-origin: 0 50%; transform: scaleX(0);
  }
  html[dir="rtl"].motion .marker.rv-line::before { transform-origin: 100% 50%; }
  .motion .router .marker.rv-line::before { background: var(--paper); }
  .motion .marker.rv-line > * { opacity: 0; }
  .motion .marker.rv-line.in::before { transform: none; transition: transform 1000ms var(--ease-out); }
  .motion .marker.rv-line.in > * { opacity: 1; transition: opacity 500ms var(--ease-soft) 220ms; }

  /* ---------- Router ---------- */
  .motion .router__panel[data-state="active"] .router__panel-body > * { animation: m-rise 420ms var(--ease-out) both; --m-y: 8px; }
  .motion .router__panel[data-state="active"] .router__panel-body > *:nth-child(2) { animation-delay: 70ms; }
  .route__check::after { transition: transform 260ms var(--ease-out); }

  /* "Matched" engagement card: the cobalt top bar draws in instead of appearing. */
  .mode { position: relative; }
  .mode.is-match { box-shadow: none; }
  .mode::before {
    content: ""; position: absolute; top: 0; inset-inline: 0; height: 4px; background: var(--cobalt);
    transform: scaleX(0); transform-origin: 0 50%; transition: transform 500ms var(--ease-out);
  }
  html[dir="rtl"] .mode::before { transform-origin: 100% 50%; }
  .mode.is-match::before { transform: none; }

  /* ---------- Micro-interactions ---------- */
  /* Nav: underline grows from the reading start edge. */
  .nav a {
    background: linear-gradient(currentColor, currentColor) no-repeat 0 calc(100% - 7px) / 0 1px;
    transition: background-size 260ms var(--ease-out);
  }
  html[dir="rtl"] .nav a { background-position: 100% calc(100% - 7px); }
  .nav a:hover { text-decoration: none; background-size: 100% 1px; }
  .nav.is-open a { background: none; }

  /* Press and lesson titles: underline fades in rather than snapping. */
  .press a, .lessons .t { text-decoration: underline; text-decoration-color: transparent; transition: text-decoration-color 200ms var(--ease-soft), color 160ms var(--ease-soft); }
  .press a:hover, .lessons a:hover .t { text-decoration-color: currentColor; }

  .tlink { transition: color 160ms var(--ease-soft); }
  .lang-switch, .menu-btn { transition: background-color 160ms var(--ease-soft), color 160ms var(--ease-soft); }
  .arrow { transition-duration: 260ms; transition-timing-function: var(--ease-out); }

  /* Lesson thumbnails: image eases forward inside its fixed frame (no layout change). */
  .lessons .thumb img { transition: transform 600ms var(--ease-out); }
  .lessons a:hover .thumb img, .lessons a:focus-visible .thumb img { transform: scale(1.04); }

  /* Form: the pre-selected hint arrives instead of popping in. */
  .hint--pre:not([hidden]) { animation: m-rise 360ms var(--ease-out) both; --m-y: 4px; }
  .form__status:not(:empty) { animation: m-rise 420ms var(--ease-out) both; --m-y: 6px; }
}

/* Mobile hero rule is horizontal: draw it from the reading start edge instead. */
@media (prefers-reduced-motion: no-preference) and (max-width: 640px) {
  .motion .bridge__rule { transform-origin: 0 50%; animation-name: m-draw-x; }
  html[dir="rtl"].motion .bridge__rule { transform-origin: 100% 50%; }
}

/* ---------- Small phones: header must fit the screen (2026-10-07) ---------- */
html, body { max-width: 100%; overflow-x: clip; }
@media (max-width: 640px) {
  .site-header .wrap { gap: 10px; }
  .lockup { min-width: 0; }
  .lockup--mark { column-gap: 8px; }
  .lockup__practice { font-size: 0.95rem; }
  .menu-btn { padding: 8px 10px; flex-shrink: 0; }
  .lang-switch { flex-shrink: 0; }
}
@media (max-width: 360px) {
  .lockup__practice { white-space: normal; font-size: 0.9rem; line-height: 1.15; }
  .menu-btn, .lang-switch { padding: 7px 8px; font-size: 0.9rem; }
}

/* =====================================================================
   Brand layer (concept 06, 2026-10-07): blue and white from the original
   Leaders Consultant logo (#004AAD). Layout, type and motion unchanged.
   White page, logo blue as the one accent, deep navy for the dark bands,
   near-black for reading text. Contrast: #004AAD on white 8.0:1,
   white on #004AAD 8.0:1, white on navy 15:1, #9cc0ff on navy 8.5:1.
   ===================================================================== */
:root {
  --paper: #ffffff;
  --paper-2: #f1f5fb;      /* cool blue-white for the contact band */
  --ink: #0e1726;          /* reading text, a touch blue */
  --muted: #4a5466;
  --rule: #d5dce7;
  --cobalt: #004aad;       /* logo blue (sampled from the original PNG) */
  --cobalt-ink: #00398a;   /* hover / pressed */
  --navy: #0a1f44;         /* dark bands: router + footer */
  --navy-2: #13305f;       /* hover on navy */
  --on-navy-accent: #9cc0ff;
  --on-navy-muted: #c3cee0;
}

/* ---------- Header: the logo shown the way it was designed, white on blue ---------- */
.site-header { background: var(--cobalt); color: #fff; border-bottom: 0; }
.site-header .wrap { min-height: 84px; gap: 28px; }
.lockup--mark { column-gap: 14px; }
.lockup__mark { width: 48px; height: 48px; }
.lockup__practice { font-size: 1.375rem; font-weight: 700; letter-spacing: -0.01em; line-height: 1.1; color: #fff; }
.lockup__name { font-size: 0.95rem; color: #dce7fb; margin-top: 2px; }
.site-header a:hover { color: #fff; }
.site-header :focus-visible { outline-color: #fff; }
.nav a { color: #fff; font-weight: 500; }
.lang-switch { border-color: rgba(255,255,255,0.7); color: #fff; }
.lang-switch:hover { background: #fff; color: var(--cobalt); }
.menu-btn { color: #fff !important; border-color: rgba(255,255,255,0.7) !important; }

/* ---------- Hero: no eyebrow now; give the name the room it had ---------- */
.hero { padding-top: clamp(44px, 6vw, 88px); }
.hero__draft { margin-bottom: 20px; }

/* ---------- Dark bands become navy ---------- */
.router { background: var(--navy); }
.router .marker__num { color: var(--on-navy-accent); }
.router :focus-visible { outline-color: var(--on-navy-accent); }
.router .marker, .motion .router .marker.rv-line::before { border-top-color: rgba(255,255,255,0.6); }
.motion .router .marker.rv-line::before { background: rgba(255,255,255,0.6); }
.route__key, .route__alt, .router__panel .also { color: var(--on-navy-muted); }
.route label:hover { background: var(--navy-2); }
.route input:focus-visible + label { outline-color: var(--on-navy-accent); }
.router__panel p { color: #dfe6f2; }
.router__panel .also a:hover { color: var(--on-navy-accent); }
.router__panel .btn--primary { background: #fff; border-color: #fff; color: var(--cobalt); }
.router__panel .btn--primary:hover { background: #dce7fb; border-color: #dce7fb; color: var(--cobalt-ink); }
.site-footer { background: var(--navy); }
.site-footer a:hover { color: var(--on-navy-accent); }
.site-footer :focus-visible { outline-color: var(--on-navy-accent); }
.footer__row { border-bottom-color: #2a426d; }
.independence { color: #d3dbe8; }
.fineprint { color: #a9b6cc; }
.footer__brand { display: inline-flex; align-items: center; gap: 12px; margin-inline-end: auto; font-size: 1.125rem; }
.footer__brand img { width: 36px; height: 36px; }

/* ---------- Accents and controls ---------- */
.btn:not(.btn--primary) { border-color: var(--cobalt); color: var(--cobalt); }
.btn:not(.btn--primary):hover { background: var(--cobalt); color: #fff; }
.tlink { color: var(--cobalt); }
.tlink:hover { color: var(--cobalt-ink); }
.portrait img { border-color: var(--rule); }
.lessons .thumb { border-color: var(--rule); }
.marker { border-top-color: var(--cobalt); }
.motion .marker.rv-line::before { background: var(--cobalt); }
.record, .modes, .appearances { border-top-color: var(--cobalt); }
.field input, .field select, .field textarea { border-color: #8f9bb0; background: #fff; }
.field input:hover, .field textarea:hover { border-color: var(--ink); }

/* ---------- Media ---------- */
.appearances { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--cobalt); }
.appearance { border-bottom: 1px solid var(--rule); }
.appearance:not(:nth-child(3n+1)) { border-inline-start: 1px solid var(--rule); }
.appearance a {
  display: grid; grid-template-rows: auto auto 1fr auto; gap: 10px; height: 100%;
  padding: 24px 24px 26px; text-decoration: none;
  transition: background-color 200ms var(--ease);
}
.appearance:nth-child(3n+1) a { padding-inline-start: 0; }
.appearance a:hover { background: var(--paper-2); color: inherit; }
.appearance:nth-child(3n+1) a:hover { padding-inline-start: 0; }
.appearance__meta { display: flex; justify-content: space-between; gap: 12px; font-family: var(--font-mono); font-size: 0.8125rem; color: var(--cobalt); }
html[lang="ar"] .appearance__meta { font-family: var(--font-ar); font-size: 0.9rem; }
.appearance__outlet { font-weight: 500; }
.appearance__date { color: var(--muted); }
.appearance__title { font-size: 1.1875rem; font-weight: 600; line-height: 1.35; }
html[lang="ar"] .appearance__title { line-height: 1.7; }
.appearance__topic { font-size: 0.9375rem; color: var(--muted); }
.appearance__cta { font-weight: 600; color: var(--cobalt); margin-top: 6px; }
.appearance a:hover .appearance__title { text-decoration: underline; text-decoration-thickness: 1px; }
.appearance a:hover .arrow { transform: translateX(4px); }
html[dir="rtl"] .appearance a:hover .arrow { transform: scaleX(-1) translateX(4px); }
.media__foot { display: grid; gap: 14px; margin-top: 32px; }
.interviewed { font-size: 1.0625rem; line-height: 1.6; }
.interviewed__label { font-family: var(--font-mono); font-size: 0.8125rem; color: var(--cobalt); text-transform: uppercase; letter-spacing: 0.08em; margin-inline-end: 10px; }
html[lang="ar"] .interviewed__label { font-family: var(--font-ar); text-transform: none; letter-spacing: 0; font-size: 0.95rem; }
.media__note { font-size: 0.875rem; color: var(--muted); max-width: 70ch; }
.mode__links { display: grid; gap: 10px; justify-items: start; }
.mode__evidence { font-size: 0.9375rem; color: var(--muted); }
.mode__evidence:hover { color: var(--cobalt); }

/* ---------- Contact: three fields, one column of intent ---------- */
.form { grid-column: 6 / span 7; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__alt { font-size: 0.9375rem; color: var(--muted); }
.form__alt a { color: var(--cobalt); }
.btn[disabled] { opacity: 0.75; cursor: progress; }
.form__status[data-kind="error"]:not(:empty) { border-inline-start-color: var(--error); }
.form__status[data-kind="ok"]:not(:empty) { background: #fff; }

@media (max-width: 1100px) {
  .appearances { grid-template-columns: repeat(2, 1fr); }
  .appearance:not(:nth-child(3n+1)) { border-inline-start: 0; }
  .appearance:nth-child(even) { border-inline-start: 1px solid var(--rule); }
  .appearance:nth-child(3n+1) a { padding-inline-start: 24px; }
  .appearance:nth-child(odd) a { padding-inline-start: 0; }
}
@media (max-width: 860px) {
  .nav.is-open { background: var(--cobalt); top: 84px; border-bottom: 0; }
  .nav.is-open a { border-top-color: rgba(255,255,255,0.25); }
}
@media (max-width: 640px) {
  .site-header .wrap { min-height: 72px; }
  .nav.is-open { top: 72px; }
  .lockup__mark { width: 54px; height: 54px; }
  .lockup__practice { font-size: 1.1875rem; white-space: normal; line-height: 1.1; }
  .appearances { grid-template-columns: 1fr; }
  .appearance { border-inline-start: 0 !important; }
  .appearance a { padding-inline: 0 !important; }
  .appearance a:hover { background: none; }
  .form__actions { flex-direction: column; align-items: stretch; }
}
@media (max-width: 380px) {
  .lockup__practice { font-size: 1.05rem; white-space: normal; }
  .lockup__mark { width: 52px; height: 52px; }
  .site-header .wrap { gap: 8px; }
}
@media (max-width: 340px) {
  .lockup__mark { width: 46px; height: 46px; }
}

/* ---------- Media page ---------- */
.page-hero { padding-block: clamp(40px, 6vw, 88px) clamp(32px, 4vw, 56px); }
.crumb { font-family: var(--font-mono); font-size: 0.8125rem; color: var(--muted); margin-bottom: 20px; }
.crumb a { color: var(--cobalt); text-decoration: none; }
.crumb a:hover { text-decoration: underline; }
.page-h { font-family: var(--font-name); font-weight: 400; font-size: calc(var(--step-3) * 0.95); line-height: 1; letter-spacing: -0.005em; margin-bottom: 24px; }
.page-hero .lede { max-width: 46ch; margin-bottom: 16px; }
.topic-nav { margin-top: 32px; border-top: 1px solid var(--rule); }
.topic-nav ol { display: flex; flex-wrap: wrap; gap: 0 32px; counter-reset: t; }
.topic-nav li { counter-increment: t; }
.topic-nav a { display: inline-block; padding-block: 14px; text-decoration: none; font-weight: 500; }
.topic-nav a::before { content: "0" counter(t); font-family: var(--font-mono); font-size: 0.8125rem; color: var(--cobalt); margin-inline-end: 10px; }
.topic-nav a:hover { color: var(--cobalt); text-decoration: underline; }

/* ---------- Draft legal pages and 404 ---------- */
.draft-banner { background: var(--paper-2); border-block: 4px solid var(--error); padding-block: 16px; font-weight: 600; }
.draft-banner p + p { margin-top: 4px; font-weight: 400; font-size: var(--step--1); }
.prose { max-width: 70ch; padding-bottom: clamp(56px, 8vw, 112px); }
.prose h2 { font-size: var(--step-1); line-height: 1.3; font-weight: 600; margin-block: 40px 12px; }
.prose p + p, .prose p + ul, .prose ul + p { margin-top: 12px; }
.prose ul { list-style: disc; padding-inline-start: 1.25em; }
.prose li + li { margin-top: 6px; }
.prose a { color: var(--cobalt); }
.page-h:lang(ar) { font-family: var(--font-name-ar); font-weight: 700; line-height: 1.3; }
.tbc { background: #fff3c4; padding-inline: 4px; font-family: var(--font-mono); font-size: 0.875em; }
.notfound { display: grid; gap: clamp(32px, 5vw, 64px); grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); }
.notfound .page-h { font-size: var(--step-2); line-height: 1.2; margin-bottom: 16px; }
.notfound .lede { margin-bottom: 24px; }
.notfound [dir="rtl"] .arrow { transform: scaleX(-1); }
.notfound [dir="rtl"] .btn:hover .arrow { transform: scaleX(-1) translateX(4px); }
.entries { margin-top: 8px; }
.entry { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 8px 32px; padding-block: 28px; border-bottom: 1px solid var(--rule); }
.entry__meta { display: grid; gap: 4px; align-content: start; font-family: var(--font-mono); font-size: 0.8125rem; }
.entry__outlet { color: var(--cobalt); font-weight: 500; }
.entry__date { color: var(--muted); }
.entry__body { display: grid; gap: 12px; justify-items: start; max-width: 62ch; }
.entry__title { font-size: var(--step-1); font-weight: 600; line-height: 1.3; }
.entry__title a { text-decoration: none; }
.entry__title a:hover { text-decoration: underline; color: var(--cobalt); }
.entry__summary { color: var(--muted); }
.entry__cta { font-weight: 600; color: var(--cobalt); text-decoration: none; }
.entry__cta:hover .arrow { transform: translateX(4px); }
.entry:target { background: linear-gradient(90deg, var(--paper-2), transparent 70%); }
.yt { width: min(560px, 100%); aspect-ratio: 16 / 9; background: var(--navy); position: relative; margin-block: 6px; }
.yt__play { all: unset; cursor: pointer; display: block; position: absolute; inset: 0; }
.yt__play img { width: 100%; height: 100%; object-fit: cover; }
.yt__icon { position: absolute; inset-inline-start: 16px; bottom: 16px; width: 64px; height: 44px; background: var(--cobalt); display: grid; place-items: center; transition: background-color 160ms var(--ease); }
.yt__icon::after { content: ""; border-style: solid; border-width: 9px 0 9px 15px; border-color: transparent transparent transparent #fff; margin-inline-start: 4px; }
.yt__play:hover .yt__icon { background: var(--cobalt-ink); }
.yt__play:focus-visible { outline: 3px solid var(--cobalt); outline-offset: 3px; }
.yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.related li { display: flex; flex-wrap: wrap; gap: 4px 16px; align-items: baseline; padding-block: 16px; border-bottom: 1px solid var(--rule); }
.related a { font-weight: 600; color: var(--cobalt); }
.related span { font-size: 0.875rem; color: var(--muted); }
.nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 0.35em; }
@media (max-width: 860px) { .entry { grid-template-columns: 1fr; } .entry__meta { grid-auto-flow: column; justify-content: start; gap: 16px; } }

/* =====================================================================
   2026-10-19: featured media with thumbnails, "Start a conversation"
   dialog (Book time demo + Start inquiry), floating conversation button.
   ===================================================================== */

/* ---------- Featured media cards ---------- */
.appearances--featured + .appearances { margin-top: clamp(28px, 3vw, 44px); }
.appearances--featured .appearance a { grid-template-rows: auto auto auto 1fr auto; }
.appearance__thumb { display: block; position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: var(--navy); border: 1px solid var(--rule); margin-bottom: 4px; }
.appearance__thumb img { width: 100%; height: 100%; object-fit: cover; }
.appearance__play { position: absolute; inset-inline-start: 12px; bottom: 12px; width: 48px; height: 34px; background: var(--cobalt); display: grid; place-items: center; transition: background-color 160ms var(--ease); }
.appearance__play::after { content: ""; border-style: solid; border-width: 7px 0 7px 12px; border-color: transparent transparent transparent #fff; margin-inline-start: 3px; }
html[dir="rtl"] .appearance__play::after { margin-inline-start: 0; margin-inline-end: -3px; }
.appearance a:hover .appearance__play, .appearance a:focus-visible .appearance__play { background: var(--cobalt-ink); }
/* Three featured cards stay in one row of three until the phone layout. */
@media (max-width: 1100px) and (min-width: 641px) {
  .appearances--featured { grid-template-columns: repeat(3, 1fr); }
  .appearances--featured .appearance:nth-child(n+2) { border-inline-start: 1px solid var(--rule); }
  .appearances--featured .appearance:nth-child(n+2) a { padding-inline: 18px; }
  .appearances--featured .appearance:first-child a { padding-inline: 0 18px; }
  .appearances--featured .appearance__title { font-size: 1.0625rem; }
}

/* ---------- Contact marker as a trigger ---------- */
.marker__link { color: inherit; text-decoration: underline; text-decoration-color: var(--rule); text-underline-offset: 0.3em; cursor: pointer; }
.marker__link:hover { color: var(--cobalt); text-decoration-color: currentColor; }

/* ---------- Floating conversation button (physical bottom-right on every page) ---------- */
.fab {
  position: fixed; z-index: 20;
  right: calc(20px + env(safe-area-inset-right, 0px));
  bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  width: 60px; height: 60px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--cobalt); color: #fff; border: 2px solid #fff;
  box-shadow: 0 6px 18px rgba(10, 31, 68, 0.28);
}
.fab:hover { background: var(--cobalt-ink); color: #fff; }
.fab:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.fab--away, html.convo-open .fab { opacity: 0; visibility: hidden; pointer-events: none; transition: opacity 200ms var(--ease), visibility 0s linear 200ms; }
@media (max-width: 860px) {
  html.nav-open .fab { opacity: 0; visibility: hidden; pointer-events: none; }
}
@media (max-width: 640px) {
  .fab { width: 56px; height: 56px; right: calc(14px + env(safe-area-inset-right, 0px)); bottom: calc(14px + env(safe-area-inset-bottom, 0px)); }
  .site-footer { padding-bottom: calc(48px + 72px + env(safe-area-inset-bottom, 0px)); }
}
@media print { .fab, .convo { display: none !important; } }

/* ---------- Conversation dialog ---------- */
html.convo-open { overflow: hidden; }
.convo [hidden] { display: none !important; }
/* Booking is switched off until a real calendar is connected: data-booking="off" on #convo.
   The markup, script and API stay in place; remove the attribute to bring Book time back. */
.convo[data-booking="off"] [data-convo-book],
.convo[data-booking="off"] [data-view="book"],
.convo[data-booking="off"] [data-convo-nav],
.convo[data-booking="off"] .convo__choice-k { display: none !important; }
.convo[data-booking="off"] .convo__choices { grid-template-columns: 1fr; }
.convo {
  padding: 0; border: 0; margin: auto; overflow: hidden;
  width: min(760px, calc(100vw - 32px)); max-width: none;
  max-height: min(880px, calc(100vh - 32px));
  max-height: min(880px, calc(100dvh - 32px));
  background: var(--paper); color: var(--ink);
  box-shadow: 0 24px 60px rgba(10, 31, 68, 0.35);
}
.convo::backdrop { background: rgba(10, 31, 68, 0.62); }
.convo__panel { display: flex; flex-direction: column; max-height: inherit; }
.convo__head { display: flex; align-items: center; gap: 16px; padding-block: 14px; padding-inline: 24px 14px; background: var(--cobalt); color: #fff; }
.convo__title { font-size: var(--step-1); font-weight: 600; line-height: 1.25; margin-inline-end: auto; }
.convo__close { all: unset; box-sizing: border-box; width: 44px; height: 44px; display: grid; place-items: center; cursor: pointer; font-size: 1.75rem; line-height: 1; color: #fff; border: 1px solid rgba(255,255,255,0.7); }
.convo__close:hover { background: #fff; color: var(--cobalt); }
.convo__close:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.convo__body { min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 24px; flex: 1 1 auto; }
.convo__view { display: grid; gap: 18px; }
.convo__lede { font-size: var(--step-1); line-height: 1.4; }

.convo__choices { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--cobalt); }
.convo__choice {
  font: inherit; color: inherit; text-align: start; text-decoration: none; cursor: pointer;
  display: grid; align-content: start; gap: 8px; padding: 22px 20px 24px; min-height: 44px;
  background: transparent; border: 0; border-bottom: 1px solid var(--rule);
  transition: background-color 200ms var(--ease);
}
.convo__choice + .convo__choice { border-inline-start: 1px solid var(--rule); }
.convo__choice:hover { background: var(--paper-2); color: inherit; }
.convo__choice:focus-visible { outline-offset: -3px; }
.convo__choice-k { font-family: var(--font-mono); font-size: 0.8125rem; color: var(--cobalt); font-weight: 500; }
.convo__choice-t { font-size: 1.1875rem; font-weight: 600; color: var(--cobalt); }
.convo__choice-d { font-size: 0.9375rem; color: var(--muted); }
.convo__choice:hover .arrow { transform: translateX(4px); }
html[dir="rtl"] .convo__choice:hover .arrow { transform: scaleX(-1) translateX(4px); }

.convo__demo { font-size: 0.9375rem; background: var(--paper-2); border-inline-start: 4px solid var(--cobalt); padding: 12px 16px; }
.convo__step { font-family: var(--font-mono); font-size: 0.8125rem; color: var(--cobalt); text-transform: uppercase; letter-spacing: 0.08em; }
html[lang="ar"] .convo__step { font-family: var(--font-ar); font-size: 0.95rem; }
.convo__stage { display: grid; gap: 14px; }
.convo__h3 { font-size: 1.25rem; font-weight: 600; line-height: 1.3; }
.convo__h3:focus { outline: none; }
.convo__note, .convo__tz { font-size: 0.875rem; color: var(--muted); }
.convo__summary { font-weight: 600; }
.convo__summary:empty { display: none; }
.convo__state { font-size: 0.9375rem; color: var(--muted); padding-block: 12px; }
.convo__state[data-kind="error"], .convo__alert { color: var(--error); font-weight: 600; }
.convo__alert { font-size: 0.9375rem; }
.convo__form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 20px; }
.convo__form textarea { min-height: 96px; }
.convo__nav { display: flex; justify-content: space-between; gap: 12px; padding: 14px 24px calc(14px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--rule); background: var(--paper); }
.convo__nav .btn { min-height: 48px; padding-block: 12px; }
.convo__nav [data-convo-next] { margin-inline-start: auto; }

/* Session cards (native radios, visually replaced by the card) */
.sessions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.session { position: relative; }
.session input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.session label { display: grid; gap: 6px; height: 100%; padding: 16px; border: 1.5px solid #8f9bb0; background: #fff; cursor: pointer; }
.session input:hover + label { border-color: var(--ink); }
.session input:checked + label { border-color: var(--cobalt); box-shadow: inset 0 4px 0 var(--cobalt); background: var(--paper-2); }
.session input:focus-visible + label { outline: 3px solid var(--cobalt); outline-offset: 3px; }
.session__name { font-weight: 600; line-height: 1.3; }
.session__meta { font-family: var(--font-mono); font-size: 0.8125rem; color: var(--cobalt); }
html[lang="ar"] .session__meta { font-family: var(--font-ar); font-size: 0.9rem; }
.session__free { font-size: 0.8125rem; color: var(--muted); }

/* Date and time picker */
.picker { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.cal__head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.cal__month { font-weight: 600; }
.cal__nav { font: inherit; width: 44px; height: 44px; display: grid; place-items: center; background: transparent; color: var(--cobalt); border: 1px solid var(--cobalt); cursor: pointer; }
.cal__nav:hover:not([disabled]) { background: var(--cobalt); color: #fff; }
.cal__nav[disabled] { border-color: var(--rule); color: var(--rule); cursor: default; }
.cal__grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.cal__wd { font-size: 0.75rem; color: var(--muted); text-align: center; padding-block: 4px; }
.cal__day {
  font: inherit; font-size: 0.9375rem; font-variant-numeric: tabular-nums;
  aspect-ratio: 1; min-height: 40px; display: grid; place-items: center;
  background: #fff; color: var(--ink); border: 1px solid var(--rule); cursor: pointer;
}
.cal__day:hover:not([disabled]) { border-color: var(--cobalt); color: var(--cobalt); }
.cal__day[disabled] { background: transparent; border-color: transparent; color: #9aa3b2; cursor: default; text-decoration: line-through; text-decoration-color: rgba(154,163,178,0.6); }
.cal__day[aria-pressed="true"] { background: var(--cobalt); border-color: var(--cobalt); color: #fff; font-weight: 600; }
.slots__h { font-weight: 600; margin-bottom: 10px; }
.slots__list { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
.slot { font: inherit; font-size: 0.9375rem; font-variant-numeric: tabular-nums; min-height: 44px; padding: 8px; background: #fff; color: var(--cobalt); border: 1.5px solid var(--cobalt); cursor: pointer; }
.slot:hover:not([disabled]) { background: var(--paper-2); }
.slot[disabled] { color: #9aa3b2; border-color: var(--rule); background: transparent; text-decoration: line-through; cursor: default; }
.slot[aria-pressed="true"] { background: var(--cobalt); color: #fff; font-weight: 600; }

@media (max-width: 640px) {
  .convo { width: 100vw; max-width: 100vw; height: 100vh; height: 100dvh; max-height: none; margin: 0; }
  .convo__panel { height: 100%; }
  .convo__head { padding-inline: 16px 12px; padding-top: calc(12px + env(safe-area-inset-top, 0px)); }
  .convo__body { padding: 18px 16px; }
  .convo__nav { padding-inline: 16px; }
  .convo__nav .btn { flex: 1 1 0; justify-content: center; }
  .convo__choices, .sessions, .picker, .convo__form { grid-template-columns: 1fr; }
  .convo__choice { padding-inline: 0; }
  .convo__choice + .convo__choice { border-inline-start: 0; }
  .slots__list { grid-template-columns: repeat(auto-fill, minmax(88px, 1fr)); }
}

@media (prefers-reduced-motion: no-preference) {
  .motion .convo[open] .convo__panel { animation: m-rise 320ms var(--ease-out) both; --m-y: 14px; }
  .motion .convo[open]::backdrop { animation: m-fade 240ms var(--ease-soft) both; }
  .motion .fab { transition: background-color 160ms var(--ease), opacity 200ms var(--ease), transform 260ms var(--ease-out), visibility 0s linear 0s; }
  .motion .fab:hover { transform: translateY(-2px); }
  .motion .fab--away, html.convo-open.motion .fab { transform: translateY(12px); transition: opacity 200ms var(--ease), transform 260ms var(--ease-out), visibility 0s linear 260ms; }
  .appearance__thumb img { transition: transform 600ms var(--ease-out); }
  .appearance a:hover .appearance__thumb img, .appearance a:focus-visible .appearance__thumb img { transform: scale(1.04); }
}
