/* ==========================================================================
   SPARC Research Group — light theme
   Palette taken from the group logo: navy ink, blue, teal, green accent.
   No inline styles anywhere: the site runs under a strict CSP that blocks them.
   ========================================================================== */

:root {
  /* ink */
  --ink-900: #12203a;
  --ink-800: #1b2c4d;
  --ink-600: #35486a;
  --ink-500: #55688a;
  --ink-400: #7286a4;
  --ink-300: #9aabc2;

  /* surfaces */
  --bg: #f5f8fc;
  --bg-alt: #eaf1f9;
  --surface: #ffffff;
  --line: #dde7f2;
  --line-strong: #c3d4e6;

  /* brand */
  --blue-700: #17568a;
  --blue-600: #1f6fa8;
  --blue-500: #2f88bd;
  --blue-100: #e3f0fa;
  --teal-600: #23808c;
  --teal-500: #2e9aa5;
  --teal-100: #dff2f3;
  --green-500: #63b45c;
  --green-400: #7cc576;
  --green-100: #e6f5e4;

  --maxw: 1180px;
  --radius: 16px;
  --radius-sm: 10px;

  --font-sans: "Segoe UI", Inter, -apple-system, BlinkMacSystemFont, Roboto, Helvetica, Arial, sans-serif;
  --font-mono: "JetBrains Mono", "Cascadia Code", Consolas, "SF Mono", Menlo, monospace;

  --shadow-sm: 0 2px 8px rgba(18, 32, 58, 0.06);
  --shadow: 0 10px 30px rgba(18, 32, 58, 0.09);
  --shadow-lg: 0 22px 55px rgba(18, 32, 58, 0.14);

  --ease: cubic-bezier(0.22, 0.68, 0.36, 1);
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--ink-600);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a { color: var(--blue-600); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 {
  line-height: 1.15;
  margin: 0 0 0.5em;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--ink-900);
}

h1 { font-size: clamp(2.2rem, 5.2vw, 3.7rem); }
h2 { font-size: clamp(1.65rem, 3.6vw, 2.5rem); }
h3 { font-size: clamp(1.1rem, 2.1vw, 1.32rem); }

p { margin: 0 0 1rem; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: 1.25rem;
}

.section { padding-block: clamp(3.5rem, 7.5vw, 6rem); }
.section--tight { padding-block: clamp(2.5rem, 5vw, 4rem); }
.section--alt { background: var(--bg-alt); }
.section--white { background: var(--surface); }
.section--flush-top { padding-top: 0; }

.section__head { max-width: 640px; margin-bottom: 2.75rem; }
.section__head--center { margin-inline: auto; text-align: center; }
.section__head p:last-child { margin-bottom: 0; }

.eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--teal-600);
  margin-bottom: 0.8rem;
}

.lede { font-size: 1.06rem; color: var(--ink-500); }
.text-muted { color: var(--ink-500); }
.mb-0 { margin-bottom: 0; }

/* ------------------------------- skip link ------------------------------ */

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--blue-600);
  color: #fff;
  padding: 0.7rem 1.1rem;
  font-weight: 700;
  border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus { left: 0; }

/* --------------------------------- nav ---------------------------------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.28s var(--ease), background 0.28s var(--ease);
}

.nav.is-scrolled {
  box-shadow: var(--shadow-sm);
  background: rgba(255, 255, 255, 0.96);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 74px;
}

.brand { display: flex; align-items: center; gap: 0.7rem; }
.brand:hover { text-decoration: none; }

.brand__mark {
  width: 46px;
  height: 46px;
  flex: none;
  object-fit: contain;
  transition: transform 0.5s var(--ease);
}

.brand:hover .brand__mark { transform: rotate(-8deg) scale(1.07); }

.brand__text { display: flex; flex-direction: column; line-height: 1.15; }

.brand__name {
  font-size: 1.22rem;
  font-weight: 800;
  color: var(--ink-900);
  letter-spacing: -0.02em;
}

.brand__sub {
  font-size: 0.67rem;
  font-weight: 600;
  color: var(--ink-400);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 0.2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav__links a {
  position: relative;
  display: block;
  padding: 0.55rem 0.9rem;
  border-radius: var(--radius-sm);
  color: var(--ink-600);
  font-size: 0.94rem;
  font-weight: 600;
  transition: color 0.2s var(--ease);
}

.nav__links a::after {
  content: "";
  position: absolute;
  left: 0.9rem;
  right: 0.9rem;
  bottom: 0.3rem;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--blue-500), var(--teal-500));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.28s var(--ease);
}

.nav__links a:hover { color: var(--blue-600); text-decoration: none; }
.nav__links a:hover::after,
.nav__links a.is-active::after { transform: scaleX(1); }
.nav__links a.is-active { color: var(--blue-700); }

.nav__toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  color: var(--ink-800);
  padding: 0.45rem 0.6rem;
  cursor: pointer;
}
.nav__toggle svg { display: block; }

@media (max-width: 880px) {
  .nav__toggle { display: block; }
  .nav__links {
    position: absolute;
    inset: 74px 0 auto;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    padding: 0.5rem 1rem 1rem;
    display: none;
  }
  .nav__links.is-open { display: flex; animation: dropIn 0.28s var(--ease) both; }
  .nav__links a { padding: 0.8rem 0.6rem; }
  .nav__links a::after { display: none; }
}

/* --------------------------------- hero --------------------------------- */

