/* luiswelbanks.com
   Deep navy with a single gold accent, serif headings (Source Serif 4) and Inter for text.
   Colours and fonts live in the custom properties below.
   The print rules at the end turn the CV page into a clean black-on-white PDF. */

:root {
  --bg: #0a111d;
  --bg-alt: #0d1626;
  --bg-raised: #111b2d;
  --surface: rgba(255, 255, 255, 0.03);
  --surface-strong: rgba(255, 255, 255, 0.06);
  --border: rgba(255, 255, 255, 0.1);
  --border-strong: rgba(255, 255, 255, 0.22);
  --text: #eef1f6;
  --body: #d3d9e3;
  --muted: #a7b1c2;
  --faint: #7d889b;
  --accent: #c9a45c;
  --accent-strong: #dcbd7f;
  --accent-ink: #15100a;
  --link: #e2c98f;
  --link-hover: #f4e2b8;
  --radius: 8px;
  --serif: "Source Serif 4", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --wrap: 1200px;
  --measure: 68ch;
  --header: 72px;
  color-scheme: dark;
}

/* ---------- base ---------- */

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--body);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.68;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg, video { max-width: 100%; height: auto; display: block; }

a {
  color: var(--link);
  text-decoration-line: underline;
  text-decoration-color: rgba(201, 164, 92, 0.45);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
}
a:hover { color: var(--link-hover); text-decoration-color: var(--accent); }
a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 3px;
}

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 600;
  color: var(--text);
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.5rem, 5.6vw, 4rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.85rem, 3.3vw, 2.6rem); letter-spacing: -0.015em; }
h3 { font-size: 1.35rem; }
h4 { font-size: 1.1rem; }

p { margin: 0 0 1em; }
p, li { text-wrap: pretty; }
strong { font-weight: 600; color: var(--text); }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 28px; }
@media (max-width: 600px) { .wrap { padding: 0 16px; } }

.prose { max-width: var(--measure); }
.wrap.prose { max-width: var(--wrap); }
.wrap.prose > * { max-width: var(--measure); }
.wrap.prose > #all-papers, .wrap.prose > .pubs { max-width: 90ch; }

.muted { color: var(--muted); }
.small { font-size: 0.9rem; }

.skip-link { position: absolute; left: -9999px; top: 0; background: var(--accent); color: var(--accent-ink); padding: 8px 14px; z-index: 100; }
.skip-link:focus { left: 12px; top: 12px; }

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

.eyebrow {
  font: 600 0.76rem/1.4 var(--sans);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 14px;
}

.rule { height: 2px; width: 64px; background: var(--accent); margin: 26px 0 28px; }

