/* ==========================================================================
   Hodges Group — site styles
   Palette and type match the approved design: dark ground, serif headlines,
   mono labels, furnace-amber accent.
   ========================================================================== */

:root {
  /* light body */
  --bg: #f4f3ef;
  --panel: #ffffff;
  --line: #dcdad3;
  --line-strong: #c4c1b8;
  --text: #15171a;
  --muted: #4a4e54;
  --dim: #7d8288;
  --amber: #d98d1f;        /* darker amber so it reads on white */
  --amber-ink: #15171a;

  /* dark bands: nav, hero, page heads, footer */
  --d-bg: #0f1113;
  --d-panel: #1a1d21;
  --d-line: #2a2d31;
  --d-line-strong: #3a3e43;
  --d-text: #ecebe6;
  --d-muted: #b9bcbf;
  --d-dim: #7d8288;
  --d-amber: #f0a63a;

  --serif: "Space Grotesk", "Archivo", "Helvetica Neue", Helvetica, Arial, sans-serif;  /* display face (variable name kept for compatibility) */
  --sans: "Archivo", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: "IBM Plex Mono", "SF Mono", Menlo, Consolas, monospace;

  --gutter: 56px;
  --max: 1440px;
}
@media (max-width: 900px) { :root { --gutter: 28px; } }
@media (max-width: 600px) { :root { --gutter: 20px; } }

* { box-sizing: border-box; }
html { color-scheme: light; scroll-behavior: smooth; }
/* any block that carries .dark re-maps the tokens to the dark set */
.dark, .nav, .hero, .page-head, .footer, .group-photo, .area-media, .photo {
  --bg: var(--d-bg); --panel: var(--d-panel); --line: var(--d-line); --line-strong: var(--d-line-strong);
  --text: var(--d-text); --muted: var(--d-muted); --dim: var(--d-dim); --amber: var(--d-amber); --amber-ink: var(--d-bg);
}
.nav, .hero, .page-head, .footer { background: var(--d-bg); color: var(--d-text); }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--sans); font-size: 16px; line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
a:hover { color: var(--amber); }
img { max-width: 100%; display: block; }
h1, h2, h3 { font-family: var(--serif); font-weight: 700; margin: 0; letter-spacing: -0.02em; text-wrap: pretty; }
p { margin: 0; }
b, strong { font-weight: 600; color: var(--text); }
sub { font-size: 0.72em; line-height: 0; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--amber); color: var(--amber-ink); padding: 8px 12px; }
.skip:focus { left: 8px; z-index: 100; }

/* --- type helpers -------------------------------------------------------- */
.mono { font-family: var(--mono); }
.eyebrow, .label { font-family: var(--sans); font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }
.eyebrow { font-size: 12px; color: var(--dim); }
.eyebrow.amber { color: var(--amber); }
.kicker { font-family: var(--sans); font-weight: 500; font-size: 14px; color: var(--amber); letter-spacing: 0.02em; }
.muted { color: var(--muted); }
.dim { color: var(--dim); }
.tags { font-family: var(--sans); font-weight: 600; font-size: 11px; color: var(--amber); letter-spacing: 0.04em; line-height: 1.7; text-transform: uppercase; }
.more { font-family: var(--sans); font-weight: 500; font-size: 13px; letter-spacing: 0.01em; }

/* --- buttons -------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 48px; padding: 0 22px; font-family: var(--sans); font-weight: 500; font-size: 15px;
  letter-spacing: 0.01em; white-space: nowrap;
  border: 1px solid var(--line-strong); color: var(--text); transition: background .15s, color .15s;
}
.btn:hover { background: var(--text); color: var(--bg); }
.btn-amber { background: var(--amber); color: var(--amber-ink); border-color: var(--amber); font-weight: 500; }
.btn-amber:hover { filter: brightness(1.08); color: var(--amber-ink); }
.btn-dark { background: var(--bg); color: var(--text); border-color: var(--bg); }
.btn-dark:hover { background: #1f2327; color: var(--text); }

/* --- layout primitives ---------------------------------------------------- */
.wrap { padding-left: var(--gutter); padding-right: var(--gutter); }
.rule { border-top: 1px solid var(--line); }
.section { padding: 56px var(--gutter); border-bottom: 1px solid var(--line); }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 24px; margin-bottom: 24px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-2 > * + * { border-left: 1px solid var(--line); }
@media (max-width: 900px) {
  .grid-2 { grid-template-columns: 1fr; }
  .grid-2 > * + * { border-left: 0; border-top: 1px solid var(--line); }
}

/* --- nav ------------------------------------------------------------------ */
.nav {
  position: sticky; top: 0; z-index: 50; background: rgba(15, 17, 19, 0.96); backdrop-filter: blur(10px);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 16px var(--gutter); border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 12px; color: var(--amber); }
.brand-mark { flex-shrink: 0; width: 42px; height: 42px; display: block; }
.brand-name { font-family: var(--serif); font-size: 20px; font-weight: 700; color: var(--text); }
.brand-sub { font-family: var(--sans); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--dim); padding-left: 12px; border-left: 1px solid var(--line); }
.nav-menu { display: flex; gap: 28px; font-family: var(--sans); font-weight: 500; font-size: 14px; letter-spacing: 0.01em; }
.nav-menu a[aria-current="page"] { color: var(--amber); border-bottom: 1px solid var(--amber); padding-bottom: 2px; }
.nav-join { color: var(--amber); }
.nav-toggle { display: none; background: none; border: 0; color: var(--text); width: 44px; height: 44px; align-items: center; justify-content: center; cursor: pointer; margin-right: -10px; }
@media (max-width: 900px) {
  .brand-sub { display: none; }
  .nav-toggle { display: inline-flex; }
  .nav-menu { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; gap: 0; background: var(--bg); border-bottom: 1px solid var(--line); }
  .nav-menu.open { display: flex; }
  .nav-menu a { padding: 16px var(--gutter); border-top: 1px solid var(--line); }
  .nav-menu a[aria-current="page"] { border-bottom: 0; padding-bottom: 16px; }
}

