/* APEX Lab website stylesheet
   ---------------------------------------------------------------------------
   Layout concept: white institutional pages on a 1200px grid. The logo's
   stepped line (a multilevel staircase) is the one recurring motif: the
   page-title bands, list bullets, the research drawings and the call-to-action
   panels. Everything else stays quiet, typographic and well spaced, so the
   lab's photographs, drawings and people carry the pages.

   Every colour comes from the APEX Lab logo canvas. The site is deliberately
   light-only: the brief asks for white pages, and the official logo and the
   college emblem are supplied for white backgrounds.

   Contents
   1  Tokens            8  Pictures and cards    15 Publications
   2  Base              9  Home page             16 News and events
   3  Layout           10  Page head, crumbs     17 Forms and contact
   4  (reserved)       11  Research              18 About, statements, CTA
   5  Header and nav   12  People                19 Footer
   6  Buttons, links   13  Projects, facilities  20 Utilities, overlays
   7  Tags and chips   14  Detail pages
   --------------------------------------------------------------------------- */

/* 1  Tokens ---------------------------------------------------------------- */
:root {
  color-scheme: light;

  /* Colour: from the logo */
  --forest: #0F3B2E;        /* logo, primary (wordmark and leaf) */
  --forest-deep: #0C2A21;   /* logo canvas, reversed background */
  --forest-hover: #1D5A46;  /* logo canvas, hover */
  --leaf: #3E9E68;          /* logo, accent (lower leaf) */
  --leaf-ink: #2F7D57;      /* accent dark enough for text on white (5:1) */
  --leaf-soft: #7CC79A;     /* accent on dark backgrounds */
  --leaf-wash: #E6F2EA;     /* tint for tags */
  --paper: #FFFFFF;
  --mist: #F3F6F4;          /* logo canvas, icon background */
  --mist-2: #E8EEEA;
  --line: #D6DDD9;          /* logo divider rule */
  --line-strong: #BAC7C0;
  --ink: #14201B;           /* headings: near-black with a green bias */
  --text: #2A3530;          /* body text: dark charcoal */
  --slate: #55625C;         /* logo subtitle grey: secondary text */
  --on-dark: #FFFFFF;
  --on-dark-2: #C4D7CC;
  --error: #A4281F;

  /* Type: the wordmark is set in Inter Tight, so the site uses the Inter family */
  --font-display: "Inter Display", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-text: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, "Liberation Mono", monospace;

  --fs-display: clamp(2.25rem, 1.55rem + 2.1vw, 3.25rem);
  --fs-h1: clamp(2rem, 1.6rem + 1.35vw, 2.75rem);
  --fs-h2: clamp(1.5rem, 1.32rem + 0.7vw, 2rem);
  --fs-h3: 1.25rem;
  --fs-lead: clamp(1.0625rem, 1rem + 0.28vw, 1.25rem);
  --fs-body: 1rem;
  --fs-small: 0.875rem;
  --fs-xs: 0.8125rem;

  /* Space and shape */
  --container: 1200px;
  --gutter: clamp(16px, 3.6vw, 32px);
  --section: clamp(56px, 7vw, 96px);
  --header-h: 88px;
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 16px;
  --shadow-pop: 0 18px 44px rgba(20, 32, 27, 0.13);
  --shadow-hover: 0 12px 32px rgba(20, 32, 27, 0.08);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);

  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

@media (max-width: 1099.98px) { :root { --header-h: 72px; } }
@media (max-width: 639.98px) { :root { --header-h: 70px; } }

/* 2  Base ------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 24px); }
body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font: 400 var(--fs-body)/1.6 var(--font-text);
  font-feature-settings: "kern", "liga", "calt";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
body::before {
  content: "";
  position: fixed;
  inset: 0 0 auto;
  height: env(safe-area-inset-top, 0px);
  background: var(--paper);
  z-index: 60;
}
[hidden] { display: none !important; }
img, svg, video { max-width: 100%; }
img { height: auto; }
h1, h2, h3, h4 {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.015em;
  text-wrap: balance;
}
h4 { font-family: var(--font-text); letter-spacing: 0; }
p, ul, ol, dl, figure, blockquote { margin: 0; }
a {
  color: var(--forest);
  text-decoration-color: var(--leaf);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
}
a:hover { color: var(--leaf-ink); }
:focus-visible { outline: 2.5px solid var(--leaf); outline-offset: 2px; }
main:focus { outline: none; }
strong { font-weight: 600; color: var(--ink); }
button { font: inherit; }
::selection { background: var(--leaf-wash); color: var(--ink); }

.icon {
  width: 20px;
  height: 20px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.icon--sm { width: 16px; height: 16px; }
.icon--lg { width: 24px; height: 24px; }

.skip-link {
  position: absolute;
  left: 16px;
  top: -80px;
  z-index: 200;
  padding: 10px 16px;
  border-radius: var(--r-sm);
  background: var(--forest);
  color: var(--on-dark);
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus { top: 12px; color: var(--on-dark); }

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

/* 3  Layout ---------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: calc(var(--container) + 2 * var(--gutter));
  margin-inline: auto;
  padding-left: max(var(--gutter), env(safe-area-inset-left, 0px));
  padding-right: max(var(--gutter), env(safe-area-inset-right, 0px));
}
.container--narrow { max-width: calc(820px + 2 * var(--gutter)); }
.measure-wide { max-width: 820px; }

.section { padding-block: var(--section); }
.section--mist { background: var(--mist); }
.section--tight { padding-block: clamp(40px, 5vw, 64px); }
.section--flush-top { padding-top: 0; }
.section--continue { padding-top: clamp(32px, 4vw, 48px); }
.section + .section:not(.section--mist):not(.section--flush-top):not(.section--continue) { border-top: 1px solid var(--line); }
.section--mist + .section, .section + .section--mist { border-top: 0; }

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px 32px;
  margin-bottom: clamp(24px, 3vw, 36px);
}
.section-head h2 { font-size: var(--fs-h2); }
.section-head__intro { max-width: 62ch; margin-top: 10px; color: var(--slate); }
.section-head__text { min-width: 0; }

.stack { display: grid; gap: 16px; align-content: start; }
.stack--lg { gap: 24px; }
.stack--sm { gap: 10px; }

.grid { display: grid; gap: clamp(16px, 2.2vw, 28px); }
.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)); }

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.split--top { align-items: start; }

.lead { font-size: var(--fs-lead); line-height: 1.55; color: var(--text); }
.muted { color: var(--slate); }
.measure { max-width: 66ch; }

@media (max-width: 959.98px) {
  .grid--3, .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 639.98px) {
  .grid--2, .grid--3, .grid--4 { grid-template-columns: minmax(0, 1fr); }
}

.h1 { font-size: var(--fs-h1); }
.h2 { font-size: var(--fs-h2); }
.h3 { font-size: var(--fs-h3); }
.small { font-size: var(--fs-small); }

/* 4  (reserved) ---------------------------------------------------------- */

/* 5  Header and navigation ------------------------------------------------- */
.site-header {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 50;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.2s var(--ease);
}
.site-header.is-scrolled { box-shadow: 0 6px 24px rgba(20, 32, 27, 0.07); }
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: var(--header-h);
}
.brand-group { display: flex; flex: none; align-items: center; gap: 14px; }
.brand { display: block; flex: none; border-radius: 4px; }
.brand img { display: block; width: auto; height: 52px; }
.brand-cet { display: block; flex: none; padding-left: 14px; border-left: 1px solid var(--line); border-radius: 0; }
.brand-cet img { display: block; width: auto; height: 46px; }

.main-nav__list { display: flex; align-items: center; gap: 2px; margin: 0; padding: 0; list-style: none; }
.main-nav__item { position: relative; display: flex; align-items: center; }
.main-nav__link {
  position: relative;
  display: inline-flex;
  align-items: center;
  height: var(--header-h);
  padding: 0 12px;
  color: var(--ink);
  font: 500 0.9375rem/1 var(--font-text);
  text-decoration: none;
  white-space: nowrap;
}
.main-nav__link::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: -1px;
  height: 3px;
  background: var(--leaf);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s var(--ease);
}
.main-nav__link:hover { color: var(--forest); }
.main-nav__link:hover::after { transform: scaleX(1); background: var(--line-strong); }
.main-nav__link[aria-current="page"]::after,
.main-nav__item.is-active > .main-nav__link::after { transform: scaleX(1); background: var(--leaf); }
.main-nav__item.has-sub > .main-nav__link { padding-right: 2px; }
.main-nav__item.has-sub > .main-nav__link::after { right: 2px; }

.sub-toggle {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 34px;
  margin-right: 4px;
  border: 0;
  border-radius: var(--r-sm);
  background: transparent;
  color: var(--slate);
  cursor: pointer;
}
.sub-toggle:hover { color: var(--forest); background: var(--mist); }
.sub-toggle .icon { width: 16px; height: 16px; transition: transform 0.2s var(--ease); }
.main-nav__item.is-open > .sub-toggle .icon { transform: rotate(180deg); }

