/* ==========================================================================
   HALO Lab — Design System
   Human-centered AI for Learning and access Outcomes
   Department of Information · School of Computing · UT Austin
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Atkinson+Hyperlegible:ital,wght@0,400;0,700;1,400&family=Crimson+Pro:ital,wght@0,400;0,500;0,600;0,700;1,400&display=swap');

/* --------------------------------------------------------------------------
   1. Tokens
   -------------------------------------------------------------------------- */
:root {
  /* Brand — supplied palette */
  --green-700: #0F6E56;   /* primary: headings, buttons */
  --green-900: #085041;   /* dark bands, footer, deep surfaces */
  --green-500: #1D9E75;   /* secondary accent: hover, highlights (decorative) */
  /* green-500 sits at 2.94:1 on cream, just under the 3:1 WCAG needs for
     graphical objects, so anything that must be *perceived* -- focus rings,
     meaningful icons -- uses this slightly deeper step instead. */
  --green-600: #18886A;
  --mint:      #E1F5EE;   /* tags, subtle fills */
  --cream:     #F1EFE8;   /* page background (matches the logo ground exactly) */
  --ink:       #2C2C2A;   /* body text */

  /* Derived neutrals */
  --surface:      #FFFFFF;
  --surface-warm: #F8F7F2;
  --border:       #DCD8CB;
  --border-soft:  #E7E3D8;
  --muted:        #5B5B56;
  --on-dark:      #F1EFE8;
  --on-dark-mute: #A9C9BD;

  /* Halo accent, sampled from the logo's glow */
  --gold:      #EFC15A;
  --gold-glow: rgba(245, 197, 84, 0.55);

  /* Type */
  --font-display: 'Crimson Pro', Georgia, 'Times New Roman', serif;
  --font-body: 'Atkinson Hyperlegible', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  --text-xs:   0.8125rem;  /* 13 */
  --text-sm:   0.9375rem;  /* 15 */
  --text-base: 1.0625rem;  /* 17 */
  --text-lg:   1.1875rem;  /* 19 */
  --text-xl:   1.4375rem;  /* 23 */
  --text-2xl:  1.75rem;    /* 28 */
  --text-3xl:  2.25rem;    /* 36 */
  --text-4xl:  3rem;       /* 48 */
  --text-5xl:  3.75rem;    /* 60 */

  /* Space — 4pt rhythm, standard density */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 2.5rem;
  --space-8: 3rem;
  --space-9: 4rem;
  --space-10: 5rem;
  --space-11: 6rem;

  /* Radius */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-xl: 32px;
  --radius-pill: 999px;

  /* Elevation — soft and warm-tinted rather than neutral gray */
  --shadow-sm: 0 1px 2px rgba(44, 44, 42, 0.05), 0 2px 6px rgba(44, 44, 42, 0.04);
  --shadow-md: 0 2px 6px rgba(44, 44, 42, 0.05), 0 10px 24px rgba(44, 44, 42, 0.07);
  --shadow-lg: 0 4px 12px rgba(44, 44, 42, 0.06), 0 22px 48px rgba(44, 44, 42, 0.10);

  /* Motion */
  --ease-out: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0.05, 0.36, 1);
  --dur-fast: 160ms;
  --dur: 240ms;
  --dur-slow: 400ms;

  /* Layout */
  --container: 1180px;
  --container-narrow: 760px;
  --nav-h: 76px;

  /* Z-index scale */
  --z-base: 0;
  --z-raised: 10;
  --z-sticky: 40;
  --z-overlay: 100;
  --z-modal: 1000;
}

/* --------------------------------------------------------------------------
   2. Reset & base
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + var(--space-5));
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--green-900);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.015em;
  margin: 0 0 var(--space-4);
  text-wrap: balance;
}

h1 { font-size: clamp(2.5rem, 5.5vw, var(--text-5xl)); }
h2 { font-size: clamp(2rem, 4vw, var(--text-4xl)); }
h3 { font-size: var(--text-xl); }
h4 { font-size: var(--text-lg); }

p { margin: 0 0 var(--space-4); max-width: 68ch; }
p:last-child { margin-bottom: 0; }

a { color: var(--green-700); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--green-900); }

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

ul, ol { margin: 0 0 var(--space-4); padding-left: var(--space-5); }
li { margin-bottom: var(--space-2); }

hr { border: 0; border-top: 1px solid var(--border); margin: var(--space-8) 0; }

/* An author-set display value otherwise beats the UA's [hidden] rule, which
   would leave JS-controlled panels (the filter bar, the mobile menu) visible
   but inert when scripting is unavailable. */
