/* yuvalbartov.com
   Political blue (#2F80ED) on white, with deep navy for weight. Condensed headlines carry the voice;
   rounded panels, floating topic chips and a moving ticker keep the page alive.
   All spacing uses logical properties, so the same CSS serves Hebrew (RTL) and English (LTR). */

@font-face {
  font-family: "YB Sans";
  src: url(/assets/fonts/noto-sans-hebrew-hebrew.woff2) format("woff2");
  font-weight: 100 900;
  font-stretch: 62.5% 100%;
  font-display: swap;
  unicode-range: U+0307-0308, U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F;
}
@font-face {
  font-family: "YB Sans";
  src: url(/assets/fonts/noto-sans-hebrew-latin.woff2) format("woff2");
  font-weight: 100 900;
  font-stretch: 62.5% 100%;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --blue: #2f80ed;          /* the brand blue: panels, accents, large surfaces */
  --blue-strong: #1f6fdb;   /* buttons and links: same hue, readable with white text */
  --blue-deep: #1756b8;
  --blue-soft: #8ab8f6;
  --navy: #0b1f44;
  --navy-2: #142a52;
  --sky: #eef4fe;
  --sky-2: #dce8fc;
  --white: #ffffff;
  --text: #2a3650;
  --muted: #5a6680;
  --line: #dfe6f1;
  --line-strong: #c6d4ea;

  --r-xl: 32px;
  --r-lg: 24px;
  --r-md: 16px;
  --sh-1: 0 1px 2px rgba(11, 31, 68, .05), 0 6px 18px -10px rgba(11, 31, 68, .18);
  --sh-2: 0 2px 6px rgba(11, 31, 68, .06), 0 22px 44px -18px rgba(11, 31, 68, .32);

  --sans: "YB Sans", "Noto Sans Hebrew", "Segoe UI", Arial, sans-serif;
  --wrap: 1200px;
  --gutter: clamp(18px, 4vw, 40px);
  --header-h: 72px;
  color-scheme: light;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
}

body {
  margin: 0;
  background: var(--white);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17.5px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3, .feature-title, .media-title, .tile-title, .role-org, .tl-org { text-wrap: balance; }
p, .pub-title, .stat-label { text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }
::selection { background: var(--sky-2); color: var(--navy); }
:focus-visible { outline: 3px solid var(--blue-strong); outline-offset: 3px; border-radius: 6px; }

.wrap { max-width: calc(var(--wrap) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }

.ic { width: 1.25em; height: 1.25em; flex-shrink: 0; }
.lang-en .ic.arrow { transform: scaleX(-1); }
.lang-he .ic.arrow.is-back { transform: scaleX(-1); }
.lang-en .ic.arrow.is-back { transform: none; }

.skip {
  position: absolute; inset-inline-start: 12px; top: -80px; z-index: 100;
  background: var(--navy); color: var(--white); padding: 10px 18px; border-radius: 999px; font-weight: 600; text-decoration: none;
}
.skip:focus { top: 12px; }

/* ------------------------------------------------------------------ buttons, pills, tags */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 12px 22px; border: 1.5px solid transparent; border-radius: 999px;
  font-size: 16px; font-weight: 650; line-height: 1.2; text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background-color .18s, color .18s, border-color .18s, transform .18s, box-shadow .18s;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: none; }
.btn-primary { background: var(--blue-strong); color: var(--white); box-shadow: 0 8px 20px -10px rgba(31, 111, 219, .8); }
.btn-primary:hover { background: var(--blue-deep); }
.btn-ghost { background: var(--white); color: var(--navy); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--navy); }
.btn-white { background: var(--white); color: var(--navy); }
.btn-white:hover { background: var(--sky); }
.btn-white .ic { color: var(--blue-strong); }
.btn-lg { padding: 15px 28px; font-size: 17px; }
.btn-sm { padding: 8px 15px; font-size: 14.5px; gap: 8px; }

.pill { display: inline-flex; align-items: center; padding: 4px 11px; border-radius: 999px; background: var(--sky); color: var(--navy); font-size: 13px; font-weight: 600; white-space: nowrap; }
.tag { display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 999px; background: var(--sky); color: var(--navy); font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.tag-lang { background: var(--white); color: var(--muted); box-shadow: inset 0 0 0 1px var(--line); }

.arrow-link { display: inline-flex; align-items: center; gap: 8px; color: var(--blue-strong); font-weight: 650; text-decoration: none; }
.arrow-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.arrow-link .ic { transition: translate .18s; }
.lang-he .arrow-link:hover .ic { translate: -3px 0; }
.lang-en .arrow-link:hover .ic { translate: 3px 0; }

.logo-mark {
  display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 12px;
  background: var(--blue); color: var(--white);
  font-stretch: 72%; font-weight: 800; font-size: 19px; line-height: 1; letter-spacing: .01em;
}
.logo-mark.is-light { background: var(--white); color: var(--blue-strong); }

/* ------------------------------------------------------------------ header */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .9);
  backdrop-filter: saturate(1.6) blur(14px);
  -webkit-backdrop-filter: saturate(1.6) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, box-shadow .2s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 24px -18px rgba(11, 31, 68, .35); }
.header-in { display: flex; align-items: center; gap: 20px; height: var(--header-h); }

.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--navy); text-decoration: none; flex-shrink: 0; }
.brand-name { font-weight: 750; font-size: 18px; }

.site-nav { display: flex; align-items: center; gap: 12px; margin-inline-start: auto; }
.nav-links { display: flex; align-items: center; gap: 2px; }
.nav-links a {
  display: block; padding: 8px 13px; border-radius: 999px;
  color: var(--navy); font-size: 15.5px; font-weight: 550; text-decoration: none; white-space: nowrap;
  transition: background-color .15s, color .15s;
}
.nav-links a:hover { background: var(--sky); color: var(--blue-deep); }
.nav-links a[aria-current], .nav-links a.is-active { background: var(--sky); color: var(--blue-deep); }
.nav-actions { display: flex; align-items: center; gap: 10px; }

.lang-switch {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 7px 13px; border-radius: 999px; border: 1.5px solid var(--line);
  color: var(--navy); font-size: 14.5px; font-weight: 650; text-decoration: none;
  transition: border-color .15s, background-color .15s;
}
.lang-switch:hover { border-color: var(--blue-strong); background: var(--sky); }
.lang-switch .ic { width: 18px; height: 18px; color: var(--blue-strong); }
.lang-switch.is-light { border-color: rgba(255, 255, 255, .3); color: var(--white); }
.lang-switch.is-light .ic { color: var(--blue-soft); }
.lang-switch.is-light:hover { background: rgba(255, 255, 255, .08); }
.lang-quick { display: none; }

.menu-btn {
  display: none; align-items: center; gap: 10px;
  padding: 8px 14px; border: 1.5px solid var(--line-strong); border-radius: 999px; background: var(--white);
  font-weight: 650; font-size: 15px; cursor: pointer;
}
.menu-icon { display: grid; gap: 5px; width: 18px; }
.menu-icon span { display: block; height: 2px; border-radius: 2px; background: var(--navy); transition: transform .2s; }
.menu-btn .menu-close { display: none; }
.menu-btn[aria-expanded="true"] .menu-open { display: none; }
.menu-btn[aria-expanded="true"] .menu-close { display: inline; }
.menu-btn[aria-expanded="true"] .menu-icon span:first-child { transform: translateY(3.5px) rotate(45deg); }
.menu-btn[aria-expanded="true"] .menu-icon span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

