:root {
  --ink: #102033;
  --muted: #5a687a;
  --line: #d7e1ec;
  --paper: #fffdfa;
  --soft: #f7f1e7;
  --brand: #236fae;
  --brand-dark: #cc0033;
  --accent: #4f8fcf;
  --accent-soft: #f3eadc;
  --sky: #fbf6ed;
  --shadow: 0 18px 45px rgba(16, 32, 51, 0.09);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

a {
  color: var(--brand-dark);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

img {
  max-width: 100%;
}

.container {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.container.narrow {
  max-width: 780px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 12px;
  z-index: 10;
  padding: 8px 12px;
  background: var(--ink);
  color: white;
}

.skip-link:focus {
  left: 12px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  background: rgba(251, 252, 251, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 116px;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  color: var(--ink);
  text-decoration: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  color: white;
  background: linear-gradient(145deg, var(--brand), #56a7de);
  font-weight: 800;
}

.brand-logo {
  display: block;
  width: 74px;
  height: 74px;
  object-fit: contain;
  flex: 0 0 auto;
}

.brand-text {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
}

.brand strong {
  display: block;
  font-size: clamp(2rem, 4vw, 3.45rem);
  font-weight: 200;
  line-height: 1;
  letter-spacing: 0;
  text-transform: uppercase;
}

.brand-wordmark {
  display: inline-flex;
  align-items: baseline;
  gap: 0.045em;
  transform: scaleX(0.86);
  transform-origin: center;
}

.wordmark-major {
  font-size: 1em;
}

.wordmark-mid {
  font-size: 0.76em;
  letter-spacing: 0.075em;
}

.wordmark-minor {
  font-size: 0.58em;
  letter-spacing: 0.04em;
}

.wordmark-gap {
  width: 0.55em;
}

.brand small {
  display: block;
  color: var(--muted);
  font-size: 1rem;
  margin-top: 4px;
  text-align: center;
  width: 100%;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  min-height: 46px;
  border-top: 1px solid var(--line);
}

.site-nav a {
  position: relative;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -10px;
  height: 4px;
  background: #cc0033;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 160ms ease;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--brand-dark);
}

.site-nav a:hover::after,
.site-nav a[aria-current="page"]::after {
  transform: scaleX(1);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.nav-toggle span:not(.sr-only) {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: var(--ink);
}

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

.hero {
  padding: 88px 0 72px;
  background: var(--paper);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(360px, 0.95fr) minmax(440px, 1.05fr);
  align-items: center;
  gap: 56px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 880px;
  margin-bottom: 18px;
  font-size: clamp(2.5rem, 6vw, 4.9rem);
  line-height: 0.98;
}

.hero-title {
  max-width: 680px;
  font-size: clamp(1.85rem, 3vw, 2.75rem);
  font-weight: 300;
  line-height: 1.12;
}

h2 {
  margin-bottom: 14px;
  font-size: clamp(1.7rem, 3vw, 2.6rem);
  line-height: 1.12;
}

h3 {
  font-size: 1.15rem;
  line-height: 1.25;
}

.lede {
  max-width: 720px;
  color: var(--muted);
  font-size: 1.2rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid #cc0033;
  border-radius: 8px;
  font-weight: 700;
  text-decoration: none;
}

.button.primary {
  color: white;
  background: #cc0033;
}

.button.secondary {
  color: #cc0033;
  background: white;
}

.hero-slideshow {
  position: relative;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  overflow: hidden;
  box-shadow: var(--shadow);
  cursor: grab;
  touch-action: pan-y;
  user-select: none;
}

.hero-slideshow.is-dragging {
  cursor: grabbing;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 600ms ease;
}

.hero-slide.is-active {
  position: relative;
  opacity: 1;
}

.hero-slide img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.hero-slide-controls {
  position: absolute;
  left: 50%;
  bottom: 16px;
  display: flex;
  gap: 8px;
  margin: 0;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.64);
  border-radius: 999px;
  background: rgba(16, 32, 51, 0.2);
  backdrop-filter: blur(10px);
  transform: translateX(-50%);
}

.hero-slide-controls button {
  width: 11px;
  height: 11px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.84);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.58);
  cursor: pointer;
}

.hero-slide-controls button.is-active {
  width: 28px;
  border-radius: 999px;
  background: white;
}

.section,
.page-content {
  padding: 72px 0;
}

.accent {
  background: var(--sky);
}

.split {
  display: grid;
  grid-template-columns: minmax(260px, 0.72fr) minmax(0, 1.28fr);
  gap: 42px;
}

.stack {
  display: grid;
  gap: 16px;
}

.card,
.person-card,
.news-card,
.news-row,
.publication {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  box-shadow: 0 12px 28px rgba(23, 33, 31, 0.05);
}

.card {
  padding: 24px;
}

.card-figure {
  display: block;
  width: 100%;
  margin-bottom: 18px;
  border-radius: 8px;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: var(--soft);
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.tags span {
  padding: 5px 9px;
  border-radius: 999px;
  color: var(--brand-dark);
  background: var(--accent-soft);
  font-size: 0.78rem;
  font-weight: 700;
}

.section-heading {
  max-width: 680px;
  margin-bottom: 28px;
}

.news-grid,
.project-grid,
.people-grid,
.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.project-grid,
.contact-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.news-card {
  padding: 22px;
}

.news-card time,
.news-row time,
.pub-year {
  color: var(--accent);
  font-size: 0.86rem;
  font-weight: 800;
}

.news-card a,
.news-row a {
  color: var(--ink);
}

.person-card {
  display: flex;
  gap: 16px;
  padding: 22px;
}

.avatar {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 8px;
  color: white;
  background: var(--brand);
  font-weight: 800;
}

.person-photo {
  flex: 0 0 auto;
  display: block;
  width: 72px;
  height: 72px;
  border: 1px solid var(--line);
  border-radius: 8px;
  object-fit: cover;
  background: var(--soft);
}

.role,
.venue {
  color: var(--muted);
  font-weight: 700;
}

.person-links,
.pub-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 0;
}

.publication-list,
.news-list {
  display: grid;
  gap: 16px;
}

.publication {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 18px;
  padding: 24px;
}

.publication h2,
.news-row h2,
.person-card h2 {
  font-size: 1.25rem;
}

.news-row {
  padding: 24px;
}

.post {
  padding: 72px 0;
}

.post-body {
  margin-top: 28px;
  font-size: 1.08rem;
}

.site-footer {
  padding: 42px 0;
  color: rgba(255, 255, 255, 0.78);
  background: var(--ink);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}

.site-footer strong,
.site-footer a {
  color: white;
}

.site-footer p {
  margin-bottom: 0;
}

@media (max-width: 820px) {
  .header-inner {
    min-height: 88px;
  }

  .brand-logo {
    width: 58px;
    height: 58px;
  }

  .nav-toggle {
    display: block;
  }

  .site-nav {
    display: none;
    flex-direction: column;
    align-items: flex-start;
    padding: 14px 0;
  }

  .site-nav.is-open {
    display: flex;
  }

  .hero {
    padding: 62px 0 52px;
  }

  .hero-grid,
  .split,
  .footer-grid,
  .news-grid,
  .project-grid,
  .people-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .hero-slide img {
    aspect-ratio: 4 / 3;
  }

  .section,
  .page-content {
    padding: 52px 0;
  }

  .publication {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .container {
    width: min(100% - 28px, 1120px);
  }

  h1 {
    font-size: 2.45rem;
  }

  .brand small {
    display: none;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .metric {
    grid-template-columns: 1fr;
  }

  .person-card {
    flex-direction: column;
  }
}
