/* yahyammao.com
   Palette: ink and graphite from the portrait backdrop, a cool paper ground,
   one brass accent echoing the wristwatch. Two typefaces: Newsreader for
   headlines and long reading, Instrument Sans for interface and metadata. */

:root {
  --ink: #10141a;
  --graphite: #232a33;
  --slate: #3d4650;
  --steel: #6b7480;
  --mist: #a7adb5;
  --line: #d6d9dc;
  --line-soft: #e6e8ea;
  --paper: #f4f4f2;
  --paper-2: #ecedeb;
  --white: #ffffff;
  --brass: #a6864b;
  --brass-deep: #866b39;
  --brass-soft: #efe7d6;

  --serif: "Source Serif 4", "Iowan Old Style", Georgia, serif;
  --sans: "Inter", "Helvetica Neue", Arial, sans-serif;

  --measure: 68ch;
  --gutter: clamp(1.25rem, 4vw, 3.5rem);
  --rail: 3fr;
  --content: 9fr;
  --section-pad: clamp(3.5rem, 8vw, 7.5rem);
  --radius: 4px;
  --header-h: 4.75rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
body {
  margin: 0;
  font-weight: 400;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-feature-settings: "ss01", "cv01";
}
img, picture, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration-color: var(--mist); text-underline-offset: 0.16em; text-decoration-thickness: 1px; }
a:hover { text-decoration-color: var(--brass); }
:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; border-radius: 2px; }
button { font: inherit; color: inherit; }
::selection { background: var(--brass-soft); }

h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; line-height: 1.12; margin: 0; letter-spacing: -0.015em; font-variation-settings: "opsz" 60; }
h1 { font-size: clamp(2.25rem, 4.2vw, 3.4rem); }
h2 { font-size: clamp(1.75rem, 3vw, 2.4rem); }
h3 { font-size: clamp(1.25rem, 1.8vw, 1.5rem); }
h4 { font-size: 1.125rem; font-family: var(--sans); font-weight: 600; }
p { margin: 0 0 1.1em; }
.lede { font-family: var(--sans); font-weight: 300; font-size: clamp(1.15rem, 1.6vw, 1.35rem); line-height: 1.55; color: var(--graphite); max-width: 34em; }
.muted { color: var(--steel); }
.small { font-size: 0.875rem; }
.wrap { width: min(100% - 2 * var(--gutter), 84rem); margin-inline: auto; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: var(--gutter); top: -3rem; background: var(--ink); color: var(--white); padding: 0.5rem 0.9rem; z-index: 100; }
.skip:focus { top: 0.75rem; }

