:root {
  --page-bg: #f3f7fa;
  --surface: #ffffff;
  --ink: #13294b;
  --ink-soft: #465b73;
  --warm-muted: #6f6670;
  --accent: #d93654;
  --carolina: #4b9cd3;
  --link: #2063b7;
  --link-hover: #c63f2f;
  --line: #ccd9e4;
  --panel: #e4edf4;
  --content: 1040px;
  --header: 1260px;
  --gutter: clamp(20px, 4vw, 48px);
  --font-display: "Palatino Linotype", "Book Antiqua", Palatino, Georgia, serif;
  --font-body: Aptos, "Segoe UI", Arial, sans-serif;
  --font-utility: "Arial Narrow", "Roboto Condensed", Arial, sans-serif;
  --shadow-soft: 0 14px 36px rgb(19 41 75 / 9%);
}

* {
  box-sizing: border-box;
}

html {
  background: var(--page-bg);
  color-scheme: light;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--page-bg);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  overflow-wrap: break-word;
}

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

a {
  color: var(--link);
  text-decoration: none;
}

a:hover,
a:focus-visible {
  text-decoration: none;
}

.site-main :where(p, li, dd, figcaption) a:not([class]),
.site-main .publication-entry a,
.site-main .resource-list h2 a:not([class]) {
  color: var(--link);
  font-weight: 600;
  text-decoration: none;
  transition: color 160ms ease;
}

.site-main :where(p, li, dd, figcaption) a:not([class]):hover,
.site-main :where(p, li, dd, figcaption) a:not([class]):focus-visible,
.site-main .publication-entry a:hover,
.site-main .publication-entry a:focus-visible,
.site-main .resource-list h2 a:not([class]):hover,
.site-main .resource-list h2 a:not([class]):focus-visible {
  color: var(--link-hover);
}

button,
input {
  font: inherit;
}

:where(a, button, input):focus-visible {
  outline: 3px solid var(--carolina);
  outline-offset: 3px;
}

[hidden] {
  display: none !important;
}

.skip-link {
  position: fixed;
  left: 12px;
  top: -60px;
  z-index: 1000;
  padding: 10px 14px;
  color: #fff;
  background: var(--ink);
}

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

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

.site-header {
  border-bottom: 1px solid var(--line);
  background: rgb(255 255 255 / 96%);
}

.header-inner {
  display: flex;
  width: min(var(--header), calc(100% - var(--gutter) - var(--gutter)));
  min-height: 108px;
  margin: 0 auto;
  align-items: center;
  gap: clamp(18px, 2.4vw, 32px);
}

.brand {
  width: 176px;
  flex: 0 0 176px;
}

.brand img {
  width: 160px;
  height: auto;
}

.main-nav {
  display: flex;
  align-items: center;
  flex: 1 1 auto;
  white-space: nowrap;
}

.nav-item {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 44px;
  border-left: 1px solid var(--line);
}

.nav-item:first-child {
  border-left: 0;
}

.nav-item>a,
.nav-item>button {
  border: 0;
  padding: 12px;
  color: var(--warm-muted);
  background: transparent;
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 15px;
  line-height: 1;
}

.nav-item>.nav-submenu-toggle {
  margin-left: -10px;
  padding-left: 4px;
}

.nav-item.is-active>a,
.nav-item.is-active>button,
.nav-item>a:hover,
.nav-item>button:hover {
  color: var(--accent);
  text-decoration: none;
}

.nav-item.is-active>a,
.nav-item.is-active>button {
  box-shadow: inset 0 -3px 0 var(--accent);
}