.sub-menu {
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 10;
  min-width: 250px;
  padding: 10px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-top: 0;
  border-radius: 0 0 var(--r-md) var(--r-md);
  box-shadow: var(--shadow-pop);
  visibility: hidden;
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity 0.16s var(--ease), transform 0.16s var(--ease), visibility 0s linear 0.16s;
}
.main-nav__item.is-open > .sub-menu {
  visibility: visible;
  opacity: 1;
  transform: none;
  transition: opacity 0.16s var(--ease), transform 0.16s var(--ease);
}
@media (hover: hover) and (min-width: 1100px) {
  .main-nav__item.has-sub:hover > .sub-menu {
    visibility: visible;
    opacity: 1;
    transform: none;
    transition: opacity 0.16s var(--ease), transform 0.16s var(--ease);
  }
  .main-nav__item.has-sub:hover > .sub-toggle .icon { transform: rotate(180deg); }
}
.sub-menu ul { display: grid; gap: 2px; margin: 0; padding: 0; list-style: none; }
.sub-menu a {
  display: block;
  padding: 9px 12px;
  border-radius: var(--r-sm);
  color: var(--ink);
  font-size: 0.9375rem;
  line-height: 1.35;
  text-decoration: none;
}
.sub-menu a:hover { background: var(--mist); color: var(--forest); }
.sub-menu a[aria-current="page"] { background: var(--leaf-wash); }
.sub-menu__desc { display: block; margin-top: 2px; color: var(--slate); font-size: var(--fs-xs); }
.sub-menu__divider { margin-top: 6px; padding-top: 6px; border-top: 1px solid var(--line); }
.sub-menu__heading {
  display: block;
  padding: 8px 12px 6px;
  color: var(--slate);
  font: 600 var(--fs-xs)/1.3 var(--font-text);
  text-decoration: none;
}
a.sub-menu__heading:hover { color: var(--forest); text-decoration: underline; background: transparent; }

.menu-button {
  display: none;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  background: var(--paper);
  color: var(--forest);
  font: 600 0.9375rem/1 var(--font-text);
  cursor: pointer;
}
.menu-button .icon-close { display: none; }
.site-header.nav-open .menu-button .icon-open { display: none; }
.site-header.nav-open .menu-button .icon-close { display: block; }

@media (max-width: 1199.98px) and (min-width: 1100px) {
  .main-nav__link { padding: 0 9px; font-size: 0.9rem; }
  .main-nav__link::after { left: 9px; right: 9px; }
  .brand img { height: 46px; }
  .brand-cet img { height: 40px; }
  .brand-group { gap: 12px; }
  .brand-cet { padding-left: 12px; }
}

@media (max-width: 1099.98px) {
  .brand img { height: 44px; }
  .brand-cet img { height: 40px; }
  .menu-button { display: inline-flex; }
  .main-nav {
    position: fixed;
    top: var(--nav-top, var(--header-h));
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 49;
    display: none;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 8px max(var(--gutter), env(safe-area-inset-right, 0px)) calc(32px + env(safe-area-inset-bottom, 0px)) max(var(--gutter), env(safe-area-inset-left, 0px));
    background: var(--paper);
    border-top: 1px solid var(--line);
  }
  .site-header.nav-open .main-nav { display: block; }
  .main-nav__list { flex-direction: column; align-items: stretch; gap: 0; max-width: 640px; margin-inline: auto; }
  .main-nav__item { flex-wrap: wrap; border-bottom: 1px solid var(--line); }
  .main-nav__link { flex: 1; height: auto; min-height: 56px; padding: 0; font-size: 1.0625rem; }
  .main-nav__link::after { display: none; }
  .main-nav__link[aria-current="page"], .main-nav__item.is-active > .main-nav__link { color: var(--leaf-ink); font-weight: 600; }
  .main-nav__item.has-sub > .main-nav__link { padding-right: 0; }
  .sub-toggle { width: 48px; height: 48px; margin-right: -8px; }
  .sub-toggle .icon { width: 20px; height: 20px; }
  .sub-menu {
    position: static;
    display: none;
    width: 100%;
    min-width: 0;
    margin: 0;
    padding: 0 0 14px;
    border: 0;
    box-shadow: none;
    visibility: visible;
    opacity: 1;
    transform: none;
    transition: none;
  }
  .main-nav__item.is-open > .sub-menu { display: block; }
  .sub-menu a { padding: 10px 12px; }
}
@media (max-width: 639.98px) {
  .brand img { height: 38px; }
  .brand-cet img { height: 34px; }
  .brand-group { gap: 10px; }
  .brand-cet { padding-left: 10px; }
  .menu-button__label { display: none; }
  .menu-button { padding: 0 11px; }
}
html.nav-locked { overflow: hidden; }

/* 6  Buttons and links ------------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: var(--r-sm);
  font: 600 0.9375rem/1.2 var(--font-text);
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s, border-color 0.15s, color 0.15s;
}
.btn--primary { background: var(--forest); color: var(--on-dark); }
.btn--primary:hover { background: var(--forest-hover); color: var(--on-dark); }
.btn--secondary { background: var(--paper); border-color: var(--line-strong); color: var(--forest); }
.btn--secondary:hover { background: var(--mist); border-color: var(--forest); color: var(--forest); }
.btn--light { background: var(--paper); color: var(--forest); }
.btn--light:hover { background: var(--leaf-wash); color: var(--forest); }
.btn--outline-light { border-color: rgba(255, 255, 255, 0.5); color: var(--on-dark); }
.btn--outline-light:hover { border-color: var(--on-dark); background: rgba(255, 255, 255, 0.08); color: var(--on-dark); }
.btn--small { min-height: 38px; padding: 0 14px; font-size: var(--fs-small); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

.link-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--forest);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--leaf);
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}
.link-more:hover { color: var(--leaf-ink); text-decoration-color: var(--leaf-ink); }

.text-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 0;
  border: 0;
  background: none;
  color: var(--forest);
  font: 500 var(--fs-small)/1.3 var(--font-text);
  text-decoration: underline;
  text-decoration-color: var(--line-strong);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 4px;
  cursor: pointer;
}
.text-button:hover { color: var(--leaf-ink); text-decoration-color: var(--leaf); }
.text-button[aria-expanded="true"] { text-decoration-color: var(--leaf); }

.copy-btn {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--paper);
  color: var(--slate);
  cursor: pointer;
  vertical-align: middle;
}
.copy-btn:hover { color: var(--forest); border-color: var(--line-strong); background: var(--mist); }
.copy-btn .icon { width: 16px; height: 16px; }

/* 7  Tags, status and chips ------------------------------------------------- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 2px 10px;
  border-radius: 999px;
  background: var(--leaf-wash);
  color: var(--forest);
  font: 500 var(--fs-xs)/1.5 var(--font-text);
  white-space: nowrap;
}
.tag--outline { background: transparent; box-shadow: inset 0 0 0 1px var(--line-strong); color: var(--slate); }
.tag--dark { background: rgba(255, 255, 255, 0.12); color: var(--on-dark); }
.tag-list { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }

.status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--slate);
  font: 500 var(--fs-xs)/1.5 var(--font-text);
  white-space: nowrap;
}
.status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--line-strong); }
.status--ongoing { color: var(--leaf-ink); }
.status--ongoing::before { background: var(--leaf); box-shadow: 0 0 0 3px var(--leaf-wash); }
.status--discussion::before { background: transparent; box-shadow: inset 0 0 0 1.5px var(--slate); }

.meta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; color: var(--slate); font-size: var(--fs-small); }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--paper);
  color: var(--text);
  font: 500 var(--fs-small)/1 var(--font-text);
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s, border-color 0.15s, color 0.15s;
}
.chip:hover { border-color: var(--forest); color: var(--forest); }
.chip[aria-pressed="true"] { background: var(--forest); border-color: var(--forest); color: var(--on-dark); }
.chip__count { color: var(--slate); font-variant-numeric: tabular-nums; }
.chip[aria-pressed="true"] .chip__count { color: var(--on-dark-2); }
.tag--paper { background: var(--paper); }
.icon-link { display: inline-flex; align-items: center; gap: 8px; color: var(--forest); font-size: 0.9375rem; font-weight: 500; text-decoration: none; }
.icon-link:hover { color: var(--forest); text-decoration: underline; text-decoration-color: var(--leaf); text-underline-offset: 3px; }
.icon-link .icon { width: 18px; height: 18px; color: var(--leaf-ink); }

/* 8  Pictures and cards ------------------------------------------------------ */
.pic { position: relative; max-width: 100%; overflow: hidden; background: var(--mist-2); }
.pic img { display: block; width: 100%; height: 100%; object-fit: cover; }
.pic--contain { background: var(--paper); }
.pic--contain img { object-fit: contain; }
.ratio-16x9 { aspect-ratio: 16 / 9; }
.ratio-16x10 { aspect-ratio: 16 / 10; }
.ratio-3x2 { aspect-ratio: 3 / 2; }
.ratio-4x3 { aspect-ratio: 4 / 3; }
.ratio-1x1 { aspect-ratio: 1 / 1; }
.ratio-4x5 { aspect-ratio: 4 / 5; }
.ratio-3x4 { aspect-ratio: 3 / 4; }
.ratio-21x9 { aspect-ratio: 21 / 9; }
.rounded { border-radius: var(--r-md); }

