:root {
  --bg: #f3f2ef;
  --panel: #fdfdfc;
  --ink: #1f2530;
  --muted: #505c6f;
  --accent: #243f6b;
  --accent-2: #6b4e2e;
  --line: #cfd4dc;
  --shadow: 0 10px 22px rgba(31, 37, 48, 0.06);
  --shadow-soft: 0 4px 12px rgba(31, 37, 48, 0.05);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Source Sans 3", "Segoe UI", sans-serif;
  font-size: 16px;
  color: var(--ink);
  background: linear-gradient(180deg, #f8f8f6 0%, #f3f2ef 100%);
  line-height: 1.65;
}

p {
  margin: 0.8rem 0;
  max-width: 78ch;
}

a {
  color: var(--accent);
}

a:hover {
  color: #0a6a51;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
  background: var(--ink);
  color: #fff;
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  z-index: 200;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(6px);
  background: rgba(247, 247, 245, 0.92);
  border-bottom: 1px solid var(--line);
  padding: 0.9rem 1.25rem 0.8rem;
}

.header-inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.7rem;
}

.brand h1 {
  margin: 0;
  font-family: "Merriweather", Georgia, serif;
  font-size: clamp(1.15rem, 1.8vw, 1.5rem);
  line-height: 1.2;
}

.affiliation {
  margin: 0.28rem 0 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.kicker {
  margin: 0 0 0.25rem;
  color: var(--accent);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.72rem;
}

.menu-toggle {
  display: none;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  border-radius: 999px;
  padding: 0.35rem 0.8rem;
  font-weight: 600;
  cursor: pointer;
}

.site-nav {
  margin-top: 0.85rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.65rem;
}

.site-nav a {
  text-decoration: none;
  color: var(--muted);
  border: 1px solid transparent;
  padding: 0.28rem 0.56rem;
  border-radius: 5px;
  font-size: 0.9rem;
}

.site-nav a:hover,
.site-nav a.active {
  color: var(--accent);
  border-color: var(--line);
  background: #fdfdfd;
}

.site-nav a:focus-visible,
.cta:focus-visible,
.menu-toggle:focus-visible,
.to-top:focus-visible {
  outline: 3px solid rgba(15, 127, 98, 0.35);
  outline-offset: 2px;
}

main {
  counter-reset: section-counter;
  width: min(1040px, calc(100% - 2rem));
  margin: 1.3rem auto 4rem;
}

.section {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: clamp(1.2rem, 3vw, 2.2rem);
  margin-bottom: 1.05rem;
}

.section h2 {
  counter-increment: section-counter;
  margin: 0 0 0.7rem;
  font-family: "Merriweather", Georgia, serif;
  letter-spacing: 0.01em;
  font-size: clamp(1.2rem, 2vw, 1.45rem);
  color: #1f2f49;
}

.section h2::before {
  content: counter(section-counter, decimal-leading-zero) ". ";
  color: #5f6f86;
}

.section h3 {
  font-family: "Merriweather", Georgia, serif;
  color: #253852;
}

.hero {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(36, 63, 107, 0.22);
}

.hero::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  width: 170px;
  height: 170px;
  border-left: 1px solid rgba(36, 63, 107, 0.16);
  border-top: 1px solid rgba(36, 63, 107, 0.16);
  background: linear-gradient(130deg, rgba(36, 63, 107, 0.06), rgba(36, 63, 107, 0));
  pointer-events: none;
}

.eyebrow {
  margin: 0;
  color: #5c4a33;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  font-size: 0.75rem;
}

.hero h2 {
  font-family: "Merriweather", Georgia, serif;
  font-size: clamp(1.35rem, 3vw, 2rem);
  max-width: 22ch;
  margin-bottom: 0.7rem;
}

.hero-metrics {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0.6rem;
}

.hero-metrics article {
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0.65rem 0.75rem;
  box-shadow: var(--shadow-soft);
}