/* Header: floats transparently over the hero, becomes sticky and black on scroll */
.site-header { position: absolute; top: 0; left: 0; right: 0; z-index: 60; }
.sentinel, .spacer { height: 0; }
.bar { position: relative; background: transparent; transition: background 0.3s ease, box-shadow 0.3s ease; }
.bar.pinned { position: fixed; top: 0; left: 0; right: 0; background: #0a0d12; box-shadow: 0 8px 30px rgba(0,0,0,0.25); }
.bar.menuopen { background: #0a0d12; box-shadow: none; }
.bar-in { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; height: var(--header-h); transition: height 0.3s ease; }
.bar.pinned .bar-in { height: 4.25rem; }
.brand { display: flex; align-items: center; flex: none; text-decoration: none; }
.brand img { height: 3rem; width: auto; transition: height 0.3s ease; }
.bar.pinned .brand img { height: 2.5rem; }
.brand-dark { display: none; }
.nav { display: flex; align-items: center; gap: 0.15rem; flex: 1 1 auto; justify-content: center; }
.nav-link { position: relative; display: inline-flex; padding: 0.7rem 0.95rem; font-size: 0.92rem; font-weight: 500; color: rgba(255,255,255,0.85); text-decoration: none; white-space: nowrap; transition: color 0.18s ease; }
.nav-link::after { content: ""; position: absolute; left: 0.95rem; right: 0.95rem; bottom: 0.35rem; height: 2px; border-radius: 2px; background: var(--brass); transform: scaleX(0); transform-origin: left; transition: transform 0.24s cubic-bezier(0.22, 0.7, 0.3, 1); }
.nav-link:hover, .nav-link[aria-current="page"] { color: var(--white); }
.nav-link:hover::after, .nav-link[aria-current="page"]::after { transform: scaleX(1); }
.cta { flex: none; display: inline-flex; align-items: center; background: var(--brass); color: #14110a; font-size: 0.9rem; font-weight: 600; padding: 0.7rem 1.25rem; border-radius: 8px; text-decoration: none; transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.12s ease; }
.cta:hover { background: #bf9c5e; box-shadow: 0 0 28px rgba(166,134,75,0.35); }
.cta:active { transform: scale(0.97); }
.prog { position: absolute; left: 0; bottom: 0; height: 2px; width: 0; background: linear-gradient(90deg, var(--brass), #d4b57a); opacity: 0; transition: opacity 0.3s ease; }
.bar.pinned .prog { opacity: 1; }
.burger { display: none; flex: none; width: 2.6rem; height: 2.6rem; border-radius: 10px; border: 1px solid rgba(255,255,255,0.18); background: none; position: relative; cursor: pointer; transition: border-color 0.3s ease; }
.burger span { position: absolute; left: 0.7rem; right: 0.7rem; height: 1.6px; border-radius: 2px; background: var(--white); transition: transform 0.28s ease, opacity 0.18s ease, background 0.3s ease; }
.burger span:nth-child(1) { top: 0.85rem; } .burger span:nth-child(2) { top: 1.25rem; } .burger span:nth-child(3) { top: 1.65rem; }
.burger.x span:nth-child(1) { top: 1.25rem; transform: rotate(45deg); }
.burger.x span:nth-child(2) { opacity: 0; }
.burger.x span:nth-child(3) { top: 1.25rem; transform: rotate(-45deg); }
/* On light pages the floating header uses dark type until it pins */
.site-header.light .bar:not(.pinned):not(.menuopen) .brand-light { display: none; }
.site-header.light .bar:not(.pinned):not(.menuopen) .brand-dark { display: block; }
.site-header.light .bar:not(.pinned):not(.menuopen) .nav-link { color: var(--slate); }
.site-header.light .bar:not(.pinned):not(.menuopen) .nav-link:hover, .site-header.light .bar:not(.pinned):not(.menuopen) .nav-link[aria-current="page"] { color: var(--ink); }
.site-header.light .bar:not(.pinned):not(.menuopen) .burger { border-color: var(--line); }
.site-header.light .bar:not(.pinned):not(.menuopen) .burger span { background: var(--ink); }
.site-header.light .bar:not(.pinned):not(.menuopen) .cta { background: var(--ink); color: var(--white); }
.page-head, .article-head { padding-top: calc(var(--header-h) + clamp(3rem, 6vw, 5.5rem)); }
@media (max-width: 1180px) { .nav-link { padding: 0.7rem 0.7rem; font-size: 0.88rem; } .nav-link::after { left: 0.7rem; right: 0.7rem; } }
@media (max-width: 1040px) {
  .nav, .cta { display: none; }
  .burger { display: block; }
  .bar-in { height: 4.25rem; }
}
@media (max-width: 640px) { .brand img { height: 2.4rem; } }
@media (max-height: 700px) { .menu { gap: 1rem; justify-content: flex-start; } .menu-view { gap: 0.8rem; } .menu-view a { font-size: 1.35rem; } .menu-view .menu-cta { padding: 0.7rem 1.4rem; font-size: 0.95rem; } }

/* Full-screen menu */
.menu { position: fixed; inset: 0; z-index: 55; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1.5rem; padding: 5.5rem 1.5rem 2.5rem; overflow-y: auto; background: radial-gradient(75% 55% at 50% 12%, rgba(166,134,75,0.18), transparent 62%), var(--ink); opacity: 0; visibility: hidden; pointer-events: none; transition: opacity 0.3s ease, visibility 0.3s; }
.menu.show { opacity: 1; visibility: visible; pointer-events: auto; }
.menu-view { display: flex; flex-direction: column; align-items: center; gap: 1.35rem; padding: 0; text-align: center; }
.menu-view a { font-family: var(--serif); font-size: clamp(1.6rem, 6vw, 2rem); font-weight: 600; color: var(--white); text-decoration: none; transform: translateY(14px); opacity: 0; transition: transform 0.4s ease, opacity 0.4s ease, color 0.18s ease; }
.menu.show .menu-view a { transform: none; opacity: 1; }
.menu-lang-list a { transition-delay: 0s !important; }
.menu.show .menu-view a:nth-child(2) { transition-delay: 0.05s; } .menu.show .menu-view a:nth-child(3) { transition-delay: 0.1s; } .menu.show .menu-view a:nth-child(4) { transition-delay: 0.15s; } .menu.show .menu-view a:nth-child(5) { transition-delay: 0.2s; } .menu.show .menu-view a:nth-child(6) { transition-delay: 0.25s; } .menu.show .menu-view a:nth-child(7) { transition-delay: 0.3s; }
.menu-view a:hover { color: #d4b57a; }
.menu-view .menu-cta { font-family: var(--sans); font-size: 1rem; font-weight: 600; background: var(--brass); color: #14110a; padding: 0.9rem 1.7rem; border-radius: 10px; margin-top: 0.75rem; }
.menu-view .menu-cta:hover { background: #bf9c5e; color: #14110a; }
.menu-social { display: flex; justify-content: center; gap: 0.75rem; }
.menu-social a { width: 2.6rem; height: 2.6rem; border-radius: 10px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,0.14); color: var(--mist); transition: border-color 0.18s ease, color 0.18s ease; }
.menu-social a:hover { border-color: var(--brass); color: #d4b57a; }
.menu-mail { text-align: center; color: var(--mist); font-size: 0.95rem; text-decoration: none; }
.menu-mail:hover { color: var(--white); }
@media (max-width: 1180px) { .nav-link { padding: 0.7rem 0.7rem; font-size: 0.88rem; } .nav-link::after { left: 0.7rem; right: 0.7rem; } }
@media (max-width: 1040px) {
  .nav, .cta { display: none; }
  .burger { display: block; }
  .bar-in { height: 4.25rem; }
}
@media (max-width: 640px) { .util-l { display: none; } .util .wrap { justify-content: center; } .util-r a:not(:last-child), .util-r .util-dot { display: none; } .brand img { height: 2.4rem; } }
@media (max-height: 700px) { .menu { gap: 1rem; justify-content: flex-start; } .menu-view { gap: 0.8rem; } .menu-view a { font-size: 1.35rem; } .menu-view .menu-cta { padding: 0.7rem 1.4rem; font-size: 0.95rem; } }

/* Hero */
.hero { position: relative; background: var(--ink); color: var(--white); min-height: 100svh; display: grid; align-items: end; overflow: clip; }
.hero picture, .hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 78% center; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(16,20,26,0.55) 0%, rgba(16,20,26,0.15) 45%, rgba(16,20,26,0) 70%), linear-gradient(0deg, rgba(16,20,26,0.55) 0%, rgba(16,20,26,0) 40%); pointer-events: none; }
.hero .wrap { position: relative; z-index: 1; padding-block: calc(var(--header-h) + 3rem) clamp(2.5rem, 6vw, 5rem); }
.hero-copy { max-width: 46rem; }
.hero h1 { font-size: clamp(2.6rem, 5.4vw, 4.8rem); line-height: 1.05; max-width: 13ch; text-wrap: balance; font-weight: 600; }
.hero h1 em { font-style: italic; font-weight: 400; color: var(--white); }
.hero .lede { color: rgba(255,255,255,0.86); margin-top: 1.5rem; font-size: clamp(1.1rem, 1.5vw, 1.3rem); max-width: 27em; }
.hero-strip { background: var(--ink); color: rgba(255,255,255,0.72); border-top: 1px solid rgba(255,255,255,0.1); font-size: 0.9rem; }
.hero-strip .wrap { display: flex; flex-wrap: wrap; gap: 0.5rem 2.5rem; padding-block: 1rem; }
.hero-strip span::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--brass); margin-right: 0.6rem; vertical-align: middle; }
.hero-name { font-family: var(--sans); font-size: 0.95rem; color: rgba(255,255,255,0.78); margin-bottom: 1.2rem; }
.hero-name strong { color: var(--white); font-weight: 500; }
.hero-links { display: flex; flex-wrap: wrap; gap: 0.75rem 1.5rem; margin-top: 2rem; }
.hero-links a { color: var(--white); text-decoration-color: rgba(255,255,255,0.4); }
.hero-links a:hover { text-decoration-color: var(--brass); }
@media (max-width: 900px) {
  .hero { min-height: auto; display: block; }
  .hero picture, .hero img { position: relative; height: 62svh; min-height: 22rem; object-position: 60% 30%; }
  .hero::after { display: none; }
  .hero .wrap { display: block; padding-top: 2rem; }
  .hero picture, .hero img { height: 68svh; }
}

/* Sections on paper */
.section { padding-block: var(--section-pad); border-top: 1px solid var(--line); }
.section:first-of-type { border-top: 0; }
.section .wrap { display: grid; grid-template-columns: minmax(0, var(--rail)) minmax(0, var(--content)); gap: clamp(1.5rem, 4vw, 4rem); align-items: start; }
.rail { position: sticky; top: 6rem; }
.rail h2 { font-size: clamp(1.5rem, 2.2vw, 1.9rem); }
.rail p { color: var(--steel); margin-top: 0.75rem; font-size: 0.95rem; max-width: 26ch; }
.rail .more { display: inline-block; margin-top: 1rem; font-size: 0.95rem; }
@media (max-width: 900px) {
  .section .wrap { grid-template-columns: 1fr; gap: 1.5rem; }
  .rail { position: static; }
  .rail p { max-width: none; }
}

/* Definition rows */
.facts { display: grid; grid-template-columns: max-content 1fr; gap: 0.6rem 2rem; margin: 0; }
.facts dt { color: var(--steel); font-size: 0.95rem; }
.facts dd { margin: 0; }

/* Article list */
.post-list { list-style: none; margin: 0; padding: 0; }
.post-list li { border-top: 1px solid var(--line-soft); padding: 1.35rem 0; display: grid; grid-template-columns: 7.5rem 1fr auto; gap: 1.25rem; align-items: start; }
.post-list li:first-child { border-top: 0; padding-top: 0; }
.post-list time { color: var(--steel); font-size: 0.9rem; padding-top: 0.35rem; }
.post-list h3 { font-size: 1.35rem; margin-bottom: 0.35rem; }
.post-list h3 a { text-decoration: none; }
.post-list h3 a:hover { text-decoration: underline; text-decoration-color: var(--brass); }
.post-list p { color: var(--slate); margin: 0; font-size: 0.98rem; max-width: 60ch; }
.post-list .meta { color: var(--steel); font-size: 0.85rem; margin-top: 0.5rem; }
.post-list .thumb { width: 7rem; aspect-ratio: 4/3; object-fit: cover; border-radius: var(--radius); background: var(--paper-2); }
@media (max-width: 720px) {
  .post-list li { grid-template-columns: 1fr; gap: 0.4rem; }
  .post-list .thumb { display: none; }
}

/* Tags and filters */
.tags { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.tag { display: inline-block; font-size: 0.8rem; color: var(--slate); border: 1px solid var(--line); border-radius: 999px; padding: 0.1rem 0.6rem; text-decoration: none; background: var(--white); }
.filters { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; margin-bottom: 2rem; }
.filters button { background: var(--white); border: 1px solid var(--line); border-radius: 999px; padding: 0.35rem 0.9rem; font-size: 0.9rem; cursor: pointer; }
.filters button[aria-pressed="true"] { background: var(--ink); color: var(--white); border-color: var(--ink); }
.filters input[type="search"] { flex: 1 1 14rem; border: 1px solid var(--line); border-radius: 999px; padding: 0.45rem 1rem; font: inherit; font-size: 0.95rem; background: var(--white); min-width: 0; }
.filters input[type="search"]:focus { outline: 2px solid var(--brass); outline-offset: 1px; }
.count { color: var(--steel); font-size: 0.9rem; margin-bottom: 1rem; }
.year-head { font-family: var(--serif); font-size: 1.4rem; color: var(--steel); margin: 2.5rem 0 0.5rem; border-bottom: 1px solid var(--line); padding-bottom: 0.4rem; }
.year-head:first-child { margin-top: 0; }

/* Timeline (career is a real sequence) */
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline > li { display: grid; grid-template-columns: auto 1fr; gap: 1.25rem; padding: 1.5rem 0; border-top: 1px solid var(--line-soft); }
.timeline > li:first-child { border-top: 0; padding-top: 0; }
.logo { width: 3.25rem; height: 3.25rem; border-radius: 6px; background: var(--white); border: 1px solid var(--line-soft); display: grid; place-items: center; overflow: hidden; }
.logo img { width: 100%; height: 100%; object-fit: contain; padding: 0.35rem; }
.logo.mono { font-family: var(--serif); font-size: 1.1rem; color: var(--graphite); background: var(--paper-2); }
.logo.wide { width: 6.75rem; }
.logo.wide img { padding: 0.45rem 0.55rem; }
.timeline h3 { font-family: var(--sans); font-weight: 600; font-size: 1.05rem; }
.timeline .org-meta { color: var(--steel); font-size: 0.9rem; margin: 0.15rem 0 0.75rem; }
.roles { list-style: none; margin: 0; padding: 0; }
.roles li { padding: 0.55rem 0 0.55rem 1rem; border-left: 1px solid var(--line); margin-left: 0.15rem; }
.roles li + li { margin-top: 0.15rem; }
.roles .title { font-weight: 500; }
.roles .dates { color: var(--steel); font-size: 0.88rem; margin-left: 0.5rem; }
.roles p { color: var(--slate); font-size: 0.95rem; margin: 0.35rem 0 0; max-width: 62ch; }
details.more-text summary { cursor: pointer; color: var(--brass-deep); font-size: 0.9rem; margin-top: 0.35rem; list-style: none; }
details.more-text summary::-webkit-details-marker { display: none; }
details.more-text[open] summary { display: none; }

/* Institution rows */
.rows { list-style: none; margin: 0; padding: 0; }
.rows li { display: grid; grid-template-columns: auto 1fr auto; gap: 1.25rem; align-items: center; padding: 1rem 0; border-top: 1px solid var(--line-soft); }
.rows li:first-child { border-top: 0; padding-top: 0; }
.rows .t { font-weight: 500; }
.rows .s { color: var(--steel); font-size: 0.92rem; }
.rows .d { color: var(--steel); font-size: 0.9rem; white-space: nowrap; }
.rows a { text-decoration: none; }
.rows a:hover { text-decoration: underline; }
@media (max-width: 600px) { .rows li { grid-template-columns: auto 1fr; } .rows .d { grid-column: 2; } }

/* Honors */
.honors { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.25rem; }
.honors li { display: grid; grid-template-columns: auto 1fr; gap: 1.25rem; }
.honors h3 { font-size: 1.3rem; }
.honors p { color: var(--slate); font-size: 0.97rem; margin: 0.3rem 0 0; max-width: 60ch; }
.honors .d { color: var(--steel); font-size: 0.9rem; }

/* Books */
.books { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 1.5rem; }
.book { border: 1px solid var(--line); background: var(--white); padding: 1.5rem 1.5rem 1.35rem; display: flex; flex-direction: column; min-height: 17rem; position: relative; }
.book::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 6px; background: var(--ink); }
.book h3 { font-size: 1.25rem; margin-bottom: 0.5rem; }
.book .s { color: var(--steel); font-size: 0.88rem; margin-top: auto; padding-top: 1rem; }
.book p { color: var(--slate); font-size: 0.95rem; }
.book a { text-decoration: none; }
.book a:hover { text-decoration: underline; }

/* Two column chips */
.chips { display: flex; flex-wrap: wrap; gap: 0.5rem 0.6rem; list-style: none; padding: 0; margin: 0; }
.chips li { border: 1px solid var(--line); background: var(--white); border-radius: 999px; padding: 0.25rem 0.8rem; font-size: 0.9rem; }

/* News */
.news-list { list-style: none; margin: 0; padding: 0; }
.news-list li { border-top: 1px solid var(--line-soft); padding: 1.1rem 0; display: grid; grid-template-columns: 1fr auto; gap: 0.5rem 1.5rem; align-items: baseline; }
.news-list li:first-child { border-top: 0; padding-top: 0; }
.news-list h3 { font-size: 1.15rem; font-family: var(--serif); line-height: 1.3; }
.news-list h3 a { text-decoration: none; }
.news-list h3 a:hover { text-decoration: underline; text-decoration-color: var(--brass); }
.news-list .src { color: var(--steel); font-size: 0.88rem; white-space: nowrap; }
.news-list .note { grid-column: 1 / -1; color: var(--slate); font-size: 0.95rem; margin: 0; max-width: 70ch; }
.news-list .topic { font-size: 0.8rem; color: var(--brass-deep); }
.news-updated { color: var(--steel); font-size: 0.9rem; }
.sources { color: var(--steel); font-size: 0.9rem; max-width: 60ch; }

/* Article page */
.article-head { padding-block: clamp(3rem, 6vw, 5.5rem) 2rem; }
.article-head .wrap { max-width: 52rem; }
.article-head .meta { color: var(--steel); font-size: 0.92rem; margin-bottom: 1.25rem; display: flex; flex-wrap: wrap; gap: 0.35rem 1rem; }
.article-head h1 { text-wrap: balance; }
.article-head .lede { margin-top: 1.25rem; }
.article-hero { width: min(100% - 2 * var(--gutter), 64rem); margin: 0 auto 2.5rem; }
.article-hero img { width: 100%; height: auto; max-height: 34rem; object-fit: cover; border-radius: var(--radius); }
.prose { width: min(100% - 2 * var(--gutter), 42rem); margin-inline: auto; font-family: var(--sans); font-size: 1.125rem; line-height: 1.72; color: var(--graphite); font-weight: 300; }
.prose strong, .prose b { font-weight: 600; }
.prose[dir="rtl"] { text-align: right; }
.prose p { margin: 0 0 1.35em; }
.prose h2 { font-size: 1.75rem; margin: 2.2em 0 0.7em; color: var(--ink); }
.prose h3 { font-size: 1.35rem; margin: 1.8em 0 0.6em; color: var(--ink); }
.prose h4 { font-family: var(--serif); font-weight: 500; font-size: 1.15rem; margin: 1.6em 0 0.5em; }
.prose img { margin: 2rem auto; border-radius: var(--radius); }
.prose figure { margin: 2rem 0; }
.prose figcaption { font-family: var(--sans); font-size: 0.85rem; color: var(--steel); margin-top: 0.5rem; }
.prose blockquote { margin: 2rem 0; padding-left: 1.25rem; border-left: 3px solid var(--brass); font-style: italic; color: var(--slate); }
.prose ul, .prose ol { padding-left: 1.4em; margin: 0 0 1.35em; }
.prose li { margin-bottom: 0.4em; }
.prose a { text-decoration-color: var(--brass); }
.article-foot { width: min(100% - 2 * var(--gutter), 42rem); margin: 3rem auto 0; padding-top: 2rem; border-top: 1px solid var(--line); font-size: 0.95rem; color: var(--slate); }
.article-foot .share { display: flex; flex-wrap: wrap; gap: 1.25rem; margin-top: 1rem; }
.author { display: grid; grid-template-columns: 4.5rem 1fr; gap: 1.25rem; align-items: center; margin-top: 2rem; padding: 1.5rem; background: var(--white); border: 1px solid var(--line); }
.author img { width: 4.5rem; height: 4.5rem; border-radius: 50%; object-fit: cover; }
.author p { margin: 0.2rem 0 0; font-size: 0.95rem; color: var(--slate); }
.pager { width: min(100% - 2 * var(--gutter), 64rem); margin: 3rem auto 0; display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; padding-top: 2rem; border-top: 1px solid var(--line); }
.pager a { text-decoration: none; }
.pager a:hover h3 { text-decoration: underline; text-decoration-color: var(--brass); }
.pager .label { color: var(--steel); font-size: 0.85rem; margin-bottom: 0.3rem; }
.pager .next { text-align: right; }
.pager h3 { font-size: 1.15rem; }
@media (max-width: 600px) { .pager { grid-template-columns: 1fr; } .pager .next { text-align: left; } }

/* Page head (non-home) */
.page-head { padding-block: clamp(3rem, 6vw, 5.5rem) clamp(2rem, 4vw, 3rem); }
.page-head .wrap { display: grid; grid-template-columns: minmax(0, var(--rail)) minmax(0, var(--content)); gap: clamp(1.5rem, 4vw, 4rem); }
.page-head h1 { grid-column: 2; }
.page-head .lede { grid-column: 2; margin-top: 1rem; }
@media (max-width: 900px) { .page-head .wrap { grid-template-columns: 1fr; } .page-head h1, .page-head .lede { grid-column: 1; } }

/* Portrait block on about page */
.portrait { display: block; border-radius: var(--radius); overflow: hidden; margin-bottom: 1.5rem; max-width: 22rem; }
.portrait img { width: 100%; aspect-ratio: 1; object-fit: cover; }

/* Footer */
.site-footer { background: var(--ink); color: rgba(255,255,255,0.8); padding-block: clamp(3rem, 6vw, 5rem) 2rem; margin-top: var(--section-pad); }
.site-footer .wrap { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 3fr) minmax(0, 4fr); gap: 2.5rem; }
.site-footer h2 { color: var(--white); font-size: clamp(1.6rem, 2.6vw, 2.2rem); max-width: 18ch; }
.site-footer a { color: var(--white); text-decoration-color: rgba(255,255,255,0.35); }
.site-footer a:hover { text-decoration-color: var(--brass); }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; }
.site-footer .colophon { grid-column: 1 / -1; margin-top: 2.5rem; padding-top: 1.25rem; border-top: 1px solid rgba(255,255,255,0.14); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.75rem 2rem; font-size: 0.85rem; color: rgba(255,255,255,0.6); }
.site-footer .colophon a { color: rgba(255,255,255,0.75); }
.footer-email { font-family: var(--serif); font-size: clamp(1.15rem, 1.8vw, 1.4rem); display: inline-block; margin-top: 1rem; }
@media (max-width: 800px) { .site-footer .wrap { grid-template-columns: 1fr; } }

/* Buttons */
.btn { display: inline-block; background: var(--ink); color: var(--white); text-decoration: none; padding: 0.7rem 1.25rem; border-radius: var(--radius); font-size: 0.95rem; }
.btn:hover { background: var(--graphite); }
.btn.ghost { background: transparent; color: var(--ink); border: 1px solid var(--ink); }
.btn.ghost:hover { background: var(--white); }

/* Legal pages */
.legal { width: min(100% - 2 * var(--gutter), 44rem); margin-inline: auto; padding-block: 3rem; }
.legal h2 { font-size: 1.4rem; margin: 2rem 0 0.6rem; }

/* Search/no result */
.empty { color: var(--steel); padding: 2rem 0; }

/* Contact page */
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: 1.5rem; }
.contact-grid a { text-decoration: none; display: block; border: 1px solid var(--line); background: var(--white); padding: 1.25rem; }
.contact-grid a:hover { border-color: var(--ink); }
.contact-grid .k { color: var(--steel); font-size: 0.88rem; }
.contact-grid .v { font-family: var(--serif); font-size: 1.2rem; margin-top: 0.25rem; word-break: break-word; }

/* Podcast and speaking */
.podcast { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 2rem; align-items: start; }
.podcast iframe { width: 100%; border: 0; border-radius: 12px; min-height: 152px; }
.podcast h3 { font-size: 1.5rem; }
.podcast .show { color: var(--brass-deep); font-weight: 500; font-size: 0.9rem; margin-bottom: 0.5rem; }
@media (max-width: 800px) { .podcast { grid-template-columns: 1fr; } }
.engagements { list-style: none; margin: 0; padding: 0; }
.engagements li { padding: 1rem 0; border-top: 1px solid var(--line-soft); display: grid; grid-template-columns: 1fr auto; gap: 0.25rem 1.5rem; }
.engagements li:first-child { border-top: 0; padding-top: 0; }
.engagements .t { font-weight: 500; }
.engagements .s { color: var(--slate); font-size: 0.95rem; grid-column: 1; }
.engagements .d { color: var(--steel); font-size: 0.9rem; white-space: nowrap; }

/* =====================================================================
   Marketing layer: alternating bands, cards, motion
   ===================================================================== */
.eyebrow { font-size: 0.85rem; font-weight: 600; color: var(--brass-deep); letter-spacing: 0.02em; margin: 0 0 0.9rem; }
.ink .eyebrow, .hero .eyebrow, .cta-card .eyebrow, .page-hero .eyebrow { color: #d4b57a; }
h1 em, h2 em { font-style: italic; font-weight: 500; color: var(--brass-deep); }
.ink h2 em, .hero h1 em, .cta-card h2 em, .page-hero h1 em { color: #d4b57a; }
.hero .eyebrow { margin-bottom: 1.2rem; }

.band { position: relative; padding-block: clamp(4rem, 9vw, 8rem); overflow: clip; }
.band.white { background: var(--white); }
.band.paper { background: var(--paper); }
.band.brass-tint { background: linear-gradient(180deg, #f7f2e6 0%, #f4f4f2 100%); }
.band.ink { background: var(--ink); color: var(--white); }
.band.ink p, .band.ink .lede { color: rgba(255,255,255,0.78); }
.band.glow::before { content: ""; position: absolute; inset: -20% auto auto -10%; width: 60vw; height: 60vw; max-width: 900px; max-height: 900px; background: radial-gradient(circle, rgba(166,134,75,0.28), transparent 60%); pointer-events: none; }
.band.glow-right::before { content: ""; position: absolute; inset: auto -15% -30% auto; width: 60vw; height: 60vw; max-width: 900px; max-height: 900px; background: radial-gradient(circle, rgba(166,134,75,0.24), transparent 60%); pointer-events: none; }
.band > .wrap { position: relative; }
.band-head { max-width: 46rem; margin-bottom: clamp(2rem, 4vw, 3.5rem); }
.band-head.row { max-width: none; display: flex; justify-content: space-between; align-items: end; gap: 2rem; flex-wrap: wrap; }
.band-head.row > div { max-width: 46rem; }
.band-head .lede { margin-top: 1rem; }
.actions { display: flex; gap: 1rem; flex-wrap: wrap; align-items: center; margin-top: 1.5rem; }
.actions.center { justify-content: center; margin-top: 2rem; }

/* Buttons */
.btn.brass { background: var(--brass); color: #14110a; font-weight: 600; }
.btn.brass:hover { background: #bf9c5e; box-shadow: 0 10px 30px rgba(166,134,75,0.35); }
.btn.outline { background: transparent; color: var(--white); border: 1px solid rgba(255,255,255,0.45); }
.btn.outline:hover { background: rgba(255,255,255,0.08); border-color: var(--white); }
.btn { padding: 0.85rem 1.5rem; border-radius: 10px; font-weight: 500; transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease; }
.btn:hover { transform: translateY(-1px); }
.link-more { font-weight: 600; color: var(--brass-deep); text-decoration: none; position: relative; }
.link-more::after { content: ""; display: block; height: 2px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform 0.25s ease; }
.link-more:hover::after { transform: scaleX(1); }
.link-more.light { color: #d4b57a; }

/* Hero refinements */
.hero .wrap { padding-bottom: clamp(4rem, 8vw, 7rem); }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 2rem; }
.hero-stats { list-style: none; margin: 3rem 0 0; padding: 1.5rem 0 0; border-top: 1px solid rgba(255,255,255,0.18); display: grid; grid-template-columns: repeat(4, auto); gap: 1rem 2.5rem; justify-content: start; }
.hero-stats strong { display: block; font-family: var(--serif); font-size: clamp(1.25rem, 1.9vw, 1.6rem); font-weight: 600; line-height: 1; color: var(--white); }
.hero-stats span { display: block; font-size: 0.82rem; color: rgba(255,255,255,0.7); margin-top: 0.4rem; }
.hero-scroll { position: absolute; left: 50%; bottom: 1.5rem; width: 26px; height: 42px; border: 1px solid rgba(255,255,255,0.4); border-radius: 14px; transform: translateX(-50%); z-index: 2; }
.hero-scroll span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--brass); animation: scrollhint 1.8s ease-in-out infinite; }
@keyframes scrollhint { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(14px); opacity: 0; } 100% { opacity: 0; } }
.hero-media img { will-change: transform; }
@media (max-width: 900px) { .hero-stats { grid-template-columns: repeat(2, 1fr); } .hero-scroll { display: none; } }

/* Entrance motion */
.stagger { opacity: 0; transform: translateY(18px); animation: rise 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) forwards; }
.stagger:nth-child(1) { animation-delay: 0.1s; } .stagger:nth-child(2) { animation-delay: 0.25s; } .stagger:nth-child(3) { animation-delay: 0.4s; } .stagger:nth-child(4) { animation-delay: 0.55s; } .stagger:nth-child(5) { animation-delay: 0.7s; }
@keyframes rise { to { opacity: 1; transform: none; } }
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1); }
.reveal.in { opacity: 1; transform: none; }
.cards .reveal:nth-child(2), .stats-grid .reveal:nth-child(2), .awards .reveal:nth-child(2), .shelf .reveal:nth-child(2) { transition-delay: 0.12s; }
.cards .reveal:nth-child(3), .stats-grid .reveal:nth-child(3), .awards .reveal:nth-child(3), .shelf .reveal:nth-child(3) { transition-delay: 0.24s; }
.stats-grid .reveal:nth-child(4) { transition-delay: 0.36s; }
@media (prefers-reduced-motion: reduce) { .stagger, .reveal { opacity: 1; transform: none; animation: none; } .marquee-track { animation: none !important; } }

/* Logo marquee */
.strip-label { text-align: center; color: var(--steel); font-size: 0.9rem; margin: 0 0 1.75rem; }
.marquee { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee-track { display: flex; gap: 3.5rem; width: max-content; animation: marquee 55s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-item { display: flex; align-items: center; gap: 0.8rem; color: var(--slate); font-weight: 500; white-space: nowrap; }
.marquee-item .logo { width: 2.75rem; height: 2.75rem; }
.marquee-item .logo.wide { width: 6rem; }
@keyframes marquee { to { transform: translateX(-50%); } }
.band#trusted { padding-block: 3rem; border-bottom: 1px solid var(--line-soft); }

/* Split layouts */
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 6vw, 6rem); align-items: center; }
.split.reverse { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.split-copy h2 { margin-bottom: 1.25rem; }
.split-copy p { color: var(--slate); max-width: 58ch; }
.ink .split-copy p { color: rgba(255,255,255,0.78); }
.split-media { position: relative; }
.portrait-frame { display: block; border-radius: 18px; overflow: hidden; box-shadow: 0 30px 60px rgba(16,20,26,0.18); position: relative; }
.portrait-frame::after { content: ""; position: absolute; inset: 0; border-radius: 18px; border: 1px solid rgba(166,134,75,0.4); pointer-events: none; }
.badge { position: absolute; display: flex; align-items: center; gap: 0.75rem; background: var(--white); padding: 0.75rem 1rem; border-radius: 12px; box-shadow: 0 16px 40px rgba(16,20,26,0.16); font-size: 0.85rem; }
.badge .logo { width: 2.4rem; height: 2.4rem; }
.badge strong { display: block; font-weight: 600; } .badge span { color: var(--steel); }
.badge-a { right: -1.5rem; top: 12%; animation: float 6s ease-in-out infinite; }
.badge-b { left: -1.5rem; bottom: 12%; animation: float 7s ease-in-out infinite 1s; }
@keyframes float { 50% { transform: translateY(-8px); } }
.player { background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.12); border-radius: 18px; padding: 1rem; backdrop-filter: blur(10px); }
.player iframe { width: 100%; border: 0; border-radius: 12px; display: block; }
@media (max-width: 900px) { .split, .split.reverse { grid-template-columns: 1fr; } .split.reverse .split-copy { order: 1; } .split.reverse .split-media { order: 2; } .badge-a, .badge-b { position: static; margin-top: 1rem; display: inline-flex; animation: none; } .badge-b { margin-left: 0.75rem; } }

/* Stats */
.stats-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: 1.5rem; }
.stats-grid li { padding: 2rem 1.75rem; border-radius: 16px; background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.1); }
.stats-grid strong { display: block; font-family: var(--serif); font-size: clamp(2.6rem, 4vw, 3.6rem); font-weight: 600; line-height: 1; color: #e8d4a8; }
.stats-grid span { display: block; margin-top: 0.9rem; color: rgba(255,255,255,0.72); font-size: 0.95rem; line-height: 1.5; }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr)); gap: 1.5rem; }
.card { background: var(--white); border: 1px solid var(--line-soft); border-radius: 18px; padding: 2rem; transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease; }
.card:hover { transform: translateY(-6px); box-shadow: 0 24px 50px rgba(16,20,26,0.1); border-color: rgba(166,134,75,0.4); }
.card-ic { display: grid; place-items: center; width: 3rem; height: 3rem; border-radius: 12px; background: var(--brass-soft); color: var(--brass-deep); margin-bottom: 1.25rem; }
.card-ic svg { width: 1.4rem; height: 1.4rem; }
.card h3 { font-size: 1.35rem; margin-bottom: 0.75rem; }
.card p { color: var(--slate); }
.card ul { list-style: none; margin: 1rem 0 0; padding: 0; color: var(--slate); font-size: 0.95rem; }
.card li { padding: 0.45rem 0 0.45rem 1.4rem; position: relative; border-top: 1px solid var(--line-soft); }
.card li::before { content: ""; position: absolute; left: 0; top: 0.95rem; width: 7px; height: 7px; border-radius: 50%; background: var(--brass); }
.pill { display: inline-block; font-size: 0.75rem; font-weight: 600; color: var(--brass-deep); background: var(--brass-soft); padding: 0.2rem 0.65rem; border-radius: 999px; margin-bottom: 0.6rem; }