/* --- hero ----------------------------------------------------------------- */
.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); min-height: 680px; display: flex; align-items: center; justify-content: center; text-align: center; }
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg .structure { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0.38; }
.hero-bg::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 60% 70% at 50% 50%, rgba(15,17,19,0.82) 0%, rgba(15,17,19,0.55) 55%, rgba(15,17,19,0.25) 100%); }
/* Optical photograph backdrop (site.yml → hero.photo). Darkened at export; the
   overlay keeps the headline legible and fades the edges into the page. */
.hero-bg .hero-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: var(--focus, 50% 50%); opacity: 0.85; }
@media (max-width: 700px) { .hero-bg .hero-photo { object-position: var(--focus-phone, var(--focus, 50% 50%)); } }
.hero-bg.has-photo::after {
  background:
    linear-gradient(to bottom, rgba(15,17,19,0.55) 0%, rgba(15,17,19,0.15) 30%, rgba(15,17,19,0.15) 70%, rgba(15,17,19,0.95) 100%),
    radial-gradient(ellipse 55% 60% at 50% 50%, rgba(15,17,19,0.78) 0%, rgba(15,17,19,0.40) 60%, rgba(15,17,19,0.05) 100%); }
.hero-inner { position: relative; z-index: 1; padding: 112px var(--gutter) 104px; display: flex; flex-direction: column; align-items: center; gap: 28px; max-width: 1200px; }
/* Sized so "Exploring the Periodic Table" always fits on one line (~15.7em wide in Space Grotesk). */
.hero h1 { font-size: clamp(30px, 5.4vw, 68px); line-height: 1.04; letter-spacing: -0.035em; }
.hero h1 .h-lead, .hero h1 .h-sub { white-space: nowrap; }
.hero h1 .ph { display: none; }
.hero h1 .h-sub { color: var(--text); }
.hero h1 .h-lead { color: var(--muted); font-weight: 500; }
.hero p { font-size: clamp(17px, 1.5vw, 22px); line-height: 1.45; color: var(--muted); max-width: 640px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.hero-caption { position: absolute; right: var(--gutter); bottom: 20px; z-index: 1; font-family: var(--sans); font-size: 12px; color: var(--dim); letter-spacing: 0.06em; }
@media (max-width: 900px) {
  .hero { min-height: 0; }
  .hero-bg .structure { opacity: 0.32; }
  .hero-inner { padding: 72px var(--gutter) 56px; }
  .hero-actions .btn { flex: 1 1 100%; }
  .hero-caption { display: none; }
}
@media (max-width: 700px) {
  /* phones: four short lines instead of two long ones */
  .hero h1 { font-size: clamp(34px, 9.6vw, 44px); }
  .hero h1 .ph { display: inline; }
}

/* --- about: three statements, each with its tiles beneath ------------------ */
.about { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 56px; padding: 72px var(--gutter) 64px; max-width: 1400px; margin: 0 auto; border-bottom: 1px solid var(--line); }
.about-col { display: flex; flex-direction: column; gap: 18px; }
.about-heading { font-size: 34px; line-height: 1; letter-spacing: -0.03em; }
.about-body { font-size: 16px; line-height: 1.6; color: var(--muted); text-align: left; hyphens: manual; -webkit-hyphens: manual; text-wrap: pretty; display: flex; flex-direction: column; gap: 14px; }
.col-tiles { display: flex; flex-direction: column; gap: 18px; margin-top: auto; padding-top: 26px; border-top: 1px solid var(--line); }
.about-body { padding-bottom: 22px; }
.pillar { display: grid; grid-template-columns: 88px 1fr; gap: 18px; align-items: center; color: inherit; text-decoration: none; }
.pillar-icon { width: 88px; height: 88px; border: 2px solid var(--amber); background: var(--panel); color: var(--text); display: grid; place-items: center; transition: background .2s, transform .2s; }
.pillar-icon svg { width: 60px; height: 60px; }
/* tiles are dormant (not links) for now; hover rule kept for when they are re-enabled:
.pillar:hover .pillar-icon { background: var(--amber); color: var(--bg); --panel: var(--amber); transform: translateY(-2px); } */
.pillar-title { font-family: var(--serif); font-size: 21px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; }
.pillar-blurb { font-size: 14px; line-height: 1.5; color: var(--muted); margin-top: 6px; text-align: left; hyphens: manual; -webkit-hyphens: manual; }
@media (max-width: 1000px) { .about { grid-template-columns: 1fr; gap: 56px; } }
/* --- stat strip ----------------------------------------------------------- */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-bottom: 1px solid var(--line); }
.stat { padding: 28px var(--gutter); border-right: 1px solid var(--line); display: flex; flex-direction: column; gap: 6px; }
.stat:last-child { border-right: 0; }
.stat-value { font-family: var(--serif); font-weight: 700; font-size: 44px; line-height: 1; letter-spacing: -0.02em; }
@media (max-width: 900px) {
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat { padding: 20px var(--gutter); }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .stat-value { font-size: 36px; }
}