/* A picture that opens the image viewer */
.zoom {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: var(--r-sm);
  background: none;
  text-align: left;
  cursor: zoom-in;
}
.zoom.rounded { border-radius: var(--r-md); }
.zoom img { transition: transform 0.4s var(--ease); }
.zoom:hover img { transform: scale(1.03); }
.zoom:hover .pic--contain img { transform: none; }
.zoom__hint {
  position: absolute;
  right: 10px;
  bottom: 10px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.94);
  color: var(--forest);
  box-shadow: 0 2px 10px rgba(20, 32, 27, 0.16);
  opacity: 0;
  transition: opacity 0.2s var(--ease);
}
.zoom:hover .zoom__hint, .zoom:focus-visible .zoom__hint { opacity: 1; }
@media (hover: none) { .zoom__hint { opacity: 1; } }

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  transition: border-color 0.15s, box-shadow 0.2s var(--ease);
}
.card__top { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }

.avatar { display: block; flex: none; overflow: hidden; border-radius: 50%; background: var(--mist-2); }
.avatar img { display: block; width: 100%; height: 100%; object-fit: cover; }
.avatar--initials { display: grid; place-items: center; background: var(--leaf-wash); color: var(--forest); font-family: var(--font-display); font-weight: 600; letter-spacing: 0.02em; }

.ticks { display: grid; gap: 9px; margin: 0; padding: 0; list-style: none; }
.ticks--compact { gap: 6px; font-size: 0.9375rem; }
.ticks li, .spec-list li, .machine-list li { position: relative; padding-left: 24px; }
.ticks li::before, .spec-list li::before, .machine-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.42em;
  width: 13px;
  height: 11px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 13 11'%3E%3Cpath d='M0 10h4V6h4V2h5' fill='none' stroke='%233E9E68' stroke-width='2'/%3E%3C/svg%3E") no-repeat;
}
.spec-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 22px; margin: 0; padding: 14px 0 0; list-style: none; border-top: 1px solid var(--line); font-size: 0.9375rem; }
@media (max-width: 479.98px) { .spec-list { grid-template-columns: minmax(0, 1fr); } }

/* Line drawings for the research areas */
.motif { display: block; flex: none; }
.motif__line { fill: none; stroke: var(--forest); stroke-width: 3.5; stroke-linejoin: round; }
.motif__soft { fill: none; stroke: var(--leaf); stroke-width: 2.75; stroke-linejoin: round; }
.motif__axis { stroke: var(--line-strong); stroke-width: 1.5; }
.motif__dot { fill: var(--leaf); }

/* 9  Home page ----------------------------------------------------------------- */
/* The introduction sits on a slideshow of lab photographs. A dark green shade over
   the photos keeps the text readable whichever photo is showing: it is heaviest
   behind the text and lets more of the photo through on the right. */
.hero {
  --hero-shade: 9 38 29;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: rgb(var(--hero-shade));
  color: var(--on-dark);
}
.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__slide { position: absolute; inset: 0; margin: 0; opacity: 0; transition: opacity 1.4s ease; }
.hero__slide.is-active { opacity: 1; }
.hero__slide img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  transform: scale(1.06);
  transition: transform 9s linear;
}
.hero__slide.is-active img { transform: scale(1); }
.hero--start .hero__slide.is-active img { transform: scale(1.06); }
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgb(var(--hero-shade) / 0.93) 0%, rgb(var(--hero-shade) / 0.87) 48%, rgb(var(--hero-shade) / 0.56) 78%, rgb(var(--hero-shade) / 0.36) 100%),
    linear-gradient(0deg, rgb(var(--hero-shade) / 0.5) 0%, rgb(var(--hero-shade) / 0) 38%);
}
.hero__inner {
  display: grid;
  grid-template-rows: 1fr auto;
  gap: 28px;
  min-height: clamp(540px, calc(100vh - var(--header-h) - 120px), 720px);
  padding-block: clamp(48px, 6.5vw, 96px) 26px;
}
.hero__text { display: grid; gap: 22px; align-content: center; max-width: 660px; }
.hero__eyebrow { color: #93D8B1; font: 600 var(--fs-small)/1.45 var(--font-text); }
.hero__title { font-size: var(--fs-display); line-height: 1.05; letter-spacing: -0.026em; color: var(--on-dark); }
.hero__lead { max-width: 54ch; font-size: var(--fs-lead); line-height: 1.6; color: rgba(255, 255, 255, 0.88); text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 4px; }
.hero :focus-visible { outline-color: var(--on-dark); }

.hero__controls { display: flex; align-items: center; justify-content: flex-end; gap: 12px; min-height: 32px; }
.hero__caption { margin: 0; color: rgba(255, 255, 255, 0.74); font-size: var(--fs-xs); text-align: right; }
.hero__dots { display: flex; }
.hero__dot { position: relative; width: 24px; height: 24px; padding: 0; border: 0; background: none; cursor: pointer; }
.hero__dot::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.42);
  transform: translate(-50%, -50%);
  transition: width 0.3s var(--ease), background-color 0.3s var(--ease);
}
.hero__dot:hover::before { background: rgba(255, 255, 255, 0.75); }
.hero__dot[aria-pressed="true"]::before { width: 20px; background: var(--on-dark); }
.hero__pause {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  margin-left: 2px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.12);
  color: var(--on-dark);
  cursor: pointer;
}
.hero__pause:hover { border-color: var(--on-dark); background: rgba(255, 255, 255, 0.1); }
.hero__pause .icon { width: 14px; height: 14px; }
.hero__pause .icon-play path { fill: currentColor; }
.hero.is-paused .icon-pause, .hero:not(.is-paused) .icon-play { display: none; }

@media (max-width: 1099.98px) {
  .hero::before {
    background:
      linear-gradient(90deg, rgb(var(--hero-shade) / 0.92) 0%, rgb(var(--hero-shade) / 0.86) 60%, rgb(var(--hero-shade) / 0.62) 100%),
      linear-gradient(0deg, rgb(var(--hero-shade) / 0.5) 0%, rgb(var(--hero-shade) / 0) 38%);
  }
}
@media (max-width: 767.98px) {
  .hero::before { background: linear-gradient(180deg, rgb(var(--hero-shade) / 0.78) 0%, rgb(var(--hero-shade) / 0.88) 100%); }
  .hero__inner { min-height: 0; gap: 32px; padding-block: 44px 22px; }
  .hero__controls { flex-wrap: wrap; justify-content: space-between; gap: 6px 12px; }
  .hero__caption { flex-basis: 100%; order: 3; text-align: left; }
}
@media (prefers-reduced-motion: reduce) {
  .hero__slide, .hero__slide img { transition: none; }
  .hero__slide img, .hero__slide.is-active img, .hero--start .hero__slide.is-active img { transform: none; }
}

.highlights-band { background: var(--forest); color: var(--on-dark); }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0; padding: 0; list-style: none; }
.stat { display: grid; gap: 10px; align-content: start; padding: clamp(24px, 3vw, 36px) clamp(16px, 2vw, 28px); border-left: 1px solid rgba(255, 255, 255, 0.16); }
.stat:first-child { padding-left: 0; border-left: 0; }
.stat__figure { color: var(--on-dark); font: 600 clamp(2rem, 1.55rem + 1.5vw, 2.75rem)/1 var(--font-display); letter-spacing: -0.02em; }
.stat__label { max-width: 30ch; color: var(--on-dark-2); font-size: var(--fs-small); line-height: 1.5; }
@media (max-width: 959.98px) {
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat:nth-child(3) { padding-left: 0; border-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid rgba(255, 255, 255, 0.16); }
}
@media (max-width: 479.98px) {
  .stats { grid-template-columns: minmax(0, 1fr); }
  .stat { padding-inline: 0; border-left: 0; }
  .stat + .stat { border-top: 1px solid rgba(255, 255, 255, 0.16); }
}

.vision-quote { display: grid; gap: 18px; align-content: start; margin: 0; padding: clamp(24px, 3.5vw, 40px); border-radius: var(--r-lg); background: var(--mist); }
.vision-quote__label { display: flex; align-items: center; gap: 10px; color: var(--leaf-ink); font: 600 var(--fs-small)/1 var(--font-text); }
.vision-quote blockquote { margin: 0; }
.vision-quote blockquote p { color: var(--forest); font: 500 clamp(1.25rem, 1.1rem + 0.6vw, 1.625rem)/1.4 var(--font-display); letter-spacing: -0.01em; }

.area-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(14px, 2vw, 22px); }
.area-card { position: relative; display: grid; gap: 12px; align-content: start; padding: 22px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--paper); transition: border-color 0.15s, box-shadow 0.2s var(--ease); }
.area-card:hover { border-color: var(--line-strong); box-shadow: var(--shadow-hover); }
.area-card .motif { width: 64px; height: 64px; margin-bottom: 4px; }
.area-card__title { font-size: 1.125rem; line-height: 1.3; }
.area-card__title a { color: inherit; text-decoration: none; }
.area-card__title a::after { content: ""; position: absolute; inset: 0; }
.area-card:hover .area-card__title a { text-decoration: underline; text-decoration-color: var(--leaf); }
.area-card:has(a:focus-visible) { outline: 2.5px solid var(--leaf); outline-offset: 2px; }
.area-card__title a:focus-visible { outline: none; }
.area-card__text { color: var(--slate); font-size: 0.9375rem; }
@media (max-width: 1023.98px) { .area-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 559.98px) { .area-cards { grid-template-columns: minmax(0, 1fr); } }