@media (max-width: 1080px) {
  .menu-btn { display: inline-flex; }
  .lang-quick { display: inline-flex; margin-inline-start: auto; }
  .site-nav {
    display: none; position: fixed; inset: var(--header-h) 0 0 0; z-index: 49;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 12px var(--gutter) 40px; background: var(--white); overflow-y: auto;
  }
  .site-nav.is-open { display: flex; }
  .nav-links { display: block; }
  .nav-links li { border-bottom: 1px solid var(--line); }
  .nav-links a { padding: 16px 4px; border-radius: 0; font-size: clamp(28px, 7.5vw, 40px); font-stretch: 72%; font-weight: 800; background: none !important; }
  .nav-links a[aria-current], .nav-links a.is-active { color: var(--blue-strong); }
  .nav-actions { margin-top: 24px; flex-wrap: wrap; }
  .nav-actions .btn { padding: 14px 26px; font-size: 17px; }
  body.menu-open { overflow: hidden; }
}
@media (max-width: 420px) { .brand-name { font-size: 16.5px; } .menu-btn .menu-open, .menu-btn .menu-close { display: none !important; } }

/* ------------------------------------------------------------------ hero */

.hero { position: relative; padding-block: clamp(28px, 5vw, 72px) clamp(56px, 7vw, 104px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: center; }

.badge {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 15px 8px 15px; border-radius: 999px; background: var(--sky);
  color: var(--navy); font-size: 14.5px; font-weight: 600;
}
.pulse { position: relative; width: 9px; height: 9px; border-radius: 50%; background: var(--blue); flex-shrink: 0; }
.pulse::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--blue); }

.hero-name {
  margin-top: 22px;
  color: var(--navy);
  font-stretch: 66%; font-weight: 850;
  font-size: clamp(66px, 9.4vw, 140px);
  line-height: .9; letter-spacing: -.012em;
}
.hero-name span { display: block; }
.lang-en .hero-name { letter-spacing: -.02em; }

.hero-role { margin-top: 22px; color: var(--blue-strong); font-weight: 700; font-size: clamp(18px, 1.6vw, 21px); }
.hero-statement { margin-top: 10px; max-width: 30ch; color: var(--text); font-size: clamp(19px, 1.7vw, 22px); line-height: 1.55; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: clamp(26px, 3vw, 36px); }

.hero-visual { position: relative; justify-self: end; width: 100%; max-width: 540px; aspect-ratio: 1 / 1.04; }
.hero-panel {
  position: absolute; inset: 17% 5% 0 5%; overflow: hidden; border-radius: var(--r-xl);
  background-color: var(--blue);
  background-image: radial-gradient(rgba(255, 255, 255, .26) 1.3px, transparent 1.6px);
  background-size: 22px 22px;
}
.hero-ring {
  position: absolute; width: 78%; aspect-ratio: 1; inset-inline-start: 11%; top: 6%; border-radius: 50%;
  background: rgba(255, 255, 255, .12); box-shadow: 0 0 0 28px rgba(255, 255, 255, .06);
}
.hero-visual .portrait, .story-portrait .portrait, .about-photo .portrait { position: absolute; inset: 0 5%; display: block; }
.portrait-img { width: 100%; height: 100%; object-fit: contain; object-position: 50% 100%; }
.hero-visual .portrait-img, .about-photo .portrait-img { border-end-start-radius: var(--r-xl); border-end-end-radius: var(--r-xl); }
.story-portrait .portrait { inset-inline: 4%; }

.hero-visual.is-photo .hero-panel { inset: 6% 5% 0 5%; }
.hero-visual.is-photo .portrait { inset: 10% 9% 4% 9%; border-radius: var(--r-lg); overflow: hidden; }
.hero-visual.is-photo .portrait-img { border-radius: 0; }
.hero-visual.is-photo .portrait-img { object-fit: cover; object-position: 50% 25%; }

.chips { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.chip {
  position: absolute; pointer-events: auto; width: max-content;
  border-radius: 22px; background: var(--white); color: var(--navy);
  border: 1px solid rgba(11, 31, 68, .1);
  box-shadow: 0 1px 2px rgba(11, 31, 68, .1), 0 4px 10px -2px rgba(11, 31, 68, .14), 0 18px 36px -12px rgba(11, 31, 68, .42);
  transition: box-shadow .25s, scale .25s;
}
.chip-label {
  display: inline-flex; align-items: center; gap: 9px; margin: 0; padding: 10px 16px;
  border: 0; border-radius: 22px; background: none; color: inherit;
  font-size: 15px; font-weight: 650; line-height: 1.2; white-space: nowrap;
}
button.chip-label { cursor: pointer; }
.chip-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--blue); flex-shrink: 0; }
.chip-plus {
  display: grid; place-items: center; width: 20px; height: 20px; margin-inline-start: 1px; border-radius: 50%;
  background: var(--sky); color: var(--blue-strong); transition: rotate .25s, background-color .2s, color .2s;
}
.chip-plus .ic { width: 13px; height: 13px; stroke-width: 2.6; }
.chip.has-note:hover { box-shadow: 0 1px 2px rgba(11, 31, 68, .1), 0 6px 14px -2px rgba(11, 31, 68, .2), 0 24px 44px -14px rgba(11, 31, 68, .55); }
.chip.has-note:hover .chip-plus { background: var(--blue-strong); color: var(--white); }
.chip-note {
  display: none; position: absolute; top: calc(100% + 8px); inset-inline-start: 0;
  width: min(280px, calc(100vw - 2 * var(--gutter))); padding: 14px 16px 15px; border-radius: 18px;
  background: var(--white); border: 1px solid rgba(11, 31, 68, .1);
  box-shadow: 0 2px 4px rgba(11, 31, 68, .1), 0 26px 50px -16px rgba(11, 31, 68, .5);
}
.chip-2 .chip-note, .chip-4 .chip-note, .chip-5 .chip-note, .chip-6 .chip-note { inset-inline-start: auto; inset-inline-end: 0; }
.chip-5 .chip-note, .chip-6 .chip-note { top: auto; bottom: calc(100% + 8px); }
.chip.is-open { z-index: 3; animation-play-state: paused; }
.chip.is-open .chip-note { display: block; }
.chip.is-open .chip-plus { rotate: 45deg; background: var(--blue-strong); color: var(--white); }
.chip-note p { color: var(--text); font-size: 14.5px; font-weight: 500; line-height: 1.55; white-space: normal; }
.chip-more { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; color: var(--blue-strong); font-size: 14px; font-weight: 700; text-decoration: none; }
.chip-more:hover { text-decoration: underline; text-underline-offset: 3px; }
.chip-more .ic { width: 16px; height: 16px; }
@media (prefers-reduced-motion: no-preference) {
  .chip.is-open .chip-note { animation: note-in .32s cubic-bezier(.2, .8, .2, 1) both; }
}
@keyframes note-in { from { opacity: 0; translate: 0 -4px; } to { opacity: 1; translate: 0 0; } }
.chip-1 { top: 24%; inset-inline-start: -7%; }
.chip-2 { top: 44%; inset-inline-end: -5%; }
.chip-3 { top: 66%; inset-inline-start: -3%; }
.chip-4 { top: 9%; inset-inline-end: 4%; }
.chip-5 { bottom: 7%; inset-inline-end: -4%; }
.chip-6 { bottom: 20%; inset-inline-start: 20%; }

