/* AUSM Lab website styles. Colors and fonts are set once here. */
:root {
  --ink: #1a1c20;
  --body: #33363d;
  --muted: #5a5f69;
  --line: #e6e4df;
  --line-strong: #d6d3cc;
  --paper: #ffffff;
  --soft: #f4f3f0;
  --ph: #e6e4df;
  --ph-ink: #5a5f69;
  --dark: #1e2330;
  --dark-ink: #e3e6ec;
  --dark-muted: #c9ced8;
  --accent: #a3122a;
  --accent-hover: #7a0d1f;
  --sans: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
  --gutter: clamp(16px, 6vw, 120px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
[hidden] { display: none !important; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); text-decoration: underline; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
h1, h2, h3 { margin: 0; line-height: 1.2; font-weight: 600; }
h2 { font-size: clamp(28px, 3.2vw, 40px); }
h3 { font-size: 20px; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

.wrap { width: 100%; max-width: 1440px; margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.narrow { max-width: 1040px; }
.center { text-align: center; }
.mono { font-family: var(--mono); font-size: 14px; letter-spacing: .5px; }
.accent { color: var(--accent); }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.lead { font-size: 18px; line-height: 1.7; color: var(--body); }
.body { font-size: 16px; line-height: 1.65; color: var(--body); }
.label { font-size: 12px; font-weight: 600; letter-spacing: 1px; color: var(--muted); margin-bottom: 8px; }
.stack { display: flex; flex-direction: column; gap: 18px; }
.more { font-weight: 500; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 12px; z-index: 10; }
.skip:focus { left: 8px; }

/* Header */
.topbar { position: sticky; top: 0; z-index: 5; background: rgba(255,255,255,.96); backdrop-filter: blur(6px); border-bottom: 1px solid #ecebe6; }
.topbar-in { height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.logo { font-size: 20px; font-weight: 700; letter-spacing: 3px; color: var(--ink); }
.logo:hover { color: var(--ink); text-decoration: none; }
.mainnav { display: flex; gap: clamp(20px, 2.6vw, 40px); font-size: 15px; }
.mainnav a { color: var(--ink); padding: 6px 0; }
.mainnav a[aria-current="page"] { color: var(--accent); font-weight: 600; }
.affil { font-size: 13px; color: var(--muted); white-space: nowrap; }
.menu-btn { display: none; background: none; border: 0; color: var(--ink); width: 44px; height: 44px; align-items: center; justify-content: center; cursor: pointer; }

/* Buttons */
.btn-row { display: flex; gap: 14px; flex-wrap: wrap; }
.btn { display: inline-flex; align-items: center; min-height: 48px; padding: 0 26px; font-size: 16px; font-weight: 600; }
.btn:hover { text-decoration: none; }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: var(--soft); color: var(--ink); }
.btn-ghost { border: 1px solid #fff; color: #fff; font-weight: 500; }
.btn-ghost:hover { background: rgba(255,255,255,.1); color: #fff; }

/* Home hero */
.hero { position: relative; overflow: hidden; background: var(--dark) center/cover no-repeat; color: #fff; min-height: min(760px, 88vh); display: flex; align-items: center; text-align: center; }
.hero-photo::before { content: ""; position: absolute; inset: 0; background: linear-gradient(rgba(20,24,34,.72), rgba(20,24,34,.78)); }
.hero-photo .hero-dots { display: none; }
.hero-dots { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .5; }
.hero-in { position: relative; display: flex; flex-direction: column; align-items: center; gap: 22px; padding-top: 80px; padding-bottom: 80px; }
.kicker { font-family: var(--mono); font-size: 13px; letter-spacing: 3px; color: var(--dark-muted); }
.hero h1 { font-size: clamp(40px, 6.4vw, 88px); font-weight: 700; letter-spacing: clamp(1px, .3vw, 4px); line-height: 1.05; max-width: 18ch; }
.hero-sub { font-size: clamp(14px, 1.6vw, 21px); letter-spacing: clamp(1px, .4vw, 6px); color: var(--dark-ink); }
.hero .btn-row { justify-content: center; margin-top: 12px; }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; padding-top: 48px; padding-bottom: 48px; border-bottom: 1px solid var(--line); }
.stat { display: flex; flex-direction: column; gap: 4px; }
.stat-n { font-size: clamp(32px, 4vw, 52px); font-weight: 600; line-height: 1; }
.stat-l { font-size: 15px; color: var(--muted); }

/* Bands and page heroes */
.band { width: 100%; }
.band-hero { background: var(--dark); color: #fff; text-align: center; padding: clamp(72px, 10vw, 140px) 0; }
.band-hero h1 { font-size: clamp(36px, 5vw, 64px); font-weight: 700; letter-spacing: clamp(2px, .5vw, 6px); }
.band-hero p { margin-top: 14px; font-size: clamp(16px, 1.6vw, 20px); color: var(--dark-ink); }
.band-dark { background: var(--dark); color: #fff; padding: clamp(56px, 7vw, 88px) 0; margin-top: clamp(56px, 7vw, 96px); }
.band-dark .lead, .band-dark p { color: var(--dark-ink); }
.band-dark h2 { color: #fff; }
.band-dark .on-dark { color: #fff; text-decoration: underline; }
.band-soft { background: var(--soft); padding: clamp(56px, 7vw, 88px) 0; margin-top: clamp(56px, 7vw, 112px); }
.band-photo .ph-band { height: clamp(240px, 36vw, 520px); background: #2a2f3a; color: var(--dark-muted); }

/* Sections and layout */
.section { padding-top: clamp(56px, 7vw, 96px); }
.section-tight { padding-top: clamp(40px, 4vw, 56px); }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 24px; flex-wrap: wrap; margin-bottom: 28px; }
.split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(32px, 5vw, 72px); align-items: center; padding-top: clamp(56px, 7vw, 112px); }
.band .split { padding-top: 0; }
.grid-2, .grid-3, .grid-4, .grid-5 { display: grid; gap: clamp(16px, 2vw, 32px); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.wrap.grid-5 { padding-top: clamp(40px, 5vw, 64px); }

/* Image placeholders and images */
.ph { width: 100%; object-fit: cover; background: var(--ph); }
.ph-empty { display: flex; align-items: center; justify-content: center; text-align: center; padding: 16px; font-family: var(--mono); font-size: 12px; color: var(--ph-ink); background: var(--ph); }
.ph-dark { background: var(--dark); color: var(--dark-muted); }
.ph-tall { aspect-ratio: 4 / 3; }
.ph-sq { aspect-ratio: 1 / 1; }
.ph-cover { aspect-ratio: 3 / 4; }
.ph-theme { aspect-ratio: 10 / 7; }
img.ph-theme, img.ph-tall, img.ph-cover { object-fit: contain; background: #fff; border: 1px solid var(--line); }
img.ph-thumb { object-fit: cover; }
.ph-thumb { aspect-ratio: 3 / 2; }
.ph-photo { aspect-ratio: 4 / 3; object-fit: cover; }
.ph-video { aspect-ratio: 16 / 9; display: flex; align-items: center; justify-content: center; }
.ph-data { aspect-ratio: 16 / 10; object-fit: cover; }
img.ph-data { background: var(--dark); object-fit: contain; }
.band-figure { margin: 0; position: relative; }
.band-figure img.ph-band { width: 100%; object-fit: cover; object-position: center 40%; display: block; }
.band-figure figcaption { position: absolute; left: 0; right: 0; bottom: 14px; color: #fff; font-size: 13px; text-shadow: 0 1px 3px rgba(0,0,0,.7); }

/* Cards */
.card-link { display: flex; flex-direction: column; gap: 10px; color: var(--ink); }
.card-link:hover { color: var(--ink); text-decoration: none; }
.card-link:hover .card-title { color: var(--accent); }
.card-title { font-size: 17px; font-weight: 600; line-height: 1.35; }
.card-title.small { font-size: 15px; }
.card { background: #fff; display: flex; flex-direction: column; }
.card-body { padding: 24px; display: flex; flex-direction: column; gap: 10px; flex-grow: 1; }
.card-body .more { margin-top: auto; }

/* News list (home) */
.newslist li { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 32px; padding: 18px 0; border-top: 1px solid var(--line); font-size: 17px; }

/* Partner names */
.kicker-dark { letter-spacing: 2px; margin: 28px 0 16px; }
.logos { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 14px; }
.logos li { min-height: 80px; border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; text-align: center; padding: 8px; font-size: 13px; font-weight: 600; color: var(--muted); }
.center .more { display: inline-block; margin-top: 28px; }

/* Research */
.chips { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-top: 28px; }
.chip { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border: 1px solid var(--line-strong); background: #fff; color: var(--ink); font: 500 14px var(--sans); cursor: pointer; }
.chip:hover { border-color: var(--ink); color: var(--ink); text-decoration: none; }
.chip[aria-pressed="true"], .chip[aria-selected="true"] { background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 600; }
.theme { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: center; padding-top: clamp(56px, 7vw, 88px); scroll-margin-top: 90px; }
.theme-flip > :first-child { order: 2; }
.projects .project { display: flex; justify-content: space-between; gap: 24px; padding: 12px 0; border-top: 1px solid var(--line); font-size: 15px; }
.projects .project span:last-child { text-align: right; flex-shrink: 0; max-width: 45%; }
#datasets, #partners { scroll-margin-top: 90px; }
.links-inline { display: flex; gap: 24px; flex-wrap: wrap; font-weight: 500; }

/* Publications and news year blocks */
.filters { display: flex; gap: 8px; flex-wrap: wrap; }
.center .filters { justify-content: center; margin-bottom: 32px; }
.yearblock { display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: 32px; padding-top: 24px; margin-top: 24px; border-top: 2px solid var(--ink); }
.year-side { display: flex; flex-direction: column; gap: 4px; }
.year { font-size: 36px; font-weight: 600; line-height: 1; }
.paper { padding: 16px 0; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 4px; }
.paper-title { font-size: 17px; font-weight: 600; line-height: 1.45; }
.paper-title a { color: var(--ink); }
.paper-title a:hover { color: var(--accent); }
.paper-authors { font-size: 15px; color: var(--body); }
.paper-venue { font-size: 14px; color: var(--muted); }
.tag { display: inline-block; font-family: var(--mono); font-size: 11px; font-weight: 500; letter-spacing: 1px; color: var(--muted); border: 1px solid var(--line-strong); padding: 1px 8px; margin-right: 6px; vertical-align: 2px; }
.empty-note { padding: 16px 0; }
.years-grid { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 12px; }
.years-grid li { border: 1px solid var(--line); padding: 14px 12px; display: flex; flex-direction: column; }
.year-s { font-size: 18px; font-weight: 600; }
.newsitem { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 28px; padding: 20px 0; border-bottom: 1px solid var(--line); align-items: center; }
.newsitem > div { min-width: 0; }
.newsitem .body, .newsitem h3 { overflow-wrap: anywhere; }
.newsitem h3 { font-size: 19px; margin: 6px 0; line-height: 1.4; }
.newsitem h3 a { color: var(--ink); }
.newsmeta { display: flex; gap: 12px; align-items: center; }

/* Members */
.h1-dark { font-size: clamp(32px, 4vw, 44px); }
.group-head { display: flex; align-items: baseline; gap: 16px; padding-bottom: 14px; border-bottom: 2px solid var(--ink); margin-bottom: 32px; }
.group-head h2 { font-size: clamp(22px, 2.4vw, 28px); }
.people { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: 40px; row-gap: 56px; }
.person { display: flex; flex-direction: column; gap: 14px; }
.person-info { display: flex; flex-direction: column; gap: 14px; }
.people.few { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.people.few .person { display: grid; grid-template-columns: minmax(160px, 260px) minmax(0, 1fr); gap: 28px; align-items: start; }
.person-photo { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; background: var(--ph); }
.initials { font-family: var(--sans); font-size: 56px; font-weight: 300; color: #8a867c; }
.person h3 { font-size: 20px; line-height: 1.3; }
.role { font-size: 14px; font-weight: 500; margin-top: 2px; }
.history li { font-size: 13px; line-height: 1.5; color: var(--body); padding-left: 12px; position: relative; }
.history li::before { content: ""; position: absolute; left: 0; top: .7em; width: 4px; height: 1px; background: var(--muted); }
.interests { padding-top: 10px; border-top: 1px solid var(--line); font-size: 14px; color: var(--body); }
.interests .label { margin-bottom: 4px; }
[data-tabs] .filters { margin-bottom: 32px; }
.alumni { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: 40px; row-gap: 26px; }
.alumni li { display: flex; flex-direction: column; gap: 2px; font-size: 14px; line-height: 1.45; }
.alumni strong { font-size: 16px; }

/* Gallery */
.photo { margin: 0; display: flex; flex-direction: column; gap: 10px; }
.photo figcaption { display: flex; justify-content: space-between; gap: 16px; font-size: 15px; font-weight: 600; }

/* Join */
.numbered li { display: flex; gap: 16px; align-items: baseline; padding: 14px 0; border-top: 1px solid var(--line); font-size: 18px; font-weight: 500; }
.steps { display: flex; flex-direction: column; gap: 16px; }
.steps li { display: flex; gap: 18px; align-items: flex-start; font-size: 17px; color: var(--body); }
.step-n { width: 40px; height: 40px; flex-shrink: 0; border: 1px solid var(--accent); color: var(--accent); display: flex; align-items: center; justify-content: center; font-weight: 600; }
.steps li span:last-child { padding-top: 7px; }
.band-dark .btn { align-self: flex-start; }

/* Article pages (news stories, projects, profiles) */
.band-article { padding: clamp(56px, 7vw, 96px) 0; text-align: left; }
.band-article h1 { font-size: clamp(28px, 3.6vw, 44px); letter-spacing: 0; line-height: 1.2; text-wrap: balance; }
.band-article .kicker { margin-bottom: 14px; }
.prose { font-size: 17px; line-height: 1.75; color: var(--body); }
.prose > * + * { margin-top: 1.1em; }
.prose h2, .prose h3, .prose h4 { color: var(--ink); margin-top: 1.8em; }
.prose h3 { font-size: 22px; } .prose h4 { font-size: 18px; }
.prose ul, .prose ol { padding-left: 1.4em; list-style: disc; }
.prose ol { list-style: decimal; }
.prose li + li { margin-top: .4em; }
.prose a { overflow-wrap: anywhere; }
.prose figure { margin: 1.6em 0; display: flex; flex-wrap: wrap; gap: 12px; }
.prose figure img, .prose > img, .prose p img { max-width: 100%; height: auto; }
.prose figure img { flex: 1 1 260px; max-height: 560px; object-fit: contain; background: var(--soft); }
.prose figcaption { flex-basis: 100%; font-size: 14px; color: var(--muted); }
.prose iframe { width: 100%; aspect-ratio: 16 / 9; height: auto; border: 0; }
.prose table { width: 100%; border-collapse: collapse; font-size: 15px; display: block; overflow-x: auto; }
.prose td, .prose th { border: 1px solid var(--line); padding: 6px 10px; vertical-align: top; }
.prose blockquote { margin: 1.4em 0; padding-left: 18px; border-left: 3px solid var(--line-strong); color: var(--muted); }
.profile figure img { max-width: 320px; }
.tags { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 2em; }
.back { margin-top: 2.4em; font-weight: 500; }
a.plain { color: inherit; }
a.plain:hover { color: var(--accent); }
.ph-proj { aspect-ratio: 16 / 10; object-fit: cover; }
.highlights li { display: grid; grid-template-columns: 70px minmax(0, 1fr); gap: 20px; padding: 14px 0; border-top: 1px solid var(--line); font-size: 17px; }
.years-grid li a { display: flex; flex-direction: column; }

/* Research-direction diagram */
.vision-title { font-size: clamp(30px, 4vw, 48px); margin: 10px 0 18px; text-wrap: balance; }
.wm { margin: 0; display: flex; flex-direction: column; gap: 14px; --wm-goal: #e3f1ee; --wm-goal-ink: #0a4a44; --wm-goal-line: #0e6b63;
      --wm-p: #ecebfa; --wm-p-ink: #2f2876; --wm-p-line: #5148b0; --wm-a: #f1efe8; --wm-a-ink: #3f3d38; --wm-a-line: #a9a59a; }
.wm-goal, .wm-base { background: var(--wm-goal); color: var(--wm-goal-ink); border: 1px solid var(--wm-goal-line); border-radius: 10px; padding: 16px 20px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 2px; }
.wm-goal strong { font-size: clamp(18px, 2vw, 22px); }
.wm-goal span, .wm-base span { font-size: 14px; }
.wm-pillars { display: grid; grid-template-columns: minmax(0,1fr) 28px minmax(0,1fr) 28px minmax(0,1fr); align-items: stretch; gap: 8px; }
.wm-pillar { background: var(--wm-p); color: var(--wm-p-ink); border: 1px solid var(--wm-p-line); border-radius: 10px; padding: 18px; display: flex; flex-direction: column; gap: 6px; }
.wm-pillar a.plain { color: var(--wm-p-ink); font-size: 18px; }
.wm-pillar em { font-size: 14px; }
.wm-pillar ul { list-style: none; padding: 0; margin: 6px 0 0; display: flex; flex-direction: column; gap: 4px; font-size: 14px; }
.wm-pillar ul li::before { content: "· "; }
.wm-arrow { display: flex; align-items: center; justify-content: center; color: var(--muted); }
.wm-loop { display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 14px; color: var(--muted); margin: 0; }
.wm-apps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.wm-apps li { background: var(--wm-a); color: var(--wm-a-ink); border: 1px solid var(--wm-a-line); border-radius: 10px; padding: 12px 16px; display: flex; flex-direction: column; text-align: center; font-size: 14px; }
.open-tag { flex-shrink: 0; font-size: 12px; font-weight: 600; padding: 2px 10px; border-radius: 999px; background: #fbf0dc; color: #7a4700; align-self: center; }
.open-tag:hover { background: #f5e2bf; color: #5c3500; text-decoration: none; }
@media (max-width: 760px) {
  .wm-pillars { grid-template-columns: minmax(0, 1fr); }
  .wm-arrow { transform: rotate(90deg); height: 24px; }
  .wm-apps { grid-template-columns: minmax(0, 1fr); }
}

/* Design switcher (preview only) */
.theme-switcher { position: fixed; left: 50%; bottom: 16px; transform: translateX(-50%); z-index: 20; display: flex; gap: 4px; align-items: center; flex-wrap: wrap; justify-content: center; max-width: calc(100vw - 24px); padding: 6px; background: #111; color: #fff; border-radius: 999px; box-shadow: 0 8px 30px rgba(0,0,0,.35); font: 500 13px system-ui, sans-serif; }
.theme-switcher span { padding: 0 8px 0 10px; opacity: .7; }
.theme-switcher button { min-height: 36px; padding: 0 14px; border: 0; border-radius: 999px; background: transparent; color: #fff; font: inherit; cursor: pointer; }
.theme-switcher button[aria-pressed="true"] { background: #fff; color: #111; }

/* Member profile pages */
.profile-head { display: grid; grid-template-columns: minmax(200px, 340px) minmax(0, 1fr); gap: clamp(28px, 4vw, 56px); align-items: start; }
.profile-photo { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; display: flex; align-items: center; justify-content: center; background: var(--ph); }
.profile-card { display: flex; flex-direction: column; gap: 10px; }
.profile-card h1 { font-size: clamp(30px, 3.6vw, 44px); }
.profile-role { color: var(--accent); font-weight: 500; }
.profile-card .label { margin: 10px 0 0; }
.profile-links { display: flex; gap: 18px; flex-wrap: wrap; font-weight: 500; }
.profile-papers h4 { margin-top: 1.4em; color: var(--accent); }
.profile-papers ul { list-style: none; padding: 0; }
.profile-papers li { padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 15px; line-height: 1.55; }
@media (max-width: 760px) { .profile-head { grid-template-columns: minmax(0, 1fr); } .profile-photo { max-width: 280px; } }

/* Footer */
.footer { margin-top: clamp(72px, 8vw, 120px); border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; line-height: 1.7; }
main:has(> .band-dark:last-child) + .footer { margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; padding-top: 52px; padding-bottom: 40px; }
.footer-name { font-size: 16px; font-weight: 700; letter-spacing: 2px; color: var(--ink); margin-bottom: 6px; }
.footer-h { font-weight: 600; color: var(--ink); margin-bottom: 6px; }
.footer-copy { padding-top: 18px; padding-bottom: 24px; border-top: 1px solid var(--line); font-size: 13px; }

/* Tablet */
@media (max-width: 1100px) {
  .affil { display: none; }
  .grid-5 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid-4, .people, .alumni { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .people.few { grid-template-columns: minmax(0, 1fr); }
  .logos { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .years-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* Phone */
@media (max-width: 760px) {
  .topbar-in { height: 64px; }
  .menu-btn { display: inline-flex; }
  .mainnav { display: none; position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; gap: 0; background: #fff; border-bottom: 1px solid var(--line); padding: 8px var(--gutter) 16px; }
  .mainnav.open { display: flex; }
  .mainnav a { padding: 12px 0; border-top: 1px solid var(--line); font-size: 17px; }
  .stats, .grid-2, .grid-3, .grid-4, .people, .alumni { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-5 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split, .theme, .footer-grid { grid-template-columns: minmax(0, 1fr); }
  .theme-flip > :first-child { order: 0; }
  .logos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .years-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .yearblock { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .year-side { flex-direction: row; align-items: baseline; gap: 12px; }
  .newslist li { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .newsitem { grid-template-columns: 96px minmax(0, 1fr); gap: 16px; align-items: start; }
  .newsitem h3 { font-size: 16px; }
  .people { column-gap: 16px; row-gap: 40px; }
  .people.few { grid-template-columns: minmax(0, 1fr); }
  .people.few .person { grid-template-columns: 120px minmax(0, 1fr); gap: 16px; }
  .person h3 { font-size: 17px; }
  .initials { font-size: 40px; }
  .projects .project { flex-direction: column; gap: 2px; }
  .projects .project span:last-child { text-align: left; max-width: none; }
}
@media (max-width: 420px) {
  .grid-3, .grid-4, .alumni, .grid-2 { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* Gallery videos */
.video-card { display: flex; flex-direction: column; gap: 8px; }
.video-card .card-title { color: var(--ink); }
.video-card .card-title:hover { color: var(--accent); text-decoration: none; }
.video-thumb { position: relative; display: block; }
.ph-video-img { aspect-ratio: 16 / 9; object-fit: cover; display: block; background: var(--dark); }
.video-thumb .play { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; transition: transform .15s; }
.video-thumb:hover .play { transform: scale(1.08); }
.btn-outline { border: 1px solid var(--ink); color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: #fff; }

/* Home: clickable news rows */
.newslist-links li { display: block; padding: 0; }
.news-row { display: grid; grid-template-columns: 130px minmax(0, 1fr) 24px; gap: 32px; align-items: baseline; padding: 18px 12px; margin: 0 -12px; color: var(--ink); transition: background .15s; }
.news-row:hover { background: var(--soft); text-decoration: none; color: var(--ink); }
.news-row:hover .news-title { color: var(--accent); }
.news-main { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; }
.news-cat { letter-spacing: 1px; text-transform: uppercase; font-size: 11px; }
.news-arrow { color: var(--accent); opacity: 0; transform: translateX(-6px); transition: opacity .15s, transform .15s; }
.news-row:hover .news-arrow { opacity: 1; transform: none; }
@media (max-width: 700px) { .news-row { grid-template-columns: minmax(0, 1fr) 20px; gap: 4px 12px; } .news-row > .mono { grid-column: 1 / -1; } .news-arrow { opacity: 1; transform: none; } }

/* Home: publication and dataset cards */
.ph-pub { aspect-ratio: 4 / 3; }
img.ph-pub { object-fit: cover; background: #fff; border: 1px solid var(--line); }
.pub-fallback { display: flex; flex-direction: column; justify-content: space-between; padding: 16px; background: var(--dark); color: var(--dark-muted); border-top: 4px solid var(--accent); }
.pub-fallback-title { color: #fff; font-size: 18px; font-weight: 600; line-height: 1.3; }
.pub-card img, .data-card img, .pub-card .pub-fallback { transition: transform .25s, box-shadow .25s; }
.pub-card:hover img, .data-card:hover img, .pub-card:hover .pub-fallback { transform: translateY(-4px); box-shadow: 0 10px 24px rgba(0,0,0,.12); }
.pub-go { margin-top: auto; font-weight: 500; }
.data-card:hover .card-title { color: var(--accent); }

/* Members: placeholder without photo, project list */
.person-nophoto { display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, var(--dark) 0%, #2d3446 100%); border-bottom: 4px solid var(--accent); }
.person-nophoto .initials { color: #fff; font-family: var(--mono); letter-spacing: 3px; opacity: .9; }
.projects-list { margin: 0; padding-left: 18px; }
.projects-list li { margin: 2px 0; }

/* News: card when a story has no picture */
.news-fallback { display: flex; flex-direction: column; justify-content: space-between; padding: 14px; background: linear-gradient(135deg, var(--dark) 0%, #2d3446 100%); color: var(--dark-muted); border-left: 4px solid var(--accent); overflow: hidden; }
.news-fallback-title { color: #fff; font-weight: 600; line-height: 1.3; font-size: 14px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.ph-tall.news-fallback { padding: 32px; } .ph-tall .news-fallback-title { font-size: 26px; -webkit-line-clamp: 5; }
.news-thumb { display: block; overflow: hidden; }
.news-thumb img, .news-thumb .news-fallback { transition: transform .25s; }
.newsitem:hover .news-thumb img, .newsitem:hover .news-thumb .news-fallback { transform: scale(1.03); }

/* Page banners with a photo */
.band-hero-photo { position: relative; background-size: cover; background-position: center 30%; }
.band-hero-photo::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,24,34,.72), rgba(20,24,34,.82)); }
.band-hero-photo > .wrap { position: relative; }
/* Partner boxes as links */
.logos li { padding: 0; }
.logos li > a, .logos li > span { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; min-height: 80px; padding: 8px; color: var(--muted); }
.logos li > a { transition: background .15s, color .15s; }
.logos li > a:hover { background: var(--soft); color: var(--accent); text-decoration: none; }

/* Members intro, training numbers, home quote */
.team-intro { max-width: 760px; margin: 12px auto 0; }
.stats.training { grid-template-columns: repeat(6, minmax(0, 1fr)); }
@media (max-width: 900px) { .stats.training { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 560px) { .stats.training { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.quote { margin: 0; padding: 32px clamp(20px, 4vw, 56px); border-left: 3px solid var(--accent); background: var(--soft); }
.quote blockquote { margin: 0; font-size: clamp(18px, 1.8vw, 24px); line-height: 1.5; color: var(--ink); }
.quote figcaption { margin-top: 14px; color: var(--muted); font-size: 13px; letter-spacing: 1px; }

/* Longer menu (10 items, like gunhosohn.me) */
.mainnav { gap: clamp(14px, 1.4vw, 24px); font-size: 14px; white-space: nowrap; }
@media (max-width: 1500px) { .affil { display: none; } }
@media (max-width: 1240px) {
  .menu-btn { display: inline-flex; }
  .topbar { position: sticky; }
  .mainnav { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; gap: 0; background: var(--paper); border-bottom: 1px solid var(--line); padding: 8px var(--gutter) 16px; }
  .mainnav.open { display: flex; }
  .mainnav a { padding: 12px 0; border-top: 1px solid var(--line); font-size: 16px; }
}

/* Menu: 6 items with a "More" dropdown (like myung.skku.edu) */
.mainnav { align-items: center; font-size: 15px; gap: clamp(20px, 2.4vw, 36px); }
@media (max-width: 1500px) { .affil { display: inline; } }
@media (max-width: 1100px) { .affil { display: none; } }
.nav-more { position: relative; }
.nav-more-btn { background: none; border: 0; padding: 6px 0; font: inherit; color: var(--ink); cursor: pointer; }
.nav-more.is-active .nav-more-btn { color: var(--accent); font-weight: 600; }
.nav-drop { display: none; position: absolute; top: 100%; right: -16px; min-width: 230px; padding: 8px 0; background: var(--paper); border: 1px solid var(--line); box-shadow: 0 12px 28px rgba(0,0,0,.12); z-index: 10; }
.nav-drop a { display: block; padding: 10px 18px; white-space: nowrap; }
.nav-drop a:hover { background: var(--soft); text-decoration: none; }
.nav-more:hover .nav-drop, .nav-more:focus-within .nav-drop { display: block; }
@media (max-width: 1240px) and (min-width: 761px) {
  .menu-btn { display: none; }
  .mainnav { display: flex; position: static; flex-direction: row; padding: 0; border: 0; background: none; box-shadow: none; }
  .mainnav a { padding: 6px 0; border-top: 0; font-size: 15px; }
  .nav-drop a { padding: 10px 18px; }
}
@media (max-width: 760px) {
  .mainnav { background: var(--paper); }
  .nav-more-btn { display: none; }
  .nav-drop { display: block; position: static; border: 0; box-shadow: none; padding: 0; min-width: 0; background: none; }
  .nav-drop a { padding: 12px 0; border-top: 1px solid var(--line); }
}
.btn-accent { background: var(--accent); color: #fff; } .btn-accent:hover { background: var(--accent-hover); color: #fff; text-decoration: none; }
@media (max-width: 760px) { .mainnav { align-items: stretch; } .mainnav > a, .nav-drop a { width: 100%; } }

/* Simple home page (Oct 2026), modelled on a plain group site */
.hero-simple { min-height: min(560px, 70vh); }
.hero-simple .hero-in h1 { font-weight: 300; letter-spacing: .04em; font-size: clamp(32px, 4.6vw, 60px); }
.hero-simple .hero-sub { font-weight: 300; letter-spacing: .25em; font-size: clamp(12px, 1.2vw, 15px); }
.research-card { position: relative; background: var(--dark) center/cover no-repeat; color: #fff; }
.research-card::before { content: ""; position: absolute; inset: 0; background: rgba(15,18,26,.72); }
.research-card-in { position: relative; max-width: 760px; margin: 0 auto; padding: clamp(48px, 7vw, 96px) 24px; text-align: center; }
.research-card h2 { color: #fff; font-weight: 400; margin-bottom: 20px; }
.research-card p { color: #e6e8ee; font-size: 16px; line-height: 1.75; margin: 0 0 16px; }
.research-card .btn { margin-top: 12px; }
.home-news { max-width: 900px; }
.home-news h2, .section h2.center { font-weight: 400; margin-bottom: 28px; }
.news-year { font-family: Georgia, "Times New Roman", serif; font-style: italic; font-weight: 400; font-size: 26px; margin: 32px 0 12px; }
.news-plain { list-style: none; padding: 0; margin: 0; }
.news-plain li { padding: 7px 0; font-size: 15px; line-height: 1.6; color: var(--body); }
.news-plain .news-date { color: var(--muted); margin-right: 4px; }
.news-plain a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.news-plain a:hover { color: var(--accent); }
.home-news .btn, .section > .center .btn { margin-top: 28px; }
.pub-covers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 3vw, 40px); max-width: 960px; margin: 0 auto; }
.pub-cover { display: flex; flex-direction: column; gap: 8px; color: var(--ink); }
.pub-cover img { aspect-ratio: 3 / 4; object-fit: cover; border: 1px solid var(--line); transition: transform .2s, box-shadow .2s; }
.pub-cover:hover { text-decoration: none; color: var(--accent); }
.pub-cover:hover img { transform: translateY(-4px); box-shadow: 0 10px 24px rgba(0,0,0,.12); }
.pub-cover-title { font-weight: 600; font-size: 15px; }
.home-group { margin: 0; }
.home-group img { width: 100%; }
.home-group figcaption { margin-top: 10px; }
@media (max-width: 760px) { .pub-covers { grid-template-columns: minmax(0, 1fr); max-width: 360px; } }

/* Logos in header and footer */
.logo-img { display: flex; align-items: center; letter-spacing: 0; }
.logo-img img { height: 44px; width: auto; display: block; }
.affil-logo { display: flex; align-items: center; }
.affil-logo img { height: 44px; width: auto; display: block; }
.footer-name img { height: 40px; width: auto; display: block; }
@media (max-width: 760px) { .logo-img img { height: 36px; } }
@media (max-width: 760px) { .affil-logo { display: none; } }

/* Partner logos */
.logos li.has-logo img { max-width: 100%; max-height: 64px; width: auto; height: auto; object-fit: contain; display: block; }
.logos li.has-logo > a, .logos li.has-logo > span { padding: 14px; min-height: 96px; background: #fff; }
.logos { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }

/* Keep logos from being squashed */
.logo-img, .affil-logo { flex-shrink: 0; }
.logo-img img, .affil-logo img { max-width: none; width: auto; object-fit: contain; }
@media (max-width: 1200px) { .affil-logo { display: none; } }
@media (max-width: 1000px) { .mainnav { gap: 18px; font-size: 14px; } .logo-img img { height: 38px; } }

/* Full publication list on one page */
.pub-list h3 { font-size: 26px; margin: 44px 0 12px; padding-bottom: 8px; border-bottom: 1px solid var(--line-strong); color: var(--accent); }
.pub-list ul { list-style: none; padding: 0; margin: 0; }
.pub-list li { padding: 10px 0; border-bottom: 1px solid var(--line); line-height: 1.6; }
.pub-list li a { color: var(--ink); font-weight: 600; }
.pub-list li a:hover { color: var(--accent); }

/* One-person groups (PI, single postdoc) use the full width */
.people.solo { grid-template-columns: minmax(0, 1fr); }
.people.solo .person { display: grid; grid-template-columns: minmax(180px, 300px) minmax(0, 1fr); gap: clamp(24px, 4vw, 48px); align-items: start; }
.people.solo .person-info { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 40px; row-gap: 16px; align-content: start; }
.people.solo .person-info > div:first-child, .people.solo .person-bio, .people.solo .person-info > p.small { grid-column: 1 / -1; }
.person-bio p { margin: 0 0 12px; line-height: 1.7; color: var(--body); }
@media (max-width: 760px) {
  .people.solo .person { grid-template-columns: 120px minmax(0, 1fr); gap: 16px; }
  .people.solo .person-info { grid-template-columns: minmax(0, 1fr); }
}
.affil-logo img { height: 34px; }
@media (max-width: 1320px) { .affil-logo { display: none; } }

/* Home: larger text (Oct 2026) */
.research-card-in { max-width: 860px; }
.research-card h2 { font-size: clamp(32px, 3.4vw, 44px); }
.research-card p { font-size: clamp(17px, 1.35vw, 19px); line-height: 1.75; }
.home-news { max-width: 1000px; }
.home-news h2, .section h2.center { font-size: clamp(34px, 3.4vw, 46px); }
.news-year { font-size: 32px; }
.news-plain li { font-size: clamp(17px, 1.3vw, 19px); padding: 10px 0; }
.pub-cover-title { font-size: 17px; }
.pub-cover .small { font-size: 15px; }
.btn { font-size: 17px; }

/* Home: research feature with a full-colour figure */
.research-feature { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 64px); align-items: center; }
.research-feature-img img { width: 100%; display: block; border-radius: 4px; box-shadow: 0 18px 40px rgba(0,0,0,.18); transition: transform .3s; }
.research-feature-img:hover img { transform: scale(1.015); }
.kicker-accent { color: var(--accent); font-weight: 700; letter-spacing: .18em; font-size: 14px; margin: 0 0 10px; }
.research-feature-text h2 { font-size: clamp(32px, 3.4vw, 46px); line-height: 1.15; margin: 0 0 18px; }
.research-feature-text .lead { font-size: clamp(19px, 1.5vw, 22px); line-height: 1.6; color: var(--ink); margin: 0 0 14px; }
.research-feature-text p { font-size: clamp(16px, 1.2vw, 18px); line-height: 1.7; margin: 0 0 14px; }
.research-feature-text .btn { margin-top: 10px; }
@media (max-width: 900px) { .research-feature { grid-template-columns: minmax(0, 1fr); } }

/* Members as uniform grey cards (like myung.skku.edu) */
.center-head { border: 0 !important; justify-content: center; text-align: center; }
.center-head h2 { font-size: clamp(26px, 2.4vw, 34px); }
.people.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 300px)); justify-content: center; gap: 28px; }
.people.cards .person { display: flex; flex-direction: column; gap: 0; background: #eceef1; border: 1px solid #dcdfe4; box-shadow: 0 2px 6px rgba(0,0,0,.06); }
.people.cards .person-photo { aspect-ratio: 1 / 1; width: 100%; border-bottom: 3px solid #4a5fc1; }
.people.cards .person-nophoto { border-bottom: 3px solid #4a5fc1; }
.people.cards .person-info { display: flex; flex-direction: column; gap: 10px; padding: 18px 18px 22px; }
.people.cards .person h3 { font-size: 22px; font-weight: 700; letter-spacing: -.01em; }
.people.cards .role { color: var(--ink); font-weight: 600; font-size: 14px; margin-top: 6px; }
.people.cards .history { font-size: 13px; margin: 4px 0 0; }
.people.cards .interests { border-top: 0; padding-top: 0; }
.people.cards .interests .label { color: var(--ink); font-weight: 600; letter-spacing: 0; text-transform: none; font-size: 13px; margin-bottom: 2px; }
.people.cards .interests p, .people.cards .projects-list { font-size: 13px; line-height: 1.5; }
.people.cards .small a { color: var(--ink); text-decoration: underline; }

.people.cards { display: flex; flex-wrap: wrap; justify-content: center; gap: 28px; }
.people.cards .person { width: 300px; max-width: 100%; }

/* Members: large PI section (like the gunhosohn.me front page) */
.pi-feature { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(28px, 4vw, 64px); align-items: start; }
.pi-photo { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: center 20%; box-shadow: 0 18px 40px rgba(0,0,0,.15); }
.pi-text h2 { font-size: clamp(34px, 3.4vw, 48px); margin: 0 0 4px; }
.pi-role { color: var(--accent); font-weight: 600; font-size: 18px; margin: 0 0 18px; }
.pi-text p { font-size: clamp(16px, 1.2vw, 18px); line-height: 1.75; margin: 0 0 14px; }
.pi-label { font-weight: 700; margin-top: 20px !important; margin-bottom: 6px !important; }
.pi-interests { margin: 0 0 16px; padding-left: 20px; line-height: 1.8; font-size: clamp(15px, 1.1vw, 17px); }
.pi-links a { font-weight: 600; }
@media (max-width: 860px) { .pi-feature { grid-template-columns: minmax(0, 1fr); } .pi-photo { max-width: 420px; } }

/* ===== Design polish (Oct 2026): one type style, bolder home, lighter cards ===== */
/* Hero: bold, readable, with clear next steps */
.hero-photo::before { background: linear-gradient(180deg, rgba(12,16,26,.55) 0%, rgba(12,16,26,.82) 100%); }
.hero-simple { min-height: min(640px, 80vh); }
.hero-simple .hero-in { gap: 18px; }
.hero-kicker { margin: 0; font-size: clamp(12px, 1.1vw, 14px); font-weight: 600; letter-spacing: .2em; color: #c9d3ff; }
.hero-simple .hero-in h1 { font-weight: 700; letter-spacing: -.01em; line-height: 1.08; font-size: clamp(36px, 5.6vw, 76px); text-transform: none; max-width: 14em; margin: 0; }
.hero-simple .hero-sub { font-weight: 500; letter-spacing: .08em; font-size: clamp(13px, 1.3vw, 17px); color: #e4e8f2; margin: 0; }
.hero-btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin: 14px 0 0; }
.hero-btns .btn { font-weight: 600; padding: 14px 26px; }

/* Section headings: same family and weight everywhere */
.home-news h2, .section h2.center, .research-card h2 { font-weight: 700; letter-spacing: -.01em; }
.news-year { font-family: var(--sans); font-style: normal; font-weight: 700; color: var(--accent); }

/* Home news as photo cards */
.home-news { max-width: 1200px; }
.news-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.news-card { display: flex; flex-direction: column; gap: 8px; color: var(--ink); }
.news-card:hover { text-decoration: none; color: var(--accent); }
.news-card img, .news-card-noimg { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 4px; transition: transform .2s, box-shadow .2s; }
.news-card-noimg { display: flex; align-items: center; justify-content: center; background: #1f2a44; color: #c9d3ff; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; font-size: 14px; }
.news-card:hover img, .news-card:hover .news-card-noimg { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(0,0,0,.14); }
.news-card-meta { font-size: 13px; font-weight: 600; letter-spacing: .04em; color: var(--muted); margin-top: 4px; }
.news-card-title { font-size: 17px; font-weight: 600; line-height: 1.4; }
@media (max-width: 1000px) { .news-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .news-cards { grid-template-columns: minmax(0, 1fr); } }

/* Paper covers: show the whole figure, never crop it */
.pub-cover img { aspect-ratio: 3 / 2; object-fit: contain; background: #fff; padding: 8px; }

/* Members: light cards, big name, details on the profile page */
.people.cards { gap: 32px 28px; }
.people.cards .person { width: 280px; background: transparent; border: 0; box-shadow: none; }
.person-link { display: flex; flex-direction: column; color: var(--ink); height: 100%; }
.person-link:hover { text-decoration: none; }
.people.cards .person-photo { border: 0; border-radius: 6px; transition: transform .2s, box-shadow .2s; }
.person-link:hover .person-photo { transform: translateY(-3px); box-shadow: 0 12px 26px rgba(0,0,0,.14); }
.people.cards .person-info { padding: 16px 2px 0; gap: 6px; }
.people.cards .person h3 { font-size: 24px; margin: 0; }
.person-link:hover h3 { color: var(--accent); }
.people.cards .role { color: var(--accent); font-weight: 600; font-size: 15px; margin: 0; }
.person-topics { font-size: 15px; line-height: 1.55; color: var(--body); margin: 4px 0 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.person-more { font-size: 14px; font-weight: 600; color: var(--accent); margin-top: 6px; }
@media (max-width: 640px) { .people.cards .person { width: 100%; max-width: 360px; } }

/* Research page: tighter */
.logos li.has-logo > a, .logos li.has-logo > span { min-height: 80px; padding: 10px; }
.logos li.has-logo img { max-height: 52px; }

/* Join Us stands out in the top menu */
.mainnav a.nav-join { background: var(--accent); color: #fff; padding: 9px 18px; border-radius: 4px; font-weight: 600; }
.mainnav a.nav-join:hover, .mainnav a.nav-join[aria-current] { background: var(--accent-hover); color: #fff; text-decoration: none; }
.mainnav a.nav-join[aria-current]::after { display: none; }
@media (max-width: 760px) { .mainnav a.nav-join { text-align: center; margin-top: 8px; } }

/* Open positions */
.position { border: 1px solid var(--line); border-top: 4px solid var(--accent); padding: clamp(24px, 4vw, 48px); display: flex; flex-direction: column; gap: 28px; background: var(--paper); }
.position-head { display: flex; flex-direction: column; gap: 10px; max-width: 760px; }
.position-head h2 { font-size: clamp(28px, 3.4vw, 40px); }
.status-pill { align-self: flex-start; font-size: 13px; font-weight: 600; padding: 4px 12px; border-radius: 999px; background: #e3f0e1; color: #2d6a2d; }
.focus { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.focus li { display: flex; flex-direction: column; gap: 6px; padding: 20px; background: var(--soft); border-radius: 8px; font-size: 15px; color: var(--body); }
.focus strong { color: var(--ink); font-size: 17px; }
.focus-icon { width: 48px; height: 48px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; margin-bottom: 6px; }
.focus-1 .focus-icon { background: #0e6b63; } .focus-2 .focus-icon { background: #5148b0; } .focus-3 .focus-icon { background: var(--accent); }
.position-facts { margin: 0; display: grid; gap: 14px; }
.position-facts > div { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.position-facts dt { font-weight: 600; color: var(--ink); }
.position-facts dd { margin: 0; color: var(--body); }
.position-facts ul { list-style: disc; padding-left: 1.2em; }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--accent-hover); color: #fff; }
.btn-outline { border: 1px solid var(--ink); color: var(--ink); font-weight: 500; }
.btn-outline:hover { background: var(--soft); color: var(--ink); }
@media (max-width: 760px) { .focus { grid-template-columns: minmax(0, 1fr); } .position-facts > div { grid-template-columns: minmax(0, 1fr); gap: 4px; } }


/* Home hero photo: keep faces and the drone in view */
.hero-simple { background-position: center 35%; }

/* Join Us: poster shown next to the posting */
.position.has-poster { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, 380px); column-gap: clamp(28px, 4vw, 56px); row-gap: 28px; align-items: start; }
.position.has-poster > * { grid-column: 1; }
.position.has-poster > .position-poster { grid-column: 2; grid-row: 1 / span 4; margin: 0; position: sticky; top: 96px; }
.position-poster img { width: 100%; height: auto; display: block; border-radius: 6px; box-shadow: 0 14px 34px rgba(0,0,0,.18); }
.position-poster figcaption { margin-top: 10px; font-size: 14px; color: var(--muted); text-align: center; }
.position.has-poster .focus { grid-template-columns: minmax(0, 1fr); }
@media (max-width: 900px) {
  .position.has-poster { grid-template-columns: minmax(0, 1fr); }
  .position.has-poster > .position-poster { grid-column: 1; grid-row: auto; position: static; max-width: 420px; justify-self: center; order: 9; }
}

/* Home publications: photos fill the whole frame */
.pub-cover img { aspect-ratio: 3 / 2; object-fit: cover; padding: 0; background: var(--ph); border: 0; border-radius: 4px; }

/* Join Us: funding opportunities */
.funding-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 40px); }
.funding-list { list-style: none; padding: 0; margin: 10px 0 0; display: flex; flex-direction: column; gap: 14px; }
.funding-list li { display: flex; flex-direction: column; gap: 4px; padding-top: 12px; border-top: 1px solid var(--line); }
.funding-list a { font-weight: 600; color: var(--ink); }
.funding-list a:hover { color: var(--accent); }
.funding-list span { font-size: 14px; color: var(--muted); line-height: 1.5; }
@media (max-width: 900px) { .funding-grid { grid-template-columns: minmax(0, 1fr); } }

/* Gallery: favourite photos shown large */
.gallery-featured { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: clamp(16px, 3vw, 32px); }
.gallery-featured figure { margin: 0; }
.gallery-featured img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; object-position: center 35%; border-radius: 6px; }
.gallery-featured figcaption { display: flex; justify-content: space-between; gap: 12px; margin-top: 8px; font-weight: 600; }
@media (max-width: 760px) { .gallery-featured { grid-template-columns: minmax(0, 1fr); } }

/* Research themes: show each picture at its own shape, filling the column (no white frame) */
img.ph-theme { aspect-ratio: auto; height: auto; width: 100%; object-fit: cover; border: 0; background: none; border-radius: 6px; }

/* Home hero: photos take turns behind the headline */
.hero-slides { background: var(--dark); }
.hero-slide { position: absolute; inset: 0; background-size: cover; background-repeat: no-repeat; opacity: 0; transition: opacity 1.4s ease; }
.hero-slide.is-on { opacity: 1; }
.hero-slides::before { z-index: 1; }
.hero-slides .hero-in { z-index: 2; }
.hero-slide-dots { position: absolute; z-index: 3; left: 0; right: 0; bottom: 22px; display: flex; justify-content: center; gap: 10px; }
.hero-slide-dots button { width: 10px; height: 10px; padding: 0; border-radius: 50%; border: 1.5px solid #fff; background: transparent; cursor: pointer; opacity: .8; }
.hero-slide-dots button[aria-pressed="true"] { background: #fff; opacity: 1; }
@media (prefers-reduced-motion: reduce) { .hero-slide { transition: none; } }

/* Datasets: pictures fill the card */
img.ph-data { object-fit: cover; background: var(--dark); }

/* News photos: keep heads in the frame (crop from the bottom, not the top) */
.news-card img, .news-thumb img, img.ph-thumb, .news-feature img, img.ph-tall:not(.ph-theme) { object-position: center 22%; }
img.ph-tall { object-fit: cover; }

/* Profile: picture for a talk */
.talk-figure { display: block; margin: 16px 0 0; max-width: 640px; }
.talk-figure img { max-height: none; flex: none; }
.talk-figure img { width: 100%; border-radius: 6px; box-shadow: 0 8px 22px rgba(0,0,0,.12); }
.talk-figure figcaption { margin-top: 8px; font-size: 14px; color: var(--muted); }
.prose figure.talk-figure { display: block; }
.profile .talk-figure img, .prose .talk-figure img { max-width: 100%; width: 100%; flex: none; max-height: none; background: none; }

/* Gallery: one card per event; open it to see all its photos */
.albums { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; margin-top: 24px; }
.album summary { list-style: none; cursor: pointer; display: flex; flex-direction: column; gap: 6px; }
.album summary::-webkit-details-marker { display: none; }
.album summary img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: center 30%; border-radius: 6px; transition: transform .2s, box-shadow .2s; }
.album summary:hover img { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(0,0,0,.14); }
.album-title { font-weight: 600; color: var(--ink); }
.album[open] { grid-column: 1 / -1; }
.album[open] summary img { max-width: 360px; }
.album-photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; margin-top: 14px; }
.album-photos img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: center 30%; border-radius: 4px; }
.album[hidden] { display: none; }
@media (max-width: 900px) { .albums { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .albums { grid-template-columns: minmax(0, 1fr); } }
.albums { grid-auto-flow: row dense; }

/* Key papers under each research theme */
.key-papers { margin-top: 1.4rem; }
.key-papers ul { list-style: none; padding: 0; margin: .4rem 0 .6rem; }
.key-papers li { padding: .55rem 0; border-top: 1px solid var(--line, #e5e5e5); line-height: 1.4; }
.key-papers li a { font-weight: 600; }

/* News cards that show a program or partner logo instead of a photo */
.news-logo { display:flex; align-items:center; justify-content:center; background:#fff; border:1px solid var(--line, #e5e5e5); }
.news-logo img { max-width:62%; max-height:62%; width:auto !important; height:auto !important; object-fit:contain !important; }
.news-card .news-logo { width:100%; aspect-ratio:4 / 3; border-radius:4px; }
.news-logo img { aspect-ratio:auto !important; border-radius:0 !important; box-shadow:none !important; transform:none !important; }