.home-projects { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(20px, 3vw, 36px); align-items: start; }
.feature-project { display: grid; gap: 14px; padding: clamp(22px, 3vw, 32px); border: 1px solid var(--line); border-radius: var(--r-md); background: var(--paper); }
.feature-project__title { font-size: 1.5rem; }
.feature-project__title a { color: inherit; text-decoration: none; }
.feature-project__title a:hover { text-decoration: underline; text-decoration-color: var(--leaf); }
.feature-project__partner { color: var(--leaf-ink); font-size: var(--fs-small); font-weight: 600; }
.home-projects__side { display: grid; gap: 16px; }
.mini-project { position: relative; display: grid; grid-template-columns: 148px minmax(0, 1fr); gap: 16px; align-items: start; padding: 14px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--paper); }
.mini-project:hover { border-color: var(--line-strong); box-shadow: var(--shadow-hover); }
.mini-project .pic { border-radius: var(--r-sm); }
.mini-project h3 { font: 600 1.0625rem/1.35 var(--font-text); letter-spacing: 0; }
.mini-project h3 a { color: inherit; text-decoration: none; }
.mini-project h3 a::after { content: ""; position: absolute; inset: 0; }
.mini-project:hover h3 a { text-decoration: underline; text-decoration-color: var(--leaf); }
@media (max-width: 959.98px) { .home-projects { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 479.98px) { .mini-project { grid-template-columns: 104px minmax(0, 1fr); } }

.drawing-teaser { display: grid; gap: 8px; align-content: start; padding: 14px 14px 16px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--paper); color: var(--ink); text-decoration: none; transition: border-color 0.15s, box-shadow 0.2s var(--ease); }
.drawing-teaser:hover { border-color: var(--line-strong); box-shadow: var(--shadow-hover); color: var(--ink); }
.drawing-teaser .pic { margin-bottom: 4px; border-radius: var(--r-sm); }
.drawing-teaser__title { font-weight: 600; line-height: 1.35; }
.drawing-teaser:hover .drawing-teaser__title { text-decoration: underline; text-decoration-color: var(--leaf); }
.drawing-teaser__meta { color: var(--slate); font-size: var(--fs-small); font-variant-numeric: tabular-nums; }