.dropdown-menu {
  position: absolute;
  top: 42px;
  left: 0;
  z-index: 80;
  display: none;
  min-width: 280px;
  padding: 7px 0;
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.dropdown-menu a {
  display: block;
  padding: 9px 16px;
  color: var(--ink-soft);
  font-family: var(--font-display);
  font-size: 14px;
}

.dropdown-menu a:hover,
.dropdown-menu a:focus-visible {
  color: var(--accent);
  background: #edf5fa;
  text-decoration: none;
}

.nav-item.is-open .dropdown-menu {
  display: block;
}

.site-search {
  position: relative;
  width: clamp(210px, 18vw, 260px);
  flex: 0 0 clamp(210px, 18vw, 260px);
}

.site-search label {
  display: flex;
  align-items: center;
  height: 43px;
  border: 1px solid #8799aa;
  background: var(--surface);
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.site-search label:focus-within {
  border-color: var(--carolina);
  box-shadow: 0 0 0 3px rgb(75 156 211 / 18%);
}

.site-search img {
  width: 17px;
  height: 17px;
  margin: 0 12px;
}

.site-search input {
  width: 100%;
  height: 100%;
  border: 0;
  outline: 0;
  color: var(--ink);
  background: transparent;
  font-size: 13px;
  font-weight: 600;
}

.search-results {
  position: absolute;
  z-index: 90;
  right: 0;
  top: 45px;
  width: 390px;
  max-height: 420px;
  overflow: auto;
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.search-results a,
.search-empty {
  display: block;
  padding: 12px 15px;
  border-bottom: 1px solid #ededed;
  color: var(--ink);
  font-size: 14px;
}

.search-results a:hover {
  background: #edf5fa;
  text-decoration: none;
}

.site-main {
  min-height: calc(100vh - 205px);
}

.content {
  width: min(var(--content), calc(100% - var(--gutter) - var(--gutter)));
  margin: 0 auto;
}

.page-section {
  padding: 58px 0 70px;
}

.page-title {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 52px);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.serif-title {
  font-family: var(--font-display);
  font-weight: 400;
}

.accent-title {
  color: var(--accent);
}

.rule-title {
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}

.site-footer {
  width: min(var(--content), calc(100% - var(--gutter) - var(--gutter)));
  margin: 70px auto 0;
  padding: 24px 0 30px;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  font-family: var(--font-utility);
  font-size: 12px;
  letter-spacing: 0.04em;
}

/* Home */
.home-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(48px, 7vw, 82px) 0 clamp(52px, 7vw, 88px);
  text-align: center;
  background: var(--surface);
}

.home-hero::before {
  content: "";
  position: absolute;
  inset: -45% -10%;
  background:
    radial-gradient(circle at 18% 62%, rgb(75 156 211 / 34%) 0 5px, transparent 6px),
    radial-gradient(circle at 31% 40%, rgb(217 54 84 / 25%) 0 4px, transparent 5px),
    radial-gradient(circle at 72% 34%, rgb(75 156 211 / 26%) 0 6px, transparent 7px),
    radial-gradient(circle at 84% 61%, rgb(217 54 84 / 20%) 0 4px, transparent 5px);
  border: 1px solid rgb(75 156 211 / 18%);
  border-radius: 50%;
  pointer-events: none;
  transform: rotate(-7deg);
}

.home-hero .content {
  position: relative;
  z-index: 1;
}

.home-hero h1 {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: clamp(64px, 8vw, 104px);
  font-weight: 400;
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.home-hero h1 span {
  color: var(--accent);
}

.home-hero h2 {
  margin: 34px 0 6px;
  color: var(--ink-soft);
  font-family: var(--font-display);
  font-size: clamp(30px, 4vw, 44px);
  font-weight: 400;
  letter-spacing: 0.01em;
}

.home-hero p {
  margin: 0;
  color: var(--ink-soft);
  font-family: var(--font-utility);
  font-size: clamp(16px, 2vw, 21px);
  letter-spacing: 0.04em;
}

.home-body {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.85fr);
  gap: clamp(36px, 5vw, 64px);
  padding: 56px 0 20px;
}

.home-copy p {
  margin: 26px 0 0;
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.72;
}

.feature-carousel {
  position: relative;
  width: 100%;
  height: 360px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #e6edf2;
  box-shadow: var(--shadow-soft);
}

.carousel-slide {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  pointer-events: none;
  transition: opacity 520ms ease;
}

.carousel-slide.is-active,
.things-carousel img.is-active {
  z-index: 1;
  opacity: 1;
  pointer-events: auto;
}

.carousel-control {
  position: absolute;
  z-index: 4;
  top: 50%;
  width: 42px;
  height: 68px;
  border: 0;
  padding: 0;
  color: #fff;
  background: rgb(19 41 75 / 28%);
  opacity: 0;
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 52px;
  font-weight: 300;
  line-height: 60px;
  transform: translateY(-50%);
  transition: opacity 180ms ease, background-color 180ms ease;
}

.carousel-previous {
  left: 0;
}

.carousel-next {
  right: 0;
}

[data-carousel]:hover .carousel-control,
[data-carousel]:focus-within .carousel-control {
  opacity: 1;
}

.carousel-control:hover,
.carousel-control:focus-visible {
  background: rgb(19 41 75 / 78%);
}

.carousel-status {
  position: absolute;
  z-index: 4;
  bottom: 12px;
  left: 14px;
  padding: 4px 8px;
  color: #fff;
  background: rgb(19 41 75 / 76%);
  font-family: var(--font-utility);
  font-size: 12px;
  letter-spacing: 0.08em;
}

.carousel-toggle {
  position: absolute;
  z-index: 4;
  top: 12px;
  right: 12px;
  min-width: 64px;
  min-height: 38px;
  border: 1px solid rgb(255 255 255 / 78%);
  padding: 6px 10px;
  color: #fff;
  background: rgb(19 41 75 / 76%);
  cursor: pointer;
  font-family: var(--font-utility);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.carousel-toggle:hover,
.carousel-toggle:focus-visible {
  background: var(--ink);
}

.news-summary h2 {
  margin: 0 0 26px;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 400;
  line-height: 1.1;
}

.event-card {
  position: relative;
  display: block;
  width: 100%;
  min-height: 138px;
  margin-bottom: 12px;
  padding: 16px 105px 16px 16px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--carolina);
  color: var(--ink);
  background: var(--surface);
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.event-card:hover,
.event-card:focus-visible {
  border-left-color: var(--accent);
  box-shadow: var(--shadow-soft);
  text-decoration: none;
  transform: translateY(-2px);
}

.event-card h3 {
  margin: 0 0 22px;
  font-size: 14px;
  line-height: 1.28;
}

.event-card time {
  color: var(--ink-soft);
  font-family: var(--font-utility);
  font-size: 12px;
  letter-spacing: 0.03em;
}

.event-card img {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 77px;
  height: 77px;
  object-fit: cover;
}

.klogw-logo {
  width: 330px;
  margin: 30px auto 0;
}

.home-note {
  margin-top: 62px !important;
  padding-left: 14px;
  border-left: 3px solid var(--carolina);
  color: var(--ink-soft);
  font-size: 14px !important;
}

/* Research */
.research-heading {
  margin-bottom: 60px;
  text-align: center;
  color: var(--ink-soft);
  font-family: var(--font-display);
  font-size: clamp(40px, 6vw, 62px);
  font-weight: 400;
  line-height: 1.06;
  letter-spacing: -0.025em;
}

.research-heading span {
  color: var(--accent);
}

.research-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: start;
}

.research-intro p,
.topic-copy p {
  margin: 0 0 22px;
  color: var(--ink-soft);
  line-height: 1.72;
}

.research-video {
  width: 465px;
  height: auto;
  aspect-ratio: 465 / 408;
  object-fit: cover;
  border: 1px solid var(--line);
  background: #0c1730;
  box-shadow: var(--shadow-soft);
}

.research-topics {
  margin-top: 78px;
}

.research-topics h2 {
  width: min(300px, 100%);
  margin: 0 auto 38px;
  padding-top: 15px;
  border-top: 3px solid var(--carolina);
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 400;
}

.topic-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 38px 44px;
}

.topic-button {
  display: flex;
  min-height: 88px;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--carolina);
  color: var(--ink);
  background: var(--surface);
  text-align: left;
  font-size: 18px;
  font-weight: 700;
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.topic-button::after {
  content: "→";
  margin-left: 18px;
  color: var(--accent);
  font-size: 22px;
}

.topic-button:hover,
.topic-button:focus-visible {
  border-left-color: var(--accent);
  box-shadow: var(--shadow-soft);
  color: var(--accent);
  text-decoration: none;
  transform: translateY(-2px);
}

.topic-layout {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  gap: 16px;
  margin-top: 42px;
}

.topic-copy,
.contact-copy {
  font-size: 16px;
}

.topic-copy .reference {
  margin: 8px 0;
  font-size: 13px;
  text-align: left;
}

.topic-copy .reference-label {
  margin-top: 34px;
  font-weight: 700;
}

.topic-images {
  display: grid;
  gap: 38px;
  align-content: start;
  padding-left: 16px;
}

.topic-images img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border: 5px solid var(--surface);
  box-shadow: var(--shadow-soft);
}