@media (prefers-reduced-motion: no-preference) {
  .pulse::after { animation: ping 2.2s cubic-bezier(0, 0, .2, 1) infinite; }
  .chip { animation: float 7s ease-in-out infinite; }
  .chip-2 { animation-delay: -2.4s; animation-duration: 8s; }
  .chip-3 { animation-delay: -4.1s; }
  .chip-4 { animation-delay: -1.2s; animation-duration: 9s; }
  .chip-5 { animation-delay: -3.3s; animation-duration: 7.5s; }
  .hero-visual .hero-panel { animation: panel-in .9s cubic-bezier(.2, .8, .2, 1) both; }
  .hero-visual .portrait { animation: rise .9s cubic-bezier(.2, .8, .2, 1) .12s both; }
  .hero-visual .chips { animation: fade .8s ease .5s both; }
}
@keyframes ping { 75%, 100% { transform: scale(2.6); opacity: 0; } }
@keyframes float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -9px; } }
@keyframes panel-in { from { transform: scale(.94) translateY(4%); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes rise { from { transform: translateY(6%); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

@media (max-width: 1080px) and (min-width: 721px) {
  .hero-name { font-size: clamp(64px, 10vw, 104px); }
  .chip-label { font-size: 13.5px; padding: 8px 13px; }
  .chip-6 { display: none; }
}
/* tablets: a smaller portrait, so fewer chips, kept around the face rather than on it */
@media (max-width: 900px) and (min-width: 721px) {
  .chip-label { font-size: 12.5px; padding: 7px 11px; gap: 7px; }
  .chip-plus { width: 17px; height: 17px; }
  .chip-4 { display: none; }
  .chip-1 { top: 3%; inset-inline-start: 2%; }
  .chip-2 { top: 60%; inset-inline-end: -4%; }
  .chip-3 { top: auto; bottom: 22%; inset-inline-start: -6%; }
  .chip-5 { bottom: 3%; inset-inline-end: 2%; }
}
@media (max-width: 720px) {
  .hero { padding-bottom: 48px; }
  .hero-grid { grid-template-columns: minmax(0, 1fr); row-gap: 20px; }
  .hero-visual { justify-self: center; max-width: 440px; margin-top: 8px; }
  .chip-label { font-size: 13.5px; padding: 8px 13px; }
  .chip-note p { font-size: 14px; }
  .chip-1 { inset-inline-start: -2%; }
  .chip-2 { inset-inline-end: -2%; }
  .chip-3 { inset-inline-start: 0; }
  .chip-5 { inset-inline-end: 0; }
  .chip-6 { display: none; }
}
@media (max-width: 520px) {
  .hero-name { font-size: clamp(64px, 21vw, 104px); }
  .hero-actions .btn { flex: 1 1 auto; }
  .chip-4 { display: none; }
}

/* ------------------------------------------------------------------ ticker */

.ticker { border-block: 1px solid var(--line); background: var(--white); }
.ticker-in { display: flex; align-items: center; gap: 28px; padding-block: 20px; }
.ticker-label { flex-shrink: 0; color: var(--muted); font-size: 14.5px; font-weight: 650; }
.ticker-viewport {
  position: relative; display: flex; flex: 1; min-width: 0; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.ticker-track { display: flex; flex-shrink: 0; align-items: center; }
.tick { display: inline-flex; align-items: center; color: var(--navy); font-size: 18px; font-weight: 700; white-space: nowrap; }
.tick::after { content: ""; flex-shrink: 0; width: 7px; height: 7px; margin-inline: 26px; border-radius: 50%; background: var(--blue); }
.tick a, .tick > span { display: inline-flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; }
.tick a:hover .tick-name { color: var(--blue-strong); }
.tick-logo { display: inline-flex; align-items: center; height: 34px; }
.tick-logo img { height: 100%; width: auto; max-width: 160px; object-fit: contain; filter: grayscale(1); opacity: .7; transition: filter .2s, opacity .2s; }
.tick a:hover .tick-logo img { filter: none; opacity: 1; }

@media (prefers-reduced-motion: no-preference) {
  .ticker-track { animation: tick-ltr 42s linear infinite; }
  [dir="rtl"] .ticker-track { animation-name: tick-rtl; }
  .ticker-viewport:hover .ticker-track { animation-play-state: paused; }
}
@keyframes tick-ltr { to { transform: translateX(-100%); } }
@keyframes tick-rtl { to { transform: translateX(100%); } }
@media (prefers-reduced-motion: reduce) {
  .ticker-viewport { flex-wrap: wrap; -webkit-mask-image: none; mask-image: none; }
  .ticker-track[aria-hidden="true"] { display: none; }
  .ticker-track { flex-wrap: wrap; row-gap: 12px; }
}
@media (max-width: 640px) {
  .ticker-in { flex-direction: column; align-items: stretch; gap: 10px; padding-block: 16px; }
  .tick { font-size: 16px; }
}

/* ------------------------------------------------------------------ sections */

.sec { padding-block: clamp(72px, 9vw, 120px); }
.sec.is-tinted { background: var(--sky); }
.sec:not(.is-tinted) + .sec:not(.is-tinted) { padding-top: 0; }
.sec-head { max-width: 760px; margin-bottom: clamp(32px, 4vw, 52px); }
.sec-title { color: var(--navy); font-stretch: 68%; font-weight: 800; font-size: clamp(40px, 4.8vw, 64px); line-height: 1; letter-spacing: -.005em; }
.sec-intro { margin-top: 14px; color: var(--muted); font-size: clamp(17.5px, 1.5vw, 19.5px); }
.sub-title { color: var(--navy); font-size: 20px; font-weight: 750; margin-bottom: 18px; }

.avatar {
  display: inline-grid; place-items: center; width: 50px; height: 50px; border-radius: 16px; flex-shrink: 0;
  background: var(--sky); color: var(--blue-strong);
}
.avatar .ic { width: 26px; height: 26px; }
.avatar.has-logo { width: auto; min-width: 50px; max-width: 136px; padding: 8px 12px; background: var(--white); box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; }
.avatar.has-logo .ic { display: none; }
.avatar.has-logo img { height: 100%; width: auto; max-width: 112px; object-fit: contain; }

/* now */

.roles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.role-card {
  position: relative; display: flex; flex-direction: column;
  padding: 24px 24px 26px; border-radius: var(--r-lg); background: var(--white);
  border: 1px solid var(--line); box-shadow: var(--sh-1);
  transition: transform .22s, box-shadow .22s, border-color .22s;
}
.role-card:hover { transform: translateY(-4px); box-shadow: var(--sh-2); border-color: var(--sky-2); }
.role-top { display: flex; align-items: center; gap: 12px; }
.role-org { margin-top: 18px; color: var(--navy); font-size: 20px; font-weight: 750; line-height: 1.25; }
.role-title { margin-top: 6px; color: var(--blue-strong); font-size: 15.5px; font-weight: 650; line-height: 1.4; }
.role-line { margin-top: 10px; color: var(--muted); font-size: 15.5px; line-height: 1.55; }
.role-line a { color: var(--blue-strong); font-weight: 650; text-underline-offset: 3px; white-space: nowrap; }
.role-link {
  position: absolute; top: 24px; inset-inline-end: 22px;
  display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%;
  color: var(--navy); background: var(--white); box-shadow: inset 0 0 0 1.5px var(--line);
  transition: background-color .15s, color .15s;
}
.role-link .ic { width: 18px; height: 18px; }
.role-link:hover { background: var(--blue-strong); color: var(--white); box-shadow: none; }

.past { margin-top: clamp(48px, 6vw, 72px); }
.past-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 40px; border-top: 1px solid var(--line); }
.past-item { display: grid; grid-template-columns: 104px minmax(0, 1fr); gap: 2px 16px; padding: 16px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.past-when { grid-row: span 2; color: var(--muted); font-size: 14.5px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.past-org { color: var(--navy); font-weight: 700; font-size: 16.5px; }
.past-org a { text-decoration: none; }
.past-org a:hover { color: var(--blue-strong); }
.past-role { color: var(--muted); font-size: 15.5px; }
.past .arrow-link { margin-top: 22px; }

@media (max-width: 1100px) { .roles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) {
  .roles { grid-template-columns: minmax(0, 1fr); }
  .past-list { grid-template-columns: minmax(0, 1fr); }
}

/* about */

.about-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 88px); align-items: center; }
.about-photo { position: relative; margin: 0; }
.about-photo::before {
  content: ""; position: absolute; inset: 0; border-radius: var(--r-xl);
  background-color: var(--blue);
  background-image: radial-gradient(rgba(255, 255, 255, .26) 1.3px, transparent 1.6px);
  background-size: 22px 22px;
  transform: translate(-18px, 18px);
}
.lang-en .about-photo::before { transform: translate(18px, 18px); }
.about-photo .zoomable { position: relative; z-index: 1; border-radius: var(--r-xl); }
.about-photo .zoomable img { width: 100%; aspect-ratio: 4 / 3.6; object-fit: cover; background: var(--sky-2); }
.about-photo.is-portrait { aspect-ratio: 4 / 4.4; }
.about-photo.is-portrait::before { display: none; }
.about-photo.is-portrait .hero-panel { inset: 14% 0 0 0; }
.about-p { color: var(--text); font-size: 18px; line-height: 1.7; max-width: 60ch; }
.about-p + .about-p { margin-top: 1em; }
.about-p:first-child { color: var(--navy); font-size: clamp(20px, 1.9vw, 24px); line-height: 1.55; font-weight: 500; }
.about-text .btn { margin-top: 30px; }

@media (max-width: 860px) {
  .about-grid { grid-template-columns: minmax(0, 1fr); }
  .about-photo { max-width: 520px; margin-inline: 18px 0; }
  .lang-en .about-photo { margin-inline: 0 18px; }
}

/* stats */

.stats {
  position: relative; overflow: hidden; color: var(--white);
  background-color: var(--navy);
  background-image: radial-gradient(rgba(138, 184, 246, .16) 1.2px, transparent 1.5px);
  background-size: 24px 24px;
  padding-block: clamp(56px, 7vw, 88px);
}
.stats-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; }
.stat { display: grid; gap: 12px; align-content: start; }
.stat::before { content: ""; width: 40px; height: 4px; border-radius: 4px; background: var(--blue); }
.stat-num { color: var(--white); font-stretch: 66%; font-weight: 800; font-size: clamp(56px, 6vw, 84px); line-height: 1; font-variant-numeric: tabular-nums lining-nums; }
.stat-label { color: #c3d0e6; font-size: 15.5px; line-height: 1.5; max-width: 26ch; }
@media (max-width: 900px) { .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 40px; } }

/* expertise */

.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.tile {
  display: flex; flex-direction: column; padding: 26px 24px 28px; border-radius: var(--r-lg);
  background: var(--white); box-shadow: var(--sh-1);
  transition: transform .22s, box-shadow .22s;
}
.tile:hover { transform: translateY(-4px); box-shadow: var(--sh-2); }
.tile-icon { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 16px; background: var(--blue); color: var(--white); }
.tile-icon .ic { width: 28px; height: 28px; }
.tile-title { margin-top: 20px; color: var(--navy); font-size: 19px; font-weight: 750; line-height: 1.3; }
.tile-text { margin-top: 8px; color: var(--muted); font-size: 15.5px; line-height: 1.55; }
.tile-cta { background: var(--blue-strong); color: var(--white); }
.tile-cta .tile-icon { background: rgba(255, 255, 255, .16); }
.tile-cta-title { margin-top: 20px; color: var(--white); font-size: 21px; font-weight: 750; line-height: 1.3; }
.tile-cta .btn { margin-top: auto; align-self: flex-start; }
.tile-cta .tile-cta-title { margin-bottom: 22px; }

@media (max-width: 1100px) { .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .tiles { grid-template-columns: minmax(0, 1fr); } }

/* publications */

.feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.feature-link {
  display: flex; flex-direction: column; height: 100%; overflow: hidden; border-radius: var(--r-lg);
  background: var(--white); border: 1px solid var(--line); color: inherit; text-decoration: none; box-shadow: var(--sh-1);
  transition: transform .22s, box-shadow .22s, border-color .22s;
}
a.feature-link:hover { transform: translateY(-4px); box-shadow: var(--sh-2); border-color: var(--sky-2); }
.feature-body { display: flex; flex-direction: column; gap: 8px; padding: 18px 22px 22px; }
.feature-kicker { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; color: var(--muted); font-size: 14px; font-variant-numeric: tabular-nums; }
.feature-title { color: var(--navy); font-size: 18px; font-weight: 750; line-height: 1.35; }
.feature-meta { color: var(--muted); font-size: 14.5px; }

/* the visual of a publication: a cover on a soft stage, a logo, or a photo */
.stage {
  position: relative; display: grid; place-items: center; overflow: hidden;
  background-color: var(--sky);
  background-image: radial-gradient(rgba(47, 128, 237, .16) 1.2px, transparent 1.5px);
  background-size: 18px 18px;
}
.feature-stage { height: 200px; }
.stage.is-logo, .stage.is-photo { background: var(--white); background-image: none; box-shadow: inset 0 -1px 0 var(--line); }
.stage-img { display: block; }
.stage.is-cover .stage-img, .doc {
  height: 80%; width: auto; max-width: 72%;
  border-radius: 2px 4px 4px 2px;
  box-shadow: 0 1px 2px rgba(11, 31, 68, .18), 0 18px 30px -14px rgba(11, 31, 68, .6);
  transition: transform .4s cubic-bezier(.2, .8, .2, 1);
}
.stage.is-cover .stage-img { object-fit: contain; background: var(--white); }
a.feature-link:hover .stage.is-cover .stage-img, a.feature-link:hover .doc { transform: translateY(-5px); }
.stage.is-logo .stage-img { max-width: 64%; max-height: 46%; object-fit: contain; }
.stage.is-photo .stage-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.stage.has-img .doc { display: none; }

/* a designed cover, used when there is no image */
.doc {
  position: relative; display: flex; flex-direction: column; aspect-ratio: 7 / 10; max-width: none; padding: 0; overflow: hidden;
  background: var(--white); text-align: start; color: var(--navy);
}
.doc-pub {
  display: flex; align-items: flex-end; min-height: 34%; padding: 10px 12px 9px; color: var(--white);
  font-size: 10px; font-weight: 700; line-height: 1.3;
  background-color: var(--blue); background-image: radial-gradient(rgba(255, 255, 255, .24) 1px, transparent 1.3px); background-size: 9px 9px;
}
.doc-1 .doc-pub { background-color: var(--navy); }
.doc-2 .doc-pub { background-color: var(--blue-strong); }
.doc-title {
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 5; overflow: hidden;
  margin: 10px 12px 0; font-size: 11.5px; font-weight: 800; line-height: 1.3;
}
.doc-foot { display: flex; align-items: baseline; justify-content: space-between; gap: 6px; margin-top: auto; padding: 0 12px 10px; }
.doc-type { color: var(--muted); font-size: 8.5px; font-weight: 600; }
.doc-year { color: var(--blue-strong); font-stretch: 70%; font-weight: 800; font-size: 20px; line-height: 1; }

@media (max-width: 900px) {
  .feature-grid { grid-template-columns: minmax(0, 1fr); max-width: 640px; gap: 14px; }
  .feature-link { flex-direction: row; }
  .feature-stage { flex: 0 0 132px; height: auto; min-height: 170px; }
  .stage.is-cover .stage-img, .feature-stage .doc { height: auto; width: 74%; max-width: none; }
  .feature-stage.is-logo .stage-img { max-width: 80%; }
  .feature-stage .doc-title { -webkit-line-clamp: 4; font-size: 9.5px; margin: 7px 8px 0; }
  .feature-stage .doc-pub { font-size: 8px; padding: 7px 8px; }
  .feature-stage .doc-foot { padding: 0 8px 7px; }
  .feature-stage .doc-type { display: none; }
  .feature-stage .doc-year { font-size: 16px; }
  .feature-body { padding: 16px 18px 18px; justify-content: center; }
  .feature-title { font-size: 17px; }
}
@media (max-width: 420px) { .feature-stage { flex-basis: 108px; } }

.all-pubs { margin-top: clamp(48px, 6vw, 72px); }
.pub-tools { display: grid; gap: 12px; margin-bottom: 20px; }
.pub-tools[hidden] { display: none; }
.search { position: relative; display: block; max-width: 440px; }
.search .ic { position: absolute; top: 50%; inset-inline-start: 16px; translate: 0 -50%; color: var(--muted); width: 20px; height: 20px; }
.search input {
  width: 100%; padding: 13px 18px; padding-inline-start: 46px; border-radius: 999px;
  border: 1.5px solid var(--line); background: var(--sky); color: var(--navy); font: inherit; font-size: 16px;
  transition: border-color .15s, background-color .15s;
}
.search input:focus { outline: none; border-color: var(--blue-strong); background: var(--white); box-shadow: 0 0 0 4px rgba(47, 128, 237, .15); }
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px;
  border: 1.5px solid var(--line); background: var(--white); color: var(--navy);
  font-size: 14.5px; font-weight: 600; cursor: pointer; transition: background-color .15s, border-color .15s, color .15s;
}
.chip-btn:hover { border-color: var(--blue-strong); }
.chip-btn.is-on { background: var(--blue-strong); border-color: var(--blue-strong); color: var(--white); }
.chip-n { font-size: 12.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.chip-btn.is-on .chip-n { color: var(--white); }

.pub-list { border-top: 1px solid var(--line); }
.pub { border-bottom: 1px solid var(--line); }
.pub.is-hidden { display: none; }
.pub-row {
  position: relative; display: grid; grid-template-columns: 112px minmax(0, 1fr) auto 40px; gap: 6px 20px; align-items: center;
  padding: 18px 14px; margin-inline: -14px; border-radius: var(--r-md);
  transition: background-color .15s;
}
.pub-row.has-link:hover { background: var(--sky); }
.pub-row:focus-within { background: var(--sky); }
.pub-date { color: var(--muted); font-size: 14.5px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.pub-main { display: grid; gap: 4px; min-width: 0; }
.pub-title { color: var(--navy); font-size: 17.5px; font-weight: 650; line-height: 1.4; text-decoration: none; }
a.pub-title::after { content: ""; position: absolute; inset: 0; border-radius: var(--r-md); }
a.pub-title:focus-visible { outline: none; }
.pub-row:has(a.pub-title:focus-visible) { box-shadow: 0 0 0 3px var(--blue-strong); }
.pub-meta { color: var(--muted); font-size: 14.5px; }
.pub-extra { position: relative; z-index: 1; margin-inline-start: 12px; color: var(--blue-strong); font-weight: 650; text-underline-offset: 3px; white-space: nowrap; }
.pub-tags { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
.pub-go { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; color: var(--blue-strong); transition: background-color .15s, color .15s; }
.pub-go .ic { width: 20px; height: 20px; }
.pub-row.has-link:hover .pub-go { background: var(--blue-strong); color: var(--white); }
.pub-empty { padding: 24px 0; color: var(--muted); }
.more { margin-top: 24px; }
.more[hidden] { display: none; }

@media (max-width: 900px) { .feature-grid { grid-template-columns: minmax(0, 1fr); max-width: 560px; } }
@media (max-width: 680px) {
  .pub-row { grid-template-columns: minmax(0, 1fr) auto; gap: 8px 12px; }
  .pub-date { grid-row: 1; }
  .pub-tags { grid-row: 1; grid-column: 2; }
  .pub-main { grid-column: 1 / -1; }
  .pub-go { display: none; }
  .chip-row { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); }
  .chip-row::-webkit-scrollbar { display: none; }
  .chip-btn { flex-shrink: 0; }
}

/* media */

.media-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 22px; }
.media-card { max-width: 620px; }
.media-link {
  display: flex; flex-direction: column; height: 100%; overflow: hidden; border-radius: var(--r-lg);
  background: var(--white); border: 1px solid var(--line); color: inherit; text-decoration: none; box-shadow: var(--sh-1);
  transition: transform .22s, box-shadow .22s;
}
a.media-link:hover { transform: translateY(-4px); box-shadow: var(--sh-2); }
.media-img { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--sky-2); }
.media-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
a.media-link:hover .media-img img { transform: scale(1.04); }
.media-img.is-quote {
  display: grid; place-items: center; color: var(--white);
  background-color: var(--blue); background-image: radial-gradient(rgba(255, 255, 255, .24) 1.3px, transparent 1.6px); background-size: 20px 20px;
}
.media-img.is-quote .ic { width: 72px; height: 72px; }
.media-body { display: flex; flex-direction: column; gap: 8px; flex: 1; padding: 22px 24px 24px; }
.media-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 14px; font-size: 14.5px; }
.media-outlet { display: inline-flex; align-items: center; gap: 8px; color: var(--blue-strong); font-weight: 700; }
.outlet-logo { height: 18px; width: auto; max-width: 90px; object-fit: contain; }
.media-date { color: var(--muted); font-variant-numeric: tabular-nums; }
.media-title { color: var(--navy); font-size: 20px; font-weight: 750; line-height: 1.35; }
.media-note { color: var(--muted); font-size: 15.5px; }
.media-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: auto; padding-top: 10px; }
.media-go { display: inline-flex; align-items: center; gap: 6px; margin-inline-start: auto; color: var(--blue-strong); font-weight: 650; font-size: 15px; }
.media-go .ic { width: 18px; height: 18px; }

