:root {
  --ink: #111315;
  --ink-soft: #42474d;
  --paper: #f7f7f2;
  --white: #ffffff;
  --line: #d7dad8;
  --acid: #e5f542;
  --acid-dark: #cddd21;
  --radius: 1.1rem;
  --shadow: 0 20px 55px rgba(16, 18, 21, 0.10);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.58;
}

a { color: inherit; }

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

button { font: inherit; }

.shell { width: min(1160px, calc(100% - 2.5rem)); margin-inline: auto; }

.skip-link {
  position: fixed;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  padding: .65rem .9rem;
  color: var(--ink);
  background: var(--acid);
  border-radius: .35rem;
  text-decoration: none;
}

.skip-link:focus { top: 1rem; }

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(247, 247, 242, .95);
  border-bottom: 1px solid rgba(17, 19, 21, .10);
  backdrop-filter: blur(16px);
}

.nav-wrap { display: flex; align-items: center; min-height: 4.8rem; }

.brand { width: 142px; flex: 0 0 auto; }

.brand img { width: 100%; height: auto; }

.site-nav { display: flex; align-items: center; gap: 1.25rem; margin-left: auto; }

.site-nav a {
  color: var(--ink-soft);
  font-size: .89rem;
  font-weight: 700;
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a:focus-visible { color: var(--ink); text-decoration: underline; text-underline-offset: .35em; }

.nav-toggle { display: none; }

.hero {
  position: relative;
  overflow: hidden;
  min-height: 695px;
  color: var(--white);
  background: var(--ink);
}

.hero::before {
  position: absolute;
  inset: 0;
  content: "";
  background:
    radial-gradient(circle at 82% 19%, rgba(229, 245, 66, .23), transparent 18rem),
    linear-gradient(132deg, transparent 57%, rgba(229, 245, 66, .9) 57.1%, rgba(229, 245, 66, .9) 57.3%, transparent 57.4%);
  pointer-events: none;
}

.hero-grid {
  position: absolute;
  inset: 0;
  opacity: .21;
  background-image: linear-gradient(rgba(255,255,255,.20) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.20) 1px, transparent 1px);
  background-size: 70px 70px;
  mask-image: linear-gradient(90deg, black, transparent 86%);
}

.hero-content { position: relative; padding-block: clamp(7.5rem, 15vw, 10.2rem) 4rem; }

.eyebrow {
  margin: 0 0 .9rem;
  color: #5e6266;
  font-size: .74rem;
  font-weight: 800;
  letter-spacing: .11em;
  text-transform: uppercase;
}

.hero .eyebrow,
.heading-on-dark .eyebrow { color: var(--acid); }

h1, h2, h3, p { margin-top: 0; }

h1, h2, h3 { font-weight: 800; letter-spacing: -.045em; line-height: 1.04; }

h1 { max-width: 850px; margin-bottom: 1.5rem; font-size: clamp(3rem, 7.7vw, 6.75rem); }

h2 { margin-bottom: 0; font-size: clamp(2rem, 4.5vw, 3.55rem); }

h3 { margin-bottom: .7rem; font-size: 1.36rem; }

.hero-lead { max-width: 625px; margin-bottom: 2rem; color: rgba(255,255,255,.78); font-size: clamp(1.08rem, 2.1vw, 1.36rem); }

.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; align-items: center; }

.button { display: inline-flex; align-items: center; gap: .55rem; padding: .86rem 1.1rem; border: 1px solid transparent; border-radius: 999px; font-weight: 800; text-decoration: none; }