.topic-nav {
  margin-top: 74px;
}

/* Us */
.profile-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
  gap: clamp(42px, 7vw, 78px);
  align-items: start;
  padding-bottom: 38px;
  border-bottom: 1px solid var(--line);
}

.profile-hero h1 {
  margin-bottom: 25px;
}

.profile-photo {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 4.65;
  object-fit: cover;
  object-position: center;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
}

.profile-copy p {
  margin: 0 0 20px;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.68;
}

.members-section {
  padding: 75px 0 55px;
}

.members-section>h2 {
  margin-bottom: 38px;
  text-align: center;
  font-family: var(--font-display);
  font-size: 38px;
  font-weight: 400;
}

.members-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 1fr;
  gap: 16px;
}

.member-card {
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: 0 10px 28px rgb(19 41 75 / 7%);
}

.member-card img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  object-position: center;
}

.member-card>div {
  display: flex;
  flex-direction: column;
  height: 400px;
  min-height: 0;
  padding: 18px;
}

.member-details {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.member-card h3 {
  margin: 0 0 10px;
  color: #1f5f99;
  font-family: var(--font-display);
  font-size: 20px;
  line-height: 1.15;
}

.member-card p {
  margin: 0 0 10px;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.48;
}

.member-social {
  display: inline-flex;
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  margin-top: 10px;
  align-self: flex-start;
  align-items: center;
  justify-content: center;
  border-radius: 3px;
  background: #0a66c2;
  transition: background 160ms ease, transform 160ms ease;
}

.member-social:hover,
.member-social:focus-visible {
  background: #004182;
  transform: translateY(-1px);
}

.member-social img {
  width: 16px;
  height: 16px;
  object-fit: contain;
  filter: invert(1);
}

.socrates {
  margin: 70px 0;
}

.socrates h2 {
  margin-bottom: 16px;
  text-align: center;
  font-family: var(--font-display);
  font-size: 34px;
  font-weight: 400;
}

.socrates-gallery {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  height: 300px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
}

.socrates-gallery img {
  width: 100%;
  height: 300px;
  object-fit: cover;
}

.socrates-next {
  position: absolute;
  z-index: 3;
  right: 0;
  top: 50%;
  width: 52px;
  height: 84px;
  border: 0;
  padding: 0;
  color: #fff;
  background: rgb(19 41 75 / 34%);
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 58px;
  line-height: 1;
  transform: translateY(-50%);
  transition: background-color 180ms ease;
}

.socrates-next:hover,
.socrates-next:focus-visible {
  background: rgb(19 41 75 / 78%);
}

.alumni-title {
  margin-bottom: 25px;
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 400;
}

.alumni-panel {
  padding: 45px clamp(18px, 3vw, 30px);
  background: var(--panel);
}

.alumni-panel h3 {
  margin: 0 0 16px;
  font-size: 22px;
}

.alumni-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
  margin-bottom: 36px;
}