/* teaching */

.teach-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.teach-grid.no-photo { grid-template-columns: minmax(0, 1fr); max-width: 760px; }
.teach-photo { position: relative; margin: 0; }
.teach-photo .zoomable { border-radius: var(--r-xl); box-shadow: var(--sh-2); }
.teach-photo .zoomable img { width: 100%; aspect-ratio: 4 / 3.3; object-fit: cover; background: var(--sky-2); }
.teach-list { display: grid; gap: 4px; }
.teach-item { display: flex; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line-strong); }
.teach-item:last-child { border-bottom: 0; }
.teach-item .avatar { background: var(--white); }
.teach-inst { color: var(--navy); font-size: 19px; font-weight: 750; line-height: 1.3; }
.teach-inst a { text-decoration: none; }
.teach-inst a:hover { color: var(--blue-strong); }
.teach-unit { margin-top: 2px; color: var(--text); font-size: 15.5px; font-weight: 550; }
.teach-role { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 4px; color: var(--muted); font-size: 15px; }
.dot-sep { width: 4px; height: 4px; border-radius: 50%; background: var(--line-strong); }
.teach-courses { margin-top: 8px; display: inline-block; padding: 6px 12px; border-radius: 12px; background: var(--white); color: var(--navy); font-size: 14.5px; font-weight: 550; }
.teach-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; margin-top: 22px; padding: 20px 22px; border-radius: var(--r-lg); background: var(--white); }
.teach-cta p { color: var(--navy); font-weight: 600; flex: 1 1 200px; }
.talks { margin-top: clamp(48px, 6vw, 72px); }
.talk-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 18px; }
.talk-link { display: flex; flex-direction: column; height: 100%; overflow: hidden; border-radius: var(--r-lg); background: var(--white); color: inherit; text-decoration: none; box-shadow: var(--sh-1); transition: transform .22s, box-shadow .22s; }
a.talk-link:hover { transform: translateY(-4px); box-shadow: var(--sh-2); }
.talk-img { aspect-ratio: 16 / 9; overflow: hidden; }
.talk-img img { width: 100%; height: 100%; object-fit: cover; }
.talk-body { display: grid; gap: 6px; padding: 18px 20px 22px; }
.talk-date { display: inline-flex; align-items: center; gap: 8px; color: var(--blue-strong); font-size: 14px; font-weight: 650; }
.talk-date .ic { width: 18px; height: 18px; }
.talk-title { color: var(--navy); font-size: 18px; font-weight: 750; line-height: 1.35; }
.talk-meta { color: var(--muted); font-size: 14.5px; }
@media (max-width: 860px) { .teach-grid { grid-template-columns: minmax(0, 1fr); } }