/* Insights feature */
.feature-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 1.5rem; }
.feature { display: flex; flex-direction: column; background: var(--white); border-radius: 18px; overflow: hidden; text-decoration: none; border: 1px solid var(--line-soft); transition: transform 0.25s ease, box-shadow 0.25s ease; }
.feature:hover { transform: translateY(-6px); box-shadow: 0 24px 50px rgba(16,20,26,0.12); }
.feature img, .feature-fallback { width: 100%; aspect-ratio: 16/9; object-fit: cover; background: linear-gradient(135deg, var(--graphite), var(--ink)); }
.feature-body { padding: 1.75rem; }
.feature h3 { font-size: 1.6rem; margin-bottom: 0.6rem; }
.feature p { color: var(--slate); }
.meta { font-size: 0.85rem; color: var(--steel); }
.feature-list { display: grid; gap: 1rem; }
.mini { display: grid; grid-template-columns: 7rem 1fr; gap: 1rem; align-items: center; background: var(--white); border-radius: 14px; padding: 0.9rem; text-decoration: none; border: 1px solid var(--line-soft); transition: transform 0.25s ease, box-shadow 0.25s ease; }
.mini:hover { transform: translateX(6px); box-shadow: 0 16px 40px rgba(16,20,26,0.1); }
.mini img, .mini-fallback { width: 7rem; aspect-ratio: 4/3; object-fit: cover; border-radius: 10px; background: linear-gradient(135deg, var(--graphite), var(--ink)); display: block; }
.mini h3 { font-size: 1.05rem; margin: 0 0 0.4rem; }
@media (max-width: 900px) { .feature-grid { grid-template-columns: 1fr; } }