[hidden] { display: none !important; }

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.9em;
  background: rgba(15, 110, 86, 0.08);
  padding: 0.1em 0.35em;
  border-radius: 4px;
}

/* Accessible focus — never removed, always visible */
:focus-visible {
  outline: 3px solid var(--green-600);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}
/* The green ring would disappear against the dark bands, so reverse it there. */
.band-dark :focus-visible,
.footer :focus-visible {
  outline-color: var(--gold);
}

.skip-link {
  position: absolute;
  left: var(--space-4);
  top: -100px;
  z-index: var(--z-modal);
  background: var(--green-900);
  color: var(--on-dark);
  padding: var(--space-3) var(--space-5);
  border-radius: var(--radius-sm);
  font-weight: 700;
  text-decoration: none;
  transition: top var(--dur) var(--ease-out);
}
.skip-link:focus { top: var(--space-4); color: var(--on-dark); }

::selection { background: var(--mint); color: var(--green-900); }

/* --------------------------------------------------------------------------
   3. Layout primitives
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--space-5);
}
@media (min-width: 768px) { .container { padding-inline: var(--space-6); } }

.section { padding-block: var(--space-10); }
@media (min-width: 768px) { .section { padding-block: var(--space-11); } }

.section--tight { padding-block: var(--space-9); }

.stack > * + * { margin-top: var(--space-4); }

.measure { max-width: 66ch; }
.center { text-align: center; margin-inline: auto; }

.split { display: grid; gap: var(--space-7); align-items: center; }

/* When a split leads with a decorative image, promote the text above it on
   narrow screens so the reader is not scrolling past artwork to reach it. */
@media (max-width: 899px) {
  .split--text-first > *:first-child { order: 2; }
}

@media (min-width: 900px) {
  .split { grid-template-columns: 1fr 1fr; gap: var(--space-9); }
  .split--wide-left  { grid-template-columns: 1.15fr 1fr; }
  .split--wide-right { grid-template-columns: 1fr 1.15fr; }
}

.grid { display: grid; gap: var(--space-5); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
/* Exactly two columns — for an even number of long-form cards, where auto-fit
   would otherwise leave an orphan on the last row. */
@media (min-width: 860px) {
  .grid--pair { grid-template-columns: repeat(2, 1fr); }
}

.band-dark { background: var(--green-900); color: var(--on-dark); }
.band-dark h1, .band-dark h2, .band-dark h3, .band-dark h4 { color: var(--on-dark); }
.band-dark p { color: var(--on-dark-mute); }
.band-dark a:not(.btn) { color: var(--gold); }

.band-white { background: var(--surface); }
.band-mint  { background: var(--mint); }

/* --------------------------------------------------------------------------
   4. Type helpers
   -------------------------------------------------------------------------- */
.eyebrow {
  display: inline-flex;
  /* flex-start so the dot stays on the first line when the pill wraps */
  align-items: flex-start;
  gap: var(--space-2);
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--green-700);
  background: var(--mint);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-pill);
  margin-bottom: var(--space-5);
}
.band-dark .eyebrow { color: var(--gold); background: rgba(241, 239, 232, 0.10); }
.eyebrow::before {
  content: "";
  width: 6px; height: 6px;
  margin-top: 0.6em; /* optically centres the dot on the first line */
  border-radius: 50%;
  background: currentColor;
  flex: none;
}

.lede {
  font-size: var(--text-lg);
  line-height: 1.7;
  color: var(--muted);
  max-width: 60ch;
}
.band-dark .lede { color: var(--on-dark-mute); }

.small { font-size: var(--text-sm); color: var(--muted); }

.tag {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--green-700);
  background: var(--mint);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-pill);
  border: 1px solid rgba(15, 110, 86, 0.14);
}
.tag-row { display: flex; flex-wrap: wrap; gap: var(--space-2); }

/* A tag that navigates — used to point a project at its research area. */
a.tag {
  text-decoration: none;
  transition: background-color var(--dur) var(--ease-out),
              border-color var(--dur) var(--ease-out);
}
a.tag:hover {
  background: var(--green-700);
  border-color: var(--green-700);
  color: #FFFFFF;
}

