:root {
  --white: #FFFFFF;
  --mist: #EDF0F5;
  --ink: #0A1B3C;
  --navy: #1A203B;
  --grey: #8D969E;
  --grey-text: #5B6573;
  --line: rgba(10, 27, 60, .10);
  --blue: #89B1F8;
  --accent: #2F6FDB;
  --accent-dark: #1F56B3;
  --shadow: 0 12px 40px rgba(10, 27, 60, .10);
  --font: "DM Sans", "Helvetica Neue", Arial, sans-serif;
  --wrap: 1120px;
  --gutter: 48px;
  --section: 140px;
  --radius: 20px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 110px; }
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font: 400 18px/1.5 var(--font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 4px; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3, p { margin: 0; }
h1, h2 { font-weight: 500; letter-spacing: -.02em; line-height: 1.12; }
h2 { font-size: 48px; }
h3 { font-size: 24px; font-weight: 500; line-height: 1.3; }
.lead { font-size: 24px; line-height: 1.45; }
.meta { font-size: 14px; color: var(--grey-text); }
.muted { color: var(--grey-text); }

.wrap { max-width: calc(var(--wrap) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding-top: var(--section); }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 32px; margin-bottom: 56px; flex-wrap: wrap; }
.section-head p { max-width: 46ch; color: var(--grey-text); }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 14px 26px; border-radius: 999px; font: 500 16px/1 var(--font); text-decoration: none; transition: background .25s ease, color .25s ease, border-color .25s ease, transform .25s ease; white-space: nowrap; }
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn--fill { background: var(--accent); color: #fff; }
.btn--fill:hover { background: var(--accent-dark); }
.btn--ghost { border: 1px solid rgba(10, 27, 60, .2); color: var(--ink); }
.btn--ghost:hover { border-color: var(--ink); }
.btn--small { padding: 11px 20px; font-size: 15px; }
.btn svg, .text-link svg, .explore-go svg { width: 16px; height: 16px; flex: none; }

/* ---------- Nav ---------- */
.nav-shell { position: sticky; top: 16px; z-index: 50; padding: 16px var(--gutter) 0; }
.nav { max-width: var(--wrap); margin: 0 auto; background: rgba(255, 255, 255, .92); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); border-radius: 999px; box-shadow: var(--shadow); padding: 10px 10px 10px 28px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { color: var(--ink); font-weight: 500; font-size: 18px; letter-spacing: -.01em; white-space: nowrap; }
.brand:hover { text-decoration: none; }
.brand span { color: var(--grey-text); font-weight: 400; }
.nav-links { display: flex; align-items: center; gap: 28px; font-size: 16px; margin-left: auto; margin-right: 8px; }
.nav-links a:not(.btn) { color: var(--ink); }
.nav-links a:not(.btn):hover, .nav-links a[aria-current="page"] { color: var(--accent); text-decoration: none; }
.nav-end { display: flex; align-items: center; gap: 8px; }
.nav-toggle { display: none; width: 42px; height: 42px; border: 0; background: transparent; border-radius: 999px; cursor: pointer; padding: 0; position: relative; }
.nav-toggle span { position: absolute; left: 12px; right: 12px; height: 1.6px; background: var(--ink); transition: transform .3s ease, top .3s ease; }
.nav-toggle span:first-child { top: 16px; }
.nav-toggle span:last-child { top: 24px; }
.nav.open .nav-toggle span:first-child { top: 20px; transform: rotate(45deg); }
.nav.open .nav-toggle span:last-child { top: 20px; transform: rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { padding: 104px 0 0; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 64px; align-items: center; }
.hero-kicker { font-size: 16px; color: var(--grey-text); margin-bottom: 20px; display: flex; align-items: center; gap: 10px; }
.hero-kicker::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--blue); }
.hero h1 { font-size: 64px; }
.hero .lead { margin-top: 24px; max-width: 30ch; color: var(--ink); }
.hero-bio { margin-top: 20px; max-width: 46ch; color: var(--grey-text); }
.hero-actions { display: flex; gap: 12px; margin-top: 36px; flex-wrap: wrap; }
.portrait { position: relative; justify-self: end; width: min(100%, 400px); }
.portrait > img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: center 25%; border-radius: var(--radius); box-shadow: var(--shadow); }
.portrait-badge { position: absolute; left: 16px; bottom: 16px; background: #fff; border-radius: 999px; padding: 10px 20px 10px 10px; display: flex; align-items: center; gap: 12px; font-size: 14px; line-height: 1.35; border: 1px solid var(--line); }
.portrait-badge img { width: 34px; height: 34px; border-radius: 6px; box-shadow: none; aspect-ratio: auto; object-fit: contain; }
.portrait-badge b { font-weight: 500; display: block; font-size: 15px; }

/* ---------- Logos ---------- */
.logos { padding-top: 140px; }
.logos-label { text-align: center; font-size: 14px; color: var(--grey-text); margin-bottom: 28px; }
.marquee { overflow: hidden; max-width: var(--wrap); margin: 0 auto; -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee-track { display: flex; align-items: center; width: max-content; animation: marquee 45s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-item { padding: 0 64px; height: 96px; display: flex; align-items: center; }
.marquee-item img { width: auto; max-width: none; filter: grayscale(1); opacity: .55; transition: filter .3s, opacity .3s; }
.marquee-item:hover img { filter: none; opacity: 1; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Facts ---------- */
.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.fact { border-top: 1px solid var(--line); padding-top: 24px; }
.fact-num { font-size: 48px; font-weight: 500; letter-spacing: -.02em; line-height: 1; }
.fact-txt { margin-top: 12px; color: var(--grey-text); font-size: 16px; }

/* ---------- About ---------- */
.split { display: grid; grid-template-columns: 5fr 7fr; gap: 64px; align-items: start; }
.prose p + p { margin-top: 20px; }
.prose .lead + p { margin-top: 28px; }
.sticky-head { position: sticky; top: 120px; }
.how { display: flex; align-items: center; gap: 20px; margin-top: 36px; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); flex-wrap: wrap; }
.how-step { display: flex; align-items: center; gap: 14px; }
.how-step img { width: 40px; height: 40px; object-fit: contain; }
.how-step b { display: block; font-weight: 500; }
.how-step span { font-size: 14px; color: var(--grey-text); }
.how-arrow { font-size: 14px; color: var(--grey-text); padding: 0 4px; }
.how-note { margin-top: 16px; font-size: 14px; color: var(--grey-text); }
.text-link { display: inline-flex; gap: 8px; align-items: center; margin-top: 28px; font-weight: 500; }

/* ---------- Expertise ---------- */
.cols-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px; }
.pillar { border-top: 1px solid var(--line); padding-top: 28px; }
.pillar-num { font-size: 14px; color: var(--grey-text); font-weight: 500; }
.pillar h3 { margin: 14px 0 12px; }
.pillar p { color: var(--grey-text); }

/* ---------- Teaching band ---------- */
.band { background: var(--mist); margin-top: var(--section); padding: 120px 0; }
.cards-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.card { background: #fff; border-radius: var(--radius); padding: 40px; display: flex; flex-direction: column; gap: 16px; }
.card-top { display: flex; align-items: flex-end; height: 56px; }
.card-top img { height: 40px; width: auto; }
.card h3 { margin-top: 12px; }
.card p { color: var(--grey-text); }
.card .meta { margin-top: auto; padding-top: 12px; }

/* ---------- Publications ---------- */
.pubs { list-style: none; margin: 0; padding: 0; }
.pub { display: grid; grid-template-columns: 120px 1fr auto; gap: 32px; padding: 28px 0; border-top: 1px solid var(--line); align-items: baseline; }
.pub:last-child { border-bottom: 1px solid var(--line); }
.pub-year { font-size: 14px; color: var(--grey-text); }
.pub-title { font-size: 24px; font-weight: 500; line-height: 1.3; color: var(--ink); }
a.pub-title:hover { color: var(--accent); text-decoration: none; }
.pub-meta { font-size: 16px; color: var(--grey-text); margin-top: 6px; }
.pub-type { font-size: 14px; color: var(--grey-text); white-space: nowrap; }

/* ---------- Reviews ---------- */
.pull { margin: 0 0 64px; padding-top: 40px; border-top: 1px solid var(--line); }
.pull blockquote { margin: 0; font-size: 32px; line-height: 1.3; letter-spacing: -.01em; font-weight: 400; max-width: 34ch; }
.pull figcaption { margin-top: 24px; font-size: 14px; color: var(--grey-text); }
.pull figcaption b { color: var(--ink); font-weight: 500; }
.quotes { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.quote { margin: 0; border-top: 1px solid var(--line); padding-top: 28px; display: flex; flex-direction: column; gap: 20px; }
.quote blockquote { margin: 0; font-size: 24px; line-height: 1.4; }
.quote figcaption { font-size: 14px; color: var(--grey-text); margin-top: auto; }
.quote figcaption b { color: var(--ink); font-weight: 500; display: block; font-size: 16px; }
/* ---------- Posts ---------- */
.posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.post { border-top: 1px solid var(--line); padding-top: 28px; display: flex; flex-direction: column; gap: 16px; color: var(--ink); transition: border-color .3s ease; }
.post:hover { text-decoration: none; border-color: var(--accent); }
.post-date { font-size: 14px; color: var(--grey-text); }
.post p { font-size: 18px; color: var(--ink); }
.post-more { margin-top: auto; font-size: 15px; font-weight: 500; color: var(--accent); }

/* ---------- Explore ---------- */
.explore { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.explore-card { position: relative; border-radius: var(--radius); padding: 48px; min-height: 280px; display: flex; flex-direction: column; justify-content: space-between; color: var(--ink); background: #fff; border: 1px solid var(--line); transition: border-color .3s ease, transform .3s ease; }
.explore-card:hover { text-decoration: none; border-color: var(--accent); transform: translateY(-2px); }
.explore-card h3 { font-size: 32px; letter-spacing: -.01em; line-height: 1.15; }
.explore-card p { color: var(--grey-text); max-width: 34ch; margin-top: 12px; }
.explore-go { color: var(--accent); font-weight: 500; display: inline-flex; gap: 10px; align-items: center; }

/* ---------- CTA ---------- */
.cta { text-align: center; padding: var(--section) 0; }
.cta h2 { max-width: 18ch; margin: 0 auto; }
.cta p { max-width: 52ch; margin: 20px auto 0; color: var(--grey-text); }
.cta .hero-actions { justify-content: center; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: #BFC8D6; padding: 72px 0 40px; font-size: 16px; }
.site-footer a { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 48px; }
.footer-brand { font-size: 24px; color: #fff; font-weight: 500; letter-spacing: -.01em; }
.footer-col h4 { margin: 0 0 14px; font-size: 14px; font-weight: 500; color: #fff; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-ca { display: inline-flex; gap: 10px; align-items: center; }
.footer-ca img { width: 20px; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .1); margin-top: 56px; padding-top: 24px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 14px; color: #8D96A6; }

/* ---------- Inner pages ---------- */
.page-hero { padding: 96px 0 0; }
.page-hero h1 { font-size: 56px; max-width: 18ch; }
.page-hero .lead { margin-top: 24px; max-width: 40ch; color: var(--ink); }
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 12px; bottom: 12px; width: 2px; background: var(--line); }
.t-item { position: relative; padding: 0 0 64px 56px; }
.t-item:last-child { padding-bottom: 0; }
.t-item::before { content: ""; position: absolute; left: 0; top: 4px; width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 2px solid var(--blue); }
.t-item.is-now::before { background: var(--blue); }
.t-when { font-size: 14px; color: var(--grey-text); }
.t-org { display: flex; align-items: center; gap: 10px; margin-top: 10px; flex-wrap: wrap; }
.t-org img { height: 20px; width: auto; }
.t-org b { font-size: 16px; }
.t-org span::before { content: "·"; margin-right: 10px; color: var(--grey); }
.t-org b { font-weight: 500; }
.t-org--stack { flex-direction: row; gap: 12px; }
.t-org span { font-size: 14px; color: var(--grey-text); }
.t-item h3 { margin-top: 10px; }
.t-item p, .t-item ul { margin-top: 12px; color: var(--ink); max-width: 60ch; }
.t-item ul { padding-left: 20px; }
.t-item li + li { margin-top: 6px; }

.cert-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 48px; align-items: start; }
.cert-head { margin-bottom: 20px; }
.cert:last-child { padding-bottom: 0; }
.cert { display: grid; grid-template-columns: 1fr auto; gap: 16px; padding: 22px 0; border-top: 1px solid var(--line); align-items: baseline; }
.cert b { font-weight: 500; display: block; }
.cert span { display: block; font-size: 14px; line-height: 1.5; color: var(--grey-text); margin-top: 2px; }
.cert time { font-size: 14px; color: var(--grey-text); white-space: nowrap; }
.degree { display: grid; grid-template-columns: auto 1fr; gap: 40px; align-items: center; border: 1px solid var(--line); border-radius: var(--radius); padding: 48px; }
.degree img { height: 64px; width: auto; filter: grayscale(1); opacity: .75; }
.degree h3 { font-size: 32px; letter-spacing: -.01em; }
.degree p { margin-top: 12px; color: var(--ink); }
.langs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.lang { border-top: 1px solid var(--line); padding-top: 20px; }
.lang b { font-weight: 500; font-size: 24px; display: block; }
.lang span { font-size: 14px; color: var(--grey-text); }

.placeholder { border: 1px dashed var(--grey); border-radius: var(--radius); padding: 18px 22px; color: var(--grey-text); font-size: 14px; }
.placeholder::before { content: "To confirm"; display: block; font-size: 14px; font-weight: 500; color: var(--ink); margin-bottom: 4px; }

/* ---------- Reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease-out, transform .6s ease-out; transition-delay: var(--d, 0s); }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .marquee-track { animation: none; flex-wrap: wrap; justify-content: center; width: auto; }
  .marquee { -webkit-mask-image: none; mask-image: none; }
  .btn, .post, .explore-card { transition: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  :root { --gutter: 24px; --section: 88px; }
  h2 { font-size: 32px; }
  .hero h1, .page-hero h1 { font-size: 40px; }
  .t-org--stack { flex-wrap: wrap; height: auto; }
  .lead { font-size: 20px; }
  .hero { padding-top: 56px; }
  .hero-grid { grid-template-columns: 1fr; gap: 56px; min-height: 0; }
  .portrait { justify-self: start; width: min(100%, 280px); order: -1; }
  .portrait-badge { left: 10px; bottom: 10px; padding: 6px 14px 6px 6px; gap: 10px; }
  .portrait-badge img { width: 28px; height: 28px; }
  .portrait-badge b { white-space: nowrap; font-size: 14px; }
  .hero-grid { gap: 32px; }
  .nav { padding: 8px 8px 8px 20px; position: relative; gap: 8px; }
  .brand span { display: none; }
  .nav-cta { padding: 10px 14px; }
  .nav-cta span { display: none; }
  .nav-shell { padding: 12px var(--gutter) 0; }
  .nav-toggle { display: inline-block; }
  .nav-links { display: none; position: absolute; top: calc(100% + 8px); left: 0; right: 0; margin: 0; flex-direction: column; align-items: stretch; gap: 0; background: #fff; border-radius: 24px; box-shadow: var(--shadow); padding: 12px; }
  .nav.open .nav-links { display: flex; }
  .nav-links a { padding: 14px 16px; }
  .sticky-head { position: static; }
  .pull blockquote { font-size: 24px; }
  .how { gap: 14px; }
  .facts { grid-template-columns: 1fr 1fr; }
  .fact-num { font-size: 40px; }
  .split, .cols-3, .cards-2, .quotes, .posts, .explore, .footer-grid, .cert-grid { grid-template-columns: 1fr; }
  .cols-3 { gap: 40px; }
  .split { gap: 32px; }
  .band { padding: 88px 0; }
  .card, .explore-card, .degree { padding: 28px; }
  .quote blockquote { font-size: 20px; }
  .explore-card { min-height: 220px; }
  .explore-card h3 { font-size: 24px; }
  .pub { grid-template-columns: 1fr; gap: 8px; }
  .pub-type { justify-self: start; }
  .pub-title { font-size: 20px; }
  .marquee-item { padding: 0 36px; height: 80px; }
  .logos { padding-top: 88px; }
  .degree { grid-template-columns: 1fr; }
  .degree img { height: 64px; }
  .langs { grid-template-columns: 1fr 1fr; }
  .t-item { padding-left: 44px; }
  .section-head { margin-bottom: 36px; }
  .cta { padding-top: 72px; }
}

/* A single verified post, with room for its context. */
.posts--single { grid-template-columns: minmax(0, 760px); }

.degree--text { grid-template-columns: 1fr; }