.alumni-card {
  position: relative;
  min-height: 305px;
  overflow: hidden;
  border: 1px solid rgb(19 41 75 / 18%);
  background: #52657a;
  box-shadow: 0 10px 24px rgb(19 41 75 / 10%);
  cursor: pointer;
}

.alumni-card:focus-within {
  outline: 3px solid var(--carolina);
  outline-offset: 3px;
}

.alumni-card img,
.media-gallery img,
.video-card img {
  width: 100%;
  height: 230px;
  object-fit: cover;
}

.alumni-card>img {
  object-position: center;
}

.alumni-card>div {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  min-height: 75px;
  padding: 10px;
  color: #fff;
  background: rgb(19 41 75 / 92%);
}

.alumni-summary {
  z-index: 2;
  opacity: 1;
  transition: opacity 180ms ease;
}

.alumni-details {
  z-index: 3;
  max-height: 42%;
  overflow: auto;
  opacity: 0;
  visibility: hidden;
  font-size: 11px;
  line-height: 1.25;
  transform: translateY(18px);
  transition: opacity 180ms ease, transform 180ms ease, visibility 180ms ease;
}

.alumni-details p {
  margin: 9px 0 0;
}

.site-main .alumni-details a {
  color: #66d9ff;
  font-weight: 700;
}

.site-main .alumni-details a:hover,
.site-main .alumni-details a:focus-visible {
  color: #ff6b57;
}

.alumni-card:hover .alumni-summary,
.alumni-card.is-expanded .alumni-summary {
  opacity: 0;
}