/* --------------------------------------------------------------------------
   5. Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: 48px;
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius-pill);
  border: 1.5px solid transparent;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: background-color var(--dur) var(--ease-out),
              border-color var(--dur) var(--ease-out),
              color var(--dur) var(--ease-out),
              box-shadow var(--dur) var(--ease-out),
              transform var(--dur-fast) var(--ease-out);
}
.btn:active { transform: scale(0.985); }

.btn--primary { background: var(--green-700); color: #FFFFFF; box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--green-900); color: #FFFFFF; box-shadow: var(--shadow-md); }

.btn--ghost { background: transparent; color: var(--green-700); border-color: var(--border); }
.btn--ghost:hover { border-color: var(--green-500); background: var(--mint); color: var(--green-900); }

.btn--light { background: var(--cream); color: var(--green-900); }
.btn--light:hover { background: #FFFFFF; color: var(--green-900); }

.btn--on-dark { background: transparent; color: var(--on-dark); border-color: rgba(241, 239, 232, 0.35); }
.btn--on-dark:hover { background: rgba(241, 239, 232, 0.10); border-color: var(--on-dark); color: var(--on-dark); }

.btn-row { display: flex; flex-wrap: wrap; gap: var(--space-3); }
.btn .icon { width: 18px; height: 18px; flex: none; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-weight: 700;
  font-size: var(--text-sm);
  text-decoration: none;
  color: var(--green-700);
}
.link-arrow .icon { width: 16px; height: 16px; transition: transform var(--dur) var(--ease-out); }
.link-arrow:hover .icon { transform: translateX(4px); }
.link-arrow:hover { text-decoration: underline; }

/* --------------------------------------------------------------------------
   6. Navigation
   -------------------------------------------------------------------------- */
.nav {
  position: sticky;
  top: 0;
  z-index: var(--z-sticky);
  background: rgba(241, 239, 232, 0.88);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out);
}
.nav[data-scrolled="true"] {
  border-bottom-color: var(--border-soft);
  box-shadow: 0 1px 12px rgba(44, 44, 42, 0.05);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-5);
  min-height: var(--nav-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
  color: var(--green-900);
  flex: none;
}
.brand__mark { width: 46px; height: 46px; border-radius: 50%; flex: none; }
.brand__text { display: flex; flex-direction: column; line-height: 1.1; }
.brand__name {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--green-900);
}
.brand__sub {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.075em;
  text-transform: uppercase;
  color: var(--muted);
}

.nav__links {
  display: none;
  align-items: center;
  gap: var(--space-2);
  list-style: none;
  margin: 0;
  padding: 0;
}
@media (min-width: 1000px) { .nav__links { display: flex; } }
.nav__links li { margin: 0; }

.nav__link {
  display: block;
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-pill);
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
  transition: background-color var(--dur) var(--ease-out), color var(--dur) var(--ease-out);
}
.nav__link:hover { background: var(--mint); color: var(--green-900); }
.nav__link[aria-current="page"] { color: var(--green-700); background: var(--mint); }

.nav__actions { display: flex; align-items: center; gap: var(--space-3); flex: none; }
/* Holds only the mobile menu button, so it leaves the row entirely on
   desktop -- otherwise it sits as an empty flex item and pulls the
   navigation away from the right edge. */
@media (min-width: 1000px) { .nav__actions { display: none; } }

.nav__toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px; height: 48px;
  background: transparent;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-pill);
  cursor: pointer;
  color: var(--green-900);
  transition: background-color var(--dur) var(--ease-out), border-color var(--dur) var(--ease-out);
}
.nav__toggle:hover { background: var(--mint); border-color: var(--green-500); }
@media (min-width: 1000px) { .nav__toggle { display: none; } }
.nav__toggle .icon { width: 22px; height: 22px; }
.nav__toggle .icon--close { display: none; }
.nav__toggle[aria-expanded="true"] .icon--open { display: none; }
.nav__toggle[aria-expanded="true"] .icon--close { display: block; }

.nav__mobile {
  display: block;
  border-top: 1px solid var(--border-soft);
  background: var(--cream);
}
.nav__mobile[hidden] { display: none; }
@media (min-width: 1000px) { .nav__mobile { display: none !important; } }
.nav__mobile ul { list-style: none; margin: 0; padding: var(--space-4) 0; }
.nav__mobile li { margin: 0; }
/* Scoped to the list: an unscoped `.nav__mobile a` would outrank .btn and
   flatten the panel's call-to-action into a plain block link. */