/* contact */

.contact {
  position: relative; overflow: hidden; color: var(--white);
  background-color: var(--blue-strong);
  background-image: radial-gradient(rgba(255, 255, 255, .2) 1.3px, transparent 1.6px);
  background-size: 22px 22px;
  padding-block: clamp(72px, 9vw, 120px);
}
.contact::before, .contact::after { content: ""; position: absolute; border-radius: 50%; pointer-events: none; }
.contact::before { width: 520px; aspect-ratio: 1; inset-inline-end: -140px; top: -220px; background: rgba(255, 255, 255, .1); }
.contact::after { width: 300px; aspect-ratio: 1; inset-inline-start: -120px; bottom: -160px; background: rgba(11, 31, 68, .16); }
.contact-grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px clamp(32px, 6vw, 88px); align-items: center; }
.contact-title { color: var(--white); font-stretch: 66%; font-weight: 850; font-size: clamp(52px, 7vw, 96px); line-height: .92; }
.contact-invite { margin-top: 18px; max-width: 34ch; color: var(--white); font-size: clamp(19px, 1.8vw, 22px); line-height: 1.55; }
.contact-actions { display: grid; gap: 22px; }
.contact-email {
  display: inline-flex; align-items: center; gap: 16px; justify-self: start; max-width: 100%;
  color: var(--white); font-stretch: 70%; font-weight: 800; font-size: clamp(26px, 3.1vw, 42px); line-height: 1.15; text-decoration: none;
}
.contact-email span { border-bottom: 3px solid rgba(255, 255, 255, .45); white-space: nowrap; transition: border-color .15s; }
@media (max-width: 420px) { .contact-email span { white-space: normal; overflow-wrap: anywhere; } }
.contact-email:hover span { border-color: var(--white); }
.contact-email .ic { width: 58px; height: 58px; padding: 14px; border-radius: 50%; background: var(--white); color: var(--blue-strong); flex-shrink: 0; }
.contact-links { display: flex; flex-wrap: wrap; gap: 10px; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: minmax(0, 1fr); } .contact-email .ic { width: 46px; height: 46px; padding: 11px; } }