.hero {
  position: relative;
  padding-block: clamp(3rem, 7vw, 5.5rem);
  overflow: hidden;
  background: linear-gradient(170deg, #ffffff 0%, var(--bg) 55%, var(--bg-alt) 100%);
  border-bottom: 1px solid var(--line);
}

/* soft drifting colour fields */
.hero__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.5;
  pointer-events: none;
  z-index: 0;
}

.hero__orb--a {
  width: 460px; height: 460px;
  top: -140px; right: -80px;
  background: radial-gradient(circle, rgba(47, 136, 189, 0.5), transparent 68%);
  animation: drift 19s ease-in-out infinite;
}

.hero__orb--b {
  width: 380px; height: 380px;
  bottom: -150px; left: -90px;
  background: radial-gradient(circle, rgba(124, 197, 118, 0.42), transparent 68%);
  animation: drift 24s ease-in-out infinite reverse;
}

.hero__orb--c {
  width: 300px; height: 300px;
  top: 42%; left: 46%;
  background: radial-gradient(circle, rgba(46, 154, 165, 0.32), transparent 68%);
  animation: drift 30s ease-in-out infinite;
}

.hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

@media (max-width: 940px) {
  .hero__grid { grid-template-columns: 1fr; text-align: center; }
  .hero__meta, .hero__actions { justify-content: center; }
  .hero__statement { margin-inline: auto; }
  .hero__visual { order: -1; }
}

.hero h1 { margin-bottom: 0.9rem; }

.hero h1 .accent {
  background: linear-gradient(100deg, var(--blue-600), var(--teal-500) 55%, var(--green-500));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__statement {
  font-size: clamp(1.04rem, 2.1vw, 1.22rem);
  color: var(--ink-500);
  max-width: 40ch;
  margin-bottom: 1.7rem;
}

/* The acronym spells itself out: SPARC is read off the highlighted initials. */
.acronym {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.15rem 0.9rem;
  margin: 0 0 1.5rem;
  font-size: clamp(0.93rem, 1.7vw, 1.04rem);
  font-weight: 600;
  color: var(--ink-500);
}

.acronym__w { display: inline-flex; align-items: baseline; position: relative; }

/* thin separator dot between the words */
.acronym__w:not(:last-child)::after {
  content: "";
  position: absolute;
  right: -0.52rem;
  bottom: 0.36em;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--line-strong);
}

.acronym__i {
  font-family: var(--font-mono);
  font-size: 1.35em;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
  background: linear-gradient(150deg, var(--blue-600), var(--teal-500) 60%, var(--green-500));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: letterIn 0.6s var(--ease) both;
}

.acronym__w:nth-child(1) .acronym__i { animation-delay: 0.45s; }
.acronym__w:nth-child(2) .acronym__i { animation-delay: 0.57s; }
.acronym__w:nth-child(3) .acronym__i { animation-delay: 0.69s; }
.acronym__w:nth-child(4) .acronym__i { animation-delay: 0.81s; }
.acronym__w:nth-child(5) .acronym__i { animation-delay: 0.93s; }

@keyframes letterIn {
  0% { opacity: 0; transform: translateY(6px) scale(0.7); }
  60% { opacity: 1; transform: translateY(0) scale(1.22); }
  100% { opacity: 1; transform: none; }
}