.nav__mobile ul a {
  display: block;
  padding: var(--space-4) var(--space-1);
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--border-soft);
}
.nav__mobile ul a:hover { color: var(--green-700); }
.nav__mobile ul a[aria-current="page"] { color: var(--green-700); }

/* --------------------------------------------------------------------------
   7. Hero
   -------------------------------------------------------------------------- */
.hero { padding-block: var(--space-9) var(--space-10); position: relative; overflow: hidden; }
@media (min-width: 900px) { .hero { padding-block: var(--space-10) var(--space-11); } }

.hero__grid { display: grid; gap: var(--space-9); align-items: center; }
@media (min-width: 950px) {
  .hero__grid { grid-template-columns: 1.05fr 0.95fr; gap: var(--space-8); }
}

.hero h1 { margin-bottom: var(--space-5); }
.hero h1 em {
  font-style: normal;
  color: var(--green-700);
  position: relative;
  display: inline-block;
}
.hero h1 em::after {
  content: "";
  position: absolute;
  left: -0.05em; right: -0.05em; bottom: 0.06em;
  height: 0.3em;
  background: var(--gold-glow);
  border-radius: var(--radius-pill);
  z-index: -1;
}

/* Halo composition — the hero's visual anchor */
.halo {
  position: relative;
  width: min(100%, 460px);
  margin-inline: auto;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
}
.halo__ring { position: absolute; inset: 0; border-radius: 50%; border: 1px solid var(--border); }
.halo__ring--2 { inset: 11%; border-color: rgba(29, 158, 117, 0.30); }
.halo__ring--3 {
  inset: 22%;
  border-color: rgba(29, 158, 117, 0.16);
  border-style: dashed;
  animation: halo-spin 48s linear infinite;
}
@keyframes halo-spin { to { transform: rotate(360deg); } }

.halo__glow {
  position: absolute;
  inset: 8%;
  border-radius: 50%;
  background: radial-gradient(circle at 62% 46%, var(--gold-glow) 0%, rgba(245, 197, 84, 0) 62%);
  filter: blur(6px);
}
.halo__badge { position: relative; width: 62%; border-radius: 50%; z-index: 1; }

/* --------------------------------------------------------------------------
   8. Cards
   -------------------------------------------------------------------------- */
.card {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--dur) var(--ease-out),
              border-color var(--dur) var(--ease-out),
              transform var(--dur) var(--ease-out);
}
.card:hover { box-shadow: var(--shadow-md); border-color: var(--green-500); }
.card h3 { margin-bottom: var(--space-3); }
.card p:last-child { margin-bottom: 0; }

.card--numbered { position: relative; padding-top: var(--space-7); }
.card__num {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 700;
  line-height: 1;
  color: var(--green-600);
  opacity: 0.62;
  display: block;
  margin-bottom: var(--space-4);
  transition: opacity var(--dur) var(--ease-out);
}
.card--numbered:hover .card__num { opacity: 1; }

.card--tinted { background: var(--mint); border-color: rgba(15, 110, 86, 0.12); }

.card__icon {
  display: grid;
  place-items: center;
  width: 52px; height: 52px;
  border-radius: var(--radius-md);
  background: var(--mint);
  color: var(--green-700);
  margin-bottom: var(--space-5);
}
.card__icon .icon { width: 26px; height: 26px; }

a.card { text-decoration: none; color: inherit; display: flex; flex-direction: column; }
a.card:hover { transform: translateY(-3px); }
/* Pin the call-to-action to the bottom so it lines up across a row of cards
   whose copy runs to different lengths. */
a.card .link-arrow { margin-top: auto; padding-top: var(--space-5); }
a.card:hover .link-arrow .icon { transform: translateX(4px); }

/* --------------------------------------------------------------------------
   9. Checklist
   -------------------------------------------------------------------------- */
.checklist { list-style: none; margin: 0; padding: 0; }
.checklist li {
  display: flex;
  gap: var(--space-4);
  align-items: flex-start;
  padding: var(--space-4) 0;
  border-bottom: 1px solid var(--border);
  margin: 0;
}
.checklist li:last-child { border-bottom: 0; }
.band-dark .checklist li { border-bottom-color: rgba(241, 239, 232, 0.18); }