.button-primary { color: var(--ink); background: var(--acid); }
.button-primary:hover, .button-primary:focus-visible { background: #fff; }
.button-quiet { color: #fff; border-color: rgba(255,255,255,.42); }
.button-quiet:hover, .button-quiet:focus-visible { border-color: #fff; background: rgba(255,255,255,.08); }

.hero-facts { display: flex; flex-wrap: wrap; gap: 1rem 3.8rem; margin: 5.4rem 0 0; padding: 1.2rem 0 0; border-top: 1px solid rgba(255,255,255,.3); }
.hero-facts div { min-width: 132px; }
.hero-facts dt { color: rgba(255,255,255,.56); font-size: .75rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.hero-facts dd { margin: .15rem 0 0; font-size: 1rem; font-weight: 750; }

.section { padding-block: clamp(4.5rem, 8vw, 7.7rem); }
.section-intro { padding-block: clamp(4.6rem, 9vw, 8.4rem); }
.section-tint { background: #eceee9; }
.section-dark { color: var(--white); background: var(--ink); }

.split-intro { display: grid; grid-template-columns: minmax(230px, .85fr) minmax(330px, 1.15fr); gap: clamp(2.4rem, 7vw, 8rem); }
.prose { max-width: 675px; color: var(--ink-soft); font-size: 1.16rem; }
.prose p:last-child { margin-bottom: 0; }

.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 2rem; margin-bottom: 2.6rem; }
.section-heading > p { max-width: 405px; margin-bottom: .3rem; color: var(--ink-soft); }
.heading-on-dark > p { color: rgba(255,255,255,.68); }
.narrow-heading { justify-content: flex-start; }

.capability-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: .9rem; }
.capability-card { min-height: 242px; padding: 1.4rem; background: var(--white); border-radius: var(--radius); box-shadow: 0 1px 0 rgba(17,19,21,.04); }
.capability-card h3 { font-size: 1.2rem; }
.capability-card p { margin: 0; color: var(--ink-soft); font-size: .96rem; }
.card-index { display: block; margin-bottom: 3.15rem; color: #747a7f; font-size: .8rem; font-weight: 800; }

.timeline { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.timeline li { min-height: 270px; padding: 1.4rem 1.35rem 0 0; border-right: 1px solid var(--line); }
.timeline li + li { padding-left: 1.35rem; }
.timeline li:last-child { border-right: 0; }
.timeline-year { display: block; margin-bottom: 4.75rem; color: #73797c; font-size: .82rem; font-weight: 800; letter-spacing: .08em; }
.timeline p { max-width: 295px; margin-bottom: 0; color: var(--ink-soft); }

.team-grid { display: grid; grid-template-columns: 1.25fr 1fr 1fr; gap: .9rem; }
.team-card { display: grid; grid-template-columns: auto 1fr; align-content: start; gap: 1rem; min-height: 360px; padding: 1.45rem; color: var(--ink); background: #f4f5f1; border-radius: var(--radius); }
.team-card.lead-card { background: var(--acid); }
.initials { display: grid; width: 2.55rem; aspect-ratio: 1; place-items: center; color: var(--ink); border: 1px solid rgba(17,19,21,.24); border-radius: 50%; font-size: .76rem; font-weight: 900; }
.role { margin-bottom: .65rem; color: #595f64; font-size: .75rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.team-card h3 { margin-bottom: .85rem; }
.team-card p:not(.role) { color: #3d4347; font-size: .95rem; }
.team-card p:last-child { margin-bottom: 0; }

.institution-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: .9rem; }
.institution-card { display: flex; flex-direction: column; justify-content: space-between; min-height: 146px; padding: 1.15rem; color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; transition: transform .2s ease, box-shadow .2s ease; }
.institution-card:hover, .institution-card:focus-visible { transform: translateY(-3px); box-shadow: var(--shadow); }
.institution-logo { width: min(100%, 168px); height: 42px; object-fit: contain; object-position: left center; }
.institution-card > span:last-child { color: var(--ink-soft); font-size: .78rem; line-height: 1.25; }
.collaboration-note { max-width: 690px; margin: 1.25rem 0 0; color: #6b7276; font-size: .88rem; }

.news-card { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 1.8rem; padding: clamp(1.4rem, 4vw, 2.65rem); background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); }
.news-date { align-self: start; display: grid; gap: .15rem; padding-right: 1.2rem; border-right: 1px solid var(--line); }
.news-date span { font-size: 2.2rem; font-weight: 900; letter-spacing: -.07em; line-height: .8; }
.news-date small { color: #70777b; font-size: .79rem; font-weight: 800; letter-spacing: .1em; }
.news-card h3 { max-width: 750px; font-size: clamp(1.55rem, 3vw, 2.4rem); }
.news-card p:last-child { max-width: 790px; margin-bottom: 0; color: var(--ink-soft); }

.event-list, .publication-list { display: grid; gap: .75rem; }
.event-list:empty, .publication-list:empty { min-height: 80px; }
.empty-state { padding: 1.5rem; color: var(--ink-soft); border: 1px dashed #bbc0bd; border-radius: var(--radius); }
.section-dark .empty-state { color: rgba(255,255,255,.70); border-color: rgba(255,255,255,.28); }

.event-card { display: grid; grid-template-columns: 150px minmax(0, 1fr) auto; gap: 1.35rem; align-items: center; padding: 1.35rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.event-identity { display: grid; gap: .72rem; align-content: start; }
.event-logo-wrap { display: grid; min-height: 50px; place-items: center start; }
.event-logo { width: min(100%, 140px); height: 48px; object-fit: contain; object-position: left center; }
.event-date { color: var(--ink); font-size: .9rem; font-weight: 900; line-height: 1.2; }
.event-card h3 { margin-bottom: .35rem; font-size: 1.2rem; }
.event-card p { margin: 0; color: var(--ink-soft); font-size: .93rem; }
.event-link { padding: .55rem .8rem; border: 1px solid var(--ink); border-radius: 999px; font-size: .82rem; font-weight: 800; text-decoration: none; }
.event-link:hover, .event-link:focus-visible { color: var(--ink); background: var(--acid); }

.publication-card { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: start; gap: 1.1rem; padding: 1.25rem; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.22); border-radius: var(--radius); }
.publication-number { color: var(--acid); font-size: .86rem; font-weight: 900; }
.publication-type { margin-bottom: .35rem; color: var(--acid); font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.publication-title { margin-bottom: .45rem; color: #fff; font-size: clamp(1.2rem, 2vw, 1.55rem); }
.publication-text { margin: 0; color: rgba(255,255,255,.86); }
.publication-description { max-width: 800px; margin: .62rem 0 0; color: rgba(255,255,255,.68); }
.publication-link { display: inline-block; margin-top: .55rem; color: var(--acid); font-size: .83rem; font-weight: 800; text-decoration-thickness: 1px; text-underline-offset: .18em; }

.site-footer { color: rgba(255,255,255,.83); background: #191c1f; }
.footer-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 2rem; padding-block: 3.2rem; }
.footer-logo { width: 145px; margin-bottom: 1rem; filter: invert(1); }
.footer-fesb-logo { width: 145px; height: 38px; margin: 0 0 1rem; filter: brightness(0) invert(1); object-fit: contain; object-position: left center; }
.site-footer p { margin-bottom: .45rem; }
.footer-muted { color: rgba(255,255,255,.57); font-size: .89rem; }
.funding-mark { justify-self: end; max-width: 300px; }
.funding-mark img { width: 235px; margin-bottom: 1rem; padding: .75rem .9rem; background: #fff; border-radius: .5rem; }
.funding-mark p { color: rgba(255,255,255,.65); font-size: .86rem; }
.footer-bottom { display: flex; justify-content: space-between; gap: 1.5rem; padding-block: 1.1rem; border-top: 1px solid rgba(255,255,255,.16); color: rgba(255,255,255,.54); font-size: .78rem; }
.footer-bottom p { margin: 0; }

@media (max-width: 960px) {
  .capability-grid { grid-template-columns: repeat(2, 1fr); }
  .team-grid { grid-template-columns: 1fr 1fr; }
  .team-card.lead-card { grid-column: span 2; min-height: 250px; }
  .institution-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 760px) {
  .shell { width: min(100% - 2rem, 1160px); }
  .nav-wrap { min-height: 4.15rem; }
  .brand { width: 124px; }
  .nav-toggle { display: grid; width: 2.65rem; height: 2.65rem; place-content: center; gap: .29rem; margin-left: auto; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: transparent; cursor: pointer; }
  .nav-toggle span:not(.sr-only) { display: block; width: 1rem; height: 1px; background: var(--ink); transition: transform .2s ease; }
  .nav-toggle[aria-expanded="true"] span:nth-of-type(1) { transform: translateY(3px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-of-type(2) { transform: translateY(-3px) rotate(-45deg); }
  .site-nav { position: absolute; top: 100%; right: 0; left: 0; display: none; flex-direction: column; align-items: stretch; gap: 0; padding: .45rem 1rem .85rem; background: var(--paper); border-bottom: 1px solid var(--line); box-shadow: 0 12px 24px rgba(0,0,0,.09); }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: .7rem 0; }
  .hero { min-height: 640px; }
  .hero-content { padding-top: 6.3rem; }
  .hero-facts { gap: 1rem 2rem; margin-top: 4rem; }
  .split-intro, .section-heading, .footer-grid { grid-template-columns: 1fr; display: grid; }
  .section-heading { gap: .8rem; }
  .section-heading > p { margin-bottom: 0; }
  .timeline { grid-template-columns: 1fr; }
  .timeline li, .timeline li + li { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 1rem; min-height: auto; padding: 1.25rem 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .timeline-year { margin: 0; }
  .timeline h3 { margin-bottom: .45rem; }
  .news-card { grid-template-columns: 1fr; gap: 1.15rem; }
  .news-date { grid-template-columns: auto auto; align-items: center; gap: .55rem; padding: 0 0 1rem; border-right: 0; border-bottom: 1px solid var(--line); }
  .news-date span { font-size: 1.7rem; }
  .event-card { grid-template-columns: 1fr; gap: .65rem; }
  .event-identity { grid-template-columns: auto 1fr; align-items: center; }
  .event-logo-wrap { min-height: auto; }
  .event-logo { width: 115px; height: 38px; }
  .event-link { justify-self: start; }
  .funding-mark { justify-self: start; }
  .footer-bottom { display: block; }
  .footer-bottom p + p { margin-top: .35rem; }
}

@media (max-width: 520px) {
  .capability-grid, .team-grid, .institution-grid { grid-template-columns: 1fr; }
  .team-card.lead-card { grid-column: auto; }
  .team-card { min-height: auto; }
  .hero h1 { font-size: clamp(2.75rem, 14vw, 4rem); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .institution-card { transition: none; }
}