.alumni-card:hover .alumni-details,
.alumni-card.is-expanded .alumni-details {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.alumni-toggle {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  padding: 0;
  border: 0;
  white-space: nowrap;
}

.alumni-card strong {
  display: block;
  font-size: 13px;
  line-height: 1.2;
}

.alumni-card small {
  display: block;
  margin-top: 8px;
  font-size: 10px;
}

/* Publications and text-heavy pages */
.publication-list {
  margin-top: 28px;
}

.publication-entry {
  margin: 0 0 18px;
  font-family: var(--font-display);
  font-size: 16px;
  line-height: 1.6;
}

/* Media */
.media-section {
  margin-bottom: 48px;
}

.media-section h1,
.media-section h2 {
  margin: 0 0 20px;
  color: var(--accent);
  font-family: var(--font-display);
  font-size: 29px;
  font-weight: 400;
}

.media-news-row {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 24px;
  align-items: center;
  margin: 0 55px 26px;
}

.media-news-row img {
  width: 105px;
  height: 92px;
  object-fit: cover;
  border: 1px solid var(--line);
}

.media-gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  width: 660px;
  margin: 18px auto;
}

.media-gallery img {
  border: 1px solid var(--line);
  box-shadow: 0 8px 22px rgb(19 41 75 / 8%);
}

.media-gallery.outreach img:last-child:nth-child(odd) {
  grid-column: 1 / -1;
  width: 330px;
  margin: auto;
}

/* Videos */
.video-page-title {
  margin-bottom: 48px;
  color: var(--ink);
  text-align: center;
  font-family: var(--font-display);
  font-size: clamp(48px, 7vw, 68px);
  font-weight: 400;
}

.video-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 68px 66px;
}

.video-card {
  position: relative;
  border: 0;
  padding: 0 0 22px;
  border: 1px solid var(--line);
  color: var(--ink);
  background: var(--surface);
  text-align: left;
  cursor: pointer;
  box-shadow: 0 10px 26px rgb(19 41 75 / 7%);
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.video-card:hover,
.video-card:focus-visible {
  border-color: var(--carolina);
  box-shadow: var(--shadow-soft);
  transform: translateY(-3px);
}

.video-card::before {
  content: "▶";
  position: absolute;
  z-index: 2;
  top: 115px;
  left: 50%;
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border: 2px solid #fff;
  border-radius: 50%;
  color: #fff;
  background: rgb(22 15 38 / 58%);
  opacity: 0;
  font-size: 24px;
  line-height: 1;
  transform: translate(-50%, -50%) scale(.88);
  transition: opacity 180ms ease, transform 180ms ease;
}

.video-card:hover::before,
.video-card:focus-visible::before {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.video-card h2 {
  margin: 22px 20px 9px;
  font-family: var(--font-display);
  font-size: 27px;
  font-weight: 400;
  line-height: 1.12;
}

.video-card p {
  margin: 0 20px;
  display: -webkit-box;
  overflow: hidden;
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.4;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
}

.video-card:hover h2 {
  color: var(--accent);
}

.video-modal {
  position: fixed;
  z-index: 300;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 50px;
  background: rgb(7 20 38 / 92%);
}

.video-modal-inner {
  position: relative;
  width: min(980px, 90vw);
  background: #000;
}

.video-modal iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
}

.video-modal-close {
  position: absolute;
  right: 0;
  top: -46px;
  width: auto;
  min-width: 64px;
  height: 38px;
  border: 1px solid #fff;
  padding: 0 14px;
  color: #fff;
  background: transparent;
  cursor: pointer;
  font-size: 24px;
}

/* News */
.blog-tabs {
  display: flex;
  gap: 28px;
  margin: 0 0 35px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-utility);
  letter-spacing: 0.02em;
}

.blog-tabs button {
  border: 0;
  padding: 0;
  color: #333;
  background: transparent;
  cursor: pointer;
  font-weight: 700;
  transition: color 180ms ease;
}

.blog-tabs button.is-active {
  color: var(--accent);
}

.news-feed {
  width: min(860px, 100%);
  margin: 0 auto;
}

.news-card {
  display: grid;
  grid-template-columns: 255px 1fr;
  min-height: 220px;
  margin-bottom: 28px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--carolina);
  background: var(--surface);
  cursor: pointer;
  transition: box-shadow 180ms ease, transform 180ms ease;
}

.news-card>* {
  min-width: 0;
}