.checklist .icon { width: 24px; height: 24px; flex: none; color: var(--green-600); margin-top: 3px; }
.band-dark .checklist .icon { color: var(--gold); }
.checklist strong {
  display: block;
  color: var(--green-900);
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 600;
}
.band-dark .checklist strong { color: var(--on-dark); }
.checklist span { color: var(--muted); font-size: var(--text-sm); }
.band-dark .checklist span { color: var(--on-dark-mute); }

/* --------------------------------------------------------------------------
   10. People
   -------------------------------------------------------------------------- */
.person {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--dur) var(--ease-out), transform var(--dur) var(--ease-out);
  display: flex;
  flex-direction: column;
}
.person:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }

.person__photo {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  object-position: center top;
  background: var(--mint);
}
.person__body { padding: var(--space-5); flex: 1; display: flex; flex-direction: column; }
.person__name {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 600;
  color: var(--green-900);
  margin: 0 0 var(--space-1);
}
.person__role { font-size: var(--text-sm); font-weight: 700; color: var(--green-700); margin: 0 0 var(--space-3); }
.person__bio { font-size: var(--text-sm); color: var(--muted); margin-bottom: var(--space-4); }
.person__links { margin-top: auto; display: flex; flex-wrap: wrap; gap: var(--space-4); }
.person__links a {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--green-700);
  text-decoration: none;
  min-height: 44px;
  border-bottom: 1.5px solid transparent;
  transition: border-color var(--dur) var(--ease-out);
}
.person__links a:hover { border-bottom-color: var(--green-500); }
.person__links .icon { width: 14px; height: 14px; }

.person--lead { display: grid; gap: 0; grid-template-columns: 1fr; }
@media (min-width: 760px) {
  .person--lead { grid-template-columns: 300px 1fr; }
  .person--lead .person__photo { height: 100%; aspect-ratio: auto; min-height: 360px; }
}
.person--lead:hover { transform: none; }
.person--lead .person__body { padding: var(--space-7); }
.person--lead .person__name { font-size: var(--text-2xl); }

.roster { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--border); }
.roster li {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-4);
  align-items: baseline;
  justify-content: space-between;
  padding: var(--space-4) 0;
  border-bottom: 1px solid var(--border);
  margin: 0;
}
.roster__name {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  color: var(--green-900);
  font-weight: 600;
}
.roster__meta { font-size: var(--text-sm); color: var(--muted); }
/* Optional second line: where an alum is now. */
.roster__now { display: block; color: var(--green-700); font-weight: 700; }
/* Right-align the meta column once name and role sit side by side; below that
   they stack, where right-aligned text would read as ragged. */
@media (min-width: 700px) {
  .roster__meta { text-align: right; }
}

/* --------------------------------------------------------------------------
   11. Publications
   -------------------------------------------------------------------------- */
.pub-filters {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-bottom: var(--space-7);
  padding-bottom: var(--space-5);
  border-bottom: 1px solid var(--border);
}
.pub-filter {
  min-height: 44px;
  padding: var(--space-2) var(--space-5);
  border-radius: var(--radius-pill);
  border: 1.5px solid var(--border);
  background: transparent;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--ink);
  cursor: pointer;
  transition: background-color var(--dur) var(--ease-out),
              border-color var(--dur) var(--ease-out),
              color var(--dur) var(--ease-out);
}
.pub-filter:hover { border-color: var(--green-500); background: var(--mint); }
.pub-filter[aria-pressed="true"] { background: var(--green-700); border-color: var(--green-700); color: #FFFFFF; }

.pub-year {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  color: var(--green-900);
  margin: var(--space-8) 0 var(--space-4);
  padding-bottom: var(--space-2);
  border-bottom: 2px solid var(--mint);
}
.pub-year:first-of-type { margin-top: 0; }

.pub-list { list-style: none; margin: 0; padding: 0; }
.pub { padding: var(--space-5) 0; border-bottom: 1px solid var(--border); margin: 0; }
.pub__title {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--green-900);
  margin: 0 0 var(--space-2);
  line-height: 1.35;
}
.pub__authors { font-size: var(--text-sm); color: var(--ink); margin: 0 0 var(--space-2); }
/* Marks a HALO Lab author — also used in the legend above the list. */
.self { font-weight: 700; color: var(--green-700); }
.pub__venue { font-size: var(--text-sm); color: var(--muted); font-style: italic; margin: 0 0 var(--space-3); }
.pub__links { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.pub__links a {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  min-height: 40px;
  padding: var(--space-1) var(--space-4);
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--green-700);
  text-decoration: none;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  transition: border-color var(--dur) var(--ease-out), background-color var(--dur) var(--ease-out);
}
.pub__links a:hover { border-color: var(--green-500); background: var(--mint); }
.pub__links .icon { width: 13px; height: 13px; }