/* Career steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); gap: 1.25rem; counter-reset: step; }
.steps li { position: relative; background: var(--paper); border-radius: 16px; padding: 1.5rem; border: 1px solid var(--line-soft); }
.steps li::before { counter-increment: step; content: counter(step, decimal-leading-zero); position: absolute; top: 1.25rem; right: 1.25rem; font-family: var(--serif); font-size: 1.1rem; color: var(--brass); }
.step-logo .logo { width: 3rem; height: 3rem; margin-bottom: 1rem; }
.step-logo .logo.wide { width: 6.5rem; }
.steps h3 { font-family: var(--sans); font-weight: 600; font-size: 1.05rem; margin: 0.3rem 0 0.4rem; }
.steps p { color: var(--slate); font-size: 0.92rem; margin: 0; }

/* Awards and credentials */
.awards { display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: 1.5rem; margin-bottom: 2.5rem; }
.award { background: var(--white); border-radius: 18px; padding: 2rem; border: 1px solid var(--line-soft); }
.award .logo { width: 3.25rem; height: 3.25rem; margin-bottom: 1.25rem; }
.award .logo.wide { width: 7rem; }
.award h3 { font-size: 1.35rem; margin-bottom: 0.4rem; }
.award p { color: var(--slate); margin: 0.75rem 0 0; font-size: 0.95rem; }
.cred-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 1rem; }
.cred { display: flex; align-items: center; gap: 0.9rem; background: rgba(255,255,255,0.7); border: 1px solid var(--line-soft); border-radius: 14px; padding: 0.9rem 1rem; text-decoration: none; transition: background 0.2s ease, transform 0.2s ease; }
.cred:hover { background: var(--white); transform: translateY(-3px); }
.cred .logo { width: 2.6rem; height: 2.6rem; flex: none; }
.cred .logo.wide { width: 5.5rem; }
.cred strong { display: block; font-weight: 600; font-size: 0.92rem; }
.cred span { font-size: 0.8rem; color: var(--steel); }