/* --- research rows -------------------------------------------------------- */
.area-row {
  display: grid; grid-template-columns: 96px 1fr 1fr 420px; gap: 40px; align-items: center;
  padding: 40px var(--gutter); border-bottom: 1px solid var(--line);
}
.area-row:last-child { border-bottom: 0; }
.area-n { font-family: var(--mono); font-size: 13px; color: var(--dim); }
.area-title { font-size: 34px; line-height: 1.05; }
.area-title a:hover { color: var(--amber); }
.area-desc { color: var(--muted); }
.area-media { height: 200px; background: var(--d-panel); border: 1px solid var(--d-line); overflow: hidden; position: relative; }
.area-media .structure { position: absolute; inset: 0; }
@media (max-width: 1100px) {
  .area-row { grid-template-columns: 64px 1fr 300px; }
  .area-desc { grid-column: 2; }
  .area-media { grid-column: 3; grid-row: 1 / span 2; }
}
@media (max-width: 760px) {
  .area-row { grid-template-columns: 1fr; gap: 14px; padding: 24px var(--gutter); }
  .area-n, .area-desc, .area-media { grid-column: 1; grid-row: auto; }
  .area-media { order: -1; height: 180px; }
  .area-title { font-size: 28px; }
}

/* research page long form */
.jump { display: flex; flex-wrap: wrap; gap: 6px 28px; padding: 0 var(--gutter) 28px; border-bottom: 1px solid var(--line); font-family: var(--sans); font-weight: 500; font-size: 13px; letter-spacing: 0.01em; }
.jump a { color: var(--muted); padding: 6px 0; }
.jump a:hover { color: var(--amber); }
.jump-n { color: var(--dim); margin-right: 8px; }
.area-block { scroll-margin-top: 80px; }
.area-block .area-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.area-block .area-media:has(img) { border-color: var(--line); background: var(--panel); }
.area-block { display: grid; grid-template-columns: 96px 1fr 520px; gap: 48px; padding: 64px var(--gutter); border-bottom: 1px solid var(--line); }
.area-block h2 { font-size: 48px; line-height: 1.05; }
.area-block .area-media { height: auto; aspect-ratio: 4 / 3; }
.area-block .body { display: flex; flex-direction: column; gap: 20px; }
.area-block .body p { font-size: 18px; line-height: 1.55; color: var(--muted); max-width: 560px; }
.selected { border-top: 1px solid var(--line); padding-top: 14px; display: flex; flex-direction: column; gap: 8px; }
.selected .cite { font-size: 15px; color: var(--muted); line-height: 1.5; }
.selected .cite span { color: var(--text); }
@media (max-width: 1100px) { .area-block { grid-template-columns: 64px 1fr; } .area-block .area-media { grid-column: 1 / -1; } }
@media (max-width: 760px) { .area-block { grid-template-columns: 1fr; gap: 20px; padding: 32px var(--gutter); } .area-block h2 { font-size: 32px; } }

/* --- latest paper band ---------------------------------------------------- */
.latest { display: grid; grid-template-columns: 96px 1fr auto; gap: 40px; align-items: center; padding: 48px var(--gutter); border-bottom: 1px solid var(--line); }
.latest-title { font-family: var(--serif); font-weight: 500; font-size: 26px; line-height: 1.25; }
.latest-cite { font-size: 15px; color: var(--muted); margin-top: 8px; }
@media (max-width: 900px) { .latest { grid-template-columns: 1fr; gap: 16px; } .latest-title { font-size: 24px; } }

/* --- news list ------------------------------------------------------------ */
.news-list { display: flex; flex-direction: column; }
.news-item { display: flex; gap: 20px; padding: 14px 0; border-top: 1px solid var(--line); }
.news-item:last-child { border-bottom: 1px solid var(--line); }
.news-date { font-family: var(--mono); font-size: 13px; color: var(--amber); width: 88px; flex-shrink: 0; padding-top: 2px; }
.news-title { font-size: 17px; }
.news-body { color: var(--muted); font-size: 15px; margin-top: 4px; }
@media (max-width: 600px) { .news-item { flex-direction: column; gap: 4px; } }

/* --- papers to read (home) ------------------------------------------------- */
.reading { padding: 56px var(--gutter) 72px; }
.reading-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 40px; margin-top: 8px; }
.reading-item { display: block; padding: 22px 0; border-top: 1px solid var(--line); color: inherit; }
.reading-item:hover .reading-title { color: var(--amber); }
.reading-title { font-family: var(--serif); font-weight: 500; font-size: 19px; line-height: 1.3; letter-spacing: -0.01em; }
.reading-cite { font-size: 14px; color: var(--muted); margin-top: 8px; line-height: 1.5; }
@media (max-width: 900px) { .reading-list { grid-template-columns: 1fr; } }