.lede { font-size: clamp(1.12rem, 1.45vw, 1.28rem); line-height: 1.62; color: #dfe4ec; }

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

.site-header {
  position: sticky; top: 0; z-index: 50;
  height: var(--header);
  background: rgba(10, 17, 29, 0.78);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 100%; }

.brand {
  font-family: var(--serif); font-weight: 600; font-size: 1.3rem; letter-spacing: -0.005em;
  color: var(--text); text-decoration: none; white-space: nowrap; display: inline-flex; align-items: center; gap: 11px;
}
.brand:hover { color: var(--text); }
.brand::before {
  content: ""; width: 24px; height: 24px; flex: none; background: var(--accent);
  -webkit-mask: url("../img/mark.svg") center / contain no-repeat;
  mask: url("../img/mark.svg") center / contain no-repeat;
}

.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px; }
.site-nav a {
  display: block; padding: 8px 12px; position: relative;
  color: #d3d9e3; text-decoration: none; font-size: 0.92rem; font-weight: 500; letter-spacing: 0.01em;
}
.site-nav a:hover { color: #fff; }
.site-nav a::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 2px; height: 1px;
  background: var(--accent); transform: scaleX(0); transition: transform 0.2s ease;
}
.site-nav a:hover::after, .site-nav a[aria-current="page"]::after { transform: scaleX(1); }
.site-nav a[aria-current="page"] { color: #fff; }
.site-nav .lang a { color: var(--accent); }

.nav-toggle {
  display: none; align-items: center; gap: 8px;
  background: transparent; border: 1px solid var(--border-strong); color: var(--text);
  font: 500 0.95rem var(--sans); padding: 8px 14px; border-radius: 4px; cursor: pointer;
}
.nav-toggle svg { width: 18px; height: 18px; }

@media (max-width: 900px) {
  .js .nav-toggle { display: inline-flex; }
  .js .site-nav {
    display: none; position: absolute; left: 0; right: 0; top: var(--header);
    background: rgba(10, 17, 29, 0.98); border-bottom: 1px solid var(--border); padding: 10px 16px 18px;
  }
  .js .site-nav[data-open="true"] { display: block; }
  .js .site-nav ul { flex-direction: column; }
  .js .site-nav a { padding: 12px 12px; font-size: 1.05rem; }
  .js .site-nav a::after { display: none; }
}

/* ---------- buttons and links ---------- */

.button {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 12px 22px; border-radius: 4px; font-weight: 600; font-size: 0.93rem; letter-spacing: 0.01em;
  text-decoration: none; border: 1px solid var(--accent);
  background: var(--accent); color: var(--accent-ink);
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.button:hover { background: var(--accent-strong); border-color: var(--accent-strong); color: var(--accent-ink); }
.button.ghost { background: transparent; color: var(--text); border-color: rgba(255, 255, 255, 0.35); }
.button.ghost:hover { border-color: var(--accent); color: #fff; background: rgba(201, 164, 92, 0.08); }
.button svg { width: 16px; height: 16px; }
.button-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 30px 0 22px; }

.profile-links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 0.95rem; }
.profile-links a { font-weight: 500; }

.arrow-link { font-weight: 600; font-size: 0.95rem; text-decoration: none; color: var(--accent); }
.arrow-link::after { content: " →"; }
.arrow-link:hover { color: var(--accent-strong); text-decoration: underline; }

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

.home .hero { margin-top: calc(-1 * var(--header)); }
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  min-height: min(94vh, 920px);
  display: flex; align-items: center;
}
.hero-media { position: absolute; inset: 0; z-index: -2; }
.hero-media img {
  width: 100%; height: 100%; object-fit: cover; object-position: 22% 50%;
  transform-origin: 30% 50%;
}
@media (prefers-reduced-motion: no-preference) {
  .hero-media img { animation: drift 40s ease-out both; }
}
@keyframes drift { from { transform: scale(1.1); } to { transform: scale(1); } }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(270deg, rgba(10, 17, 29, 0.94) 0%, rgba(10, 17, 29, 0.84) 36%, rgba(10, 17, 29, 0.3) 62%, rgba(10, 17, 29, 0) 85%),
    linear-gradient(0deg, var(--bg) 0%, rgba(10, 17, 29, 0) 26%);
}
.hero .wrap { width: 100%; display: flex; justify-content: flex-end; }
.hero-content { padding: calc(var(--header) + 64px) 0 104px; max-width: 590px; }
.hero h1 { font-size: clamp(3.2rem, 7.6vw, 6.2rem); font-weight: 600; line-height: 0.98; margin: 0; letter-spacing: -0.025em; }
.hero .role { color: #cdd4df; font-size: 1.02rem; margin: 0 0 6px; }
.hero-credit { position: absolute; left: 22px; bottom: 16px; margin: 0; font-size: 0.74rem; color: rgba(255, 255, 255, 0.55); }
@media (max-width: 700px) {
  .hero { min-height: auto; }
  .hero::after { background: linear-gradient(0deg, var(--bg) 0%, rgba(10, 17, 29, 0.82) 45%, rgba(10, 17, 29, 0.35) 100%); }
  .hero .wrap { justify-content: flex-start; }
  .hero-content { padding: calc(var(--header) + 48px) 0 72px; }
}

/* ---------- inner page banner ---------- */

.page-hero { position: relative; overflow: hidden; isolation: isolate; padding: 92px 0 60px; border-bottom: 1px solid var(--border); }
.page-hero .bg { position: absolute; inset: 0; z-index: -2; }
.page-hero .bg img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 35%; opacity: 0.5; }
.page-hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(10, 17, 29, 0.96) 0%, rgba(10, 17, 29, 0.78) 50%, rgba(10, 17, 29, 0.45) 100%),
    linear-gradient(0deg, var(--bg) 0%, rgba(10, 17, 29, 0) 40%);
}
.page-hero .lede { max-width: var(--measure); }

.page-head { padding: 76px 0 28px; }
.page-head .lede { max-width: var(--measure); }

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