.people-preview { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(20px, 3vw, 40px); align-items: start; }
.faculty-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.faculty-chip { display: grid; gap: 3px; align-content: start; color: var(--ink); text-decoration: none; }
.faculty-chip__photo { margin-bottom: 10px; border-radius: var(--r-md); }
.faculty-chip__role { color: var(--leaf-ink); font-size: var(--fs-xs); font-weight: 600; }
.faculty-chip__name { font: 600 1rem/1.3 var(--font-text); }
.faculty-chip:hover { color: var(--ink); }
.faculty-chip:hover .faculty-chip__name { text-decoration: underline; text-decoration-color: var(--leaf); }
.faculty-chip__meta { color: var(--slate); font-size: var(--fs-small); }
.people-panel { display: grid; gap: 18px; padding: 24px; border-radius: var(--r-md); background: var(--mist); }
.people-panel__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.people-panel__row:last-of-type { padding-bottom: 0; border-bottom: 0; }
.people-panel__num { color: var(--forest); font: 600 1.75rem/1 var(--font-display); font-variant-numeric: tabular-nums; }
.avatar-stack { display: flex; margin: 0; padding: 0; list-style: none; }
.avatar-stack li { margin-left: -8px; border: 2px solid var(--mist); border-radius: 50%; }
.avatar-stack li:first-child { margin-left: 0; }
@media (max-width: 959.98px) { .people-preview { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 559.98px) { .faculty-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* 10  Page head and breadcrumbs ------------------------------------------------ */
.page-head { position: relative; overflow: hidden; background: var(--mist); border-bottom: 1px solid var(--line); }
.page-head__inner { position: relative; z-index: 1; padding-block: clamp(28px, 4.5vw, 52px) clamp(36px, 5vw, 60px); }
.page-head h1 { max-width: 28ch; margin-top: 14px; font-size: var(--fs-h1); }
.page-head__lead { max-width: 62ch; margin-top: 14px; color: var(--slate); font-size: var(--fs-lead); line-height: 1.55; }
.page-head__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-top: 18px; }
.page-head__art { position: absolute; right: 0; bottom: 0; width: min(44%, 560px); height: 100%; pointer-events: none; }
.page-head__art path.fill { fill: var(--mist-2); }
.page-head__art path.edge { fill: none; stroke: var(--paper); stroke-width: 5; }
.page-head__art path.trace { fill: none; stroke: var(--leaf); stroke-width: 1.5; stroke-opacity: 0.55; }
@media (max-width: 767.98px) { .page-head__art { width: 70%; opacity: 0.55; } }

.crumbs ol { display: flex; flex-wrap: wrap; gap: 4px 8px; margin: 0; padding: 0; list-style: none; color: var(--slate); font-size: var(--fs-small); }
.crumbs li { display: inline-flex; align-items: center; gap: 8px; min-width: 0; }
.crumbs li + li::before { content: "/"; color: var(--line-strong); }
.crumbs a { color: var(--slate); text-decoration: none; }
.crumbs a:hover { color: var(--forest); text-decoration: underline; }
.crumbs [aria-current="page"] { color: var(--ink); }

.subnav {
  position: sticky;
  top: calc(var(--header-h) + env(safe-area-inset-top, 0px));
  z-index: 40;
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid var(--line);
}
.subnav__list { display: flex; gap: 4px; margin: 0; padding: 0; overflow-x: auto; list-style: none; scrollbar-width: none; }
.subnav__list::-webkit-scrollbar { display: none; }
.subnav a {
  display: block;
  padding: 14px 14px 12px;
  border-bottom: 3px solid transparent;
  color: var(--slate);
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
}
.subnav a:hover { color: var(--forest); }
.subnav a[aria-current="true"] { border-color: var(--leaf); color: var(--forest); }
.subnav__count { margin-left: 6px; color: var(--slate); font-variant-numeric: tabular-nums; font-weight: 400; }

/* 11  Research ------------------------------------------------------------------ */
.area-section { scroll-margin-top: calc(var(--header-h) + 48px); }
.area { display: grid; grid-template-columns: 136px minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.area__aside .motif { width: 136px; height: 136px; padding: 12px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--paper); }
.area__main { display: grid; gap: 20px; max-width: 820px; min-width: 0; }
.area__title { max-width: 32ch; font-size: var(--fs-h2); }
.area__related { display: grid; gap: 8px; }
.link-list { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.area__pubs { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.area__pubs summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 0; color: var(--forest); font-weight: 600; cursor: pointer; list-style: none; }
.area__pubs summary::-webkit-details-marker { display: none; }
.area__pubs summary .icon { color: var(--slate); transition: transform 0.2s var(--ease); }
.area__pubs[open] summary .icon { transform: rotate(180deg); }
.area__pubs .pub-list { padding-bottom: 12px; }
@media (max-width: 767.98px) {
  .area { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .area__aside .motif { width: 76px; height: 76px; padding: 8px; }
}

/* 12  People --------------------------------------------------------------------- */
.faculty-list { display: grid; gap: 20px; }
.faculty {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: clamp(20px, 3vw, 36px);
  padding: clamp(20px, 2.6vw, 28px);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--paper);
  scroll-margin-top: calc(var(--header-h) + 64px);
}
.faculty--lead { grid-template-columns: 260px minmax(0, 1fr); margin-bottom: clamp(36px, 4vw, 52px); }
.faculty__photo { align-self: start; border-radius: var(--r-sm); }
.faculty__body { display: grid; gap: 14px; align-content: start; min-width: 0; }
.faculty__role { color: var(--leaf-ink); font-size: var(--fs-small); font-weight: 600; }
.faculty__name { font-size: 1.5rem; }
.faculty--lead .faculty__name { font-size: 1.75rem; }
.faculty__meta { color: var(--slate); line-height: 1.5; }
.faculty__links { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 24px; }
.faculty__bio { display: grid; gap: 10px; max-width: 72ch; }
.faculty__phd { display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px; border-radius: var(--r-sm); background: var(--leaf-wash); color: var(--forest); font-size: 0.9375rem; }
.faculty__phd .icon { margin-top: 3px; }
.faculty__cv { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px 36px; padding-top: 4px; }
.faculty__cv > div { display: grid; gap: 8px; align-content: start; }
.cv-list { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.cv-list li { display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: 18px; padding-block: 14px; border-bottom: 1px solid var(--mist-2); }
.cv-list li:first-child { padding-top: 0; }
.cv-list__when { color: var(--slate); font-size: var(--fs-small); font-variant-numeric: tabular-nums; }
.cv-list__what { display: grid; gap: 2px; min-width: 0; }
.cv-list__what strong { display: block; font-weight: 600; }
.cv-list__what span { color: var(--slate); font-size: 0.9375rem; }
.faculty__cv .cv-list li { grid-template-columns: 92px minmax(0, 1fr); gap: 14px; padding-block: 10px; }
.faculty__cv .cv-list__what span { font-size: var(--fs-small); }
.faculty__cv .cv-list li:first-child { padding-top: 4px; }
.tag-list--spaced { margin-top: 8px; }
.tag-list--spaced .tag { white-space: normal; }
.contact-line { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 8px; color: var(--text); font-size: 0.9375rem; overflow-wrap: anywhere; }
.contact-line .icon { color: var(--leaf-ink); }
.label-sm { color: var(--slate); font: 600 var(--fs-xs)/1.4 var(--font-text); letter-spacing: 0.01em; }
.subhead { margin: clamp(36px, 4vw, 52px) 0 18px; font-size: 1.25rem; }
.subhead-intro { margin: -10px 0 20px; font-size: var(--fs-small); }
@media (max-width: 479.98px) { .cv-list li, .faculty__cv .cv-list li { grid-template-columns: minmax(0, 1fr); gap: 2px; } }
@media (max-width: 767.98px) {
  .faculty, .faculty--lead { grid-template-columns: minmax(0, 1fr); }
  .faculty__photo { max-width: 220px; }
}

.people-group + .people-group { margin-top: clamp(36px, 4vw, 52px); }
.people-group__title { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; margin-bottom: 18px; font-size: 1.25rem; }
.people-group__title span { color: var(--slate); font: 400 var(--fs-small)/1.4 var(--font-text); }
.student-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.student { display: grid; grid-template-rows: auto 1fr; min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--paper); }
.student__photo { border-bottom: 1px solid var(--line); }
.student__body { display: grid; gap: 6px; align-content: start; min-width: 0; padding: 16px 16px 18px; }
.student__name { font: 600 1.0625rem/1.3 var(--font-text); letter-spacing: 0; }
.student__programme { color: var(--leaf-ink); font-size: var(--fs-xs); font-weight: 600; line-height: 1.4; }
.student__about { color: var(--slate); font-size: var(--fs-small); line-height: 1.5; }
.student__foot { padding-top: 6px; }
.student__foot .icon-link { font-size: var(--fs-small); }
@media (max-width: 1099.98px) { .student-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 767.98px) { .student-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 519.98px) {
  .student-grid { grid-template-columns: minmax(0, 1fr); }
  .student { grid-template-columns: 104px minmax(0, 1fr); grid-template-rows: none; }
  .student__photo { align-self: start; border-bottom: 0; border-right: 1px solid var(--line); border-bottom-right-radius: 0; }
  .student__body { padding: 12px 14px 14px; }
}

.alumni-year { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 24px; padding-block: 28px; border-top: 1px solid var(--line); }
.alumni-year:first-of-type { padding-top: 4px; border-top: 0; }
.alumni-year__label { color: var(--ink); font: 600 1.5rem/1.2 var(--font-display); font-variant-numeric: tabular-nums; }
.alumni-year__label span { display: block; margin-top: 4px; color: var(--slate); font: 400 var(--fs-xs)/1.4 var(--font-text); }
.alumni-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.alum { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 14px; align-content: start; padding: 16px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--paper); }
.alum__body { display: grid; gap: 4px; align-content: start; min-width: 0; }
.alum__name { font: 600 1rem/1.3 var(--font-text); letter-spacing: 0; }
.alum__now { color: var(--ink); font-size: var(--fs-small); font-weight: 500; }
.alum__project { color: var(--slate); font-size: var(--fs-xs); }
.alum__about { margin-top: 2px; color: var(--slate); font-size: var(--fs-xs); line-height: 1.5; }
.alum__foot { padding-top: 4px; }
.alum__foot .icon-link { font-size: var(--fs-small); }
@media (max-width: 1023.98px) { .alumni-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 767.98px) { .alumni-year { grid-template-columns: minmax(0, 1fr); gap: 14px; } }
@media (max-width: 559.98px) { .alumni-grid { grid-template-columns: minmax(0, 1fr); } }

.team-strip { display: flex; flex-wrap: wrap; gap: 14px 22px; margin: 0; padding: 0; list-style: none; }
.team-strip li { display: flex; align-items: center; gap: 10px; min-width: 0; }
.team-strip span { display: grid; font-size: var(--fs-small); line-height: 1.35; }
.team-strip small { color: var(--slate); font-size: var(--fs-xs); }

/* 13  Projects and facilities --------------------------------------------------- */
.empty-state { padding: 40px 24px; border: 1px dashed var(--line-strong); border-radius: var(--r-md); text-align: center; color: var(--slate); }
.empty-state p + p { margin-top: 12px; }

.project-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.project { display: grid; gap: 18px; align-content: start; min-width: 0; padding: clamp(20px, 2.8vw, 30px); border: 1px solid var(--line); border-radius: var(--r-md); background: var(--paper); scroll-margin-top: calc(var(--header-h) + 24px); }
.project--feature { grid-column: 1 / -1; }
.project__body { display: grid; gap: 12px; align-content: start; min-width: 0; }
.project__title { font-size: 1.375rem; }
.project--feature .project__title { font-size: 1.625rem; }
.project__partner { display: inline-flex; align-items: center; gap: 8px; color: var(--leaf-ink); font-size: var(--fs-small); font-weight: 600; }
.project--feature .spec-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.kv--inline { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px 24px; padding-top: 14px; border-top: 1px solid var(--line); }
@media (max-width: 959.98px) { .project--feature .spec-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 767.98px) { .project-list { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 479.98px) { .project--feature .spec-list { grid-template-columns: minmax(0, 1fr); } }

/* Facilities */
.machines-head { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: start; margin-bottom: clamp(8px, 1vw, 12px); }
.machine-list { display: grid; margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.machine-list li { padding-block: 12px; padding-left: 26px; border-bottom: 1px solid var(--line); color: var(--ink); font-weight: 500; }
.machine-list li::before { top: calc(12px + 0.42em); }
.drawing-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.drawing { display: grid; grid-template-rows: auto 1fr; min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--paper); }
.drawing__img { border-radius: 0; }
.drawing__img .pic { border-bottom: 1px solid var(--line); }
.drawing__body { display: grid; gap: 12px; align-content: start; padding: 18px 20px 20px; }
.drawing__title { font: 600 1.0625rem/1.35 var(--font-text); letter-spacing: 0; }
.spec-table { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 18px; margin: 0; font-size: var(--fs-small); }
.spec-table div { display: flex; justify-content: space-between; gap: 10px; padding-block: 7px; border-top: 1px solid var(--mist-2); }
.spec-table dt { color: var(--slate); }
.spec-table dd { margin: 0; color: var(--ink); font-weight: 500; text-align: right; font-variant-numeric: tabular-nums; }
.hardware-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.hardware { display: grid; align-content: start; min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--paper); }
.hardware > .zoom { border-radius: 0; border-bottom: 1px solid var(--line); }
.hardware__body { display: grid; gap: 8px; padding: 18px 20px 20px; }
.hardware__title { font: 600 1.0625rem/1.35 var(--font-text); letter-spacing: 0; }
.hardware__body p { color: var(--slate); font-size: 0.9375rem; }
@media (max-width: 1023.98px) { .drawing-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 767.98px) { .machines-head, .hardware-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 639.98px) { .drawing-list { grid-template-columns: minmax(0, 1fr); } }

/* 14  Detail pages ------------------------------------------------------------ */
.detail { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: clamp(32px, 5vw, 64px); align-items: start; }
.detail__main { display: grid; gap: 48px; min-width: 0; }
.detail__section { display: grid; gap: 18px; scroll-margin-top: calc(var(--header-h) + 24px); }
.detail__section > h2 { font-size: 1.625rem; }
.sidebar { position: sticky; top: calc(var(--header-h) + 24px); display: grid; gap: 20px; }
.side-card { display: grid; gap: 14px; padding: 22px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--paper); }
.side-card--mist { background: var(--mist); border-color: transparent; }
.side-card h2 { font: 600 1rem/1.3 var(--font-text); letter-spacing: 0; color: var(--ink); }
.toc { display: grid; gap: 2px; margin: 0; padding: 0; list-style: none; }
.toc a {
  display: block;
  padding: 7px 12px;
  border-left: 2px solid var(--line);
  color: var(--slate);
  font-size: var(--fs-small);
  text-decoration: none;
}
.toc a:hover { color: var(--forest); border-color: var(--line-strong); }
.toc a[aria-current="true"] { color: var(--forest); border-color: var(--leaf); font-weight: 600; }
.kv { display: grid; gap: 12px; margin: 0; font-size: var(--fs-small); }
.kv div { display: grid; gap: 2px; }
.kv dt { color: var(--slate); font-size: var(--fs-xs); font-weight: 600; }
.kv dd { margin: 0; color: var(--ink); overflow-wrap: anywhere; }
.pager { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 8px; }
.pager a {
  display: grid;
  gap: 4px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  color: var(--ink);
  text-decoration: none;
}
.pager a:hover { border-color: var(--line-strong); background: var(--mist); }
.pager small { color: var(--slate); font-size: var(--fs-xs); font-weight: 600; }
.pager .pager__next { text-align: right; grid-column: 2; }
.prose { max-width: 70ch; color: var(--text); font-size: 1.0625rem; line-height: 1.72; }
.prose > * + * { margin-top: 1.05em; }
.prose h2 { margin-top: 1.8em; font-size: 1.5rem; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: 0.4em; }
.prose blockquote {
  padding: 4px 0 4px 22px;
  border-left: 3px solid var(--leaf);
  color: var(--forest);
  font: 500 1.25rem/1.5 var(--font-display);
  letter-spacing: -0.01em;
}
.article-head { display: grid; gap: 16px; max-width: 820px; }
.article-figure { display: grid; gap: 10px; margin-top: 32px; }
.article-figure figcaption.caption { color: var(--slate); font-size: var(--fs-small); }
.share { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
@media (max-width: 959.98px) {
  .detail { grid-template-columns: minmax(0, 1fr); }
  .sidebar { position: static; }
}
@media (max-width: 479.98px) {
  .pager { grid-template-columns: minmax(0, 1fr); }
  .pager .pager__next { grid-column: auto; }
}

/* 15  Publications ------------------------------------------------------------ */
.pub-tools {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 200px 220px;
  gap: 14px;
  align-items: end;
  padding: 20px;
  border-radius: var(--r-md);
  background: var(--mist);
}
.pub-tools__types { display: flex; flex-wrap: wrap; gap: 8px; grid-column: 1 / -1; }
.pub-status { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; margin: 22px 0 4px; }
.pub-year { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 24px; padding-block: 26px; border-bottom: 1px solid var(--line); }
.pub-year__label { position: sticky; top: calc(var(--header-h) + 20px); align-self: start; font: 600 1.625rem/1 var(--font-display); color: var(--ink); font-variant-numeric: tabular-nums; }
.pub-year__label span { display: block; margin-top: 8px; color: var(--slate); font: 400 var(--fs-xs)/1.4 var(--font-text); }
.pub-list { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.pub { display: grid; gap: 6px; padding-block: 18px; border-top: 1px solid var(--mist-2); }
.pub:first-child { padding-top: 0; border-top: 0; }
.pub__top { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.pub__title { font: 600 1.0625rem/1.45 var(--font-text); letter-spacing: 0; color: var(--ink); }
.pub__authors { color: var(--text); font-size: 0.9375rem; }
.pub__venue { color: var(--slate); font-size: 0.9375rem; }
.pub__venue em { color: var(--text); }
.pub__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 18px; margin-top: 2px; }
.pub__panel { margin-top: 8px; padding: 16px 18px; border-radius: var(--r-sm); background: var(--mist); font-size: 0.9375rem; }
.pub__panel h4 { margin-bottom: 6px; font-size: var(--fs-xs); color: var(--slate); }
.pub__panel + .pub__panel { margin-top: 8px; }
.cite-box { display: grid; gap: 14px; }
.cite-box__row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: start; }
.bibtex { margin: 0; padding: 12px 14px; overflow-x: auto; border-radius: var(--r-sm); background: var(--paper); border: 1px solid var(--line); color: var(--ink); font: 400 0.8125rem/1.55 var(--font-mono); white-space: pre; }
.pub-compact .pub { padding-block: 16px; }
@media (max-width: 959.98px) {
  .pub-tools { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .pub-tools .field--search { grid-column: 1 / -1; }
}
@media (max-width: 767.98px) {
  .pub-year { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .pub-year__label { position: static; }
  .pub-year__label span { display: inline; margin: 0 0 0 10px; }
}
@media (max-width: 479.98px) { .pub-tools { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 639.98px) { .pub-tools__types { display: none; } }
.pub__title a { color: inherit; text-decoration: none; }
.pub__title a:hover { text-decoration: underline; text-decoration-color: var(--leaf); }
.pub-card { padding: 24px 26px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--paper); }
.pub-card .pub:last-child { padding-bottom: 0; }
@media (max-width: 479.98px) { .pub-card { padding: 18px; } }

/* 16  News and events ------------------------------------------------------------- */
.news-featured { position: relative; display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: clamp(20px, 3.5vw, 48px); align-items: center; }
.news-featured .pic { border-radius: var(--r-md); }
.news-featured__body { display: grid; gap: 14px; }
.news-featured__title { font-size: clamp(1.5rem, 1.25rem + 0.9vw, 2rem); }
.news-featured__title a { color: inherit; text-decoration: none; }
.news-featured__title a::after { content: ""; position: absolute; inset: 0; }
.news-featured:hover .news-featured__title a { text-decoration: underline; text-decoration-color: var(--leaf); text-decoration-thickness: 2px; }

.news-month { padding-top: 12px; }
.news-month + .news-month { padding-top: 36px; }
.news-month__label { padding-bottom: 12px; border-bottom: 2px solid var(--ink); font: 600 1rem/1.3 var(--font-text); letter-spacing: 0; }
.news-list { display: grid; margin: 0; padding: 0; list-style: none; }
.news-row { position: relative; display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 24px; padding-block: 22px; border-bottom: 1px solid var(--line); }
.news-row .pic { border-radius: var(--r-sm); }
.news-row__body { display: grid; gap: 8px; align-content: start; min-width: 0; }
.news-row__title { font-size: 1.1875rem; line-height: 1.3; }
.news-row__title a { color: inherit; text-decoration: none; }
.news-row__title a::after { content: ""; position: absolute; inset: 0; }
.news-row:hover .news-row__title a { text-decoration: underline; text-decoration-color: var(--leaf); }
.news-row__text { color: var(--slate); }
.news-row--compact { grid-template-columns: 112px minmax(0, 1fr); gap: 18px; padding-block: 16px; }
.news-row--compact .news-row__title { font: 600 1rem/1.4 var(--font-text); letter-spacing: 0; }
.news-row--compact:first-child { padding-top: 0; }
.news-row--text { grid-template-columns: minmax(0, 1fr); }
.date { color: var(--slate); font-size: var(--fs-small); font-variant-numeric: tabular-nums; }
.news-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: clamp(28px, 4vw, 56px); align-items: start; }
.news-side { position: sticky; top: calc(var(--header-h) + 24px); display: grid; gap: 16px; }
.news-side .filter-group { gap: 8px; }
.news-month { scroll-margin-top: calc(var(--header-h) + 24px); }
@media (max-width: 959.98px) {
  .news-layout { grid-template-columns: minmax(0, 1fr); }
  .news-side { position: static; order: -1; }
  .news-archive { display: none; }
}
@media (max-width: 767.98px) { .news-featured { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 559.98px) {
  .news-row { grid-template-columns: 112px minmax(0, 1fr); gap: 16px; }
  .news-row__text { display: none; }
  .news-row__title { font-size: 1.0625rem; }
}

.datebox {
  display: grid;
  grid-template-rows: auto 1fr auto;
  width: 76px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--paper);
  text-align: center;
  font-variant-numeric: tabular-nums;
}
.datebox__month { padding: 4px 0; background: var(--forest); color: var(--on-dark); font: 600 0.6875rem/1.4 var(--font-text); letter-spacing: 0.12em; text-transform: uppercase; }
.datebox__day { padding: 6px 2px 0; color: var(--ink); font: 600 1.75rem/1.1 var(--font-display); letter-spacing: -0.02em; }
.datebox__day--range { font-size: 1.125rem; line-height: 1.6; padding-top: 8px; }
.datebox__dow { padding-bottom: 6px; color: var(--slate); font-size: 0.6875rem; }

.event-list { display: grid; margin: 0; padding: 0; list-style: none; }
.event-row { position: relative; display: grid; grid-template-columns: 76px minmax(0, 1fr) auto; gap: 22px; align-items: start; padding-block: 22px; border-bottom: 1px solid var(--line); }
.event-row:first-child { padding-top: 6px; }
.event-row__body { display: grid; gap: 8px; min-width: 0; }
.event-row__title { font-size: 1.1875rem; line-height: 1.3; }
.event-row__title a { color: inherit; text-decoration: none; }
.event-row__title a::after { content: ""; position: absolute; inset: 0; }
.event-row:hover .event-row__title a { text-decoration: underline; text-decoration-color: var(--leaf); }
.event-facts { display: flex; flex-wrap: wrap; gap: 4px 18px; margin: 0; padding: 0; list-style: none; color: var(--slate); font-size: var(--fs-small); }
.event-facts li { display: inline-flex; align-items: center; gap: 6px; }
.event-facts .icon { width: 16px; height: 16px; color: var(--leaf-ink); }
.event-row__side { padding-top: 2px; }
.event-row--compact { grid-template-columns: 64px minmax(0, 1fr); gap: 16px; padding-block: 16px; }
.event-row--compact .datebox { width: 64px; }
.event-row--compact .datebox__day { font-size: 1.375rem; }
.event-row--compact .event-row__title { font: 600 1rem/1.4 var(--font-text); letter-spacing: 0; }
@media (max-width: 639.98px) {
  .event-row { grid-template-columns: 64px minmax(0, 1fr); gap: 16px; }
  .event-row .datebox { width: 64px; }
  .event-row__side { grid-column: 2; }
}


.tabs { display: flex; gap: 6px; margin-bottom: 28px; border-bottom: 1px solid var(--line); overflow-x: auto; }
.tab {
  margin-bottom: -1px;
  padding: 12px 16px 10px;
  border: 0;
  border-bottom: 3px solid transparent;
  background: none;
  color: var(--slate);
  font: 600 1.0625rem/1.2 var(--font-text);
  white-space: nowrap;
  cursor: pointer;
}
.tab:hover { color: var(--forest); }
.tab[aria-selected="true"] { border-color: var(--leaf); color: var(--forest); }
.tab__count { margin-left: 6px; color: var(--slate); font-weight: 400; font-variant-numeric: tabular-nums; }
.news-featured--text { grid-template-columns: minmax(0, 1fr); max-width: 820px; }
.home-feed { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: clamp(32px, 5vw, 72px); align-items: start; }
.feed-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 20px; margin-bottom: 18px; padding-bottom: 14px; border-bottom: 2px solid var(--ink); }
.feed-head h2 { font-size: 1.5rem; }

/* 17  Forms and contact ------------------------------------------------------------ */
.field { display: grid; gap: 6px; min-width: 0; }
.field label { color: var(--ink); font-size: var(--fs-small); font-weight: 600; }
.input, .select {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  background: var(--paper);
  color: var(--ink);
  font: 400 1rem/1.4 var(--font-text);
}
.select {
  padding-right: 36px;
  background: var(--paper) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6' fill='none' stroke='%2355625C' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 10px center / 18px;
  -webkit-appearance: none;
  appearance: none;
}
.input:hover, .select:hover { border-color: var(--slate); }
.input:focus, .select:focus { outline: none; border-color: var(--leaf-ink); box-shadow: 0 0 0 3px rgba(62, 158, 104, 0.28); }
.input--search { padding-left: 40px; background: var(--paper) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='11' cy='11' r='7' fill='none' stroke='%2355625C' stroke-width='2'/%3E%3Cpath d='M20 20l-3.5-3.5' stroke='%2355625C' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat 12px center / 18px; }

.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 64px); align-items: start; }
.info-list { display: grid; gap: 24px; margin: 0; padding: 0; list-style: none; }
.info { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 16px; }
.info__icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--leaf-wash); color: var(--forest); }
.info__body { display: grid; gap: 8px; align-content: start; min-width: 0; }
.info__body h3 { font: 600 1rem/1.3 var(--font-text); letter-spacing: 0; }
.info__body address { font-style: normal; line-height: 1.6; }
.coordinator { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 18px; align-items: center; padding: 20px; border-radius: var(--r-md); background: var(--mist); }
.coordinator__name { font: 600 1.125rem/1.3 var(--font-text); letter-spacing: 0; }
.write-to { display: grid; gap: 14px; padding: clamp(20px, 3vw, 28px); border: 1px solid var(--line); border-radius: var(--r-md); }
.topic-list { display: grid; margin: 4px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.topic { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 14px 6px; border-bottom: 1px solid var(--line); color: var(--ink); font-weight: 500; text-decoration: none; }
.topic:hover { background: var(--mist); color: var(--forest); }
.topic .icon { color: var(--leaf-ink); }
.faq { display: grid; margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0;
  color: var(--ink);
  font-weight: 600;
  font-size: 1.0625rem;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .icon { color: var(--slate); transition: transform 0.2s var(--ease); }
.faq details[open] summary .icon { transform: rotate(180deg); }
.faq details p { max-width: 70ch; padding-bottom: 18px; color: var(--slate); }
@media (max-width: 959.98px) { .contact-grid { grid-template-columns: minmax(0, 1fr); } }

/* 18  About, statements, call to action ---------------------------------------- */
.facts { display: grid; grid-template-columns: fit-content(45%) minmax(0, 1fr); gap: 10px 24px; margin: 0; font-size: 0.9375rem; }
.facts dt { color: var(--slate); }
.facts dd { margin: 0; color: var(--ink); font-weight: 500; }
.facts-card { padding: 22px 24px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--paper); }

.vm { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 0; overflow: hidden; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--paper); }
.vm__block { display: grid; gap: 16px; align-content: start; padding: clamp(24px, 3.5vw, 44px); }
.vm__block + .vm__block { border-left: 1px solid var(--line); }
.vm__block--dark { background: var(--forest); color: var(--on-dark); }
.vm__label { display: flex; align-items: center; gap: 10px; color: var(--leaf-ink); font: 600 var(--fs-small)/1 var(--font-text); }
.vm__block--dark .vm__label { color: var(--leaf-soft); }
.vm__statement { font: 500 clamp(1.25rem, 1.1rem + 0.6vw, 1.625rem)/1.4 var(--font-display); letter-spacing: -0.01em; }
.mission { display: grid; margin: 0; padding: 0; list-style: none; }
.mission li { display: grid; gap: 4px; padding-block: 14px; border-top: 1px solid var(--line); }
.mission li:first-child { padding-top: 0; border-top: 0; }
.mission h3 { color: var(--ink); font: 600 1rem/1.35 var(--font-text); letter-spacing: 0; }
.mission p { color: var(--slate); font-size: 0.9375rem; }
@media (max-width: 767.98px) { .vm { grid-template-columns: minmax(0, 1fr); } .vm__block + .vm__block { border-top: 1px solid var(--line); border-left: 0; } }