@media (max-width: 940px) { .acronym { justify-content: center; } }

.hero__meta { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1.8rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.8rem; }

/* the logo, floating */
.hero__visual { display: grid; place-items: center; position: relative; }

.hero__logo {
  width: min(100%, 400px);
  height: auto;
  animation: floaty 7s ease-in-out infinite;
  filter: drop-shadow(0 18px 38px rgba(18, 32, 58, 0.14));
}

.hero__ring {
  position: absolute;
  width: min(84%, 340px);
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1px dashed var(--line-strong);
  animation: spin 44s linear infinite;
  pointer-events: none;
}

.hero__ring--2 {
  width: min(98%, 400px);
  border-style: solid;
  border-color: rgba(47, 136, 189, 0.16);
  animation-duration: 66s;
  animation-direction: reverse;
}

/* -------------------------------- buttons -------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.78rem 1.5rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  font-family: inherit;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.22s var(--ease), box-shadow 0.22s var(--ease),
    background 0.22s var(--ease), border-color 0.22s var(--ease), color 0.22s var(--ease);
}

.btn:hover { text-decoration: none; transform: translateY(-2px); }

.btn--primary {
  background: linear-gradient(100deg, var(--blue-600), var(--teal-500));
  color: #fff;
  box-shadow: 0 8px 20px rgba(31, 111, 168, 0.26);
}
.btn--primary:hover { box-shadow: 0 14px 30px rgba(31, 111, 168, 0.34); }

.btn--ghost {
  border-color: var(--line-strong);
  color: var(--ink-800);
  background: var(--surface);
}
.btn--ghost:hover { border-color: var(--blue-500); color: var(--blue-700); box-shadow: var(--shadow-sm); }

.btn--block { width: 100%; justify-content: center; }
.btn[disabled] { opacity: 0.6; cursor: not-allowed; transform: none; }

.btn svg { flex: none; transition: transform 0.22s var(--ease); }
.btn:hover svg { transform: translateX(3px); }

/* --------------------------------- chips -------------------------------- */

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.33rem 0.8rem;
  border-radius: 999px;
  font-size: 0.79rem;
  font-weight: 600;
  background: var(--bg-alt);
  border: 1px solid var(--line);
  color: var(--ink-600);
}

.chip--accent { background: var(--blue-100); border-color: #bfdcf0; color: var(--blue-700); }
.chip--teal { background: var(--teal-100); border-color: #b9e2e5; color: var(--teal-600); }
.chip--green { background: var(--green-100); border-color: #c4e8bf; color: #3f8a39; }

/* --------------------------------- cards -------------------------------- */

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.65rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.28s var(--ease), box-shadow 0.28s var(--ease), border-color 0.28s var(--ease);
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
  border-color: var(--line-strong);
}

.grid { display: grid; gap: 1.4rem; }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(310px, 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(275px, 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }

/* ---------------------------- research areas ---------------------------- */

.area { text-align: left; }

.area__icon {
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(140deg, var(--blue-100), var(--teal-100));
  border: 1px solid #cfe4f2;
  color: var(--blue-600);
  margin-bottom: 1rem;
  transition: transform 0.35s var(--ease), background 0.35s var(--ease);
}

.card:hover .area__icon {
  transform: translateY(-3px) rotate(-6deg);
  background: linear-gradient(140deg, var(--blue-500), var(--teal-500));
  color: #fff;
}

.area h3 { margin-bottom: 0.4rem; }
.area p { color: var(--ink-500); font-size: 0.93rem; margin: 0; }

/* --------------------------- metric / stat cards ------------------------- */

.metric {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem 1.5rem;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
  transition: transform 0.28s var(--ease), box-shadow 0.28s var(--ease);
}

.metric::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: linear-gradient(180deg, var(--blue-500), var(--teal-500));
}

.metric:hover { transform: translateY(-5px); box-shadow: var(--shadow); }

.metric__value {
  font-family: var(--font-mono);
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--ink-900);
  line-height: 1.05;
}

.metric__label {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--ink-800);
  margin-top: 0.3rem;
}

.metric__detail { font-size: 0.87rem; color: var(--ink-500); margin: 0.5rem 0 0; }
.metric__link { font-size: 0.84rem; display: inline-block; margin-top: 0.7rem; }