.section { padding: 96px 0; }
.section.tight { padding: 64px 0; }
.section.alt { background: var(--bg-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 40px; }
.section-head h2 { margin: 0; }
@media (max-width: 600px) { .section { padding: 64px 0; } }

/* ---------- intro, portrait and facts ---------- */

.intro { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 64px; align-items: center; }
@media (max-width: 900px) { .intro { grid-template-columns: 1fr; gap: 32px; } }
.portrait-frame { position: relative; isolation: isolate; max-width: 340px; }
.portrait-frame img { border-radius: 4px; width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border: 1px solid var(--border); }
.portrait-frame::after {
  content: ""; position: absolute; left: -14px; bottom: -14px; width: 96px; height: 96px; z-index: -1;
  border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent);
}
.photo-credit { font-size: 0.75rem; color: var(--faint); margin-top: 22px; }

.glance {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 72px; border-top: 1px solid var(--border-strong); border-bottom: 1px solid var(--border);
}
.glance-item { padding: 28px 30px 30px 0; display: flex; flex-direction: column; }
.glance-item + .glance-item { padding-left: 30px; border-left: 1px solid var(--border); }
.glance-label { font: 600 0.74rem/1.4 var(--sans); letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent); margin: 0 0 12px; }
.glance-item p:not(.glance-label) { color: var(--muted); font-size: 0.98rem; }
.glance-num { font: 600 1.45em/1 var(--serif); color: var(--text); }
.glance-item .arrow-link { margin-top: auto; }
@media (max-width: 900px) {
  .glance { grid-template-columns: 1fr; }
  .glance-item { padding-right: 0; }
  .glance-item + .glance-item { padding-left: 0; border-left: 0; border-top: 1px solid var(--border); }
}

/* ---------- feature rows ---------- */

.features { display: grid; gap: 104px; }
.feature { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 60px; align-items: center; }
.feature.reverse { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
.feature.reverse > figure { order: 2; }
@media (max-width: 900px) {
  .feature, .feature.reverse { grid-template-columns: 1fr; gap: 26px; }
  .feature.reverse > figure { order: 0; }
  .features { gap: 72px; }
}
.feature h3 { font-size: clamp(1.6rem, 2.5vw, 2.1rem); letter-spacing: -0.015em; }
.feature p:not(.eyebrow) { color: var(--body); }
.feature.wide { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: start; gap: 8px 60px; }
.feature.wide > figure { grid-column: 1 / -1; margin-top: 28px; }
.feature.wide .wide-body { padding-top: 46px; }
@media (max-width: 900px) {
  .feature.wide { grid-template-columns: 1fr; gap: 0; }
  .feature.wide .wide-body { padding-top: 0; }
}
.feature .links { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 16px; }
.feature .tag {
  display: inline-block; font: 600 0.74rem var(--sans); letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 14px; padding-bottom: 6px; border-bottom: 1px solid rgba(201, 164, 92, 0.5);
}

/* ---------- figures ---------- */

figure { margin: 0; }
.frame { border-radius: 6px; overflow: hidden; border: 1px solid var(--border); background: #0c1422; box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4); }
.frame img { width: 100%; }
.frame.paper { background: #ffffff; padding: 14px; }
.frame.paper img { border-radius: 2px; }
.frame.cover { max-width: 300px; }
figcaption { font-size: 0.86rem; line-height: 1.5; color: var(--muted); margin-top: 12px; }
.credit { display: block; color: var(--faint); font-size: 0.78rem; margin-top: 4px; }

.cover-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; align-items: start; }
.figure-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-top: 32px; }
@media (max-width: 800px) { .figure-pair { grid-template-columns: 1fr; } }
.figure-wide { margin-top: 40px; }

/* ---------- cards ---------- */

.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 900px) { .cards { grid-template-columns: 1fr; } }
.card {
  position: relative; background: var(--bg-raised); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 26px; display: flex; flex-direction: column; overflow: hidden;
  transition: border-color 0.2s ease;
}
.card:hover { border-color: rgba(201, 164, 92, 0.55); }
.card h3 { font-size: 1.25rem; }
.card p { color: var(--muted); font-size: 0.97rem; }
.card .more { margin-top: auto; font-weight: 600; font-size: 0.95rem; }
.card .kicker { font: 600 0.72rem var(--sans); letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent); margin-bottom: 10px; }