.achievements { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.achievement { display: grid; gap: 14px; align-content: start; padding: clamp(20px, 2.6vw, 28px); border: 1px solid var(--line); border-radius: var(--r-md); background: var(--paper); }
.achievement h3 { font-size: 1.125rem; }
@media (max-width: 767.98px) { .achievements { grid-template-columns: minmax(0, 1fr); } }

.cta-band { position: relative; display: grid; gap: 18px; overflow: hidden; padding: clamp(28px, 4.5vw, 56px); border-radius: var(--r-lg); background: var(--forest); color: var(--on-dark); }
.cta-band > * { position: relative; z-index: 1; }
.cta-band h2 { max-width: 20ch; color: var(--on-dark); font-size: var(--fs-h2); }
.cta-band p { max-width: 56ch; color: var(--on-dark-2); }
.cta-band__art { position: absolute; right: 0; bottom: 0; z-index: 0; width: min(48%, 520px); height: 100%; pointer-events: none; }
.cta-band__fill { fill: var(--leaf); }
.cta-band__edge { fill: none; stroke: var(--paper); stroke-width: 6; }
.cta-band__cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; max-width: 900px; margin-top: 6px; }
.cta-band__cols h3 { color: var(--on-dark); font: 600 1rem/1.3 var(--font-text); letter-spacing: 0; }
.cta-band__cols p { margin-top: 6px; font-size: var(--fs-small); }
.cta-band:has(.cta-band__cols) .cta-band__art { width: min(30%, 360px); height: 62%; }
.cta-band:has(.cta-band__cols) .cta-band__cols { max-width: 68%; }
@media (max-width: 1023.98px) {
  .cta-band:has(.cta-band__cols) .cta-band__cols { max-width: none; grid-template-columns: minmax(0, 1fr); }
  .cta-band:has(.cta-band__cols) .cta-band__art { width: min(40%, 320px); height: 34%; }
}
@media (max-width: 767.98px) {
  .cta-band { padding-bottom: calc(clamp(28px, 4.5vw, 56px) + 72px); }
  .cta-band__art, .cta-band:has(.cta-band__cols) .cta-band__art { width: 100%; height: 88px; }
  .cta-band__cols { grid-template-columns: minmax(0, 1fr); }
}