.news-card:hover,
.news-card:focus-within {
  border-left-color: var(--accent);
  box-shadow: var(--shadow-soft);
  transform: translateY(-2px);
}

.news-card:has(> .news-placeholder) {
  grid-template-columns: 1fr;
  min-height: 0;
}

.news-card:has(> .news-placeholder) .news-placeholder {
  display: none;
}

.news-card:has(> .news-placeholder) .news-card-copy {
  padding: 26px 30px;
}

.news-load-controls {
  display: grid;
  justify-items: center;
  width: min(820px, 100%);
  margin: 4px auto 48px;
}

.news-load-status {
  margin: 0 0 14px;
  color: var(--ink-soft);
  font-family: var(--font-utility);
  font-size: 13px;
}

.news-load-more {
  min-width: 156px;
  border: 1px solid var(--accent);
  padding: 11px 24px;
  color: #fff;
  background: var(--accent);
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  transition: background 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.news-load-more:hover,
.news-load-more:focus-visible {
  background: var(--ink);
  box-shadow: 0 8px 20px rgb(19 41 75 / 18%);
  transform: translateY(-1px);
}

.news-card>img,
.news-placeholder {
  width: 255px;
  height: 100%;
  min-height: 218px;
  object-fit: cover;
  background: #ececec;
}

.news-card-copy {
  padding: 22px 25px;
}

.news-card-copy h2 {
  margin: 0 0 12px;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 25px;
  font-weight: 400;
  line-height: 1.16;
  overflow-wrap: anywhere;
}

.news-card-copy p {
  margin: 10px 0;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.5;
}

.post-meta {
  color: var(--ink-soft) !important;
  font-family: var(--font-utility);
  font-size: 12px !important;
}

.blog-post {
  width: min(860px, calc(100% - var(--gutter) - var(--gutter)));
  margin: 0 auto 28px;
  padding: clamp(42px, 7vw, 68px) clamp(24px, 8vw, 92px) clamp(38px, 6vw, 58px);
  border: 1px solid var(--line);
  border-top: 4px solid var(--carolina);
  background: var(--surface);
  box-shadow: 0 12px 34px rgb(19 41 75 / 7%);
}

.back-to-news {
  display: none;
}

.blog-post-tabs {
  width: min(860px, calc(100% - var(--gutter) - var(--gutter)));
  margin: 22px auto 38px;
  border-bottom: 0;
}

.blog-post-tabs a {
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
}

.blog-post-tabs a:hover,
.blog-post-tabs a:focus-visible {
  color: var(--accent);
  text-decoration: none;
}

.blog-post h1 {
  margin: 22px 0 50px;
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 52px);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.025em;
}

.post-byline {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0;
  color: var(--ink) !important;
  font-weight: 700;
}

.post-byline::before {
  content: "";
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 37%, #bbb 0 24%, transparent 25%), radial-gradient(circle at 50% 100%, #bbb 0 48%, #ddd 49%);
}

.blog-post-body {
  margin-top: 0;
  font-size: 16px;
  color: var(--ink-soft);
  line-height: 1.74;
}

.blog-post-body img {
  width: auto;
  max-width: 100%;
  max-height: 760px;
  margin: 28px auto 34px;
  object-fit: contain;
}

.post-video {
  position: relative;
  width: 100%;
  margin: 28px 0 34px;
  padding-top: 56.25%;
  overflow: hidden;
  background: #000;
}

.post-video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.recent-posts {
  width: min(860px, calc(100% - var(--gutter) - var(--gutter)));
  margin: 0 auto 70px;
}

.recent-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.recent-heading h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 400;
}

.recent-heading a {
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
}

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

.recent-card {
  display: grid;
  min-height: 245px;
  grid-template-rows: 128px 1fr;
  border: 1px solid var(--line);
  color: var(--ink);
  background: var(--surface);
}

.recent-card:hover,
.recent-card:focus-visible {
  box-shadow: 0 8px 22px rgb(28 18 48 / 12%);
  text-decoration: none;
}

.recent-card img {
  width: 100%;
  height: 128px;
  object-fit: cover;
}

.recent-card strong {
  padding: 16px 18px;
  font-size: 14px;
  line-height: 1.25;
}

.blog-post-body p {
  margin: 0 0 22px;
}

/* More */
.resource-list {
  margin-top: 32px;
  max-width: 780px;
}