/* --------------------------------- aims --------------------------------- */

.aim { position: relative; padding-left: 3.4rem; }

.aim__num {
  position: absolute;
  left: 0;
  top: 0.05rem;
  width: 2.4rem;
  height: 2.4rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(140deg, var(--blue-600), var(--teal-500));
  color: #fff;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.9rem;
  box-shadow: 0 6px 14px rgba(31, 111, 168, 0.24);
}

.aim h3 { font-size: 1.1rem; margin-bottom: 0.3rem; }
.aim p { color: var(--ink-500); font-size: 0.93rem; margin: 0; }

/* ---------------------------- method pipeline ---------------------------- */

.pipeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  position: relative;
}

/* the connecting rail behind the four steps */
.pipeline::before {
  content: "";
  position: absolute;
  top: 34px;
  left: 12%;
  right: 12%;
  height: 2px;
  background: linear-gradient(90deg, var(--blue-500), var(--teal-500) 55%, var(--green-500));
  opacity: 0.35;
  z-index: 0;
}

@media (max-width: 860px) {
  .pipeline { grid-template-columns: repeat(2, 1fr); }
  .pipeline::before { display: none; }
}

@media (max-width: 460px) {
  .pipeline { grid-template-columns: 1fr; }
}

.pipeline__step {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 0 0.4rem;
}

.pipeline__icon {
  width: 68px;
  height: 68px;
  margin: 0 auto 0.5rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--surface);
  border: 2px solid var(--line-strong);
  color: var(--blue-600);
  box-shadow: var(--shadow-sm);
  transition: transform 0.32s var(--ease), border-color 0.32s var(--ease),
    background 0.32s var(--ease), color 0.32s var(--ease);
}

.pipeline__step:hover .pipeline__icon {
  transform: translateY(-4px) scale(1.06);
  border-color: transparent;
  background: linear-gradient(140deg, var(--blue-600), var(--teal-500));
  color: #fff;
}

.pipeline__num {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--teal-600);
  margin-bottom: 0.3rem;
}

.pipeline__step h3 { font-size: 1.02rem; margin-bottom: 0.3rem; }
.pipeline__step p { font-size: 0.87rem; color: var(--ink-500); margin: 0; }

/* ------------------------------- objectives ------------------------------ */

.obj-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 0.85rem;
}

.obj {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  padding: 0.9rem 1.1rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  color: var(--ink-500);
  box-shadow: var(--shadow-sm);
  transition: transform 0.22s var(--ease), border-color 0.22s var(--ease);
}

.obj:hover { transform: translateY(-2px); border-color: var(--line-strong); }

.obj__tick { flex: none; margin-top: 0.16rem; color: var(--green-500); }

/* --------------------------- impact cards ------------------------------- */

.impact-card h3 { font-size: 1.04rem; margin-bottom: 0.35rem; }
.impact-card p { font-size: 0.9rem; color: var(--ink-500); margin: 0; }

.objectives { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.85rem; }

.objectives li {
  position: relative;
  padding-left: 1.9rem;
  color: var(--ink-500);
}

.objectives li::before {
  content: "";
  position: absolute;
  left: 0.2rem;
  top: 0.6em;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: linear-gradient(135deg, var(--blue-500), var(--green-500));
  transform: rotate(45deg);
}

/* ------------------------------ member cards ----------------------------- */

.member {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}

.member:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--line-strong);
}

.member__photo {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--bg-alt);
}

.member__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 22%;
  transition: transform 0.6s var(--ease);
}

.member:hover .member__photo img { transform: scale(1.06); }

.member__badge {
  position: absolute;
  top: 0.8rem;
  left: 0.8rem;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(6px);
  border: 1px solid var(--line);
  color: var(--ink-800);
  box-shadow: var(--shadow-sm);
}

.member__badge--lead {
  background: linear-gradient(100deg, var(--blue-600), var(--teal-500));
  color: #fff;
  border-color: transparent;
}

.member__body { padding: 1.2rem 1.3rem 1.4rem; display: flex; flex-direction: column; flex: 1; }
.member__name { font-size: 1.12rem; margin-bottom: 0.15rem; }
.member__name a { color: var(--ink-900); }
.member__name a:hover { color: var(--blue-600); text-decoration: none; }