.metric-label {
  margin: 0;
  color: var(--muted);
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.metric-value {
  margin: 0.1rem 0 0;
  font-family: "Merriweather", Georgia, serif;
  font-size: 1rem;
  font-weight: 700;
}

.cta {
  display: inline-block;
  margin-top: 0.9rem;
  text-decoration: none;
  color: #fff;
  background: linear-gradient(120deg, #2a466f, #243f6b);
  border-radius: 5px;
  padding: 0.55rem 0.95rem;
  font-weight: 700;
}

.section-intro {
  margin-top: -0.25rem;
  color: var(--muted);
}

.inline-figure,
.inline-figure-grid {
  margin: 1.1rem 0 1.2rem;
}

.inline-figure {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 6px;
  overflow: hidden;
}

.inline-figure img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 360px;
  object-fit: contain;
  background: #f5f5f4;
}

.inline-figure figcaption {
  padding: 0.62rem 0.72rem 0.78rem;
  color: var(--muted);
  font-size: 0.88rem;
  border-top: 1px solid #e3e7ee;
}

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

.inline-figure-grid > figure {
  margin: 0;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.inline-figure-grid img {
  display: block;
  width: 100%;
  height: 190px;
  object-fit: cover;
}

.inline-figure-grid figcaption {
  padding: 0.62rem 0.7rem 0.76rem;
  font-size: 0.86rem;
  color: var(--muted);
}

.cards {
  display: grid;
  gap: 0.9rem;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}

.card {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 1rem;
  background: #fff;
  border-left: 4px solid #4a678f;
  transition: box-shadow 0.2s ease;
}

.card:hover {
  box-shadow: var(--shadow-soft);
}

.card h3 {
  margin: 0 0 0.35rem;
  font-size: 1rem;
}

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

figure {
  margin: 0;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
}

figure img {
  display: block;
  width: 100%;
  height: 180px;
  object-fit: cover;
}

figcaption {
  padding: 0.62rem 0.7rem 0.75rem;
  font-size: 0.86rem;
  color: var(--muted);
}

.people-list {
  margin: 0;
  padding-left: 1.1rem;
}

.people-list a {
  color: var(--accent);
}

.integrity {
  border-left: 4px solid var(--accent-2);
}

.site-footer {
  width: min(1040px, calc(100% - 2rem));
  margin: -2.2rem auto 3.8rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.site-footer p {
  max-width: 100%;
  margin: 0;
}

.to-top {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  border: 1px solid #324563;
  background: #2a4468;
  color: #fff;
  border-radius: 6px;
  width: 52px;
  height: 52px;
  font-weight: 700;
  cursor: pointer;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.to-top.show {
  opacity: 0.95;
  transform: translateY(0);
}

@media (max-width: 900px) {
  .menu-toggle {
    display: inline-flex;
    margin-top: 0.2rem;
  }

  .site-nav {
    margin-top: 0.65rem;
    display: grid;
    gap: 0.45rem;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.25s ease, opacity 0.2s ease;
  }

  .site-header.menu-open .site-nav {
    max-height: 60vh;
    opacity: 1;
    overflow: auto;
    padding-bottom: 0.25rem;
  }

  .site-nav a {
    background: #fefefe;
    border-color: var(--line);
    padding: 0.45rem 0.7rem;
    width: fit-content;
  }
}

@media (max-width: 760px) {
  .site-header {
    padding: 0.78rem 0.8rem 0.72rem;
  }

  .brand h1 {
    font-size: 1.08rem;
  }

  .affiliation {
    font-size: 0.8rem;
  }

  main {
    width: min(1040px, calc(100% - 1rem));
    margin-top: 1rem;
  }

  .section {
    padding: 1rem 0.92rem;
    border-radius: 12px;
  }

  .hero-metrics {
    grid-template-columns: 1fr;
  }

  .inline-figure-grid img,
  figure img {
    height: 160px;
  }

  .to-top {
    right: 0.7rem;
    bottom: 0.7rem;
    width: 46px;
    height: 46px;
  }

  .site-footer {
    width: min(1040px, calc(100% - 1rem));
    margin-top: -2.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