/* Book shelf */
.shelf { display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: 2rem; }
.book3d { text-decoration: none; display: grid; grid-template-columns: 7rem 1fr; gap: 1.25rem; align-items: start; }
.cover { position: relative; width: 7rem; aspect-ratio: 2/3; background: linear-gradient(160deg, #2b3440, var(--ink)); border-radius: 4px 10px 10px 4px; box-shadow: 8px 12px 30px rgba(16,20,26,0.3), inset 6px 0 0 rgba(255,255,255,0.06); padding: 0.9rem 0.8rem; display: flex; flex-direction: column; justify-content: space-between; transform: perspective(800px) rotateY(-14deg); transition: transform 0.35s ease, box-shadow 0.35s ease; }
.book3d:hover .cover { transform: perspective(800px) rotateY(-4deg) translateY(-4px); box-shadow: 12px 20px 40px rgba(16,20,26,0.35), inset 6px 0 0 rgba(255,255,255,0.06); }
.cover-title { font-family: var(--serif); font-size: 0.78rem; line-height: 1.25; color: var(--white); font-weight: 600; }
.cover-author { font-size: 0.55rem; color: #d4b57a; letter-spacing: 0.04em; }
.book-info h3 { font-size: 1.15rem; margin-bottom: 0.4rem; }
.book-info p { color: var(--slate); font-size: 0.92rem; margin-bottom: 0.5rem; }

/* News cards */
.news-cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr)); gap: 1.25rem; }
.news-cards a { display: block; height: 100%; background: var(--paper); border-radius: 16px; padding: 1.5rem; text-decoration: none; border: 1px solid var(--line-soft); transition: transform 0.25s ease, box-shadow 0.25s ease; }
.news-cards a:hover { transform: translateY(-5px); box-shadow: 0 20px 44px rgba(16,20,26,0.1); }
.news-cards h3 { font-size: 1.1rem; margin: 0.2rem 0 0.75rem; line-height: 1.35; }