/* ------------------------------------------------------------------ footer */

.site-footer { background: var(--navy); color: #c3d0e6; padding-block: 44px 40px; font-size: 15px; }
.foot-grid { display: grid; grid-template-columns: auto 1fr auto; gap: 28px 48px; align-items: center; }
.foot-brand { display: flex; align-items: center; gap: 14px; }
.foot-name { color: var(--white); font-weight: 750; font-size: 17px; }
.foot-tag { color: #9fb0cf; font-size: 14.5px; }
.foot-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; }
.foot-links a { display: inline-flex; align-items: center; gap: 8px; color: var(--white); text-decoration: none; font-weight: 550; }
.foot-links a:hover { color: var(--blue-soft); }
.foot-links .ic { width: 18px; height: 18px; color: var(--blue-soft); }
.foot-meta { display: grid; justify-items: end; gap: 6px; font-size: 13.5px; }
.foot-meta .lang-switch { margin-bottom: 4px; }
.foot-note {
  display: flex; align-items: flex-start; gap: 10px; margin-top: 30px; padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, .12); color: #9fb0cf; font-size: 14px; line-height: 1.55;
}
.foot-note .ic { flex-shrink: 0; width: 18px; height: 18px; margin-top: 2px; color: var(--blue-soft); }
.foot-note a { color: var(--white); }
@media (max-width: 860px) {
  .foot-grid { grid-template-columns: minmax(0, 1fr); }
  .foot-links { justify-content: flex-start; }
  .foot-meta { justify-items: start; }
}

/* ------------------------------------------------------------------ story page */

.story-hero { background: var(--sky); padding-top: clamp(28px, 4vw, 56px); overflow: hidden; }
.story-hero-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 32px; align-items: end; }
.story-hero-text { padding-bottom: clamp(40px, 6vw, 80px); }
.crumb { display: inline-flex; align-items: center; gap: 8px; color: var(--blue-deep); font-weight: 650; font-size: 15px; text-decoration: none; }
.crumb:hover { text-decoration: underline; text-underline-offset: 4px; }
.crumb .ic { width: 18px; height: 18px; }
.story-title { margin-top: 18px; color: var(--navy); font-stretch: 66%; font-weight: 850; font-size: clamp(60px, 8.4vw, 124px); line-height: .9; }
.story-lede { margin-top: 20px; max-width: 36ch; color: var(--text); font-size: clamp(19px, 1.8vw, 23px); line-height: 1.5; }
.story-portrait { position: relative; justify-self: end; width: 100%; max-width: 400px; aspect-ratio: 1 / 1; }
.story-portrait .hero-panel { inset: 20% 4% 0 4%; border-end-start-radius: 0; border-end-end-radius: 0; }
.story-portrait .portrait-img { border-radius: 0; }

.story-wrap { padding-bottom: clamp(72px, 9vw, 120px); }
.story-image { margin: clamp(48px, 6vw, 72px) 0 0; max-width: 980px; }
.story-image .zoomable { border-radius: var(--r-xl); box-shadow: var(--sh-2); }
.story-image .zoomable img { width: 100%; height: auto; background: var(--sky-2); }
.story-image figcaption { display: flex; align-items: baseline; gap: 12px; margin-top: 16px; color: var(--muted); font-size: 15.5px; line-height: 1.5; }
.story-image figcaption::before { content: ""; flex-shrink: 0; width: 24px; height: 2px; border-radius: 2px; background: var(--blue); translate: 0 -5px; }
.story-intro, .story-block .prose { max-width: 70ch; }
.story-intro { margin-top: clamp(40px, 5vw, 64px); }
.prose p { color: var(--text); font-size: 18.5px; line-height: 1.8; }
.prose p + p { margin-top: 1.05em; }
.story-intro p:first-child { color: var(--navy); font-size: clamp(20px, 2vw, 24px); line-height: 1.6; font-weight: 500; }
.prose a { color: var(--blue-strong); text-underline-offset: 3px; }

.story-block { margin-top: clamp(64px, 8vw, 96px); }
.story-h { color: var(--navy); font-stretch: 68%; font-weight: 800; font-size: clamp(34px, 3.8vw, 48px); line-height: 1; margin-bottom: 28px; }

.timeline { position: relative; display: grid; gap: 14px; padding-inline-start: 40px; max-width: 860px; }
.timeline::before { content: ""; position: absolute; top: 12px; bottom: 12px; inset-inline-start: 11px; width: 2px; border-radius: 2px; background: var(--sky-2); }
.tl { position: relative; }
.tl-dot { position: absolute; top: 24px; inset-inline-start: -40px; width: 24px; height: 24px; border-radius: 50%; background: var(--white); box-shadow: inset 0 0 0 4px var(--blue); }
.tl.is-current .tl-dot { background: var(--blue); box-shadow: 0 0 0 5px var(--sky-2); }
.tl-card { padding: 18px 22px 20px; border-radius: 20px; background: var(--white); border: 1px solid var(--line); }
.tl-when { display: inline-flex; padding: 3px 11px; border-radius: 999px; background: var(--sky); color: var(--navy); font-size: 13.5px; font-weight: 650; font-variant-numeric: tabular-nums; }
.tl-org { margin-top: 10px; color: var(--navy); font-size: 18.5px; font-weight: 750; line-height: 1.35; }
.tl-org a { text-decoration: none; }
.tl-role { margin-top: 2px; color: var(--blue-strong); font-size: 15.5px; font-weight: 650; }
.tl-note { margin-top: 8px; color: var(--muted); font-size: 15.5px; line-height: 1.6; }