.resource-list h2 {
  margin: 38px 0 18px;
  color: var(--ink);
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 400;
}

.resource-list p {
  margin: 0 0 18px;
  color: var(--ink-soft);
  line-height: 1.6;
}

.group-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
  margin-top: 38px;
}

.group-gallery img {
  width: 100%;
  height: 240px;
  object-fit: cover;
}

.contact-map {
  width: min(735px, 100%);
  height: auto;
  aspect-ratio: 735 / 438;
  margin: 22px auto 40px;
  object-fit: cover;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
}

.contact-copy p {
  margin-bottom: 24px;
}

.things-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 90px 10px;
  margin-top: 45px;
}

.things-column {
  padding: 0 10px;
}

.things-column h2 {
  min-height: 82px;
  margin: 0 0 18px;
  text-align: center;
  font-family: var(--font-display);
  font-size: 38px;
  font-weight: 400;
  line-height: 1.05;
}

.things-carousel {
  position: relative;
  height: 215px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #dce6ed;
  box-shadow: var(--shadow-soft);
}

.things-carousel img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 215px;
  object-fit: cover;
  opacity: 0;
  pointer-events: none;
  transition: opacity 420ms ease;
}

.things-caption h3 {
  margin: 17px 0 4px;
  font-family: var(--font-display);
  font-size: 23px;
  font-weight: 400;
}

.things-caption p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 14px;
}

.lightbox-trigger {
  cursor: zoom-in;
}

.image-lightbox {
  position: fixed;
  z-index: 500;
  inset: 0;
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr) 90px;
  align-items: center;
  padding: 58px 34px 34px;
  background: rgb(7 20 38 / 95%);
}

.image-lightbox figure {
  display: grid;
  max-width: 1200px;
  max-height: calc(100vh - 92px);
  margin: auto;
  place-items: center;
}

.image-lightbox figure img {
  width: auto;
  max-width: 100%;
  max-height: calc(100vh - 135px);
  object-fit: contain;
}

.image-lightbox figcaption {
  min-height: 24px;
  margin-top: 10px;
  color: #fff;
  text-align: center;
}

.lightbox-close,
.lightbox-control {
  border: 0;
  color: #fff;
  background: transparent;
  cursor: pointer;
}

.lightbox-close {
  position: absolute;
  top: 12px;
  right: 22px;
  width: 50px;
  height: 50px;
  font-size: 42px;
  line-height: 1;
}

.lightbox-control {
  width: 70px;
  height: 90px;
  font-family: var(--font-display);
  font-size: 72px;
  font-weight: 300;
}

.lightbox-control:hover,
.lightbox-control:focus-visible,
.lightbox-close:hover,
.lightbox-close:focus-visible {
  color: var(--accent);
}

@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

@media (max-width: 1200px) {
  .header-inner {
    display: grid;
    grid-template-columns: auto minmax(260px, 1fr);
    gap: 14px 28px;
    width: min(100% - 40px, var(--content));
    min-height: 0;
    padding: 18px 0 16px;
  }

  .brand {
    grid-column: 1;
    grid-row: 1;
  }

  .site-search {
    grid-column: 2;
    grid-row: 1;
    width: min(420px, 100%);
    justify-self: end;
  }

  .main-nav {
    grid-column: 1 / -1;
    grid-row: 2;
    flex-wrap: wrap;
    width: 100%;
    white-space: normal;
  }
}