/* --- recruit + footer ----------------------------------------------------- */
.recruit { background: var(--d-amber); color: var(--d-bg); padding: 48px var(--gutter); display: flex; align-items: center; justify-content: space-between; gap: 40px; }
.recruit .eyebrow { color: var(--amber-ink); opacity: 0.7; margin-bottom: 14px; }
.recruit-headline { font-size: clamp(24px, 2.8vw, 36px); line-height: 1.1; max-width: 860px; }
.recruit-sub { margin-top: 10px; opacity: 0.8; }
@media (max-width: 900px) { .recruit { flex-direction: column; align-items: flex-start; } .recruit .btn { width: 100%; } }
.footer { border-top: 1px solid var(--d-line); padding: 32px var(--gutter) 40px; display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; font-family: var(--sans); font-size: 13px; letter-spacing: 0.01em; color: var(--dim); }
.footer-contact { display: flex; gap: 10px; flex-wrap: wrap; }
.footer-links { display: flex; gap: 10px; }
.footer .sep { color: var(--d-line-strong); }
@media (max-width: 600px) { .footer-contact { flex-direction: column; gap: 6px; } .footer-contact .sep { display: none; } }

/* --- page headers --------------------------------------------------------- */
.page-head { padding: 72px var(--gutter) 48px; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: end; }
.page-head h1 { font-size: clamp(48px, 6vw, 84px); line-height: 1; letter-spacing: -0.02em; }
.page-head h1 em { font-style: italic; color: var(--amber); }
.page-head .intro { font-size: 19px; line-height: 1.5; color: var(--muted); }
.page-head .head-aside { justify-self: end; display: flex; gap: 32px; align-items: flex-end; flex-wrap: wrap; }
@media (max-width: 900px) { .page-head { grid-template-columns: 1fr; gap: 24px; padding: 48px var(--gutter) 36px; } .page-head .head-aside { justify-self: start; } }