.edu-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.edu-card { padding: 22px 22px 24px; border-radius: var(--r-lg); background: var(--sky); }
.edu-top { display: flex; align-items: center; justify-content: space-between; }
.edu-icon { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: var(--blue); color: var(--white); }
.edu-year { color: var(--navy); font-stretch: 66%; font-weight: 800; font-size: 34px; line-height: 1; }
.edu-degree { margin-top: 18px; color: var(--navy); font-size: 17.5px; font-weight: 750; line-height: 1.35; }
.edu-inst { margin-top: 4px; color: var(--blue-deep); font-weight: 600; font-size: 15px; }
.edu-note { margin-top: 6px; color: var(--muted); font-size: 14.5px; }

.thesis {
  position: relative; margin: 0; max-width: 860px; padding: clamp(28px, 4vw, 44px); border-radius: var(--r-xl);
  color: var(--white); background-color: var(--navy);
  background-image: radial-gradient(rgba(138, 184, 246, .16) 1.2px, transparent 1.5px); background-size: 22px 22px;
}
.thesis .thesis-q { width: 48px; height: 48px; color: var(--blue); }
.thesis blockquote { margin: 14px 0 0; }
.thesis blockquote p { color: var(--white); font-size: clamp(21px, 2.4vw, 28px); font-weight: 650; line-height: 1.4; }
.thesis figcaption { margin-top: 16px; color: #c3d0e6; font-size: 15px; }

.story-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px clamp(32px, 5vw, 72px); }
.lang-list li { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 16.5px; }
.lang-list strong { color: var(--navy); }
.lang-list span { color: var(--muted); }
.tool-list { display: flex; flex-wrap: wrap; gap: 8px; }
.tool-list li { padding: 8px 15px; border-radius: 999px; background: var(--sky); color: var(--navy); font-weight: 600; font-size: 15px; }

@media (max-width: 860px) {
  .story-hero-grid { grid-template-columns: minmax(0, 1fr) minmax(0, .75fr); }
  .story-hero-text { grid-column: 1 / -1; padding-bottom: 8px; }
  .story-portrait { grid-column: 2; max-width: 260px; }
  .edu-grid { grid-template-columns: minmax(0, 1fr); }
  .story-facts { grid-template-columns: minmax(0, 1fr); }
}

/* ------------------------------------------------------------------ 404, preview */

.notfound { padding-block: clamp(64px, 12vw, 160px); background: var(--sky); }
.nf-code { display: inline-block; padding: 6px 16px; border-radius: 999px; background: var(--blue-strong); color: var(--white); font-weight: 800; font-size: 18px; }
.nf-title { margin-top: 20px; color: var(--navy); font-stretch: 66%; font-weight: 850; font-size: clamp(48px, 7.5vw, 104px); line-height: .95; }
.nf-text { margin-top: 20px; max-width: 44ch; font-size: 20px; }
.nf-text a { color: var(--blue-deep); font-weight: 650; text-underline-offset: 4px; }

.preview-bar { position: fixed; inset-inline: 0; bottom: 0; z-index: 90; background: var(--navy); color: var(--white); text-align: center; padding: 10px 16px; font-size: 14.5px; font-weight: 600; }

/* ------------------------------------------------------------------ motion & print */

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