.member__role {
  font-size: 0.82rem;
  color: var(--teal-600);
  font-weight: 700;
  margin-bottom: 0.7rem;
}

.member__tagline { font-size: 0.89rem; color: var(--ink-500); margin-bottom: 1rem; flex: 1; }

.member__foot {
  padding-top: 0.85rem;
  border-top: 1px solid var(--line);
  font-size: 0.85rem;
}

.member__link { font-weight: 700; }

/* ------------------------------ lead banner ------------------------------ */

.lead-card {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 3vw, 2.4rem);
  box-shadow: var(--shadow);
  margin-bottom: 4rem;
}

@media (max-width: 780px) {
  .lead-card { grid-template-columns: 1fr; text-align: center; }
  .lead-card .tag-cloud { justify-content: center; }
}

.lead-card__photo {
  width: 100%;
  max-width: 260px;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  margin-inline: auto;
}

.lead-card__photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; }
.lead-card h2 { margin-bottom: 0.2rem; }

/* ------------------------------ publications ----------------------------- */

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  align-items: center;
  margin-bottom: 2rem;
}

.filters__buttons { display: flex; flex-wrap: wrap; gap: 0.55rem; }

.filter-btn {
  padding: 0.45rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--ink-600);
  font-size: 0.86rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.2s var(--ease);
}

.filter-btn:hover { border-color: var(--blue-500); color: var(--blue-700); }

.filter-btn.is-active {
  background: linear-gradient(100deg, var(--blue-600), var(--teal-500));
  border-color: transparent;
  color: #fff;
  box-shadow: 0 6px 14px rgba(31, 111, 168, 0.22);
}

.search-box { flex: 1; min-width: 210px; max-width: 320px; margin-left: auto; }

.pub {
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 4px solid var(--blue-500);
  border-radius: var(--radius);
  padding: 1.6rem;
  margin-bottom: 1.15rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.26s var(--ease), box-shadow 0.26s var(--ease), border-left-color 0.26s var(--ease);
}

.pub:hover { transform: translateX(4px); box-shadow: var(--shadow); border-left-color: var(--green-500); }

.pub__meta { display: flex; flex-wrap: wrap; gap: 0.45rem; margin-bottom: 0.85rem; }
.pub__title { font-size: 1.14rem; margin-bottom: 0.55rem; }
.pub__authors { font-size: 0.9rem; color: var(--ink-500); margin-bottom: 0.45rem; }
.pub__authors .is-member { color: var(--ink-900); font-weight: 700; }
.pub__journal { font-size: 0.87rem; color: var(--ink-400); font-style: italic; margin-bottom: 0.9rem; }
.pub__summary { font-size: 0.93rem; color: var(--ink-500); margin-bottom: 1rem; }

.pub__findings { list-style: none; margin: 0 0 1.1rem; padding: 0; display: grid; gap: 0.5rem; }

.pub__findings li {
  position: relative;
  padding-left: 1.5rem;
  font-size: 0.9rem;
  color: var(--ink-500);
}

.pub__findings li::before {
  content: "";
  position: absolute;
  left: 0.25rem;
  top: 0.62em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--teal-500);
}

.pub__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.9rem;
  padding-top: 0.95rem;
  border-top: 1px solid var(--line);
  font-size: 0.85rem;
}

.pub__doi { font-family: var(--font-mono); font-size: 0.78rem; color: var(--ink-400); }

.details-toggle {
  background: none;
  border: 0;
  color: var(--blue-600);
  font: inherit;
  font-size: 0.86rem;
  font-weight: 700;
  cursor: pointer;
  padding: 0;
}
.details-toggle:hover { text-decoration: underline; }

/* compact publication rows, used on the home page */
.pub-row {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  padding: 1.05rem 1.3rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  margin-bottom: 0.7rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.24s var(--ease), box-shadow 0.24s var(--ease);
}

.pub-row:hover { transform: translateX(5px); box-shadow: var(--shadow); text-decoration: none; }

.pub-row__year {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--blue-600);
  flex: none;
  padding: 0.3rem 0.6rem;
  background: var(--blue-100);
  border-radius: 6px;
}