/* --- team ----------------------------------------------------------------- */
.pi { display: grid; grid-template-columns: 96px 320px 1fr; gap: 40px; padding: 56px var(--gutter); border-bottom: 1px solid var(--line); }
.pi-name { font-size: 40px; line-height: 1.05; }
.pi-body { display: flex; flex-direction: column; gap: 20px; }
.pi-body > p { font-size: 17px; line-height: 1.55; color: var(--muted); max-width: 640px; }
.history { display: grid; grid-template-columns: 120px 1fr; row-gap: 10px; column-gap: 20px; font-size: 15px; max-width: 640px; border-top: 1px solid var(--line); padding-top: 14px; }
.history .years { font-family: var(--mono); font-size: 12px; color: var(--dim); }
.links { display: flex; gap: 22px; flex-wrap: wrap; font-family: var(--sans); font-weight: 600; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; }
@media (max-width: 1000px) { .pi { grid-template-columns: 240px 1fr; } .pi > .eyebrow { grid-column: 1 / -1; } }
@media (max-width: 640px) { .pi { grid-template-columns: 1fr; gap: 20px; } .pi-name { font-size: 34px; } }
.photo { background: var(--panel); border: 1px solid var(--line); overflow: hidden; }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo.portrait { aspect-ratio: 4 / 5; }
.photo.square { aspect-ratio: 1; }
.photo.ph { display: flex; align-items: center; justify-content: center; font-family: var(--sans); font-size: 10px; color: var(--dim); letter-spacing: 0.08em; text-transform: uppercase; }
.people { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px 24px; }
.person { display: flex; flex-direction: column; gap: 10px; }
.person-name { font-size: 20px; line-height: 1.15; font-weight: 600; }
.person-meta { font-size: 14px; color: var(--muted); line-height: 1.5; }
.person-email { font-family: var(--mono); font-size: 12px; color: var(--dim); }
@media (max-width: 1100px) { .people { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px) { .people { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 16px; } .person-name { font-size: 20px; } }
.alumni-group { display: flex; flex-direction: column; gap: 10px; margin-bottom: 28px; }
.alumni-group h3 { font-size: 18px; font-weight: 500; color: var(--muted); }
.alumni-row { display: flex; gap: 20px; padding: 12px 0; border-top: 1px solid var(--line); font-size: 16px; }
.alumni-row:last-child { border-bottom: 1px solid var(--line); }
.alumni-row .who { width: 240px; flex-shrink: 0; }
.alumni-row .now { color: var(--muted); }
@media (max-width: 600px) { .alumni-row { flex-direction: column; gap: 2px; } }
.pres { padding: 14px 0; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 4px; }
.pres:last-child { border-bottom: 1px solid var(--line); }
.pres-title { font-family: var(--serif); font-weight: 500; font-size: 18px; line-height: 1.3; }
.pres-meta { font-size: 14px; color: var(--muted); }

/* --- publications --------------------------------------------------------- */
.filters { display: flex; gap: 8px; flex-wrap: wrap; padding: 20px var(--gutter); border-bottom: 1px solid var(--line); }
.chip { display: inline-flex; align-items: center; height: 36px; padding: 0 14px; border: 1px solid var(--line-strong); font-family: var(--sans); font-weight: 500; font-size: 12px; letter-spacing: 0.04em; text-transform: uppercase; background: none; color: var(--text); cursor: pointer; }
.chip[aria-pressed="true"] { background: var(--text); color: var(--bg); border-color: var(--text); }
.chip:hover { color: var(--amber); }
.chip[aria-pressed="true"]:hover { color: var(--bg); }
.filters .spacer { flex-grow: 1; }
.pub-year { padding: 40px 0 16px; }
.pub-year:first-child { padding-top: 24px; }
.pub { display: grid; grid-template-columns: 56px 1fr 220px; gap: 32px; padding: 22px 0; border-top: 1px solid var(--line); align-items: start; }
.pub:last-child { border-bottom: 1px solid var(--line); }
.pub-n { font-family: var(--mono); font-size: 13px; color: var(--dim); padding-top: 4px; }
.pub-title { font-family: var(--serif); font-weight: 500; font-size: 21px; line-height: 1.3; letter-spacing: -0.01em; }
.pub-authors { font-size: 15px; color: var(--muted); line-height: 1.5; margin-top: 6px; }
.pub-ref { font-family: var(--mono); font-size: 12px; color: var(--amber); letter-spacing: 0.02em; line-height: 1.6; text-align: right; padding-top: 6px; }
.pub-ref a { color: var(--text); }
.pub-ref a:hover { color: var(--amber); }
.pub[hidden] { display: none; }
@media (max-width: 800px) { .pub { grid-template-columns: 40px 1fr; gap: 14px 16px; } .pub-ref { grid-column: 2; text-align: left; padding-top: 0; } .pub-title { font-size: 20px; } }

/* --- lab tour ------------------------------------------------------------- */
.lab-photos { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; padding: 48px var(--gutter); border-bottom: 1px solid var(--line); }
.lab-photos .photo { aspect-ratio: 4 / 3; position: relative; }
.lab-photos .photo.wide { grid-column: span 2; aspect-ratio: 8 / 3; }
.lab-photos .cap { position: absolute; left: 12px; bottom: 10px; font-family: var(--sans); font-weight: 600; font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); text-shadow: 0 1px 4px rgba(0,0,0,0.8); }
@media (max-width: 800px) { .lab-photos { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.spec { display: grid; grid-template-columns: 280px 1fr; gap: 32px; padding: 14px 0; border-top: 1px solid var(--line); font-size: 16px; }
.spec:last-child { border-bottom: 1px solid var(--line); }
.spec .v { color: var(--muted); }
@media (max-width: 600px) { .spec { grid-template-columns: 1fr; gap: 2px; } }
.section h2.h-lg { font-size: 40px; margin-bottom: 24px; }

/* --- gallery -------------------------------------------------------------- */
.gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; padding: 48px var(--gutter); }
.gallery .photo { aspect-ratio: 1; }
@media (max-width: 800px) { .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* --- 3D structure containers ---------------------------------------------- */
.structure { display: block; width: 100%; height: 100%; min-height: 160px; }
.structure canvas { display: block; width: 100% !important; height: 100% !important; }
.structure-card { position: relative; background: var(--panel); border: 1px solid var(--line); aspect-ratio: 4 / 3; overflow: hidden; }
.structure-card .structure { position: absolute; inset: 0; }
.structure-label { position: absolute; left: 14px; top: 12px; font-family: var(--sans); font-weight: 600; font-size: 11px; letter-spacing: 0.08em; color: var(--amber); pointer-events: none; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }


/* --- team: group photo ------------------------------------------------------ */
.group-photo { margin: 0; border-bottom: 1px solid var(--line); }
.group-photo img { display: block; width: 100%; max-height: 760px; object-fit: cover; object-position: 50% 40%; }
.group-photo figcaption { padding: 10px var(--gutter); font-family: var(--sans); font-size: 12px; letter-spacing: 0.01em; color: var(--dim); }
.group-photo.collage img { max-height: none; height: auto; object-fit: contain; background: var(--bg); }

/* ==========================================================================
   Streamline pass (Oct 2026): dark ground everywhere, compact people page,
   contact page. Overrides the light-body tokens above.
   ========================================================================== */
:root {
  --bg: var(--d-bg); --panel: var(--d-panel); --line: var(--d-line); --line-strong: var(--d-line-strong);
  --text: var(--d-text); --muted: var(--d-muted); --dim: var(--d-dim); --amber: var(--d-amber); --amber-ink: var(--d-bg);
}
html { color-scheme: dark; }
.btn-dark { background: var(--d-amber); color: var(--d-bg); border-color: var(--d-amber); }
.hero h1 .h-lead { color: var(--text); font-weight: 700; }
.hero h1 .h-sub { color: var(--muted); font-weight: 500; font-size: 0.62em; letter-spacing: -0.01em; }
.hero-inner { gap: 36px; }
.reading { max-width: 1400px; margin: 0 auto; }

.page-head-slim { grid-template-columns: 1fr; padding-bottom: 32px; }
.page-head-slim h1 { font-size: clamp(36px, 4.5vw, 56px); }

.pp-section { padding: 40px var(--gutter); border-bottom: 1px solid var(--line); max-width: 1100px; }
.pp-section > .eyebrow { margin-bottom: 20px; }
.pp-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 40px; }
@media (max-width: 760px) { .pp-list { grid-template-columns: 1fr; } }
.pp { display: flex; align-items: center; gap: 16px; }
.pp-photo { flex: 0 0 64px; width: 64px; height: 64px; border-radius: 50%; overflow: hidden; background: var(--panel); border: 1px solid var(--line-strong); }
.pp-photo img { width: 100%; height: 100%; object-fit: cover; }
.pp-photo.ph::after { content: ""; display: block; width: 100%; height: 100%; background: linear-gradient(135deg, var(--d-panel), var(--d-line)); }
.pp-name { font-family: var(--serif); font-weight: 600; font-size: 17px; letter-spacing: -0.01em; }
.pp-line { font-size: 13.5px; color: var(--muted); line-height: 1.45; margin-top: 2px; }
.pp-pi { align-items: flex-start; }
.pp-pi .pp-photo { flex-basis: 112px; width: 112px; height: 112px; }
.pp-pi .pp-name { font-size: 22px; }
.pp-bio { font-size: 15px; color: var(--muted); line-height: 1.55; margin-top: 12px; max-width: 640px; }
.pp-alumni-list { display: flex; flex-direction: column; }
.pp-alumni-row { display: grid; grid-template-columns: 220px 1fr; gap: 16px; padding: 8px 0; border-top: 1px solid var(--line); font-size: 14px; }
.pp-alumni-row .what { color: var(--muted); }
@media (max-width: 600px) { .pp-alumni-row { grid-template-columns: 1fr; gap: 2px; } }

.contact { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 56px; padding: 48px var(--gutter) 72px; max-width: 900px; }
.contact .eyebrow { margin-bottom: 10px; }
.contact p { color: var(--muted); line-height: 1.6; }
.contact a { color: var(--text); }
.contact a:hover { color: var(--amber); }
@media (max-width: 600px) { .contact { grid-template-columns: 1fr; } }
.stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }

/* --- research grid (streamline) -------------------------------------------- */
.page-head-slim .intro { font-size: 17px; color: var(--muted); max-width: 640px; margin-top: 10px; }
.rgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line); }
.rcard { display: flex; flex-direction: column; gap: 14px; padding: 40px var(--gutter) 48px; border-bottom: 1px solid var(--line); scroll-margin-top: 80px; }
.rcard:nth-child(odd) { border-right: 1px solid var(--line); }
.rcard-media { position: relative; aspect-ratio: 16 / 9; background: var(--panel); border: 1px solid var(--line); overflow: hidden; }
.rcard-media .structure, .rcard-media img { position: absolute; inset: 0; width: 100%; height: 100%; }
.rcard-media img { object-fit: cover; display: block; }
.rcard-cap { font-family: var(--sans); font-size: 12px; letter-spacing: 0.01em; color: var(--dim); margin-top: -4px; }
.rcard-title { font-size: 26px; line-height: 1.1; margin-top: 6px; }
.rcard-text { font-size: 16px; line-height: 1.55; color: var(--muted); max-width: 560px; }
.rcard-paper { display: block; font-size: 14px; line-height: 1.45; color: var(--text); max-width: 560px; padding-top: 12px; border-top: 1px solid var(--line); }
.rcard-paper:hover { color: var(--amber); }
.rcard-paper-k { font-family: var(--sans); font-weight: 600; font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--amber); margin-right: 6px; }
.rcard-paper-j { color: var(--dim); white-space: nowrap; }
@media (max-width: 900px) {
  .rgrid { grid-template-columns: 1fr; }
  .rcard:nth-child(odd) { border-right: 0; }
  .rcard { padding: 28px var(--gutter) 36px; }
  .rcard-title { font-size: 23px; }
}

/* --- research themes (three rows) ------------------------------------------ */
.themes { border-top: 1px solid var(--line); }
.theme { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 56px; align-items: center; padding: 56px var(--gutter); border-bottom: 1px solid var(--line); scroll-margin-top: 80px; }
.theme:nth-child(even) .theme-media { order: 2; }
.theme-media { position: relative; aspect-ratio: 4 / 3; background: var(--panel); border: 1px solid var(--line); overflow: hidden; }
.theme-media .structure, .theme-media img { position: absolute; inset: 0; width: 100%; height: 100%; }
.theme-media img { object-fit: cover; display: block; }
.theme-text { display: flex; flex-direction: column; gap: 16px; max-width: 600px; }
.theme-title { font-size: 40px; line-height: 1.05; }
.theme-text p { font-size: 17px; line-height: 1.6; color: var(--muted); }
.theme-text p em { color: var(--text); font-style: italic; }
.theme-cap { font-family: var(--sans); font-size: 12px; color: var(--dim); letter-spacing: 0.01em; }
@media (max-width: 900px) {
  .theme { grid-template-columns: 1fr; gap: 20px; padding: 32px var(--gutter); }
  .theme:nth-child(even) .theme-media { order: 0; }
  .theme-title { font-size: 30px; }
}

/* ==========================================================================
   Centered layout + text-only research + square people photos + plain pubs
   ========================================================================== */
:root { --max: 1120px; --gutter: max(56px, calc((100vw - var(--max)) / 2)); }
@media (max-width: 900px) { :root { --gutter: 28px; } }
@media (max-width: 600px) { :root { --gutter: 20px; } }
.pp-section { max-width: none; }
.reading { max-width: none; }
.hero-inner { margin-inline: auto; }

/* research: three centered text blocks */
.themes { border-top: 1px solid var(--line); }
.theme { display: block; max-width: none; margin: 0; padding: 48px var(--gutter); border-bottom: 0; }
.theme > * { max-width: 720px; }
.theme + .theme { border-top: 1px solid var(--line); }
.theme-title { font-size: 36px; line-height: 1.05; margin-bottom: 16px; }
.theme p { font-size: 17px; line-height: 1.6; color: var(--muted); }
.theme p + p { margin-top: 12px; }
.theme p em { color: var(--text); }
@media (max-width: 900px) { .theme { padding: 32px var(--gutter); } .theme-title { font-size: 30px; } }

/* people: square photos, 10% larger */
.pp-photo { flex-basis: 70px; width: 70px; height: 70px; border-radius: 3px; }
.pp-pi .pp-photo { flex-basis: 123px; width: 123px; height: 123px; }