.pub-empty {
  padding: var(--space-9) var(--space-5);
  text-align: center;
  color: var(--muted);
  border: 1px dashed var(--border);
  border-radius: var(--radius-lg);
  max-width: none; /* overrides the 68ch measure that <p> carries */
}

/* --------------------------------------------------------------------------
   12. Research thrusts
   -------------------------------------------------------------------------- */
.thrust {
  display: grid;
  gap: var(--space-6);
  padding: var(--space-8) 0;
  border-bottom: 1px solid var(--border);
  align-items: start;
}
@media (min-width: 860px) { .thrust { grid-template-columns: 260px 1fr; gap: var(--space-8); } }
.thrust:last-child { border-bottom: 0; }
.thrust__label { position: sticky; top: calc(var(--nav-h) + var(--space-5)); }
@media (max-width: 859px) { .thrust__label { position: static; } }
.thrust__num {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  color: var(--green-600);
  display: block;
  margin-bottom: var(--space-2);
}
.thrust h3 { font-size: var(--text-2xl); margin-bottom: var(--space-3); }

/* --------------------------------------------------------------------------
   13. Steps, callouts, FAQ
   -------------------------------------------------------------------------- */
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; }
.steps > li {
  position: relative;
  padding-left: var(--space-9);
  padding-bottom: var(--space-7);
  margin: 0;
  counter-increment: step;
}
.steps > li::before {
  content: counter(step);
  position: absolute;
  left: 0; top: 0;
  width: 44px; height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--mint);
  color: var(--green-700);
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 700;
  border: 1px solid rgba(15, 110, 86, 0.16);
}
.steps > li::after {
  content: "";
  position: absolute;
  left: 22px; top: 52px; bottom: 8px;
  width: 1px;
  background: var(--border);
}
.steps > li:last-child { padding-bottom: 0; }
.steps > li:last-child::after { display: none; }
.steps h3 { margin-bottom: var(--space-2); }

.callout {
  border-left: 3px solid var(--green-500);
  background: var(--mint);
  padding: var(--space-5) var(--space-6);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}
.callout h3 { margin-bottom: var(--space-2); }
.callout p { color: var(--ink); }

.faq { border-top: 1px solid var(--border); }
.faq details { border-bottom: 1px solid var(--border); }
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-5) 0;
  cursor: pointer;
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--green-900);
  list-style: none;
  min-height: 44px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  flex: none;
  width: 11px; height: 11px;
  border-right: 2px solid var(--green-700);
  border-bottom: 2px solid var(--green-700);
  transform: rotate(45deg) translate(-3px, -3px);
  transition: transform var(--dur) var(--ease-out);
}
.faq details[open] summary::after { transform: rotate(-135deg) translate(-1px, -1px); }
.faq details > div { padding-bottom: var(--space-5); }
.faq details > div p { color: var(--muted); }

/* --------------------------------------------------------------------------
   14. Interior page header
   -------------------------------------------------------------------------- */
.page-head { padding-block: var(--space-9) var(--space-8); border-bottom: 1px solid var(--border); }
.page-head h1 { font-size: clamp(2.25rem, 4.5vw, var(--text-4xl)); margin-bottom: var(--space-4); }

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2);
  list-style: none;
  margin: 0 0 var(--space-5);
  padding: 0;
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}
.breadcrumb li { margin: 0; display: flex; align-items: center; gap: var(--space-2); }
.breadcrumb li + li::before { content: "/"; color: var(--border); }
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--green-700); text-decoration: underline; }

/* --------------------------------------------------------------------------
   15. CTA band
   -------------------------------------------------------------------------- */