.media-card { padding: 0; text-decoration: none; }
.media-card img { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; border-bottom: 1px solid var(--border); }
.media-card .body { padding: 22px 24px 24px; display: flex; flex-direction: column; flex: 1; }
.media-card h3 { color: var(--text); }
.media-card:hover h3 { color: var(--link-hover); }

/* ---------- programs and tools ---------- */

.programs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 1050px) { .programs { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .programs { grid-template-columns: 1fr; } }
.program {
  background: var(--bg-raised); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 26px 24px 24px; display: flex; flex-direction: column; color: inherit; text-decoration: none;
  transition: border-color 0.2s ease;
}
.program:hover { border-color: rgba(201, 164, 92, 0.55); color: inherit; }
.program .logo { height: 128px; display: flex; align-items: center; justify-content: center; margin-bottom: 22px; }
.program .logo img { max-height: 128px; width: auto; max-width: 100%; }
.program .logo img.wordmark { max-height: 54px; }
.program h3 { font-size: 1.2rem; margin-bottom: 8px; }
.program p { color: var(--muted); font-size: 0.95rem; margin-bottom: 14px; }
.program .more { margin-top: auto; color: var(--accent); font-weight: 600; font-size: 0.92rem; }
.program .more::after { content: " →"; }
.program:hover .more { color: var(--accent-strong); }

/* ---------- listen (podcast embed) ---------- */

.listen { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px; align-items: center; }
@media (max-width: 900px) { .listen { grid-template-columns: 1fr; gap: 24px; } }
.listen iframe { width: 100%; height: 232px; border: 0; border-radius: 12px; background: var(--bg-raised); }

/* ---------- news ---------- */

.news { list-style: none; margin: 0; padding: 0 0 0 26px; position: relative; }
.news::before { content: ""; position: absolute; left: 5px; top: 10px; bottom: 10px; width: 1px; background: var(--border-strong); }
.news li { position: relative; display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 18px; padding: 14px 0; }
.news li::before { content: ""; position: absolute; left: -25px; top: 22px; width: 9px; height: 9px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--bg); }
.section.alt .news li::before { box-shadow: 0 0 0 4px var(--bg-alt); }
.news time { font-size: 0.86rem; font-weight: 600; color: var(--accent); padding-top: 2px; white-space: nowrap; letter-spacing: 0.02em; }
.news p { margin: 0; color: var(--body); }
.news .muted { color: var(--faint); }
@media (max-width: 600px) { .news li { grid-template-columns: 1fr; gap: 2px; } }

/* ---------- research page ---------- */

.toc { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 28px 0 0; }
.toc a {
  display: inline-block; padding: 7px 14px; border: 1px solid var(--border-strong); border-radius: 4px;
  text-decoration: none; font-size: 0.88rem; font-weight: 500; color: var(--text); background: rgba(10, 17, 29, 0.55);
}
.toc a:hover { border-color: var(--accent); color: #fff; }

.theme { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 60px; align-items: start; }
.theme.flip > figure, .theme.flip > .theme-media { order: -1; }
.theme.no-figure { grid-template-columns: minmax(0, 1fr); }
.theme.no-figure .theme-text { max-width: var(--measure); }
@media (max-width: 960px) { .theme { grid-template-columns: 1fr; gap: 30px; } .theme.flip > figure, .theme.flip > .theme-media { order: 0; } }
.theme h2 { margin-bottom: 18px; }
.theme-number { font: 600 0.78rem var(--sans); letter-spacing: 0.18em; color: var(--accent); text-transform: uppercase; margin-bottom: 10px; }
.theme-media { display: grid; gap: 22px; }

.key-papers { margin: 26px 0 0; padding: 20px 22px; background: var(--bg-raised); border: 1px solid var(--border); border-left: 2px solid var(--accent); border-radius: 0 var(--radius) var(--radius) 0; font-size: 0.93rem; }
.key-papers h3 { font: 600 0.72rem var(--sans); letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent); margin: 0 0 10px; }
.key-papers ul { margin: 0; padding-left: 18px; color: var(--muted); }
.key-papers li { margin: 6px 0; }
.key-papers .library { margin: 12px 0 0; }