/* publications: plain list, TOC graphics for group-led papers */
.page-head-pubs { padding-top: 48px; padding-bottom: 24px; }
.page-head-pubs h1 { font-size: clamp(28px, 3vw, 36px); letter-spacing: -0.01em; }
.pubs { padding: 8px var(--gutter) 40px; }
.pub { display: block; padding: 22px 0; border-top: 1px solid var(--line); }
.pub:first-child { border-top: 0; }
.pub.has-toc { display: grid; grid-template-columns: 220px 1fr; gap: 28px; align-items: center; padding: 28px 0; }
.pub-toc { display: block; background: #fff; border: 1px solid var(--line-strong); overflow: hidden; }
.pub-toc img { width: 100%; height: auto; display: block; }
.pub-body { min-width: 0; }
.pub-n { font-family: var(--mono); font-size: 12px; color: var(--dim); margin-bottom: 4px; }
.pub-title { font-family: var(--serif); font-weight: 500; font-size: 20px; line-height: 1.3; letter-spacing: -0.01em; }
.pub-title a:hover { color: var(--amber); }
.pub-authors { font-size: 15px; color: var(--muted); line-height: 1.5; margin-top: 6px; }
.pub-ref { font-family: var(--sans); font-size: 13.5px; color: var(--dim); margin-top: 6px; text-align: left; letter-spacing: 0; line-height: 1.5; padding: 0; }
.pub-ref em { color: var(--muted); }
.pub-ref a { color: var(--dim); }
.pub-ref a:hover { color: var(--amber); }
.pub-divider { display: flex; align-items: center; gap: 16px; margin: 36px 0 8px; font-family: var(--sans); font-weight: 600; font-size: 11.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--dim); }
.pub-divider::before, .pub-divider::after { content: ""; flex: 1; border-top: 1px solid var(--line-strong); }
.patents { padding-top: 0; }
@media (max-width: 700px) { .pub.has-toc { grid-template-columns: 1fr; gap: 14px; } .pub-toc { max-width: 260px; } }

/* --- people: PI portrait, member panels ------------------------------------ */
.pp-pi .pp-photo { flex-basis: 170px; width: 170px; height: 170px; border-radius: 3px; }
.pp-pi .pp-photo img { object-fit: cover; object-position: 50% 45%; transform: scale(1.12); transform-origin: 50% 45%; }
.panels { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 36px 28px; }
.panel { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; padding: 24px 16px; background: var(--panel); border: 1px solid var(--line); }
.panel-photo { width: 150px; height: 150px; border-radius: 3px; overflow: hidden; background: var(--d-line); border: 1px solid var(--line-strong); }
.panel-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.panel-photo.ph::after { content: ""; display: block; width: 100%; height: 100%; background: linear-gradient(135deg, var(--d-panel), var(--d-line)); }
.panel-name { font-family: var(--serif); font-weight: 600; font-size: 17px; letter-spacing: -0.01em; margin-top: 4px; }
.panel-line { font-size: 13.5px; color: var(--muted); line-height: 1.45; }
.pp-alumni-h { font-family: var(--sans); font-weight: 600; font-size: 14px; color: var(--text); margin: 24px 0 6px; }
.pp-alumni-h:first-of-type { margin-top: 0; }
@media (max-width: 900px) { .panels { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 16px; } }
@media (max-width: 560px) { .panels { grid-template-columns: 1fr; } }

/* --- research: text left, technique tiles right ---------------------------- */
.theme { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 56px; align-items: start; }
.theme > * { max-width: none; }
.theme-text { max-width: 600px; }
.theme-tiles { display: flex; flex-direction: column; gap: 22px; padding-top: 6px; }
.theme-tiles .pillar-icon { width: 72px; height: 72px; }
.theme-tiles .pillar-icon svg { width: 48px; height: 48px; }
.theme-tiles .pillar { grid-template-columns: 72px 1fr; gap: 16px; }
.theme-tiles .pillar-title { font-size: 19px; }
@media (max-width: 900px) { .theme { grid-template-columns: 1fr; gap: 24px; } .theme-tiles { flex-direction: row; flex-wrap: wrap; gap: 16px 32px; } }

/* --- research intro -------------------------------------------------------- */
.research-intro { padding: 40px var(--gutter) 8px; max-width: calc(720px + 2 * var(--gutter)); }
.research-intro p { font-size: 17px; line-height: 1.6; color: var(--muted); }
.research-intro p:first-child { color: var(--text); font-size: 18px; }
.research-intro p + p { margin-top: 14px; }
.themes { margin-top: 32px; }

/* research tiles: fill the row's height, top tile level with the heading */
.theme { align-items: stretch; }
.theme-tiles { height: 100%; justify-content: space-between; padding-top: 0; gap: 24px; }
.theme-tiles .pillar { grid-template-columns: 96px 1fr; gap: 20px; }
.theme-tiles .pillar-icon { width: 96px; height: 96px; }
.theme-tiles .pillar-icon svg { width: 64px; height: 64px; }
.theme-tiles .pillar-title { font-size: 21px; }
@media (max-width: 900px) { .theme-tiles { height: auto; justify-content: flex-start; } .theme-tiles .pillar { grid-template-columns: 72px 1fr; } .theme-tiles .pillar-icon { width: 72px; height: 72px; } .theme-tiles .pillar-icon svg { width: 48px; height: 48px; } }

/* research: lead paragraph in place of the title; tiles evenly stacked */
.research-lead { padding: 56px var(--gutter) 44px; }
.research-lead .lead { font-family: var(--serif); font-weight: 500; font-size: clamp(20px, 2.2vw, 26px); line-height: 1.4; letter-spacing: -0.01em; color: var(--text); max-width: 880px; text-wrap: pretty; }
.themes { margin-top: 0; }
.theme-tiles { justify-content: flex-start; gap: 28px; }