/* CTA band */
.cta-band { background: linear-gradient(180deg, var(--white) 0%, var(--paper) 100%); padding-block: clamp(3rem, 7vw, 6rem); }
.cta-card { position: relative; max-width: 60rem; margin-inline: auto; padding: clamp(2.5rem, 6vw, 4.5rem) clamp(1.75rem, 5vw, 4rem); border-radius: 28px; text-align: center; color: var(--white); background: radial-gradient(90% 140% at 50% 0%, rgba(166,134,75,0.34), transparent 62%), linear-gradient(165deg, #18202b 0%, var(--ink) 100%); box-shadow: 0 40px 80px rgba(16,20,26,0.28); overflow: hidden; }
.cta-card::after { content: ""; position: absolute; inset: 0; border-radius: 28px; border: 1px solid rgba(255,255,255,0.08); pointer-events: none; }
.cta-card .lede { margin-inline: auto; }
.cta-card .lede { color: rgba(255,255,255,0.78); margin: 1.25rem auto 0; }
.cta-card h2 { font-size: clamp(1.8rem, 3.4vw, 2.8rem); }

/* Sub-page heroes */
.page-hero { position: relative; background: radial-gradient(70% 100% at 80% 0%, rgba(166,134,75,0.28), transparent 60%), var(--ink); color: var(--white); padding: calc(var(--header-h) + clamp(3rem, 7vw, 6rem)) 0 clamp(3rem, 6vw, 5rem); overflow: clip; }
.page-hero .wrap { max-width: 60rem; }
.page-hero h1 { text-wrap: balance; }
.page-hero .lede { color: rgba(255,255,255,0.78); margin-top: 1.25rem; }
.page-hero .meta { color: rgba(255,255,255,0.65); }
.page-hero .tag { background: rgba(255,255,255,0.08); color: rgba(255,255,255,0.85); border-color: rgba(255,255,255,0.2); }
.page-head, .article-head { display: none; }
.legal { padding-block: 0; }
.legal h2 { font-family: var(--serif); }
.article-head-dark .meta { display: flex; flex-wrap: wrap; gap: 0.35rem 1rem; margin-bottom: 1.25rem; font-size: 0.9rem; }
.article-hero { margin-top: -3rem; position: relative; z-index: 2; }
.article-hero img { box-shadow: 0 30px 60px rgba(16,20,26,0.25); border-radius: 14px; }
.section:first-of-type { border-top: 0; }

/* Sub-pages: alternate the section grounds too */
main > .section:nth-of-type(even) { background: var(--white); }
main > .section { border-top: 0; }

/* Qualitative impact list */
.impact-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.25rem; counter-reset: imp; }
@media (max-width: 1180px) { .impact-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .impact-list { grid-template-columns: 1fr; } }
.impact-list li { position: relative; padding: 2rem 1.75rem 1.75rem; border-radius: 16px; background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.1); transition: background 0.25s ease, transform 0.25s ease; }
.impact-list li:hover { background: rgba(255,255,255,0.07); transform: translateY(-4px); }
.impact-list li::before { counter-increment: imp; content: counter(imp, decimal-leading-zero); position: absolute; top: 1.5rem; right: 1.5rem; font-family: var(--serif); color: rgba(212,181,122,0.65); font-size: 1rem; }
.impact-k { display: block; font-family: var(--serif); font-size: 1.3rem; font-weight: 600; color: #e8d4a8; margin-bottom: 0.75rem; padding-right: 2.5rem; }
.impact-list p { margin: 0; font-size: 0.97rem; line-height: 1.6; }

/* Video embed */
.video { position: relative; aspect-ratio: 16/9; border-radius: 18px; overflow: hidden; box-shadow: 0 30px 60px rgba(16,20,26,0.18); }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Event cards */
.events { display: grid; grid-template-columns: repeat(auto-fit, minmax(20rem, 1fr)); gap: 1.5rem; margin-bottom: 3rem; }
.event { background: var(--white); border-radius: 18px; overflow: hidden; border: 1px solid var(--line-soft); transition: transform 0.25s ease, box-shadow 0.25s ease; }
.event:hover { transform: translateY(-5px); box-shadow: 0 24px 50px rgba(16,20,26,0.12); }
.event img { width: 100%; aspect-ratio: 3/2; object-fit: cover; }
.event-body { padding: 1.6rem; }
.event .place { display: inline-block; font-size: 0.78rem; font-weight: 600; letter-spacing: 0.02em; color: var(--brass-deep); background: var(--brass-soft); padding: 0.2rem 0.65rem; border-radius: 999px; margin-bottom: 0.7rem; }
.event h3 { font-size: 1.35rem; margin-bottom: 0.6rem; }
.event p { color: var(--slate); font-size: 0.97rem; margin-bottom: 0.8rem; }

/* Engagement rows with logos */
.engagements li { grid-template-columns: auto 1fr auto; align-items: center; gap: 0.35rem 1.25rem; padding: 1.25rem 0; }
.eng-logo .logo { width: 3.25rem; height: 3.25rem; }
.eng-body { min-width: 0; }
.engagements .s { display: block; }
@media (max-width: 760px) { .engagements li { grid-template-columns: auto 1fr; } .engagements .d { grid-column: 2; } }
.chips.light li { background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.16); color: rgba(255,255,255,0.88); }