.callout-figures { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 24px; }
.datum { background: var(--bg-raised); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 20px; }
.datum .num { font: 600 2.3rem/1 var(--serif); color: var(--accent); }
.datum p { margin: 8px 0 0; color: var(--muted); font-size: 0.9rem; }

/* ---------- publications ---------- */

.pub-tools { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin: 6px 0 30px; }
.pub-tools input[type="search"] {
  flex: 1 1 260px; min-width: 0; padding: 12px 16px; border-radius: 4px;
  border: 1px solid var(--border-strong); background: var(--bg-raised); color: var(--text); font: inherit; font-size: 0.95rem;
}
.pub-tools input[type="search"]::placeholder { color: var(--faint); }
.pub-tools label { display: inline-flex; align-items: center; gap: 8px; font-size: 0.95rem; cursor: pointer; color: var(--muted); }
.pub-tools input[type="checkbox"] { accent-color: var(--accent); width: 16px; height: 16px; }
.pub-tools .count { font-size: 0.9rem; color: var(--faint); }
.pub-year { margin: 44px 0 6px; font: 600 1.4rem var(--serif); color: var(--accent); }
.pubs { list-style: none; margin: 0; padding: 0; }
.pub { padding: 16px 0; border-bottom: 1px solid var(--border); }
.pub-title { display: block; font-weight: 600; line-height: 1.42; margin-bottom: 4px; font-size: 1.01rem; }
.pub-title a { color: var(--text); text-decoration: none; }
.pub-title a:hover { color: var(--link-hover); text-decoration: underline; text-decoration-color: var(--accent); }
.pub-authors, .pub-venue { font-size: 0.92rem; color: var(--muted); }
.pub-authors strong { color: #fff; font-weight: 600; }
.pub-venue em { font-style: normal; color: #c9d0dc; }
.pub-links { display: inline-flex; gap: 12px; margin-left: 10px; font-size: 0.86rem; font-weight: 600; }
.pub[hidden], .pub-year[hidden], .pubs[hidden] { display: none; }

.pubs.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 16px; }
.pubs.grid .pub { background: var(--bg-raised); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px 22px; }
.pubs.grid .pub-links { display: flex; margin: 10px 0 0; }

/* ---------- people ---------- */

.people { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; list-style: none; padding: 0; margin: 0 0 40px; }
.person { background: var(--bg-raised); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px 22px; display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 4px 16px; align-items: center; }
.person::before {
  content: attr(data-initials); grid-row: span 2; width: 52px; height: 52px; border-radius: 50%;
  display: grid; place-items: center; font: 600 1.02rem var(--serif); color: var(--accent);
  background: #0c1524; border: 1px solid rgba(201, 164, 92, 0.6);
}
.person h4 { margin: 0; font-size: 1.08rem; }
.person .role { margin: 0; font-size: 0.86rem; color: var(--accent); font-weight: 600; }
.person p:not(.role) { grid-column: 1 / -1; margin: 10px 0 0; font-size: 0.92rem; color: var(--muted); }

.logo-band { background: var(--bg-raised); border: 1px solid var(--border); border-radius: var(--radius); padding: 40px 28px; display: flex; justify-content: center; align-items: center; }
.logo-band img { max-width: 440px; width: 100%; }

.callout {
  border: 1px solid var(--border); border-left: 3px solid var(--accent); border-radius: 0 var(--radius) var(--radius) 0;
  padding: 40px 44px; background: var(--bg-raised);
}
.callout h2, .callout h3 { margin-top: 0; }
.callout h3 { margin-top: 26px; font-size: 1.15rem; }
@media (max-width: 600px) { .callout { padding: 26px 22px; } }

/* ---------- undergraduate page ---------- */

.steps { margin: 18px 0 0; padding-left: 24px; }
.steps > li { margin: 0 0 18px; padding-left: 6px; }
.steps > li::marker { color: var(--accent); font-weight: 600; }
.tasks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin: 28px 0 24px; }
@media (max-width: 900px) { .tasks { grid-template-columns: 1fr; } }
.task { background: var(--bg-raised); border: 1px solid var(--border); border-top: 3px solid var(--accent); border-radius: var(--radius); padding: 26px 28px; display: flex; flex-direction: column; }
.task .meta { font: 600 0.74rem/1.4 var(--sans); letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent); margin: 0 0 10px; }
.task h3 { font-size: 1.45rem; }
.task ol { padding-left: 22px; margin: 0 0 18px; }
.task li { margin: 9px 0; padding-left: 4px; }
.task li::marker { color: var(--accent); font-weight: 600; }
.task .send { margin: auto 0 0; padding-top: 14px; border-top: 1px solid var(--border); color: var(--text); font-size: 0.95rem; }
.formula { font-family: var(--serif); font-size: 1.05em; white-space: nowrap; color: var(--text); }
.callout.optional { padding: 26px 30px; }
.callout.optional .eyebrow { margin-bottom: 8px; }
.callout.optional p:last-child { margin-bottom: 0; }
.checklist { padding-left: 22px; }
.checklist li { margin: 6px 0; }
.checklist li::marker { color: var(--accent); }