.gallery { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.gallery--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.gallery__caption { margin-top: 8px; color: var(--slate); font-size: var(--fs-small); }
@media (max-width: 959.98px) { .gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 639.98px) { .gallery, .gallery--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.affil { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(20px, 3vw, 40px); align-items: center; padding: clamp(22px, 3vw, 32px); border: 1px solid var(--line); border-radius: var(--r-md); }
.affil__crest { display: block; width: 96px; height: auto; }
@media (max-width: 559.98px) { .affil { grid-template-columns: minmax(0, 1fr); } .affil__crest { width: 72px; } }

/* 19  Footer ------------------------------------------------------------------------- */
.site-footer { border-top: 1px solid var(--line); background: var(--paper); }
.footer-main { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)); gap: 40px; padding-block: 56px 44px; }
.footer-brand { display: grid; gap: 18px; align-content: start; }
.footer-brand img { display: block; width: auto; height: 62px; }
.footer-brand p { max-width: 40ch; color: var(--slate); font-size: var(--fs-small); }
.footer-col h2 { margin-bottom: 14px; color: var(--ink); font: 600 0.9375rem/1.3 var(--font-text); letter-spacing: 0; }
.footer-col ul { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.footer-col a { color: var(--slate); font-size: var(--fs-small); text-decoration: none; }
.footer-col a:hover { color: var(--forest); text-decoration: underline; }
.footer-col address { color: var(--slate); font-size: var(--fs-small); font-style: normal; line-height: 1.6; }
.footer-contact { display: grid; gap: 12px; }
.footer-contact .contact-line { font-size: var(--fs-small); color: var(--slate); }
.social { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.social a { display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 50%; color: var(--forest); }
.social a:hover { border-color: var(--forest); background: var(--mist); color: var(--forest); }
.social .icon { width: 18px; height: 18px; }
.footer-affil { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; padding-block: 20px; border-top: 1px solid var(--line); color: var(--slate); font-size: var(--fs-small); }
.footer-bottom { background: var(--forest-deep); color: var(--on-dark-2); font-size: var(--fs-xs); }
.footer-bottom__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px; padding-block: 16px calc(16px + env(safe-area-inset-bottom, 0px)); }
.footer-bottom a { color: var(--on-dark); text-decoration-color: rgba(255, 255, 255, 0.4); }
.footer-bottom a:hover { color: var(--leaf-soft); }
.footer-bottom ul { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 0; padding: 0; list-style: none; }
@media (max-width: 959.98px) { .footer-main { grid-template-columns: repeat(2, minmax(0, 1fr)); } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 479.98px) { .footer-main { grid-template-columns: minmax(0, 1fr); } .footer-brand img { height: 52px; } }
.footer-brand__logos { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.footer-brand .footer-brand__cet { padding-left: 12px; border-left: 1px solid var(--line); }
.footer-brand .footer-brand__cet img { height: 56px; }
.footer-affil a { color: var(--forest); }
@media (max-width: 479.98px) { .footer-brand .footer-brand__cet img { height: 46px; } }

/* 20  Utilities and overlays --------------------------------------------------------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: calc(24px + env(safe-area-inset-bottom, 0px));
  z-index: 120;
  max-width: calc(100% - 32px);
  padding: 12px 18px;
  border-radius: var(--r-sm);
  background: var(--ink);
  color: var(--on-dark);
  font-size: var(--fs-small);
  box-shadow: var(--shadow-pop);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 12px);
  transition: opacity 0.2s var(--ease), transform 0.2s var(--ease);
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

.lightbox { width: min(1240px, calc(100% - 32px)); max-height: calc(100% - 32px); padding: 0; overflow: hidden; border: 0; border-radius: var(--r-md); background: var(--ink); color: var(--on-dark); }
.lightbox[open] { display: flex; flex-direction: column; }
.lightbox::backdrop { background: rgba(12, 42, 33, 0.84); }
.lightbox__frame { display: grid; flex: 1; min-height: 0; place-items: center; background: var(--paper); }
.lightbox__frame img { display: block; width: auto; height: auto; max-width: 100%; max-height: calc(100vh - 130px); object-fit: contain; }
.lightbox__bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; padding: 10px 12px; font-size: var(--fs-small); }
.lightbox__bar p { min-width: 0; }
.lightbox__bar button { display: inline-grid; place-items: center; width: 40px; height: 40px; border: 1px solid rgba(255, 255, 255, 0.25); border-radius: 50%; background: transparent; color: var(--on-dark); cursor: pointer; }
.lightbox__bar button:hover { background: rgba(255, 255, 255, 0.1); }
.lightbox__nav { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.lightbox__open { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 14px; border: 1px solid rgba(255, 255, 255, 0.25); border-radius: 999px; color: var(--on-dark); text-decoration: none; }
.lightbox__open:hover { background: rgba(255, 255, 255, 0.1); color: var(--on-dark); }

.spaced-top { margin-top: clamp(28px, 4vw, 44px); }
.center { text-align: center; }
.nowrap { white-space: nowrap; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

/* ---------------------------------------------------------------
   Tagline under the logo (header and footer)
   The tagline is justified to the width of the logo image, so the two
   read as one lockup. Its size is set per breakpoint so it fits under
   the logo at every header height.
   --------------------------------------------------------------- */
.brand-lockup { display: grid; flex: none; gap: var(--tagline-gap, 3px); }
.brand-lockup > a { justify-self: start; }
.brand-tagline {
  margin: 0;
  color: var(--leaf-ink);
  font: 500 var(--tagline-size, 11px)/1.2 var(--font-text);
  letter-spacing: 0.01em;
  white-space: nowrap;
  text-align: justify;
  text-align-last: justify;
}
.site-header .brand-lockup { --tagline-size: 13.4px; }
.site-header .brand img { height: 56px; }
.site-header .brand-cet img { height: 54px; }
@media (max-width: 1199.98px) and (min-width: 1100px) {
  .site-header .brand img { height: 52px; }
  .site-header .brand-cet img { height: 50px; }
  .site-header .brand-lockup { --tagline-size: 12.4px; }
}
@media (max-width: 1099.98px) {
  .site-header .brand img { height: 46px; }
  .site-header .brand-cet img { height: 46px; }
  .site-header .brand-lockup { --tagline-size: 11px; --tagline-gap: 2px; }
}
@media (max-width: 639.98px) {
  .site-header .brand img { height: 44px; }
  .site-header .brand-cet img { height: 42px; }
  .site-header .brand-lockup { --tagline-size: 10.5px; --tagline-gap: 2px; }
}
@media (max-width: 374.98px) {
  .site-header .brand img { height: 40px; }
  .site-header .brand-cet img { height: 34px; }
  .site-header .brand-lockup { --tagline-size: 9.5px; }
}
.footer-brand .brand-lockup { --tagline-size: 14.75px; --tagline-gap: 6px; }
.footer-brand .brand-tagline { max-width: none; color: var(--leaf-ink); font-size: var(--tagline-size); }
@media (max-width: 479.98px) { .footer-brand .brand-lockup { --tagline-size: 12.5px; --tagline-gap: 5px; } }

/* ---------------------------------------------------------------
   Faculty profile: notes under CV entries, teaching by level
   --------------------------------------------------------------- */
.cv-list__what .cv-list__note { font-size: var(--fs-xs); }
.teach-group { display: grid; gap: 6px; }
.teach-group + .teach-group { margin-top: 10px; }
.teach-group__level { color: var(--ink); font: 600 var(--fs-small)/1.4 var(--font-text); }

/* Publications: line for papers presented but not yet published */
.pub-forthcoming { display: flex; align-items: flex-start; gap: 10px; max-width: 72ch; margin: 14px 0 0; padding: 12px 16px; border-radius: var(--r-sm); background: var(--mist); color: var(--slate); font-size: var(--fs-small); }
.pub-forthcoming .icon { flex: none; margin-top: 2px; color: var(--leaf-ink); }

/* Join band: what students learn */
.cta-band__training { display: grid; gap: 8px; max-width: 68%; margin-top: 2px; }
.cta-band__training h3 { color: var(--on-dark); font: 600 1rem/1.3 var(--font-text); letter-spacing: 0; }
.cta-band__training p { font-size: var(--fs-small); }
.cta-band__training .tag-list { margin-top: 4px; }
.cta-band__training .tag { white-space: normal; }
@media (max-width: 1023.98px) { .cta-band__training { max-width: none; } }

/* Faculty: speciality line, project work picture, faculty collaboration cards */
.faculty__speciality { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin: 0; }
.faculty__speciality > span:last-child { color: var(--forest); font-weight: 600; }
.faculty__work { display: grid; gap: 8px; max-width: 460px; }
.faculty__work figure { display: grid; gap: 8px; margin: 0; }
.faculty__work .zoom { border: 1px solid var(--line); border-radius: var(--r-sm); overflow: hidden; }
.faculty__work figcaption { color: var(--slate); font-size: var(--fs-small); line-height: 1.5; }
.faculty-list--collab { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.faculty--collab { grid-template-columns: 120px minmax(0, 1fr); }
.faculty--collab .faculty__name { font-size: 1.25rem; }
.faculty--collab .faculty__bio { font-size: 0.9375rem; }
@media (max-width: 1023.98px) { .faculty-list--collab { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 767.98px) {
  .faculty--collab { grid-template-columns: minmax(0, 1fr); }
  .faculty--collab .faculty__photo { max-width: 160px; }
}

/* Faculty project work: drawn diagram beside the write-up */
.faculty__project { display: grid; gap: 10px; }
.proj-feature { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 24px; align-items: start; padding: 20px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--mist); }
.proj-feature__figure { display: grid; gap: 8px; margin: 0; }
.proj-feature__figure figcaption { color: var(--slate); font-size: var(--fs-xs); line-height: 1.5; }
.proj-feature__body { display: grid; gap: 10px; min-width: 0; }
.proj-feature__title { margin: 0; color: var(--ink); font: 600 1.0625rem/1.35 var(--font-text); }
.proj-feature__body > p { margin: 0; color: var(--slate); font-size: 0.9375rem; }
.proj-feature__label { margin: 4px 0 0; color: var(--ink); font: 600 var(--fs-small)/1.4 var(--font-text); }
.proj-feature__body > p.proj-feature__label { color: var(--ink); }
.proj-feature__body > p.proj-feature__credit { font-size: var(--fs-small); }
.phasors { display: block; width: 100%; height: auto; max-width: 200px; overflow: visible; }
.phasors line { stroke-width: 2.5; stroke-linecap: round; }
.phasors__set-a line { stroke: var(--forest); }
.phasors__set-b line { stroke: var(--leaf); }
.phasors__head-a { fill: var(--forest); }
.phasors__head-b { fill: var(--leaf); }
.phasors__ring { fill: var(--paper); stroke: var(--line); stroke-dasharray: 3 4; }
.phasors__arc { fill: none; stroke: var(--slate); stroke-width: 1.2; }
.phasors__angle { fill: var(--slate); font: 500 11px var(--font-text); }
.phasors__hub { fill: var(--ink); }
.phasors__labels text { font: 700 14px var(--font-text); text-anchor: middle; dominant-baseline: middle; }
.phasors__label-a { fill: var(--forest); }
.phasors__label-b { fill: var(--leaf-ink); }
.phasors__key { display: inline-block; width: 14px; height: 3px; margin: 0 4px 2px 0; border-radius: 2px; vertical-align: middle; }
.phasors__key--a { background: var(--forest); }
.phasors__key--b { background: var(--leaf); margin-left: 8px; }
@media (max-width: 767.98px) {
  .proj-feature { grid-template-columns: minmax(0, 1fr); padding: 16px; }
  .proj-feature__figure { justify-items: start; }
  .phasors { max-width: 180px; }
}