@media print {
  .site-header, .skip, .pub-tools, .more, .hero-actions, .preview-bar, .ticker, .chips, .menu-btn { display: none !important; }
  .pub.is-hidden { display: block !important; }
  .rv { opacity: 1 !important; transform: none !important; }
  .progress, .zoom-ic, .chip-plus { display: none !important; }
  .contact, .stats, .site-footer { background: none !important; color: #000 !important; }
  .contact *, .stats * { color: #000 !important; }
  .sec { padding-block: 24px; }
  body { font-size: 11pt; }
}

/* ------------------------------------------------------------------ interaction layer */

/* reading progress, under the header */
.progress { position: absolute; inset-inline: 0; bottom: -1px; height: 3px; pointer-events: none; }
.progress span { display: block; height: 100%; background: var(--blue); transform: scaleX(var(--p, 0)); transform-origin: 0 50%; }
[dir="rtl"] .progress span { transform-origin: 100% 50%; }

/* images that open larger */
.zoomable {
  position: relative; display: block; width: 100%; margin: 0; padding: 0; border: 0;
  background: none; overflow: hidden; cursor: zoom-in; -webkit-tap-highlight-color: transparent;
}
.zoomable img { width: 100%; transition: transform .7s cubic-bezier(.2, .8, .2, 1); }
.zoomable:hover img { transform: scale(1.035); }
.zoomable:focus-visible { outline: 3px solid var(--blue-strong); outline-offset: 4px; }
.zoom-ic {
  position: absolute; top: 14px; inset-inline-end: 14px; z-index: 1;
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  background: rgba(255, 255, 255, .94); color: var(--navy); box-shadow: 0 4px 14px -4px rgba(11, 31, 68, .4);
  opacity: 0; scale: .85; transition: opacity .2s, scale .2s;
}
.zoom-ic .ic { width: 19px; height: 19px; }
.zoomable:hover .zoom-ic, .zoomable:focus-visible .zoom-ic { opacity: 1; scale: 1; }
@media (hover: none) { .zoom-ic { opacity: 1; scale: 1; width: 34px; height: 34px; top: 10px; inset-inline-end: 10px; } .zoom-ic .ic { width: 16px; height: 16px; } }

/* in the field: a bento grid of photos */
.gallery { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: clamp(150px, 17vw, 238px); gap: clamp(10px, 1.4vw, 18px); }
.g-item { position: relative; min-width: 0; overflow: hidden; border-radius: var(--r-lg); background: var(--sky-2); box-shadow: var(--sh-1); }
.g-item .zoomable { height: 100%; }
.g-item .zoomable img { height: 100%; object-fit: cover; }
.g-1 { grid-column: span 2; grid-row: span 2; }
.g-n3 .g-2, .g-n3 .g-3, .g-n4 .g-2 { grid-column: span 2; }
.g-n6 .g-6, .g-n7 .g-7 { grid-column: span 2; }
.g-cap {
  position: absolute; inset-inline: 0; bottom: 0; padding: 44px 18px 14px; pointer-events: none;
  background: linear-gradient(to top, rgba(8, 20, 46, .82), rgba(8, 20, 46, 0));
  color: var(--white); font-size: 15px; font-weight: 650; line-height: 1.35; text-wrap: balance;
}
.g-1 .g-cap { padding: 72px 26px 22px; font-size: clamp(17px, 1.6vw, 21px); }
@media (max-width: 720px) {
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: clamp(130px, 40vw, 240px); }
  .g-1 { grid-row: span 1; }
  .g-n3 .g-3, .g-n5 .g-5, .g-n7 .g-7 { grid-column: span 2; }
  .g-n6 .g-6 { grid-column: auto; }
  .g-cap { padding: 36px 14px 12px; font-size: 14px; }
  .g-1 .g-cap { padding: 44px 18px 14px; font-size: 16px; }
}

/* dialogs: a quick view for publications and media, and the photo viewer */
.dlg {
  width: 100%; max-width: min(620px, calc(100vw - 32px)); max-height: calc(100dvh - 32px);
  margin: auto; padding: 0; border: 0; border-radius: var(--r-xl); overflow: hidden;
  background: var(--white); color: var(--text); box-shadow: 0 40px 90px -24px rgba(6, 16, 36, .6);
}
.dlg::backdrop { background: rgba(8, 20, 46, .58); -webkit-backdrop-filter: blur(5px); backdrop-filter: blur(5px); }
.dlg-scroll { max-height: calc(100dvh - 32px); overflow-y: auto; overscroll-behavior: contain; }
.dlg-close {
  position: absolute; top: 14px; inset-inline-end: 14px; z-index: 2;
  display: grid; place-items: center; width: 42px; height: 42px; border: 0; border-radius: 50%;
  background: rgba(255, 255, 255, .95); color: var(--navy); box-shadow: 0 4px 14px -4px rgba(11, 31, 68, .4); cursor: pointer;
  transition: background-color .15s, color .15s;
}
.dlg-close:hover { background: var(--navy); color: var(--white); }
.dlg-close .ic { width: 20px; height: 20px; }
.dt-band {
  position: relative; display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between; gap: 16px;
  min-height: 150px; padding: 22px 26px 20px; overflow: hidden; color: var(--white);
  background-color: var(--blue);
  background-image: radial-gradient(rgba(255, 255, 255, .24) 1.3px, transparent 1.6px);
  background-size: 20px 20px;
}
.dt-band.cover-1 { background-color: var(--navy); background-image: radial-gradient(rgba(138, 184, 246, .22) 1.3px, transparent 1.6px); }
.dt-band.cover-2 { background-color: var(--blue-strong); }
.cover-type { position: relative; z-index: 1; padding: 5px 12px; border-radius: 999px; background: rgba(255, 255, 255, .18); font-size: 13px; font-weight: 650; }
.cover-year { position: relative; z-index: 1; font-stretch: 66%; font-weight: 800; font-size: 64px; line-height: .85; }
.dt-band::after { content: ""; position: absolute; width: 60%; aspect-ratio: 1; inset-inline-end: -16%; top: -60%; border-radius: 50%; background: rgba(255, 255, 255, .12); }
.dt-band .cover-year { font-size: 72px; }
.dt-stage { height: 250px; }
.dt-stage .doc-title { font-size: 13px; }
.dt-stage .doc-pub { font-size: 11px; }
.dt-stage .doc-year { font-size: 24px; }
.dt-media { background: var(--sky-2); }
.dt-media img { width: 100%; aspect-ratio: 16 / 8; object-fit: cover; }
.dt-body { padding: 24px 28px 28px; }
.dt-kicker { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; color: var(--muted); font-size: 14.5px; font-variant-numeric: tabular-nums; }
.dt-title { margin-top: 12px; color: var(--navy); font-size: clamp(22px, 2.5vw, 27px); font-weight: 800; line-height: 1.25; }
.dt-orig { display: grid; gap: 2px; margin-top: 12px; color: var(--text); font-size: 15.5px; line-height: 1.45; }
.dt-k { color: var(--blue-deep); font-size: 13px; font-weight: 700; }
.dt-note { margin-top: 14px; color: var(--text); font-size: 16.5px; line-height: 1.6; }
.dt-meta { display: grid; margin: 20px 0 0; border-top: 1px solid var(--line); }
.dt-meta div { display: grid; grid-template-columns: 104px minmax(0, 1fr); gap: 14px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 15.5px; line-height: 1.45; }
.dt-meta dt { color: var(--muted); font-weight: 600; }
.dt-meta dd { margin: 0; color: var(--navy); font-weight: 600; }
.dt-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.dt-actions .btn { white-space: normal; text-align: start; }
.dt-actions .btn .ic { width: 18px; height: 18px; }
.dt-actions bdi { font-weight: 750; }
@media (max-width: 560px) {
  .dlg { max-width: 100vw; max-height: 92dvh; margin: auto 0 0; border-radius: 26px 26px 0 0; }
  .dlg-scroll { max-height: 92dvh; }
  .dt-band { min-height: 120px; }
  .dt-band .cover-year { font-size: 56px; }
  .dt-stage { height: 210px; }
  .dt-body { padding: 20px 20px 28px; }
  .dt-meta div { grid-template-columns: 88px minmax(0, 1fr); }
  .dt-actions .btn { flex: 1 1 100%; }
}

.lb {
  width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0;
  background: rgba(6, 14, 32, .95); color: var(--white); overflow: hidden;
}
.lb::backdrop { background: transparent; }
.lb-stage { position: absolute; inset: 0; display: grid; place-items: center; padding: 72px 84px 104px; }
.lb-img { max-width: 100%; max-height: 100%; width: auto; height: auto; border-radius: 14px; box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .7); user-select: none; }
.lb-cap { position: absolute; inset-inline: 0; bottom: 0; display: flex; justify-content: center; align-items: baseline; gap: 14px; padding: 20px 24px 30px; color: #e3ebf8; font-size: 16px; line-height: 1.45; text-align: center; }
.lb-count { flex-shrink: 0; color: #9fb0cf; font-size: 14px; font-variant-numeric: tabular-nums; }
.lb-btn {
  position: absolute; z-index: 1; display: grid; place-items: center; width: 50px; height: 50px; border: 0; border-radius: 50%;
  background: rgba(255, 255, 255, .12); color: var(--white); cursor: pointer; transition: background-color .15s;
}
.lb-btn:hover { background: rgba(255, 255, 255, .24); }
.lb-btn .ic { width: 22px; height: 22px; }
.lb-btn[hidden] { display: none; }
.lb-close { top: 18px; inset-inline-end: 18px; }
.lb-prev, .lb-next { top: 50%; translate: 0 -50%; }
.lb-prev { inset-inline-start: 18px; }
.lb-next { inset-inline-end: 18px; }
.lang-he .lb-prev .ic, .lang-en .lb-next .ic { transform: scaleX(-1); }
@media (max-width: 720px) {
  .lb-stage { padding: 64px 12px 112px; }
  .lb-prev, .lb-next { top: auto; bottom: 22px; translate: none; width: 46px; height: 46px; }
  .lb-cap { padding: 18px 76px 34px; font-size: 15px; flex-direction: column; align-items: center; gap: 4px; }
}

@media (prefers-reduced-motion: no-preference) {
  .dlg[open] { animation: dlg-in .34s cubic-bezier(.2, .8, .2, 1); }
  .dlg[open]::backdrop, .lb[open] { animation: fade .25s ease; }
  .dlg.is-closing { animation: dlg-out .2s ease forwards; }
  .dlg.is-closing::backdrop, .lb.is-closing { animation: fade-out .2s ease forwards; }
  .lb-img.is-in { animation: lb-in .35s cubic-bezier(.2, .8, .2, 1); }
  .rv { opacity: 0; transform: translateY(22px); }
  .rv.in {
    opacity: 1; transform: none;
    transition: opacity .7s cubic-bezier(.2, .7, .2, 1) var(--rv-d, 0ms), transform .8s cubic-bezier(.2, .7, .2, 1) var(--rv-d, 0ms);
  }
}
@media (prefers-reduced-motion: no-preference) and (max-width: 560px) {
  .dlg[open] { animation: sheet-in .36s cubic-bezier(.2, .8, .2, 1); }
  .dlg.is-closing { animation: sheet-out .22s ease forwards; }
}
@keyframes dlg-in { from { opacity: 0; transform: translateY(18px) scale(.97); } }
@keyframes dlg-out { to { opacity: 0; transform: translateY(10px) scale(.98); } }
@keyframes sheet-in { from { transform: translateY(100%); } }
@keyframes sheet-out { to { transform: translateY(100%); } }
@keyframes fade-out { to { opacity: 0; } }
@keyframes lb-in { from { opacity: 0; transform: scale(.975); } }
body.has-dialog { overflow: hidden; }