.cta-band { position: relative; overflow: hidden; }
.cta-band::before {
  content: "";
  position: absolute;
  width: 520px; height: 520px;
  right: -140px; top: -180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(245, 197, 84, 0.20) 0%, rgba(245, 197, 84, 0) 68%);
  pointer-events: none;
}
.cta-band .container { position: relative; }

/* --------------------------------------------------------------------------
   16. Footer
   -------------------------------------------------------------------------- */
.footer { background: var(--green-900); color: var(--on-dark); padding-block: var(--space-10) var(--space-6); }
.footer h4 {
  color: var(--on-dark);
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  margin-bottom: var(--space-4);
}
.footer__grid { display: grid; gap: var(--space-8); grid-template-columns: 1fr; }
@media (min-width: 700px)  { .footer__grid { grid-template-columns: 1.4fr 1fr 1fr; } }
@media (min-width: 1000px) { .footer__grid { grid-template-columns: 1.6fr 1fr 1fr 1.2fr; } }

.footer__brand { display: flex; align-items: center; gap: var(--space-4); margin-bottom: var(--space-5); }
.footer__mark { width: 60px; height: 60px; border-radius: 50%; flex: none; background: var(--cream); }
.footer__brand-name {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--on-dark);
  line-height: 1.2;
}
.footer__brand-sub { font-size: var(--text-xs); color: var(--on-dark-mute); letter-spacing: 0.04em; }

.footer ul { list-style: none; margin: 0; padding: 0; }
.footer li { margin-bottom: var(--space-2); }
.footer a:not(.btn) {
  display: inline-block;
  padding-block: var(--space-2);
  color: var(--on-dark-mute);
  text-decoration: none;
  font-size: var(--text-sm);
  transition: color var(--dur) var(--ease-out);
}
.footer a:not(.btn):hover { color: var(--gold); text-decoration: underline; }
.footer address { font-style: normal; color: var(--on-dark-mute); font-size: var(--text-sm); }

.footer__bottom {
  margin-top: var(--space-9);
  padding-top: var(--space-5);
  border-top: 1px solid rgba(241, 239, 232, 0.16);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3) var(--space-6);
  align-items: center;
  justify-content: space-between;
  font-size: var(--text-xs);
  color: var(--on-dark-mute);
}
.footer__bottom p { margin: 0; }

.social { display: flex; gap: var(--space-3); }
.footer .social a {
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid rgba(241, 239, 232, 0.24);
  color: var(--on-dark);
  transition: background-color var(--dur) var(--ease-out), border-color var(--dur) var(--ease-out);
}
.footer .social a:hover { background: rgba(241, 239, 232, 0.12); border-color: var(--on-dark); }
.social .icon { width: 19px; height: 19px; }

/* --------------------------------------------------------------------------
   17. Utilities
   -------------------------------------------------------------------------- */
.icon { width: 20px; height: 20px; display: inline-block; vertical-align: middle; }

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

/* Content the lab still needs to supply — visible in draft, easy to grep for. */
.todo {
  display: block;
  border: 1px dashed rgba(15, 110, 86, 0.45);
  background: rgba(225, 245, 238, 0.55);
  border-radius: var(--radius-sm);
  padding: var(--space-3) var(--space-4);
  font-size: var(--text-sm);
  color: var(--green-900);
  margin-bottom: var(--space-4);
  max-width: none;
}
.todo::before {
  content: "TO REPLACE — ";
  font-weight: 700;
  letter-spacing: 0.04em;
}

/* --------------------------------------------------------------------------
   18. Scroll reveal — progressive enhancement only
   -------------------------------------------------------------------------- */
.reveal { opacity: 1; }
.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 520ms var(--ease-out), transform 520ms var(--ease-out);
}
.js .reveal.is-visible { opacity: 1; transform: none; }
.js .reveal[data-delay="1"] { transition-delay: 70ms; }
.js .reveal[data-delay="2"] { transition-delay: 140ms; }
.js .reveal[data-delay="3"] { transition-delay: 210ms; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .js .reveal { opacity: 1 !important; transform: none !important; }
}

/* --------------------------------------------------------------------------
   19. Print
   -------------------------------------------------------------------------- */
@media print {
  .nav, .footer, .cta-band, .skip-link, .pub-filters { display: none !important; }
  body { background: #fff; color: #000; font-size: 11pt; }
  a { text-decoration: underline; }
  .card, .person { box-shadow: none; border: 1px solid #999; }
}