/* research lead: body-sized; tiles flush with the heading's cap height */
.research-lead .lead { font-family: var(--sans); font-weight: 400; font-size: 19px; line-height: 1.6; letter-spacing: 0; color: var(--text); max-width: 760px; }
.theme-tiles { padding-top: 6px; }

.research-lead .lead + .lead { margin-top: 10px; font-size: 17px; color: var(--muted); }
.research-lead .lead { margin: 0; }

/* TOC graphics: wide banners get a wider column */
.pub.has-toc { grid-template-columns: 300px 1fr; }
@media (max-width: 700px) { .pub.has-toc { grid-template-columns: 1fr; } .pub-toc { max-width: 320px; } }

/* TOC graphics: white mat around every image so artwork never touches the dark ground */
.pub-toc { padding: 10px; background: #fff; }

/* TOC under the citation, all at the same height */
.pub.has-toc { display: block; }
.pub-toc { display: inline-block; margin-top: 14px; }
.pub-toc img { height: 150px; width: auto; max-width: 100%; }
@media (max-width: 700px) { .pub-toc { max-width: 100%; } .pub-toc img { height: auto; width: 100%; max-width: 420px; } }

/* publications: centered entries */
.page-head-pubs { text-align: center; }
.pub-body { text-align: center; max-width: 820px; margin: 0 auto; }
.pub-title, .pub-authors, .pub-ref { max-width: none; }
.pub-toc { display: inline-block; }
.pub-divider { max-width: 820px; margin-left: auto; margin-right: auto; }

/* publications: narrow centered column, image above a single left-aligned citation paragraph */
.pubs { max-width: 800px; margin: 0 auto; padding-left: 20px; padding-right: 20px; }
.pub, .pub.has-toc { display: block; padding: 26px 0; text-align: left; }
.pub-body { text-align: left; max-width: none; margin: 0; font-size: 15.5px; line-height: 1.7; color: var(--muted); }
.pub-body .pub-n { font-family: var(--sans); font-size: 15.5px; color: var(--dim); margin: 0; }
.pub-body .pub-title { font-family: var(--sans); font-size: 15.5px; font-weight: 500; color: var(--text); line-height: inherit; }
.pub-body a.pub-title:hover { color: var(--amber); }
.pub-body .pub-authors, .pub-body .pub-ref { font-size: 15.5px; margin: 0; display: inline; }
.pub-body .pub-ref b { font-weight: 600; color: var(--text); }
.pub-toc { display: block; width: fit-content; margin: 0 auto 16px; }
.pub-toc img { height: auto; width: auto; max-height: 190px; max-width: 100%; }
.pub-divider { max-width: none; }
@media (max-width: 700px) { .pub-toc img { max-height: none; width: 100%; max-width: 420px; } }

/* research: photo behind the opening paragraphs, dimmed for legibility */
.research-lead.has-photo { position: relative; overflow: hidden; padding-top: 88px; padding-bottom: 76px; }
.research-lead .lead-bg { position: absolute; inset: 0; z-index: 0; }
.research-lead .lead-bg img { width: 100%; height: 100%; object-fit: cover; display: block; filter: brightness(0.5) saturate(0.9); }
.research-lead .lead-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to right, rgba(15,17,19,0.82) 0%, rgba(15,17,19,0.62) 55%, rgba(15,17,19,0.35) 100%); }
.research-lead.has-photo .lead { position: relative; z-index: 1; text-shadow: 0 1px 6px rgba(0,0,0,0.6); }
.research-lead.has-photo .lead + .lead { color: var(--d-text); opacity: 0.85; }
.research-lead { display: block; }

/* research: four-panel photo strip behind the opening section */
.lead-bg-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.lead-bg-grid img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 700px) { .lead-bg-grid { grid-template-columns: repeat(2, 1fr); } }

/* research: projects */
.section-title { font-size: 14px; font-family: var(--sans); font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--dim); padding: 40px var(--gutter) 0; }
.projects { border-top: 1px solid var(--line); }
.project { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 48px; align-items: center; padding: 40px var(--gutter); border-bottom: 1px solid var(--line); }
.project:last-child { border-bottom: 0; }
.project-text { max-width: 600px; }
.project-title { font-size: 28px; line-height: 1.1; margin-bottom: 12px; }
.project-text p { font-size: 16.5px; line-height: 1.6; color: var(--muted); }
.project-link { display: inline-block; margin-top: 12px; font-family: var(--sans); font-weight: 500; font-size: 13.5px; color: var(--amber); }
.project-media { display: block; background: #fff; padding: 10px; border: 1px solid var(--line-strong); }
.project-media img { width: 100%; height: auto; display: block; }
.themes .section-title { padding-top: 40px; }
@media (max-width: 900px) { .project { grid-template-columns: 1fr; gap: 20px; padding: 28px var(--gutter); } .project-media { max-width: 420px; } }
.project-text p + p { margin-top: 12px; }

/* funders strip */
.funders { border-top: 1px solid var(--line); padding-bottom: 56px; }
.funder-row { display: flex; flex-wrap: wrap; gap: 24px; padding: 20px var(--gutter) 0; align-items: center; }
.funder { display: flex; align-items: center; justify-content: center; height: 96px; padding: 14px 26px; background: #fff; border-radius: 4px; }
.funder img { height: 100%; width: auto; display: block; }
.funder:hover { outline: 2px solid var(--amber); }
@media (max-width: 600px) { .funder { height: 76px; padding: 10px 18px; } }
