/* Matsui Laboratory: site styles
   Plain CSS, no build step. Colors and fonts are set once as tokens below.
   The palette is Hunter College purple and gold on a cool paper white,
   with a dark theme that follows the visitor's system setting. */

:root {
  --paper: #f7f6fa;
  --surface: #ffffff;
  --surface-2: #efedf5;
  --ink: #17131f;
  --text: #2c2835;
  --muted: #625c70;
  --line: #e1dee9;
  --line-strong: #c9c4d6;
  --violet: #5b2a9d;          /* Hunter purple */
  --violet-ink: #ffffff;
  --violet-soft: #efe9fa;
  --gold: #8a5a00;            /* gold, darkened for text on light */
  --gold-bright: #f3c14b;     /* gold on dark surfaces */
  --night: #140e22;           /* hero, footer and call-to-action panels */
  --night-2: #2c1759;
  --on-night: #efeaf9;
  --on-night-muted: #b9afd0;
  /* hero, call-to-action and footer panels */
  --panel: #ece6f8;
  --panel-2: #e4ddf3;
  --panel-ink: #17131f;
  --panel-text: #3b3350;
  --panel-muted: #5f5774;
  --panel-kicker: #5b2a9d;
  --panel-line: rgba(23, 19, 31, .14);
  --panel-ghost: rgba(23, 19, 31, .35);
  --panel-ghost-hover: rgba(23, 19, 31, .05);
  --field: #b8860b;
  --fbm-a: #45208a; --fbm-b: #6a3cc0; --fbm-c: #b39af0;
  --radius: 10px;
  --maxw: 1140px;
  --font-sans: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-serif: "STIX Two Text", "STIX Two", Charter, "Iowan Old Style", Georgia, "Times New Roman", serif;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #100c18;
    --surface: #18131f;
    --surface-2: #211a2c;
    --ink: #f4f1f9;
    --text: #dcd7e5;
    --muted: #a69fb4;
    --line: #2b2438;
    --line-strong: #40364f;
    --violet: #c3aaf3;
    --violet-ink: #1b1030;
    --violet-soft: #251a3d;
    --gold: #f3c14b;
    --night: #0b0713;
    --night-2: #241349;
    --panel: #0b0713;
    --panel-2: #0b0713;
    --panel-ink: #ffffff;
    --panel-text: #d6cdea;
    --panel-muted: #b9afd0;
    --panel-kicker: #cdbcf7;
    --panel-line: rgba(255, 255, 255, .14);
    --panel-ghost: rgba(255, 255, 255, .4);
    --panel-ghost-hover: rgba(255, 255, 255, .07);
    --field: #f3c14b;
    --fbm-a: #7a4fd0; --fbm-b: #9c78e6; --fbm-c: #d5c5fa;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #100c18;
  --surface: #18131f;
  --surface-2: #211a2c;
  --ink: #f4f1f9;
  --text: #dcd7e5;
  --muted: #a69fb4;
  --line: #2b2438;
  --line-strong: #40364f;
  --violet: #c3aaf3;
  --violet-ink: #1b1030;
  --violet-soft: #251a3d;
  --gold: #f3c14b;
  --night: #0b0713;
  --night-2: #241349;
  --panel: #0b0713;
  --panel-2: #0b0713;
  --panel-ink: #ffffff;
  --panel-text: #d6cdea;
  --panel-muted: #b9afd0;
  --panel-kicker: #cdbcf7;
  --panel-line: rgba(255, 255, 255, .14);
  --panel-ghost: rgba(255, 255, 255, .4);
  --panel-ghost-hover: rgba(255, 255, 255, .07);
  --field: #f3c14b;
  --fbm-a: #7a4fd0; --fbm-b: #9c78e6; --fbm-c: #d5c5fa;
  color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font: 400 1.0625rem/1.65 var(--font-sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
[hidden] { display: none !important; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--violet); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--violet); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3, h4 { color: var(--ink); margin: 0 0 .5em; text-wrap: balance; }
h1, h2 { font-family: var(--font-serif); font-weight: 500; letter-spacing: -.015em; line-height: 1.1; }
h1 { font-size: clamp(2.5rem, 5.6vw, 4rem); }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.35rem); }
h3 { font-size: 1.08rem; font-weight: 650; line-height: 1.3; }
p { margin: 0 0 1em; }
sub, sup { line-height: 0; }
.skip-link {
  position: absolute; left: 12px; top: -56px; z-index: 100;
  background: var(--violet); color: var(--violet-ink); padding: 9px 14px; border-radius: 8px;
  font-weight: 600; text-decoration: none; transition: top .15s;
}
.skip-link:focus { top: 12px; }
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.label { display: block; font-size: .92rem; font-weight: 650; color: var(--violet); margin-bottom: .5rem; }
.lead { font-size: 1.2rem; line-height: 1.55; color: var(--muted); max-width: 60ch; }
.muted { color: var(--muted); }
.small { font-size: .92rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--paper) 90%, transparent);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand-mark { width: 34px; height: 38px; flex: none; }
.bm-a { fill: #45208a; } .bm-b { fill: #6a3cc0; } .bm-c { fill: #b39af0; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { font-family: var(--font-serif); font-weight: 600; font-size: 1.22rem; letter-spacing: -.01em; }
.brand-sub { font-size: .8rem; color: var(--muted); }
.nav-toggle {
  display: none; align-items: center; justify-content: center; width: 44px; height: 44px;
  border: 1px solid var(--line-strong); border-radius: 8px; background: var(--surface); color: var(--ink); cursor: pointer;
}
.nav-toggle svg { width: 22px; height: 22px; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.site-nav a {
  position: relative; display: block; padding: 10px 14px; color: var(--text); text-decoration: none;
  font-size: .98rem; font-weight: 550; border-radius: 6px;
}
.site-nav a:hover { color: var(--violet); }
.site-nav a[aria-current="page"] { color: var(--ink); }
.site-nav a[aria-current="page"]::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 3px; height: 2px; background: var(--violet); border-radius: 2px;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .bm-a { fill: #7a4fd0; } :root:not([data-theme="light"]) .bm-b { fill: #9c78e6; } :root:not([data-theme="light"]) .bm-c { fill: #d5c5fa; } }
:root[data-theme="dark"] .bm-a { fill: #7a4fd0; } :root[data-theme="dark"] .bm-b { fill: #9c78e6; } :root[data-theme="dark"] .bm-c { fill: #d5c5fa; }

/* Light / dark switch */
.brand { order: 1; }
.site-nav { order: 2; margin-left: auto; }
.theme-toggle {
  order: 3; display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: 40px; height: 40px; border: 1px solid var(--line-strong); border-radius: 8px;
  background: var(--surface); color: var(--ink); cursor: pointer; transition: border-color .15s, color .15s;
}
.theme-toggle:hover { border-color: var(--violet); color: var(--violet); }
.theme-toggle svg { width: 19px; height: 19px; }
.theme-toggle .sun { display: none; }
:root[data-theme="dark"] .theme-toggle .sun { display: block; }
:root[data-theme="dark"] .theme-toggle .moon { display: none; }
.nav-toggle { order: 4; }

@media (max-width: 820px) {
  .nav-toggle { display: inline-flex; }
  .theme-toggle { margin-left: auto; }
  .site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%;
    background: var(--surface); border-bottom: 1px solid var(--line); box-shadow: 0 18px 30px rgba(20, 14, 34, .12); }
  .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; gap: 0; padding: 6px 12px 14px; }
  .site-nav a { padding: 13px 14px; font-size: 1.05rem; border-bottom: 1px solid var(--line); border-radius: 0; }
  .site-nav li:last-child a { border-bottom: 0; }
  .site-nav a[aria-current="page"]::after { left: 0; right: auto; top: 12px; bottom: 12px; width: 3px; height: auto; }
  /* Without JavaScript the menu simply stays open */
  .no-js .site-nav { display: block; position: static; box-shadow: none; border: 0; }
  .no-js .nav-toggle { display: none; }
  .no-js .site-header .container { flex-wrap: wrap; }
}

/* ---------- Hero (home) ---------- */
.hero {
  position: relative; overflow: hidden; color: var(--panel-text);
  background: var(--panel);
  border-bottom: 1px solid var(--panel-line);
}
.hero .container {
  position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr);
  gap: 32px; align-items: center; padding-top: 84px; padding-bottom: 96px;
}
.hero-kicker { font-size: 1rem; font-weight: 550; color: var(--panel-kicker); margin: 0 0 18px; }
.hero h1 { color: var(--panel-ink); font-size: clamp(3rem, 7.4vw, 5.6rem); line-height: .98; letter-spacing: -.025em; margin-bottom: .32em; }
.hero .lead { color: var(--panel-text); font-size: clamp(1.12rem, 1.7vw, 1.3rem); max-width: 34em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-figure { margin: 0; justify-self: center; width: 100%; max-width: 400px; }
.hero-art { width: 100%; display: block; overflow: visible; }
.hero-figure figcaption {
  font: italic 400 .98rem/1.4 var(--font-serif); color: var(--panel-muted); text-align: center; margin-top: 4px;
}
/* The alternating magnetic field: a sine wave that runs the width of the hero */
.field { position: absolute; left: 0; right: 0; top: 50%; height: 150px; margin-top: -92px; z-index: 1; width: 100%; pointer-events: none; }
.field { -webkit-mask-image: linear-gradient(90deg, transparent 40%, #000 64%); mask-image: linear-gradient(90deg, transparent 40%, #000 64%); }
.field path { fill: none; stroke: var(--field); stroke-width: 1.4; stroke-opacity: .5; vector-effect: non-scaling-stroke; }
.field .field-2 { stroke-opacity: .18; }
.field-move { animation: field 5.6s linear infinite; }
.cage-rock { animation: rock 2.8s ease-in-out infinite alternate; transform-origin: 240px 210px; }
.cargo { animation: cargo 2.8s ease-in-out infinite alternate; transform-box: fill-box; transform-origin: center; }
@keyframes field { to { transform: translateX(-240px); } }
@keyframes rock { from { transform: rotate(-5deg); } to { transform: rotate(5deg); } }
@keyframes cargo { from { opacity: .7; transform: scale(.92); } to { opacity: 1; transform: scale(1.12); } }
@media (max-width: 860px) {
  .hero .container { grid-template-columns: 1fr; padding-top: 44px; padding-bottom: 60px; gap: 8px; }
  .hero-figure { max-width: 250px; order: -1; justify-self: start; margin-left: -14px; }
  .hero-figure figcaption { display: none; }
  .field { top: 150px; margin-top: 0; height: 110px; -webkit-mask-image: linear-gradient(90deg, #000 30%, transparent 95%); mask-image: linear-gradient(90deg, #000 30%, transparent 95%); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 12px 20px; border-radius: 8px;
  font-weight: 650; font-size: 1rem; line-height: 1.2; text-decoration: none; border: 1.5px solid transparent;
  transition: background .15s, border-color .15s, color .15s;
}
.btn svg { width: 16px; height: 16px; }
.btn-primary { background: var(--gold-bright); color: #1d1503; }
.btn-primary:hover { background: #f8d478; }
.btn-ghost { border-color: var(--panel-ghost); color: var(--panel-ink); }
.btn-ghost:hover { border-color: var(--panel-ink); background: var(--panel-ghost-hover); }
.btn-solid { background: var(--violet); color: var(--violet-ink); }
.btn-solid:hover { background: color-mix(in srgb, var(--violet) 86%, var(--ink)); }

/* ---------- Page header (inner pages) ---------- */
.page-head { padding: 64px 0 40px; border-bottom: 1px solid var(--line); background: var(--surface); }
.page-head h1 { margin-bottom: .2em; }
.page-head p { color: var(--muted); max-width: 62ch; margin: 0; font-size: 1.2rem; line-height: 1.5; }
.crumbs { font-size: .95rem; margin-bottom: 18px; color: var(--muted); }
.crumbs a { font-weight: 600; text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }

/* ---------- Sections ---------- */
.section { padding: 80px 0; }
.section.alt { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px; margin-bottom: 28px; }
.section-head h2 { margin: 0; }
.more { font-weight: 650; text-decoration: none; white-space: nowrap; }
.more:hover { text-decoration: underline; }
.prose { max-width: 70ch; }
.prose p { margin-bottom: 1.15em; }
.two-col { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 64px; align-items: start; }
@media (max-width: 900px) { .two-col { grid-template-columns: 1fr; gap: 36px; } .section { padding: 56px 0; } }

/* At a glance: a ruled list of facts */
.glance { margin: 0; border-top: 2px solid var(--ink); }
.glance > div { display: grid; grid-template-columns: 9.5rem 1fr; gap: 16px; padding: 15px 0; border-bottom: 1px solid var(--line); }
.glance dt { color: var(--muted); font-size: .95rem; padding-top: .1em; }
.glance dd { margin: 0; color: var(--ink); font-weight: 550; }
.glance dd span { display: block; font-weight: 400; color: var(--muted); font-size: .95rem; }
@media (max-width: 420px) { .glance > div { grid-template-columns: 1fr; gap: 2px; } }

/* Research areas: a ruled, two-column list */
.areas { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 64px; border-top: 2px solid var(--ink); }
.areas li { display: grid; grid-template-columns: 44px 1fr; gap: 18px; padding: 24px 0; border-bottom: 1px solid var(--line); }
.areas svg { width: 34px; height: 34px; color: var(--violet); margin-top: 2px; }
.areas h3 { margin: 0 0 .3em; font-size: 1.14rem; }
.areas p { margin: 0; color: var(--muted); font-size: 1rem; line-height: 1.55; }
@media (max-width: 760px) { .areas { grid-template-columns: 1fr; } }

/* ---------- Publications ---------- */
.pub-list { list-style: none; margin: 0; padding: 0; }
.pub { padding: 20px 0; border-bottom: 1px solid var(--line); }
.pub-title { display: block; font-family: var(--font-serif); font-weight: 500; color: var(--ink); font-size: 1.24rem; line-height: 1.32; margin-bottom: 6px; text-wrap: pretty; }
.pub-authors { font-size: .98rem; color: var(--text); }
.pub-authors b { color: var(--ink); font-weight: 700; }
.pub-source { font-size: .98rem; color: var(--muted); }
.pub-source i { color: var(--text); }
.pub-links { display: flex; flex-wrap: wrap; gap: 4px 18px; margin-top: 8px; }
.pub-links a { font-size: .92rem; font-weight: 650; text-decoration: none; }
.pub-links a:hover { text-decoration: underline; }
.pub details { display: inline; }
.pub details summary { display: inline; cursor: pointer; color: var(--violet); font-size: .92rem; }
.pub-recent { border-top: 2px solid var(--ink); }
.pub-recent .pub { display: grid; grid-template-columns: 5.5rem 1fr; gap: 12px; }
.pub-recent .y, .pub-year > h2 { font-family: var(--font-serif); font-weight: 500; font-size: 1.5rem; line-height: 1.2; color: var(--violet); letter-spacing: 0; }
@media (max-width: 560px) { .pub-recent .pub { grid-template-columns: 1fr; gap: 2px; } }

.pub-tools { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin-bottom: 18px; }
.search {
  flex: 1 1 300px; max-width: 560px; display: flex; align-items: center; gap: 10px; background: var(--surface);
  border: 1.5px solid var(--line-strong); border-radius: 8px; padding: 0 14px;
}
.search svg { width: 18px; height: 18px; color: var(--muted); flex: none; }
.search input { flex: 1; border: 0; background: transparent; color: var(--ink); font: inherit; padding: 12px 0; min-width: 0; }
.search input::placeholder { color: var(--muted); opacity: 1; }
.search input:focus { outline: none; }
.search:focus-within { border-color: var(--violet); box-shadow: 0 0 0 3px var(--violet-soft); }
.pub-count { font-size: .98rem; color: var(--muted); }
.year-nav { display: flex; flex-wrap: wrap; gap: 2px 4px; margin: 0 -8px 22px; }
.year-nav a { font-size: .95rem; font-weight: 550; padding: 4px 8px; border-radius: 6px; text-decoration: none; color: var(--text); font-variant-numeric: tabular-nums; }
.year-nav a:hover { background: var(--violet-soft); color: var(--violet); }
.pub-note { max-width: 78ch; }
.pub-year { display: grid; grid-template-columns: 6.5rem minmax(0, 1fr); gap: 16px; border-top: 2px solid var(--ink); margin-top: 44px; }
.pub-year > h2 { position: sticky; top: 84px; align-self: start; margin: 0; padding-top: 18px; }
.pub-year .pub:last-child { border-bottom: 0; }
.empty { display: none; padding: 40px 0; color: var(--muted); }
@media (max-width: 640px) { .pub-year { grid-template-columns: 1fr; gap: 0; } .pub-year > h2 { position: static; } }

/* ---------- Call to action ---------- */
.cta-band { padding: 0 0 80px; }
.cta {
  border-radius: 14px; padding: 44px; color: var(--panel-text); border: 1px solid var(--panel-line);
  background: var(--panel);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 22px 32px;
}
.cta h2 { color: var(--panel-ink); margin: 0 0 .25em; }
.cta p { margin: 0; color: var(--panel-text); max-width: 54ch; }
@media (max-width: 640px) { .cta { padding: 30px 24px; } .cta-band { padding-bottom: 56px; } }

/* ---------- Research ---------- */
.with-toc { display: grid; grid-template-columns: minmax(0, 1fr) 230px; gap: 72px; align-items: start; }
.with-toc > * { min-width: 0; }
.toc { position: sticky; top: 96px; border-left: 2px solid var(--line); padding-left: 18px; }
.toc a { display: block; padding: 6px 0; color: var(--muted); text-decoration: none; font-size: .98rem; line-height: 1.35; }
.toc a:hover { color: var(--violet); }
@media (max-width: 900px) { .with-toc { grid-template-columns: minmax(0, 1fr); gap: 0; } .with-toc .toc { display: none; } }
.project { margin-top: 72px; padding-top: 28px; border-top: 2px solid var(--ink); }
.project-num { display: block; font-size: .98rem; font-weight: 650; color: var(--violet); margin-bottom: .5rem; }
.project .question { font: italic 400 1.3rem/1.45 var(--font-serif); color: var(--text); margin: 0 0 1.2em; max-width: 34em; }
figure.fig { margin: 36px 0; }
figure.fig a { display: block; }
figure.fig img { width: 100%; border-radius: 6px; background: #fff; border: 1px solid var(--line); padding: 14px; }
figure.fig figcaption { font-size: .95rem; line-height: 1.6; color: var(--muted); margin-top: 12px; max-width: 78ch; }
figure.fig figcaption strong { color: var(--ink); }
.interest-list { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); max-width: 70ch; }
.interest-list li { padding: 13px 0; border-bottom: 1px solid var(--line); color: var(--ink); font-weight: 500; }
.interest-list + p { margin-top: 14px; }
.cite { font-size: .93em; color: var(--muted); }

/* ---------- Team ---------- */
.pi { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 48px; align-items: start; }
.pi-photo { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius); }
.pi h2 { margin-bottom: .15em; }
.pi .role { color: var(--violet); font-weight: 600; margin-bottom: 1em; }
.pi-bio { max-width: 68ch; }
.pi-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 0 44px; margin-top: 10px; }
.pi-cols h3 { font-size: .95rem; font-weight: 650; color: var(--muted); margin: 22px 0 0; padding-bottom: 8px; border-bottom: 2px solid var(--ink); }
.pi-cols ul { margin: 0; padding: 0; list-style: none; font-size: 1rem; }
.pi-cols li { padding: 8px 0; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
.pi-cols li span { color: var(--muted); white-space: nowrap; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.chip {
  display: inline-flex; align-items: center; gap: 7px; padding: 8px 14px; border-radius: 8px; font-size: .95rem; font-weight: 600;
  color: var(--ink); text-decoration: none; border: 1.5px solid var(--line-strong); background: var(--surface);
}
.chip:hover { border-color: var(--violet); color: var(--violet); }
.chip svg { width: 14px; height: 14px; }
@media (max-width: 820px) {
  .pi { grid-template-columns: 1fr; gap: 24px; }
  .pi-photo { max-width: 220px; }
  .pi-cols { grid-template-columns: 1fr; }
}
.team-group { margin-top: 64px; }
.team-group > h2 { font-size: 1.6rem; padding-bottom: 12px; border-bottom: 2px solid var(--ink); margin-bottom: 0; }
.people { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); column-gap: 44px; }
.person { border-bottom: 1px solid var(--line); }
.person a { display: grid; grid-template-columns: 64px 1fr auto; gap: 16px; align-items: center; padding: 18px 0; text-decoration: none; color: inherit; }
.person h3 { margin: 0 0 2px; font-size: 1.12rem; }
.person p { margin: 0; color: var(--muted); font-size: .98rem; line-height: 1.4; }
.person .go { color: var(--muted); display: flex; }
.person .go svg { width: 18px; height: 18px; }
.person a:hover h3, .person a:hover .go { color: var(--violet); }
.avatar {
  width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; flex: none;
  font: 500 1.4rem var(--font-serif); color: var(--violet); background: var(--violet-soft);
}
img.avatar { object-fit: cover; object-position: center 20%; background: var(--violet-soft); }
.avatar.placeholder { background: transparent; color: var(--muted); border: 1.5px dashed var(--line-strong); }

/* Member profile page */
.profile { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 48px; align-items: start; }
.profile .avatar { width: 150px; height: 150px; font-size: 3rem; }
.profile dl { margin: 0; max-width: 70ch; border-top: 2px solid var(--ink); }
.profile dl > div { padding: 18px 0; border-bottom: 1px solid var(--line); }
.profile dt { font-size: .95rem; font-weight: 650; color: var(--muted); margin-bottom: 4px; }
.profile dd { margin: 0; overflow-wrap: anywhere; }
.profile dd ul { margin: 0; padding-left: 1.1em; }
.profile dd ul.pub-list { padding-left: 0; }
.profile dd li + li { margin-top: 4px; }
.profile dd p:last-child { margin-bottom: 0; }
.profile .pub-title { font-size: 1.08rem; margin-bottom: 2px; }
.profile dd .pub { padding: 10px 0; border: 0; }
.profile dd .pub:first-child { padding-top: 2px; }
.notice { background: var(--violet-soft); border-left: 3px solid var(--violet); padding: 14px 18px; border-radius: 0 8px 8px 0; margin: 0 0 32px; max-width: 78ch; }
.back { display: inline-block; text-decoration: none; font-weight: 650; margin-top: 40px; }
.back:hover { text-decoration: underline; }
@media (max-width: 700px) { .profile { grid-template-columns: 1fr; gap: 24px; } .profile .avatar { width: 96px; height: 96px; font-size: 2rem; } }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px; }
.contact-block { border-top: 2px solid var(--ink); padding-top: 22px; }
.contact-block h2 { font-size: 1.5rem; margin-bottom: .15em; }
.contact-block > p.muted { margin-bottom: 14px; }
.contact-item { display: grid; grid-template-columns: 26px 1fr; gap: 14px; padding: 14px 0; border-top: 1px solid var(--line); }
.contact-item svg { width: 24px; height: 24px; color: var(--violet); margin-top: 2px; }
.contact-item h3 { margin: 0 0 2px; font-size: .95rem; font-weight: 650; color: var(--muted); }
.contact-item p, .contact-item address { margin: 0; font-style: normal; color: var(--ink); }
.contact-item address + p { margin-top: 8px; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; gap: 36px; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--panel-2); color: var(--panel-muted); border-top: 1px solid var(--panel-line); padding: 56px 0 28px; font-size: .98rem; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1.2fr; gap: 36px; }
.site-footer .brand { color: var(--panel-ink); }
.site-footer .brand-sub { color: var(--panel-muted); }
.site-footer .bm-a { fill: var(--fbm-a); } .site-footer .bm-b { fill: var(--fbm-b); } .site-footer .bm-c { fill: var(--fbm-c); }
.site-footer h3 { font-size: .95rem; font-weight: 650; color: var(--panel-ink); margin-bottom: 10px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { padding: 4px 0; }
.site-footer a { color: var(--panel-text); text-decoration: none; }
.site-footer a:hover { color: var(--panel-ink); text-decoration: underline; }
.site-footer :focus-visible { outline-color: var(--violet); }
.footer-about { margin: 16px 0 0; max-width: 36ch; }
.footer-bottom { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--panel-line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; font-size: .92rem; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; gap: 28px; } }
.hero :focus-visible, .cta :focus-visible { outline-color: var(--violet); }

/* ---------- Utilities ---------- */
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.center { text-align: center; }

/* Contact call-to-action with two buttons; Team page "apply" card */
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.person-apply h3 { color: var(--violet); }