.pub-row__text { flex: 1; min-width: 0; }
.pub-row__title { font-size: 0.97rem; font-weight: 700; color: var(--ink-900); line-height: 1.4; }
.pub-row__journal { font-size: 0.82rem; color: var(--ink-400); }
.pub-row__arrow { flex: none; color: var(--ink-300); transition: transform 0.24s var(--ease), color 0.24s var(--ease); }
.pub-row:hover .pub-row__arrow { transform: translateX(4px); color: var(--blue-600); }

/* --------------------------------- impact -------------------------------- */

.impact { border-left: 4px solid var(--green-400); padding-left: 1.4rem; }
.impact h3 { font-size: 1.06rem; margin-bottom: 0.45rem; }
.impact p { color: var(--ink-500); font-size: 0.93rem; margin: 0; }

/* ------------------------------ member page ------------------------------ */

.profile {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: clamp(1.8rem, 4vw, 3.2rem);
  align-items: start;
}

.profile__aside { position: sticky; top: 100px; }

@media (max-width: 900px) {
  .profile { grid-template-columns: 1fr; }
  .profile__aside {
    /* Sticky must be switched off here: once the grid collapses to one column
       the photo would otherwise detach and float over the text below it. */
    position: static;
    top: auto;
    max-width: 340px;
    margin-inline: auto;
  }
}

.profile__photo {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--bg-alt);
  margin-bottom: 1.2rem;
  box-shadow: var(--shadow);
}

.profile__photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; }

.profile__contact { display: grid; gap: 0.6rem; margin-bottom: 1.2rem; }

.profile__contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.88rem;
  color: var(--ink-500);
  word-break: break-word;
}

.profile__contact-item svg { flex: none; margin-top: 0.25rem; color: var(--teal-600); }

.profile__links { display: grid; gap: 0.5rem; }

.profile__link {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.62rem 0.9rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--ink-800);
  font-size: 0.88rem;
  font-weight: 600;
  transition: transform 0.2s var(--ease), border-color 0.2s var(--ease),
    color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.profile__link svg { flex: none; color: var(--teal-600); transition: color 0.2s var(--ease); }

.profile__link:hover {
  text-decoration: none;
  transform: translateX(3px);
  border-color: var(--blue-500);
  color: var(--blue-700);
  box-shadow: var(--shadow-sm);
}

.profile__link:hover svg { color: var(--blue-600); }

.profile__badge { margin-bottom: 0.8rem; }
.profile h1 { margin-bottom: 0.25rem; }
.profile__role { font-size: 1.02rem; color: var(--blue-700); font-weight: 700; margin-bottom: 0.15rem; }
.profile__affil { color: var(--ink-400); font-size: 0.94rem; margin-bottom: 1.5rem; }

.profile__block { margin-bottom: 2.6rem; }

.profile__block h2 {
  font-size: 1.2rem;
  padding-bottom: 0.6rem;
  border-bottom: 2px solid var(--line);
  margin-bottom: 1.3rem;
  position: relative;
}

.profile__block h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 52px;
  height: 2px;
  background: linear-gradient(90deg, var(--blue-600), var(--teal-500));
}

.timeline { display: grid; gap: 1.6rem; }
.timeline__item { position: relative; padding-left: 1.7rem; }

.timeline__item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--blue-500);
  box-shadow: 0 0 0 4px var(--blue-100);
  z-index: 1;
}

.timeline__item::after {
  content: "";
  position: absolute;
  left: 4.5px;
  top: calc(0.5em + 14px);
  bottom: -1.6rem;
  width: 1px;
  background: var(--line-strong);
}

.timeline__item:last-child::after { display: none; }

.timeline__role { font-weight: 700; font-size: 1.01rem; color: var(--ink-900); }
.timeline__org { color: var(--blue-600); font-size: 0.92rem; }
.timeline__code { color: var(--blue-600); font-size: 0.8rem; font-family: var(--font-mono); }

.timeline__period {
  font-family: var(--font-mono);
  font-size: 0.77rem;
  color: var(--ink-400);
  margin-bottom: 0.55rem;
}

.timeline__points { margin: 0; padding-left: 1.1rem; display: grid; gap: 0.4rem; }
.timeline__points li { color: var(--ink-500); font-size: 0.91rem; }