/* ---------- CV ---------- */

.cv-section { padding: 34px 0; border-top: 1px solid var(--border); }
.cv-section h2 { font-size: 1.55rem; margin-bottom: 18px; }
.cv-section h3 { font-size: 1.1rem; margin: 22px 0 8px; color: var(--accent); }
.cv-list { list-style: none; margin: 0; padding: 0; }
.cv-list > li { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 20px; padding: 8px 0; }
.cv-list .when { color: var(--faint); font-variant-numeric: tabular-nums; font-size: 0.93rem; }
.cv-list .what strong { font-weight: 600; color: #fff; }
.cv-list .what .detail { display: block; color: var(--muted); font-size: 0.92rem; }
@media (max-width: 600px) { .cv-list > li { grid-template-columns: 1fr; gap: 0; } }
.cv-pubs { margin: 0; padding-left: 30px; font-size: 0.92rem; color: #d1d7e2; }
.cv-pubs li { margin: 7px 0; }
.cv-pubs strong { font-weight: 600; color: #fff; }
.cv-contact { display: flex; flex-wrap: wrap; gap: 4px 24px; color: var(--muted); font-size: 0.95rem; margin: 0 0 10px; padding: 0; list-style: none; }

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

.site-footer { margin-top: 40px; padding: 48px 0 56px; font-size: 0.92rem; color: var(--muted); border-top: 1px solid var(--border); background: #080e18; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; }
.site-footer p { margin: 0 0 4px; }
.site-footer strong { color: var(--text); font-family: var(--serif); font-size: 1.05rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 20px; }

/* ---------- reveal on scroll ---------- */

@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.7s ease, transform 0.7s ease; }
  .js .reveal.in { opacity: 1; transform: none; }
}

/* ---------- print (used for the CV PDF) ---------- */

@page { size: Letter; margin: 0.6in 0.65in; }

@media print {
  :root {
    --bg: #fff; --bg-alt: #fff; --bg-raised: #fff; --surface: #fff; --surface-strong: #fff;
    --text: #000; --body: #000; --muted: #333; --faint: #444;
    --border: #bbb; --border-strong: #999; --accent: #000; --link: #000;
    color-scheme: light;
  }
  html, body { background: #fff !important; }
  body { color: #000; font-size: 10pt; line-height: 1.4; }
  .site-header, .site-footer, .skip-link, .no-print, .button-row { display: none !important; }
  a { color: #000; text-decoration: none; }
  h1, h2, h3, h4 { color: #000; }
  .eyebrow { color: #000; }
  .page-head { padding: 0 0 8pt; }
  h1 { font-size: 22pt; margin: 0; }
  .cv-section { padding: 10pt 0 6pt; border-top: 1px solid #bbb; }
  .cv-section h2 { font-size: 13pt; margin-bottom: 6pt; break-after: avoid; }
  .cv-section h3 { color: #000; font-size: 11pt; }
  .cv-list > li { grid-template-columns: 1.1in minmax(0, 1fr); gap: 10pt; padding: 2pt 0; break-inside: avoid; }
  .cv-list .when, .cv-list .what .detail { font-size: 9.5pt; color: #333; }
  .cv-list .what strong, .cv-pubs strong, .cv-pubs { color: #000; }
  .cv-pubs { font-size: 9.5pt; }
  .cv-pubs li { margin: 2pt 0; break-inside: avoid; }
  .cv-contact { color: #000; }
  .wrap { max-width: none; padding: 0; }
  .js .reveal { opacity: 1 !important; transform: none !important; }
}
