:root {
  --brand-navy: #0b2a4a;
  --brand-navy-deep: #061a2d;
  --brand-blue: #2f5f8a;
  --gold: #f4c95d;
  --gold-deep: #c88e0a;
  --ink: #15212d;
  --muted: #5f6b75;
  --paper: #fbfaf7;
  --surface: #ffffff;
  --surface-2: #f4f1eb;
  --line: rgba(21, 33, 45, .13);
  --shadow: 0 22px 60px rgba(29, 24, 27, .12);
  --radius-sm: 14px;
  --radius: 24px;
  --radius-lg: 36px;
  --max: 1180px;
  --header-h: 78px;
}

[data-theme="dark"] {
  --ink: #f6f2eb;
  --muted: #b9c0c7;
  --paper: #10151b;
  --surface: #171e26;
  --surface-2: #202833;
  --line: rgba(255, 255, 255, .13);
  --shadow: 0 22px 60px rgba(0, 0, 0, .38);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-y: scroll; scrollbar-gutter: stable; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img { max-width: 100%; display: block; }
button, input { font: inherit; }
.skip-link { position: fixed; left: 12px; top: -80px; z-index: 1000; background: var(--gold); color: #271900; padding: 10px 14px; border-radius: 10px; font-weight: 800; }
.skip-link:focus { top: 12px; }

.sr-only { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; border: 0 !important; }

.container { width: min(calc(100% - 40px), var(--max)); margin-inline: auto; }
.section { padding: 96px 0; }
.section-sm { padding: 64px 0; }
.section-alt { background: var(--surface-2); }
.eyebrow { margin: 0 0 12px; color: var(--brand-blue); font-size: .76rem; font-weight: 900; letter-spacing: .15em; text-transform: uppercase; }
[data-theme="dark"] .eyebrow { color: var(--gold); }
.section-title { margin: 0; max-width: 820px; font-family: Georgia, "Times New Roman", serif; font-size: clamp(1.9rem, 3.8vw, 3.35rem); line-height: 1.04; letter-spacing: -.035em; }
.section-lede { max-width: 760px; margin: 22px 0 0; color: var(--muted); font-size: 1.12rem; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 28px; margin-bottom: 42px; }

.site-header { position: sticky; top: 0; z-index: 100; height: var(--header-h); display: flex; align-items: center; border-bottom: 1px solid var(--line); background: var(--paper); }
.nav-wrap { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 24px; height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 12px; min-width: 0; text-decoration: none; }
.brand img { width: 44px; height: 44px; border-radius: 12px; box-shadow: 0 8px 20px rgba(11, 42, 74, .22); }
.brand-text { display: grid; line-height: 1.08; }
.brand-text strong { font-family: Georgia, serif; font-size: 1rem; }
.brand-text span { margin-top: 5px; color: var(--muted); font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.site-nav { justify-self: end; display: flex; align-items: center; gap: 8px; margin: 0; }
.site-nav a { position: relative; display: inline-flex; align-items: center; justify-content: center; height: 44px; padding: 0 10px; border-bottom: 2px solid transparent; color: var(--ink); text-decoration: none; white-space: nowrap; font-size: 14px; font-weight: 800; line-height: 1; }
.site-nav a:hover { border-bottom-color: color-mix(in srgb, var(--gold-deep) 45%, transparent); }
.site-nav a[aria-current="page"] { border-bottom-color: var(--gold-deep); }
.site-nav a:focus-visible { outline: 2px solid var(--gold-deep); outline-offset: 3px; border-radius: 6px; }
.nav-actions { justify-self: end; display: flex; align-items: center; gap: 8px; margin: 0; }
.icon-button { width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 13px; background: var(--surface); color: var(--ink); cursor: pointer; }
.icon-button:hover { transform: translateY(-1px); border-color: color-mix(in srgb, var(--gold-deep) 55%, var(--line)); }
.menu-button { display: none; }

.hero { position: relative; overflow: hidden; padding: 70px 0 74px; }
.hero::before { content: ""; position: absolute; inset: 0 0 auto; height: 420px; pointer-events: none; background: radial-gradient(circle at 75% 15%, rgba(244, 201, 93, .22), transparent 34%), radial-gradient(circle at 15% 20%, rgba(11, 42, 74, .14), transparent 32%); }
.hero-grid { position: relative; display: grid; grid-template-columns: 1.12fr .88fr; align-items: center; gap: 58px; }
.hero-copy h1 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(2.75rem, 4.55vw, 4.85rem); line-height: .96; letter-spacing: -.047em; }
.hero-name-line { display: block; white-space: nowrap; }
.hero-name-accent { color: var(--brand-navy); }
[data-theme="dark"] .hero-name-accent { color: var(--gold); }
.hero-role { margin: 26px 0 0; font-size: 1.08rem; font-weight: 800; letter-spacing: .015em; }
.hero-summary { max-width: 660px; margin: 20px 0 0; color: var(--muted); font-size: 1.16rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 12px 18px; border: 1px solid transparent; border-radius: 14px; text-decoration: none; font-weight: 900; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.button:hover { transform: translateY(-2px); }
.button-primary { background: var(--brand-navy); color: white; box-shadow: 0 14px 32px rgba(11, 42, 74, .24); }
.button-primary:hover { box-shadow: 0 18px 36px rgba(11, 42, 74, .3); }
.button-secondary { background: var(--surface); border-color: var(--line); color: var(--ink); }
.button-small { min-height: 42px; padding: 9px 14px; font-size: .88rem; }
.hero-visual { position: relative; min-height: 590px; }
.portrait-shell { position: absolute; inset: 0 0 0 60px; overflow: hidden; border-radius: 42px; background: linear-gradient(145deg, var(--brand-navy), #222b37); box-shadow: var(--shadow); }
.portrait-shell::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, transparent 54%, rgba(4, 18, 31, .72)); }
.portrait-shell img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%; }
.hero-badge { position: absolute; z-index: 3; left: 0; bottom: 34px; width: min(330px, 75%); padding: 20px; border: 1px solid rgba(255, 255, 255, .26); border-radius: 22px; background: rgba(255, 255, 255, .9); color: #16212c; box-shadow: var(--shadow); backdrop-filter: blur(12px); }
.hero-badge strong { display: block; font-family: Georgia, serif; font-size: 1.24rem; line-height: 1.2; }
.hero-badge span { display: block; margin-top: 6px; color: #56616d; font-size: .88rem; }
.hero-badge::before { content: ""; display: block; width: 50px; height: 5px; margin-bottom: 13px; background: var(--gold-deep); border-radius: 999px; }

.trust-strip { border-block: 1px solid var(--line); background: var(--surface); }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.trust-item { min-height: 112px; padding: 25px 28px; border-right: 1px solid var(--line); }
.trust-item:last-child { border-right: 0; }
.trust-item strong { display: block; font-family: Georgia, serif; font-size: 1.75rem; line-height: 1; }
.trust-item span { display: block; margin-top: 9px; color: var(--muted); font-size: .82rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }

.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.card { position: relative; overflow: hidden; padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: 0 10px 34px rgba(22, 25, 30, .045); }
.card:hover { border-color: color-mix(in srgb, var(--gold-deep) 42%, var(--line)); }
.card-number { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: rgba(244, 201, 93, .2); color: var(--brand-navy); font-weight: 950; }
[data-theme="dark"] .card-number { color: var(--gold); }
.card h3 { margin: 20px 0 10px; font-family: Georgia, serif; font-size: 1.42rem; line-height: 1.18; }
.card p { margin: 0; color: var(--muted); }
.card-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 22px; color: var(--brand-navy); font-weight: 900; text-decoration: none; }
[data-theme="dark"] .card-link { color: var(--gold); }
.card-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.tag-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.tag { display: inline-flex; align-items: center; min-height: 30px; padding: 5px 10px; border-radius: 999px; background: var(--surface-2); color: var(--muted); font-size: .75rem; font-weight: 850; }

.feature-card { min-height: 360px; display: flex; flex-direction: column; justify-content: end; padding: 34px; color: white; background: linear-gradient(145deg, var(--brand-navy), #242c36); }
.feature-card::after { content: ""; position: absolute; width: 210px; height: 210px; right: -70px; top: -70px; border: 1px solid rgba(244, 201, 93, .48); border-radius: 50%; box-shadow: 0 0 0 24px rgba(244, 201, 93, .07), 0 0 0 48px rgba(244, 201, 93, .04); }
.feature-card h3 { position: relative; z-index: 2; margin: 0; font-size: 2rem; }
.feature-card p { position: relative; z-index: 2; color: rgba(255,255,255,.74); }
.feature-card .tag { position: relative; z-index: 2; background: rgba(255,255,255,.11); color: white; }
.feature-card .card-link { position: relative; z-index: 2; color: var(--gold); }

.statement { position: relative; overflow: hidden; border-radius: var(--radius-lg); background: var(--ink); color: var(--paper); }
.statement-grid { display: grid; grid-template-columns: 1fr .8fr; align-items: stretch; }
.statement-copy { padding: 58px; }
.statement-copy blockquote { margin: 0; font-family: Georgia, serif; font-size: clamp(2.2rem, 5vw, 4.8rem); line-height: .98; letter-spacing: -.045em; }
.statement-copy blockquote em { color: var(--gold); font-style: normal; }
.statement-copy p { max-width: 620px; margin: 26px 0 0; color: color-mix(in srgb, var(--paper) 70%, transparent); }
.statement-art { min-height: 430px; background: url('../images/research-network.svg') center/cover no-repeat; }

.paper-card { display: flex; flex-direction: column; min-height: 360px; }
.paper-card .venue { color: var(--brand-blue); font-size: .76rem; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.paper-card h3 { font-size: 1.36rem; }
.paper-card .paper-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 24px; }

.article-card { display: flex; flex-direction: column; min-height: 310px; }
.article-card .article-kicker { color: var(--brand-blue); font-size: .76rem; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.article-card h3 { font-size: 1.58rem; }
.article-card .card-link { margin-top: auto; padding-top: 22px; }

.page-hero { position: relative; overflow: hidden; padding: 88px 0 72px; border-bottom: 1px solid var(--line); }
.page-hero::after { content: ""; position: absolute; width: 480px; height: 480px; right: -170px; top: -230px; border-radius: 50%; background: radial-gradient(circle, rgba(244, 201, 93, .25), transparent 70%); }
.page-hero h1 { margin: 0; max-width: 900px; font-family: Georgia, serif; font-size: clamp(2.8rem, 5.7vw, 5.2rem); line-height: .94; letter-spacing: -.05em; }
.page-hero p { max-width: 760px; margin: 24px 0 0; color: var(--muted); font-size: 1.18rem; }
.breadcrumb { margin-bottom: 22px; color: var(--brand-blue); font-size: .78rem; font-weight: 900; letter-spacing: .13em; text-transform: uppercase; }

.project-row { display: grid; grid-template-columns: 160px 1fr auto; align-items: start; gap: 28px; padding: 30px 0; border-top: 1px solid var(--line); }
.project-row:last-child { border-bottom: 1px solid var(--line); }
.project-index { font-family: Georgia, serif; font-size: 3.2rem; line-height: 1; color: var(--gold-deep); }
.project-row h3 { margin: 0; font-family: Georgia, serif; font-size: 1.65rem; }
.project-row p { max-width: 720px; margin: 9px 0 0; color: var(--muted); }
.project-funder { display: inline-flex; padding: 7px 11px; border-radius: 999px; background: var(--surface-2); color: var(--muted); font-size: .74rem; font-weight: 900; text-transform: uppercase; letter-spacing: .08em; white-space: nowrap; }

.timeline { position: relative; display: grid; gap: 18px; }
.timeline::before { content: ""; position: absolute; left: 20px; top: 18px; bottom: 18px; width: 2px; background: var(--line); }
.timeline-item { position: relative; padding: 24px 24px 24px 64px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.timeline-item::before { content: ""; position: absolute; left: 13px; top: 29px; width: 16px; height: 16px; border: 4px solid var(--paper); border-radius: 50%; background: var(--gold-deep); box-shadow: 0 0 0 1px var(--line); }
.timeline-item h3 { margin: 0; font-family: Georgia, serif; font-size: 1.4rem; }
.timeline-item p { margin: 7px 0 0; color: var(--muted); }

.split-panel { display: grid; grid-template-columns: .85fr 1.15fr; gap: 50px; align-items: start; }
.sticky-intro { position: sticky; top: calc(var(--header-h) + 28px); }
.list-clean { list-style: none; margin: 0; padding: 0; }
.list-clean li { padding: 17px 0; border-top: 1px solid var(--line); }
.list-clean li:last-child { border-bottom: 1px solid var(--line); }
.list-clean strong { display: block; }
.list-clean span { color: var(--muted); }

.filter-bar { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 30px; }
.filter-group { display: flex; flex-wrap: wrap; gap: 8px; }
.filter-button { min-height: 40px; padding: 8px 13px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--muted); cursor: pointer; font-weight: 850; }
.filter-button[aria-pressed="true"] { border-color: var(--brand-navy); background: var(--brand-navy); color: white; }
.publication-search { position: relative; display: flex; align-items: center; flex: 0 0 285px; }
.publication-search svg { position: absolute; left: 14px; width: 18px; height: 18px; color: var(--muted); pointer-events: none; }
.search-box { width: 100%; min-width: 0; min-height: 46px; padding: 10px 14px 10px 43px; border: 1px solid var(--line); border-radius: 13px; background: var(--surface); color: var(--ink); box-shadow: 0 8px 24px rgba(22, 25, 30, .04); }
.search-box::placeholder { color: color-mix(in srgb, var(--muted) 82%, transparent); }
.search-box:focus { outline: 3px solid rgba(244, 201, 93, .28); border-color: var(--gold-deep); }
[data-hidden="true"] { display: none !important; }

.resource-banner { display: grid; grid-template-columns: 1.15fr .85fr; overflow: hidden; border-radius: var(--radius-lg); background: linear-gradient(145deg, var(--brand-navy), #101c2a); color: white; }
.resource-copy { padding: 52px; }
.resource-copy h2 { margin: 0; font-family: Georgia, serif; font-size: clamp(2.4rem, 5vw, 4.5rem); line-height: .95; }
.resource-copy p { max-width: 610px; color: rgba(255,255,255,.75); }
.resource-copy .button-secondary { background: #ffffff; border-color: #ffffff; color: var(--brand-navy-deep); box-shadow: 0 14px 30px rgba(0,0,0,.2); }
.resource-copy .button-secondary:hover { background: #f7f4ee; border-color: #f7f4ee; }
.resource-visual { display: grid; place-items: center; min-height: 370px; padding: 42px; background: radial-gradient(circle at center, rgba(244, 201, 93, .35), transparent 60%); }
.play-button { width: 150px; height: 150px; display: grid; place-items: center; border: 2px solid rgba(255,255,255,.7); border-radius: 50%; color: var(--gold); font-size: 3.2rem; box-shadow: 0 0 0 24px rgba(255,255,255,.05), 0 0 0 48px rgba(255,255,255,.025); }

.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.contact-card { min-height: 280px; display: grid; grid-template-columns: 1fr auto; grid-template-rows: auto 1fr; column-gap: 24px; padding: 32px; isolation: isolate; }
.contact-card::after { content: ""; position: absolute; right: -52px; bottom: -64px; width: 180px; height: 180px; border-radius: 50%; background: radial-gradient(circle, rgba(11, 42, 74, .1), transparent 68%); z-index: -1; }
.contact-card-content { display: flex; min-width: 0; flex-direction: column; grid-row: 1 / -1; }
.contact-card strong { font-family: Georgia, serif; font-size: 1.72rem; line-height: 1.08; }
.contact-card p:not(.eyebrow) { max-width: 480px; margin: 12px 0 0; }
.contact-card .card-link { margin-top: auto; padding-top: 26px; word-break: break-word; }
.contact-icon { grid-column: 2; grid-row: 1; width: 64px; height: 64px; display: grid; place-items: center; border: 1px solid color-mix(in srgb, var(--brand-navy) 20%, var(--line)); border-radius: 20px; background: color-mix(in srgb, var(--brand-navy) 8%, var(--surface)); color: var(--brand-navy); box-shadow: 0 14px 28px rgba(11, 42, 74, .1); }
.contact-icon svg { width: 30px; height: 30px; stroke: currentColor; }
.contact-icon .icon-text { font-family: Inter, sans-serif; font-size: 1.05rem; font-weight: 950; letter-spacing: -.04em; }
.contact-card:hover .contact-icon { transform: translateY(-3px); border-color: color-mix(in srgb, var(--gold-deep) 52%, var(--line)); }
[data-theme="dark"] .contact-card::after { background: radial-gradient(circle, rgba(244, 201, 93, .08), transparent 68%); }
[data-theme="dark"] .contact-icon { color: var(--gold); background: rgba(244, 201, 93, .08); }

.site-footer { padding: 58px 0 28px; background: #0b1624; color: #f5efe6; }
.footer-grid { display: grid; grid-template-columns: 1.2fr .8fr .8fr; gap: 48px; }
.footer-brand { display: flex; gap: 15px; align-items: flex-start; }
.footer-brand img { width: 52px; height: 52px; }
.footer-brand strong { display: block; font-family: Georgia, serif; font-size: 1.25rem; }
.footer-brand p { max-width: 420px; margin: 10px 0 0; color: #b9b0b5; }
.footer-links h2 { margin: 0 0 13px; font-size: .76rem; letter-spacing: .13em; text-transform: uppercase; color: var(--gold); }
.footer-links a { display: block; margin: 9px 0; color: #d5cdd1; text-decoration: none; }
.footer-links a:hover { color: white; }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 44px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.12); color: #a89fa4; font-size: .78rem; }
.footer-theme-button { display: inline-flex; align-items: center; gap: 10px; min-height: 42px; padding: 9px 13px; border: 1px solid rgba(255,255,255,.18); border-radius: 12px; background: rgba(255,255,255,.06); color: #f5efe6; cursor: pointer; font-weight: 800; }
.footer-theme-button:hover { background: rgba(255,255,255,.11); border-color: rgba(244,201,93,.48); }
.footer-theme-button [data-theme-icon] { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: rgba(255,255,255,.1); font-size: 1rem; }

.reveal, .reveal.is-visible { opacity: 1; transform: none; transition: none; }

@media (max-width: 1020px) {
  .site-nav { position: fixed; inset: var(--header-h) 16px auto; display: none; flex-direction: column; align-items: stretch; padding: 14px; border: 1px solid var(--line); border-radius: 20px; background: var(--surface); box-shadow: var(--shadow); }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: 13px 14px; }
  .menu-button { display: grid; }
  .brand { min-width: auto; }
  .hero-grid, .statement-grid, .resource-banner { grid-template-columns: 1fr; }
  .hero-visual { min-height: 520px; max-width: 620px; width: 100%; margin-inline: auto; }
  .portrait-shell { left: 42px; }
  .statement-art { min-height: 330px; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .split-panel { grid-template-columns: 1fr; }
  .sticky-intro { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
}

@media (max-width: 720px) {
  :root { --header-h: 70px; }
  .container { width: min(calc(100% - 28px), var(--max)); }
  .brand-text span { display: none; }
  .section { padding: 74px 0; }
  .section-sm { padding: 48px 0; }
  .section-head { display: block; }
  .hero { padding-top: 48px; }
  .hero-grid { gap: 44px; }
  .hero-copy h1 { font-size: clamp(2.9rem, 14vw, 4.6rem); }
  .hero-visual { min-height: 480px; }
  .portrait-shell { left: 24px; border-radius: 30px; }
  .hero-badge { bottom: 20px; padding: 17px; }
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .trust-item:nth-child(2) { border-right: 0; }
  .trust-item:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .grid-2, .grid-3, .grid-4, .contact-grid { grid-template-columns: 1fr; }
  .contact-card { min-height: 250px; padding: 26px; }
  .contact-icon { width: 56px; height: 56px; border-radius: 17px; }
  .statement-copy, .resource-copy { padding: 34px 26px; }
  .project-row { grid-template-columns: 64px 1fr; gap: 18px; }
  .project-index { font-size: 2.4rem; }
  .project-funder { grid-column: 2; justify-self: start; }
  .filter-bar { align-items: stretch; flex-direction: column; }
  .publication-search { flex-basis: auto; width: 100%; }
  .search-box { min-width: 0; width: 100%; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-grid > :first-child { grid-column: auto; }
  .footer-bottom { flex-direction: column; }
  .page-hero { padding: 62px 0 54px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
  .reveal { opacity: 1; transform: none; }
}

/* Education cards with official institution marks */
.education-card { min-height: 285px; }
.education-card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; min-height: 76px; }
.education-logo-link {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  min-width: 118px;
  min-height: 70px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(21, 33, 45, .06);
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.education-logo-link:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--gold-deep) 45%, var(--line));
  box-shadow: 0 12px 28px rgba(21, 33, 45, .1);
}
.education-logo { display: block; width: auto; object-fit: contain; }
.education-logo-wide { max-width: 150px; max-height: 50px; }
.education-logo-crest { max-width: 50px; max-height: 58px; }
.education-card h3 { margin-top: 18px; }

@media (max-width: 560px) {
  .education-card-top { gap: 12px; }
  .education-logo-link { min-width: 96px; min-height: 62px; padding: 8px 10px; }
  .education-logo-wide { max-width: 118px; max-height: 42px; }
  .education-logo-crest { max-height: 50px; }
}

/* Final navigation stability rules */
@media (min-width: 1021px) {
  .site-nav { justify-self: end; }
  .site-nav a { background: transparent; transform: none; transition: border-color .16s ease; }
}

@media (max-width: 1020px) {
  .site-nav a { height: auto; border-bottom: 0; border-left: 3px solid transparent; border-radius: 10px; }
  .site-nav a:hover { background: var(--surface-2); border-left-color: color-mix(in srgb, var(--gold-deep) 45%, transparent); }
  .site-nav a[aria-current="page"] { background: var(--surface-2); border-left-color: var(--gold-deep); }
}

/* Portfolio revision: personal profile, event gallery, achievements, and metrics */
.profile-under-photo {
  position: absolute;
  z-index: 4;
  right: 18px;
  bottom: 22px;
  width: min(310px, 72%);
  padding: 16px 18px;
  border: 1px solid rgba(255,255,255,.3);
  border-radius: 18px;
  background: rgba(6, 26, 45, .9);
  color: #fff;
  text-decoration: none;
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}
.profile-under-photo span { display: block; color: rgba(255,255,255,.72); font-size: .76rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.profile-under-photo strong { display: block; margin-top: 5px; color: var(--gold); font-family: Georgia, serif; font-size: 1.05rem; }
.profile-under-photo:hover strong { text-decoration: underline; text-underline-offset: 4px; }
.metrics-note { display: flex; justify-content: space-between; align-items: center; gap: 18px; padding-block: 12px; color: var(--muted); font-size: .78rem; }
.metrics-note a { color: var(--brand-navy); font-weight: 850; text-decoration: none; }
[data-theme="dark"] .metrics-note a { color: var(--gold); }
.event-gallery { display: grid; grid-template-columns: 1.35fr 1fr; grid-template-rows: repeat(2, minmax(230px, 1fr)); gap: 20px; }
.event-photo { position: relative; min-height: 260px; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--brand-navy); box-shadow: 0 14px 38px rgba(15, 26, 38, .13); color: #fff; text-decoration: none; }
.event-photo-large { grid-row: 1 / 3; min-height: 540px; }
.event-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.event-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 46%, rgba(3, 17, 31, .88)); }
.event-photo span { position: absolute; z-index: 2; left: 24px; right: 24px; bottom: 22px; }
.event-photo strong { display: block; font-family: Georgia, serif; font-size: 1.35rem; line-height: 1.12; }
.event-photo small { display: block; margin-top: 7px; color: rgba(255,255,255,.72); font-size: .84rem; }
.event-photo:hover img { transform: scale(1.025); }
.gallery-note { margin: 22px 0 0; padding: 14px 17px; border-left: 4px solid var(--gold-deep); background: var(--surface); color: var(--muted); border-radius: 0 12px 12px 0; font-size: .86rem; }
.gallery-note code { color: var(--ink); font-weight: 800; }
.achievement-card { min-height: 250px; }
.achievement-mark { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--brand-navy); color: var(--gold); font-family: Georgia, serif; font-weight: 900; }
.button-row { display: flex; flex-wrap: wrap; gap: 12px; }
.project-detail { display: grid; grid-template-columns: 1.05fr .95fr; align-items: start; gap: 58px; }
.project-panel { min-height: 280px; }
.project-panel h3 { margin-top: 0; }
.event-type { display: inline-flex; padding: 5px 10px; border-radius: 999px; background: rgba(244,201,93,.2); color: var(--brand-navy); font-size: .72rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
[data-theme="dark"] .event-type { color: var(--gold); }
.talk-timeline .timeline-item h3 { margin-top: 12px; }
.slide-card { min-height: 250px; display: flex; flex-direction: column; }
.slide-card .card-link { margin-top: auto; padding-top: 22px; }
.media-card { min-height: 330px; display: flex; flex-direction: column; }
.media-card .card-link { margin-top: auto; padding-top: 24px; }
.featured-media { background: linear-gradient(145deg, var(--brand-navy), #202d3a); color: #fff; }
.featured-media p { color: rgba(255,255,255,.72); }
.featured-media .article-kicker, .featured-media .card-link { color: var(--gold); }
.obfuscated-email { margin-top: 22px !important; color: var(--brand-navy) !important; font-weight: 900; letter-spacing: .02em; }
[data-theme="dark"] .obfuscated-email { color: var(--gold) !important; }
.contact-icon.icon-text { font-family: Inter, sans-serif; font-weight: 950; }

@media (max-width: 1020px) {
  .profile-under-photo { right: 8px; }
  .project-detail { grid-template-columns: 1fr; gap: 30px; }
  .achievement-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .profile-under-photo { left: 0; right: auto; bottom: 18px; width: min(330px, 82%); }
  .metrics-note { align-items: flex-start; flex-direction: column; }
  .event-gallery { grid-template-columns: 1fr; grid-template-rows: auto; }
  .event-photo, .event-photo-large { grid-row: auto; min-height: 310px; }
  .achievement-grid { grid-template-columns: 1fr; }
  .button-row { margin-top: 24px; }
}


/* Homepage refinement: cleaner header and controlled two-line name */
body[data-page="home"] .brand-text span {
  display: none;
}

@media (max-width: 760px) {
  .hero-name-line {
    white-space: normal;
  }
}

/* Homepage refinement: text-first identity and larger portrait treatment */
body[data-page="home"] .brand-text-only {
  position: relative;
  gap: 0;
  padding-left: 17px;
}

body[data-page="home"] .brand-text-only::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 4px;
  height: 31px;
  border-radius: 999px;
  background: var(--gold-deep);
  transform: translateY(-50%);
}

body[data-page="home"] .brand-text-only .brand-text strong {
  font-size: 1.08rem;
  letter-spacing: -.018em;
}

body[data-page="home"] .hero-grid {
  grid-template-columns: 1.04fr .96fr;
  gap: 48px;
}

body[data-page="home"] .hero-copy h1 {
  font-size: clamp(3.15rem, 4.25vw, 4.55rem);
  line-height: .95;
}

body[data-page="home"] .hero-name-line {
  display: block;
  white-space: nowrap;
}

body[data-page="home"] .hero-visual {
  min-height: 640px;
}

body[data-page="home"] .portrait-shell {
  inset: 0 0 0 18px;
}

body[data-page="home"] .profile-under-photo {
  left: -38px;
  right: auto;
  bottom: 36px;
  width: min(350px, 78%);
  padding: 20px 22px;
  border: 1px solid rgba(16, 39, 62, .12);
  background: rgba(255, 255, 255, .96);
  color: #142231;
  box-shadow: 0 20px 50px rgba(11, 42, 74, .18);
  backdrop-filter: blur(14px);
}

body[data-page="home"] .profile-under-photo span {
  color: #5d6974;
}

body[data-page="home"] .profile-under-photo strong {
  color: var(--brand-navy);
}

body[data-page="home"] .metrics-note-source {
  justify-content: flex-end;
}

body[data-page="home"] .footer-brand-text-only {
  display: block;
}

@media (max-width: 1020px) {
  body[data-page="home"] .hero-visual {
    min-height: 580px;
    max-width: 670px;
  }

  body[data-page="home"] .portrait-shell {
    left: 26px;
  }

  body[data-page="home"] .profile-under-photo {
    left: 0;
    bottom: 28px;
  }
}

@media (max-width: 720px) {
  body[data-page="home"] .brand-text-only {
    padding-left: 13px;
  }

  body[data-page="home"] .brand-text-only::before {
    width: 3px;
    height: 26px;
  }

  body[data-page="home"] .brand-text-only .brand-text strong {
    font-size: .94rem;
  }

  body[data-page="home"] .hero-copy h1 {
    font-size: clamp(2.75rem, 12vw, 4rem);
  }

  body[data-page="home"] .hero-name-line {
    white-space: normal;
  }

  body[data-page="home"] .hero-visual {
    min-height: 520px;
  }

  body[data-page="home"] .portrait-shell {
    left: 0;
  }

  body[data-page="home"] .profile-under-photo {
    left: 14px;
    bottom: 18px;
    width: min(330px, calc(100% - 28px));
  }
}

/* Global text-first header identity: keep navigation visually identical on every page. */
.brand-text-only {
  position: relative;
  gap: 0;
  padding-left: 17px;
}

.brand-text-only::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 4px;
  height: 31px;
  border-radius: 999px;
  background: var(--gold-deep);
  transform: translateY(-50%);
}

.brand-text-only .brand-text strong {
  font-size: 1.08rem;
  letter-spacing: -.018em;
}

@media (max-width: 720px) {
  .brand-text-only {
    padding-left: 13px;
  }

  .brand-text-only::before {
    width: 3px;
    height: 26px;
  }

  .brand-text-only .brand-text strong {
    font-size: .94rem;
  }
}