.tag-cloud { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.tag-cloud--spaced { margin-bottom: 1.3rem; }

.skill-group { margin-bottom: 1.15rem; }

.skill-group__name {
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-400);
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.mini-card h2 { font-size: 1.25rem; margin-bottom: 0.6rem; }
.mini-card h3 { font-size: 1.02rem; margin-bottom: 0.3rem; }
.mini-card p { margin: 0 0 0.6rem; font-size: 0.9rem; color: var(--ink-500); }
.mini-card p:last-child { margin-bottom: 0; }
.mt-card { margin-top: 1.35rem; }

.back-link { font-size: 0.9rem; color: var(--ink-500); display: inline-block; margin-bottom: 1.2rem; }

/* --------------------------------- forms -------------------------------- */

.form { display: grid; gap: 1.05rem; }
.field { display: grid; gap: 0.4rem; }
.field label { font-size: 0.86rem; font-weight: 700; color: var(--ink-800); }

.field input,
.field textarea {
  width: 100%;
  padding: 0.75rem 0.95rem;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  color: var(--ink-900);
  font: inherit;
  font-size: 0.95rem;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--blue-500);
  box-shadow: 0 0 0 3px rgba(47, 136, 189, 0.15);
}

.field textarea { resize: vertical; min-height: 150px; }

.field--honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-status {
  padding: 0.85rem 1.05rem;
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  display: none;
}

.form-status.is-visible { display: block; animation: fadeUp 0.34s var(--ease) both; }
.form-status--ok { background: var(--green-100); border: 1px solid #bfe6ba; color: #337a2e; }
.form-status--error { background: #fdecec; border: 1px solid #f5c4c4; color: #b23b3b; }

/* -------------------------------- footer -------------------------------- */

.footer {
  background: var(--surface);
  border-top: 1px solid var(--line);
  padding-block: 3rem 1.75rem;
  margin-top: auto;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.7fr 1fr 1fr;
  gap: 2.2rem;
  margin-bottom: 2.2rem;
}

@media (max-width: 760px) { .footer__grid { grid-template-columns: 1fr; } }

.footer__logo { width: 120px; height: auto; margin-bottom: 0.9rem; }

.footer h4 {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ink-400);
  margin-bottom: 0.9rem;
}

.footer p { color: var(--ink-500); font-size: 0.89rem; }
.footer__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; }
.footer__list a { color: var(--ink-500); font-size: 0.89rem; }
.footer__list a:hover { color: var(--blue-600); }

.footer__bottom {
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: space-between;
  font-size: 0.83rem;
  color: var(--ink-400);
}

.footer__bottom--bare { border-top: 0; padding-top: 0; }

/* ---------------------------- states / utility --------------------------- */

.page-shell { display: flex; flex-direction: column; min-height: 100vh; }
.page-head { padding-block: clamp(2.6rem, 6vw, 4rem) 0; }

.loading {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--ink-400);
  font-family: var(--font-mono);
  font-size: 0.87rem;
}

.empty {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--ink-400);
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  background: var(--surface);
}

.center-block { display: grid; place-items: center; text-align: center; flex: 1; }
.center-block .hero__actions { justify-content: center; margin-top: 1.5rem; }

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

:focus-visible { outline: 2px solid var(--blue-500); outline-offset: 3px; }

/* ------------------------------- animation ------------------------------- */

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: none; }
}

@keyframes dropIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: none; }
}

@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-16px); }
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes drift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(38px, -28px) scale(1.09); }
  66% { transform: translate(-26px, 22px) scale(0.94); }
}

/* scroll-triggered reveal, switched on by JS */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.65s var(--ease), transform 0.65s var(--ease);
  transition-delay: var(--reveal-delay, 0ms);
}

.reveal.is-visible { opacity: 1; transform: none; }

/* hero content animates in immediately on load */
.hero__grid > div > *,
.hero__visual { animation: fadeUp 0.75s var(--ease) both; }
.hero__grid .eyebrow { animation-delay: 0.05s; }
.hero__grid h1 { animation-delay: 0.14s; }
.acronym { animation-delay: 0.22s; }
.hero__statement { animation-delay: 0.3s; }
.hero__meta { animation-delay: 0.38s; }
.hero__actions { animation-delay: 0.46s; }
.hero__visual { animation-delay: 0.2s; }

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

@media print {
  .nav, .footer, .hero__orb, .hero__ring { display: none; }
  body { background: #fff; }
  .card, .pub, .member { box-shadow: none; }
}