/* Language switcher */
.bar-right { display: flex; align-items: center; gap: 0.6rem; flex: none; }
.langswitch { position: relative; }
.lang-trigger { display: inline-flex; align-items: center; gap: 0.35rem; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.16); border-radius: 999px; padding: 0.5rem 0.7rem; color: rgba(255,255,255,0.9); font-size: 0.78rem; font-weight: 600; letter-spacing: 0.05em; cursor: pointer; transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease; }
.lang-trigger:hover, .langswitch.open .lang-trigger { background: rgba(166,134,75,0.18); border-color: var(--brass); color: var(--white); }
.lang-trigger .globe { opacity: 0.75; }
.lang-trigger .chev { opacity: 0.7; transition: transform 0.25s ease; }
.langswitch.open .lang-trigger .chev { transform: rotate(180deg); }
.lang-menu { position: absolute; top: calc(100% + 0.6rem); inset-inline-end: 0; min-width: 11rem; background: rgba(16,20,26,0.97); backdrop-filter: blur(14px); border: 1px solid rgba(255,255,255,0.12); border-radius: 14px; padding: 0.5rem; box-shadow: 0 24px 50px rgba(0,0,0,0.45); z-index: 5; opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity 0.2s ease, transform 0.22s cubic-bezier(0.2,0.7,0.2,1), visibility 0.2s; }
.langswitch.open .lang-menu { opacity: 1; visibility: visible; transform: none; }
.lang-menu::before { content: ""; position: absolute; top: -5px; inset-inline-end: 1.1rem; width: 9px; height: 9px; background: inherit; border-left: 1px solid rgba(255,255,255,0.12); border-top: 1px solid rgba(255,255,255,0.12); transform: rotate(45deg); }
.lang-menu-h { display: block; font-size: 0.68rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(255,255,255,0.4); padding: 0.35rem 0.6rem 0.5rem; }
.lang-menu a { display: flex; align-items: center; justify-content: space-between; gap: 0.6rem; padding: 0.55rem 0.7rem; border-radius: 9px; color: rgba(255,255,255,0.82); text-decoration: none; font-size: 0.92rem; transition: background 0.18s ease, color 0.18s ease; }
.lang-menu a .name { flex: 1 1 auto; }
.lang-menu a .tick { opacity: 0; color: var(--brass); flex: none; }
.lang-menu a:hover { background: rgba(255,255,255,0.08); color: var(--white); }
.lang-menu a[aria-current="true"] { color: #d4b57a; }
.lang-menu a[aria-current="true"] .tick { opacity: 1; }
.site-header.light .bar:not(.pinned):not(.menuopen) .lang-trigger { background: transparent; border-color: var(--line); color: var(--slate); }
.menu-langs { display: flex; flex-direction: column; align-items: center; gap: 0.5rem; width: 100%; }
.menu-lang-trigger { display: inline-flex; align-items: center; gap: 0.5rem; background: none; border: 1px solid rgba(255,255,255,0.16); border-radius: 999px; padding: 0.5rem 0.9rem; color: rgba(255,255,255,0.72); font-size: 0.9rem; cursor: pointer; transition: border-color 0.2s ease, color 0.2s ease; }
.menu-lang-trigger:hover { border-color: rgba(255,255,255,0.4); color: var(--white); }
.menu-lang-trigger .globe { opacity: 0.6; }
.menu-lang-trigger .current { color: #d4b57a; font-weight: 500; }
.menu-lang-trigger .chev { opacity: 0.6; transition: transform 0.25s ease; }
.menu-langs.open .menu-lang-trigger .chev { transform: rotate(180deg); }
.menu-lang-list { width: min(17rem, 78vw); margin-top: 0.25rem; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.12); border-radius: 14px; padding: 0.4rem; display: grid; gap: 0.15rem; max-height: 0; opacity: 0; overflow: hidden; transform: translateY(-6px); transition: max-height 0.3s ease, opacity 0.22s ease, transform 0.25s ease, padding 0.25s ease; padding-block: 0; border-color: transparent; }
.menu-langs.open .menu-lang-list { max-height: 16rem; opacity: 1; transform: none; padding-block: 0.4rem; border-color: rgba(255,255,255,0.12); }
.menu-lang-list a { display: flex; align-items: center; justify-content: space-between; gap: 0.7rem; padding: 0.65rem 0.9rem; border-radius: 10px; color: rgba(255,255,255,0.82); text-decoration: none; font-size: 1rem; font-family: var(--sans); font-weight: 400; transform: none; opacity: 1; transition: background 0.18s ease, color 0.18s ease; }
.menu-lang-list a .name { flex: 1 1 auto; }
.menu-lang-list a .tick { opacity: 0; color: var(--brass); flex: none; }
.menu-lang-list a:hover { background: rgba(255,255,255,0.08); color: var(--white); }
.menu-lang-list a[aria-current="true"] { color: #d4b57a; }
.menu-lang-list a[aria-current="true"] .tick { opacity: 1; }
.foot-h { font-family: var(--sans); font-size: 0.8rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(255,255,255,0.5); margin-bottom: 1rem; }
.foot-langs { display: flex; gap: 1rem; flex-wrap: wrap; }
@media (max-width: 1040px) { .bar-right { display: none; } }

/* Role bullet lists in the career timeline */
.roles .bullets { list-style: none; margin: 0.5rem 0 0; padding: 0; }
.roles .bullets li { padding: 0.25rem 0 0.25rem 1.1rem; position: relative; border: 0; margin: 0; color: var(--slate); font-size: 0.95rem; }
.roles .bullets li::before { content: ""; position: absolute; inset-inline-start: 0; top: 0.75rem; width: 6px; height: 6px; border-radius: 50%; background: var(--brass); }

/* Right to left */
[dir="rtl"] { font-family: "Noto Kufi Arabic", "Inter", sans-serif; }
[dir="rtl"] h1, [dir="rtl"] h2, [dir="rtl"] h3, [dir="rtl"] .lede, [dir="rtl"] .cover-title { font-family: "Noto Kufi Arabic", var(--serif); letter-spacing: 0; }
[dir="rtl"] h1 em, [dir="rtl"] h2 em { font-style: normal; }
[dir="rtl"] .hero-media img { transform: scaleX(-1); }
[dir="rtl"] .hero::after { background: linear-gradient(270deg, rgba(16,20,26,0.55) 0%, rgba(16,20,26,0.15) 45%, rgba(16,20,26,0) 70%), linear-gradient(0deg, rgba(16,20,26,0.55) 0%, rgba(16,20,26,0) 40%); }
[dir="rtl"] .nav-link::after { transform-origin: right; }
[dir="rtl"] .link-more::after { transform-origin: right; }
[dir="rtl"] .impact-list li::before { right: auto; left: 1.5rem; }
[dir="rtl"] .impact-k { padding-right: 0; padding-left: 2.5rem; }
[dir="rtl"] .steps li::before { right: auto; left: 1.25rem; }
[dir="rtl"] .card li::before, [dir="rtl"] .roles .bullets li::before { left: auto; right: 0; }
[dir="rtl"] .card ul, [dir="rtl"] .card li { padding-left: 0; padding-right: 1.4rem; }
[dir="rtl"] .card li { padding-right: 1.4rem; }
[dir="rtl"] .roles li { border-left: 0; border-right: 1px solid var(--line); padding-left: 0; padding-right: 1rem; margin-left: 0; margin-right: 0.15rem; }
[dir="rtl"] .roles .dates { margin-left: 0; margin-right: 0.5rem; }
[dir="rtl"] .prose blockquote { border-left: 0; border-right: 3px solid var(--brass); padding-left: 0; padding-right: 1.25rem; }
[dir="rtl"] .prose ul, [dir="rtl"] .prose ol { padding-left: 0; padding-right: 1.4em; }
[dir="rtl"] .book::before { left: auto; right: 0; }
[dir="rtl"] .cover { transform: perspective(800px) rotateY(14deg); border-radius: 10px 4px 4px 10px; }
[dir="rtl"] .book3d:hover .cover { transform: perspective(800px) rotateY(4deg) translateY(-4px); }
[dir="rtl"] .pager .next { text-align: left; }
[dir="rtl"] .marquee-track { animation-direction: reverse; }
[dir="rtl"] .mini:hover { transform: translateX(-6px); }

/* Advisory note under the mandate cards */
.advisory-note { margin-top: 2rem; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.25rem; padding: 1.5rem 1.75rem; border: 1px solid rgba(166,134,75,0.35); border-radius: 16px; background: rgba(255,255,255,0.6); }
.advisory-note p { margin: 0; color: var(--slate); font-size: 0.95rem; max-width: 62ch; }

/* Video gallery */
.videos { display: grid; grid-template-columns: repeat(auto-fit, minmax(19rem, 1fr)); gap: 1.75rem; }
.video-card { margin: 0; }
.video-card figcaption { margin-top: 1rem; }
.video-card figcaption strong { display: block; font-family: var(--serif); font-size: 1.15rem; font-weight: 600; margin-bottom: 0.3rem; }
.video-card figcaption span { color: var(--slate); font-size: 0.92rem; }