@media (max-width: 900px) {
  .nav-item {
    min-height: 40px;
  }

  .nav-item>a,
  .nav-item>button {
    padding: 9px 10px;
    font-size: 14px;
  }

  .nav-item:last-child .dropdown-menu {
    right: 0;
    left: auto;
  }

  .search-results {
    right: 0;
    width: min(390px, calc(100vw - 40px));
  }

  .page-section {
    padding-top: 38px;
    padding-bottom: 50px;
  }

  .home-hero {
    padding-right: 20px;
    padding-left: 20px;
  }

  .home-body,
  .research-intro,
  .topic-layout,
  .profile-hero,
  .topic-buttons {
    grid-template-columns: 1fr;
  }

  .members-grid,
  .alumni-grid,
  .media-gallery,
  .video-grid,
  .group-gallery,
  .things-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-body {
    gap: 34px;
  }

  .feature-carousel {
    height: min(360px, 78vw);
  }

  .research-video,
  .profile-photo,
  .media-gallery,
  .media-gallery.outreach img:last-child:nth-child(odd),
  .contact-map,
  .news-feed {
    width: 100%;
  }

  .profile-photo {
    max-width: 480px;
  }

  .profile-hero {
    gap: 28px;
  }

  .alumni-grid,
  .members-grid,
  .media-gallery,
  .video-grid,
  .recent-grid,
  .group-gallery {
    gap: 20px;
  }

  .media-gallery img,
  .group-gallery img {
    height: auto;
    max-height: 420px;
  }

  .blog-tabs {
    flex-wrap: wrap;
    gap: 12px 20px;
    overflow-x: visible;
    white-space: normal;
  }

  .things-column h2 {
    min-height: 0;
    font-size: 32px;
  }

  .contact-map {
    height: auto;
  }

  .video-modal {
    padding: 20px;
  }

  .video-card {
    min-width: 0;
    overflow-wrap: anywhere;
  }

  .image-lightbox {
    grid-template-columns: 44px minmax(0, 1fr) 44px;
    padding: 58px 8px 24px;
  }

  .lightbox-control {
    width: 44px;
    font-size: 52px;
  }
}

@media (hover: none),
(pointer: coarse) {
  .carousel-control {
    opacity: 1;
  }
}

@media (max-width: 640px) {
  :root {
    --gutter: 16px;
  }

  .header-inner {
    grid-template-columns: 1fr;
    width: calc(100% - 32px);
    gap: 14px;
  }

  .brand,
  .main-nav,
  .site-search {
    grid-column: 1;
  }

  .brand {
    grid-row: 1;
  }

  .brand img {
    width: 150px;
  }

  .site-search {
    grid-row: 2;
  }

  .main-nav {
    position: relative;
    grid-row: 3;
    justify-content: center;
  }

  .nav-item.has-submenu-toggle {
    position: static;
  }

  .nav-item.has-submenu-toggle .dropdown-menu {
    top: 100%;
    left: 0;
    width: 100%;
  }

  .nav-item>a,
  .nav-item>button {
    padding: 9px;
  }

  .dropdown-menu {
    width: min(300px, calc(100vw - 32px));
  }

  .home-hero {
    padding-top: 46px;
    padding-bottom: 52px;
  }

  .home-hero h1 {
    font-size: clamp(52px, 15vw, 64px);
  }

  .home-hero h2 {
    margin-top: 24px;
    font-size: clamp(27px, 8vw, 34px);
  }

  .home-hero p {
    max-width: 330px;
    margin: 0 auto;
    font-size: 14px;
    line-height: 1.45;
  }

  .home-body {
    padding-top: 36px;
  }

  .members-grid,
  .alumni-grid,
  .media-gallery,
  .video-grid,
  .recent-grid,
  .group-gallery,
  .things-grid,
  .socrates-gallery {
    grid-template-columns: 1fr;
  }

  .members-section {
    padding-top: 54px;
  }

  .alumni-panel {
    margin-right: -16px;
    margin-left: -16px;
  }

  .event-card {
    padding-right: 96px;
  }

  .news-card {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .news-card>img,
  .news-placeholder {
    width: 100%;
    height: auto;
    min-height: 210px;
    max-height: 360px;
    aspect-ratio: 16 / 9;
  }

  .news-card-copy {
    padding: 20px;
  }

  .media-news-row {
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 16px;
    margin: 0 0 26px;
  }

  .media-news-row img {
    width: 92px;
    height: 82px;
  }

  .media-gallery.outreach img:last-child:nth-child(odd) {
    width: 100%;
  }

  .topic-images {
    padding-left: 0;
  }

  .things-grid {
    gap: 58px;
  }

  .video-modal {
    padding: 16px;
  }

  .video-modal-inner {
    width: 100%;
  }

  .image-lightbox {
    grid-template-columns: 40px minmax(0, 1fr) 40px;
  }

  .lightbox-control {
    width: 40px;
  }

  .blog-tabs {
    flex-wrap: wrap;
    gap: 12px 20px;
    font-size: 14px;
  }

  .news-card-copy h2 {
    font-size: 20px;
  }
}

@media print {

  .member-card>div {
    height: auto;
  }

  .member-details {
    overflow: visible;
  }

  .site-header,
  .site-footer,
  .video-modal {
    display: none !important;
  }

  body,
  html {
    min-width: 0;
    background: #fff;
  }
}
