:root {
  --color-ink: #101522;
  --color-muted: #566174;
  --color-soft: #eef3f8;
  --color-surface: #ffffff;
  --color-surface-alt: #f7f9fc;
  --color-line: #dce4ee;
  --color-red: #b5112b;
  --color-red-dark: #7b0d21;
  --color-blue: #1f5fbf;
  --color-teal: #0f766e;
  --color-gold: #b7791f;
  --shadow-soft: 0 18px 48px rgba(16, 21, 34, 0.10);
  --shadow-tight: 0 8px 24px rgba(16, 21, 34, 0.08);
  --radius: 8px;
  --container: 1180px;
  --font-sans: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body.site-body {
  min-height: 100vh;
  margin: 0;
  color: var(--color-ink);
  background: var(--color-surface-alt);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  letter-spacing: 0;
  overflow-x: hidden;
}

img,
video {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--color-blue);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover,
a:focus {
  color: var(--color-red);
}

.site-container {
  width: min(100% - 40px, var(--container));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -48px;
  z-index: 2000;
  padding: 10px 14px;
  color: #ffffff;
  background: var(--color-ink);
  border-radius: var(--radius);
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.94);
  border-top: 0;
  border-bottom: 1px solid rgba(220, 228, 238, 0.9);
  backdrop-filter: blur(16px);
}

.site-nav {
  color: var(--color-ink);
  width: 100%;
  min-height: 70px;
  padding: 0;
  line-height: normal;
}

.site-nav__inner {
  display: flex;
  color: var(--color-muted);
  gap: 24px;
  width: calc(100% - 40px);
  max-width: none;
}

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

.site-brand:hover,
.site-brand:focus {
  color: var(--color-ink);
}

.site-brand__logo {
  display: block;
  height: auto;
  object-fit: contain;
}

.site-brand__logo--sfu {
  width: auto;
  height: 42px;
}

.site-brand__divider {
  display: block;
  width: 1px;
  height: 42px;
  background: var(--color-line);
}

.site-brand__logo--landscape {
  width: auto;
  height: 46px;
}

.site-brand__logo--simple {
  display: none;
  width: 52px;
  max-height: 56px;
}

.site-brand__mark {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  color: #ffffff;
  background: linear-gradient(135deg, var(--color-red), var(--color-blue));
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0;
}

.site-brand__copy {
  display: grid;
  gap: 1px;
}

.site-brand__name {
  font-size: 1.12rem;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: 0;
}

.site-brand__tagline {
  color: var(--color-muted);
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0;
}

.site-nav__toggle {
  margin-left: auto;
  padding: 8px 10px;
  color: var(--color-ink);
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  box-shadow: none;
}

.site-nav__collapse {
  align-items: center;
  gap: 22px;
}

.site-nav__links {
  margin-left: auto;
  align-items: center;
  gap: 4px;
}

.site-nav__link {
  position: relative;
  padding: 10px 12px !important;
  color: var(--color-muted) !important;
  border-radius: var(--radius);
  font-size: 0.94rem;
  font-weight: 700;
  letter-spacing: 0;
  text-decoration: none;
}

.site-nav__link:hover,
.site-nav__link:focus,
.site-nav__link.is-active {
  color: var(--color-ink) !important;
  background: var(--color-soft);
}

.site-nav__link.is-active::after {
  position: absolute;
  right: 12px;
  bottom: 4px;
  left: 12px;
  height: 2px;
  background: var(--color-ink);
  content: "";
}

.site-nav__social,
.social-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.social-link {
  display: inline-grid;
  width: 36px;
  height: 36px;
  place-items: center;
  color: var(--color-muted);
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  text-decoration: none;
}

.social-link:hover,
.social-link:focus {
  color: #ffffff;
  background: var(--color-ink);
  border-color: var(--color-ink);
}

.site-main {
  min-height: 62vh;
}

.home-hero {
  position: relative;
  display: grid;
  align-content: end;
  min-height: 560px;
  height: 72vh;
  max-height: 720px;
  overflow: hidden;
  color: #ffffff;
  background: #111827;
}

.home-hero__image,
.home-hero__shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.home-hero__image {
  object-fit: cover;
  object-position: center 38%;
  transform: scale(1.01);
}

.home-hero__shade {
  background:
    linear-gradient(90deg, rgba(9, 14, 26, 0.88) 0%, rgba(9, 14, 26, 0.62) 45%, rgba(9, 14, 26, 0.24) 100%),
    linear-gradient(0deg, rgba(9, 14, 26, 0.68) 0%, rgba(9, 14, 26, 0.02) 55%);
}

.home-hero__content {
  position: relative;
  z-index: 1;
  padding: 72px 0 34px;
}

.home-hero h1 {
  max-width: 760px;
  margin: 0;
  color: #ffffff;
  font-size: 4.2rem;
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: 0;
}

.hero-lede {
  max-width: 650px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.18rem;
  line-height: 1.65;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 44px;
  padding: 10px 16px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-size: 0.94rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 0;
  text-decoration: none;
}

.button:hover,
.button:focus,
.button:visited {
  text-decoration: none;
}

.button,
.button:hover,
.button:focus,
.button:visited,
.section-link,
.section-link:hover,
.section-link:focus,
.section-link:visited,
.link-pill,
.link-pill:hover,
.link-pill:focus,
.link-pill:visited,
.anchor-nav a,
.anchor-nav a:hover,
.anchor-nav a:focus,
.anchor-nav a:visited,
.social-link,
.social-link:hover,
.social-link:focus,
.social-link:visited,
.site-nav__link,
.site-nav__link:hover,
.site-nav__link:focus,
.site-nav__link:visited,
.post-back,
.post-back:hover,
.post-back:focus,
.post-back:visited {
  text-decoration: none;
}

.button-primary {
  color: #ffffff;
  background: var(--color-red);
  border-color: var(--color-red);
}

.button-primary:hover,
.button-primary:focus {
  color: #ffffff;
  background: var(--color-red-dark);
  border-color: var(--color-red-dark);
}

.button-secondary,
.button-secondary:visited {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.35);
}

.button-secondary:hover,
.button-secondary:focus {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.6);
}

.button-secondary .fa-solid {
  color: inherit;
}

.home-hero__meta {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin-bottom: 24px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(18px);
}

.home-hero__meta div {
  padding: 18px 20px;
  background: rgba(10, 15, 28, 0.24);
}

.home-hero__meta strong,
.home-hero__meta span {
  display: block;
}

.home-hero__meta strong {
  color: #ffffff;
  font-size: 1.75rem;
  line-height: 1;
}

.home-hero__meta span {
  margin-top: 5px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.88rem;
  font-weight: 700;
}

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

.home-section,
.component-section {
  margin: 0 0 72px;
}

.home-section:last-child,
.component-section:last-child {
  margin-bottom: 0;
}

.page-hero {
  position: relative;
  overflow: hidden;
  padding: 76px 0 54px;
  color: var(--color-ink);
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.96) 0%, rgba(247, 249, 252, 0.94) 58%, rgba(238, 243, 248, 0.90) 100%),
    repeating-linear-gradient(135deg, rgba(16, 21, 34, 0.055) 0 1px, transparent 1px 18px),
    var(--color-surface-alt);
  border-bottom: 1px solid var(--color-line);
}

.page-hero::after,
.post-hero::after {
  content: "";
  position: absolute;
  inset: 0 0 0 auto;
  width: min(34vw, 420px);
  background:
    repeating-linear-gradient(135deg, rgba(16, 21, 34, 0.075) 0 1px, transparent 1px 22px),
    linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.42));
  opacity: 0.72;
  pointer-events: none;
}

.page-hero__inner,
.post-hero__inner {
  position: relative;
  z-index: 1;
}

.page-hero__inner::after,
.post-hero__inner::after {
  content: "";
  display: block;
  width: 76px;
  height: 3px;
  margin-top: 24px;
  background: #8b95a5;
  border-radius: 999px;
}

.page-hero h1,
.post-hero h1 {
  margin: 0;
  color: var(--color-ink);
  font-size: 3.1rem;
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: 0;
}

.page-hero p:not(.eyebrow) {
  max-width: 760px;
  margin: 16px 0 0;
  color: var(--color-muted);
  font-size: 1.1rem;
}

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

.home-hero .eyebrow {
  color: #ffccd5;
}

.page-hero .eyebrow,
.post-hero .eyebrow {
  color: var(--color-muted);
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}

.section-heading__text {
  max-width: 760px;
}

.home-content .home-section:first-child .section-heading__text {
  max-width: 100%;
}

@media (min-width: 900px) {
  .home-content .home-section:first-child .section-heading h2 {
    white-space: nowrap;
  }
}

.section-heading h2,
.content-flow h2,
.component-title {
  margin: 0;
  color: var(--color-ink);
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: 0;
}

.section-heading p {
  margin: 10px 0 0;
  color: var(--color-muted);
}

.section-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  color: var(--color-ink);
  font-weight: 800;
  text-decoration: none;
}

.section-link:hover,
.section-link:focus {
  color: var(--color-red);
}

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

.research-card,
.project-card,
.publication-card,
.person-card,
.news-card,
.gallery-frame {
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  background: var(--color-surface);
  box-shadow: var(--shadow-tight);
}

.research-card {
  padding: 24px;
}

.research-card__icon {
  display: grid;
  width: 44px;
  height: 44px;
  margin-bottom: 18px;
  place-items: center;
  color: #ffffff;
  background: var(--color-ink);
  border-radius: var(--radius);
}

.research-card:nth-child(2) .research-card__icon {
  background: var(--color-blue);
}

.research-card:nth-child(3) .research-card__icon {
  background: var(--color-teal);
}

.research-card h3 {
  margin: 0;
  font-size: 1.12rem;
  font-weight: 800;
  line-height: 1.25;
}

.research-card p {
  margin: 10px 0 0;
  color: var(--color-muted);
}

.media-gallery {
  margin: 24px 0 48px;
  max-width: 980px;
}

.gallery-frame {
  --gallery-caption-height: 52px;
  position: relative;
  overflow: hidden;
  border: 0;
  border-radius: var(--radius);
  background: var(--color-surface);
  box-shadow: var(--shadow-tight);
}

.gallery-frame .carousel-item {
  background: var(--color-surface);
}

.gallery-photo-stage {
  display: grid;
  aspect-ratio: 4 / 3;
  place-items: center;
  overflow: hidden;
  background: #f3f6fa;
}

.gallery-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.gallery-caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: var(--gallery-caption-height);
  padding: 12px 16px;
  color: var(--color-ink);
  background: var(--color-surface);
  border-top: 1px solid var(--color-line);
  font-size: 0.85rem;
  font-weight: 800;
}

.gallery-caption__count {
  color: var(--color-muted);
  font-size: 0.78rem;
}

.carousel-control-prev,
.carousel-control-next {
  top: calc((100% - var(--gallery-caption-height)) / 2);
  bottom: auto;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  background: rgba(16, 21, 34, 0.78);
  opacity: 1;
  transform: translateY(-50%);
  backdrop-filter: blur(10px);
}

.carousel-control-prev {
  left: 16px;
}

.carousel-control-next {
  right: 16px;
}

.carousel-control-prev:hover,
.carousel-control-prev:focus,
.carousel-control-next:hover,
.carousel-control-next:focus {
  background: rgba(16, 21, 34, 0.94);
  opacity: 1;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
  width: 18px;
  height: 18px;
}

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

.person-card {
  display: grid;
  justify-self: center;
  width: 94%;
  gap: 12px;
  padding: 14px;
  min-width: 0;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.person-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-soft);
}

.person-card__photo,
.person-card__fallback {
  display: grid;
  aspect-ratio: 1;
  width: 88%;
  justify-self: center;
  overflow: hidden;
  place-items: center;
  color: var(--color-muted);
  background: var(--color-surface-alt);
  border: 0;
  border-radius: 0;
  text-decoration: none;
}

.person-card__photo {
  background: transparent;
}

.person-card__photo img {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 0;
  object-fit: cover;
}

.person-card__fallback {
  font-size: 2rem;
  font-weight: 800;
}

.person-card__body {
  width: 88%;
  justify-self: center;
}

.person-card__name {
  color: var(--color-ink);
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.25;
  text-decoration: none;
}

.person-card__title {
  margin: 4px 0 0;
  color: var(--color-muted);
  font-size: 0.9rem;
  line-height: 1.35;
}

.directory-list {
  display: grid;
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--color-surface);
  box-shadow: var(--shadow-tight);
}

.directory-row {
  display: grid;
  grid-template-columns: minmax(150px, 0.22fr) minmax(0, 1fr) 76px;
  gap: 16px;
  align-items: start;
  padding: 16px;
  color: var(--color-ink);
  border-bottom: 1px solid var(--color-line);
  text-decoration: none;
}

.directory-row:last-child {
  border-bottom: 0;
}

.directory-row:hover,
.directory-row:focus {
  color: var(--color-ink);
  background: var(--color-surface-alt);
}

.directory-row__name {
  padding-top: 2px;
  font-weight: 800;
  line-height: 1.35;
}

.directory-row__title {
  min-width: 0;
  color: var(--color-muted);
  font-size: 0.95rem;
  line-height: 1.45;
}

.directory-row__title-list {
  display: block;
}

.directory-row__title-line {
  display: inline;
}

.directory-row__title-separator {
  display: inline;
  color: var(--color-muted);
}

.directory-row__meta {
  display: flex;
  justify-content: flex-end;
  min-height: 30px;
}

.tag-row,
.link-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag,
.link-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 30px;
  padding: 5px 9px;
  border-radius: var(--radius);
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 0;
}

.tag {
  color: var(--color-red-dark);
  background: #fff0f2;
  border: 1px solid #ffd7de;
}

.tag--muted {
  color: var(--color-muted);
  background: var(--color-soft);
  border-color: var(--color-line);
}

.link-pill {
  color: var(--color-ink);
  background: var(--color-surface-alt);
  border: 1px solid var(--color-line);
  text-decoration: none;
}

.link-pill:hover,
.link-pill:focus {
  color: #ffffff;
  background: var(--color-ink);
  border-color: var(--color-ink);
}

.anchor-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 26px;
}

.anchor-nav a {
  padding: 8px 10px;
  color: var(--color-ink);
  background: var(--color-surface);
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  font-size: 0.84rem;
  font-weight: 800;
  text-decoration: none;
}

.anchor-nav a:hover,
.anchor-nav a:focus {
  color: #ffffff;
  background: var(--color-blue);
  border-color: var(--color-blue);
}

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

.project-card,
.publication-card {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  min-width: 0;
  overflow: hidden;
}

.projects-section--compact .project-list {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.projects-section--compact .project-card {
  grid-template-columns: 1fr;
  grid-template-rows: 168px minmax(0, 1fr);
}

.project-card__media,
.publication-card__media {
  display: block;
  min-height: 220px;
  background: var(--color-soft);
  overflow: hidden;
}

.projects-section--compact .project-card__media {
  min-height: 168px;
  padding: 14px;
}

.project-card__media {
  display: grid;
  padding: 20px;
  place-items: center;
  background: #ffffff;
  border-right: 1px solid var(--color-line);
}

.project-card__media img,
.publication-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 180ms ease;
}

.project-card__media img {
  display: block;
  height: auto;
  max-height: 180px;
  object-fit: contain;
  object-position: center;
}

.projects-section--compact .project-card__media img {
  max-height: 140px;
}

.projects-section--compact .project-card__body {
  padding: 16px 20px 20px;
}

.project-card:hover .project-card__media img,
.publication-card:hover .publication-card__media img {
  transform: scale(1.025);
}

.project-card__body,
.publication-card__body {
  display: grid;
  align-content: start;
  gap: 14px;
  padding: 22px;
}

.project-card h3,
.publication-card h3,
.news-card h3 {
  margin: 0;
  font-size: 1.18rem;
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: 0;
}

.project-card h3 a,
.publication-card h3 a,
.news-card h3 a,
.post-back {
  color: var(--color-ink);
  text-decoration: none;
}

.project-card h3 a:hover,
.project-card h3 a:focus,
.publication-card h3 a:hover,
.publication-card h3 a:focus,
.news-card h3 a:hover,
.news-card h3 a:focus,
.post-back:hover,
.post-back:focus {
  color: var(--color-red);
}

.project-description,
.publication-authors,
.publication-venue,
.news-card__excerpt {
  color: var(--color-muted);
}

.project-description p,
.project-description {
  margin: 0;
}

.project-link-group {
  display: grid;
  gap: 8px;
}

.project-link-group strong {
  color: var(--color-ink);
  font-size: 0.86rem;
}

.publication-card {
  grid-template-columns: 230px minmax(0, 1fr);
}

.publication-card__media {
  display: grid;
  min-height: 190px;
  padding: 18px;
  place-items: center;
  background: #ffffff;
  border-right: 1px solid var(--color-line);
}

.publication-card__media img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 164px;
  object-fit: contain;
}

.publication-card__body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0;
  padding: 20px 22px;
}

.publication-card__body > h3 {
  margin-top: 8px;
}

.publication-card__body > .publication-authors {
  margin-top: 9px;
}

.publication-card__body > .link-row {
  margin-top: 14px;
}

.publications-section--compact .publication-list {
  gap: 14px;
}

.publication-authors {
  margin: 0;
  font-size: 0.95rem;
}

.publication-venue {
  display: inline-flex;
  width: fit-content;
  padding: 4px 8px;
  color: var(--color-teal);
  background: #ecfdf5;
  border: 1px solid #c7f3df;
  border-radius: var(--radius);
  font-size: 0.78rem;
  font-weight: 800;
}

.news-card {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  gap: 22px;
  padding: 22px;
}

.news-card__date {
  color: var(--color-muted);
  font-size: 0.86rem;
  font-weight: 800;
}

.news-card__meta {
  display: grid;
  align-content: start;
  gap: 10px;
}

.news-card__excerpt {
  margin: 8px 0 0;
}

.post-hero {
  position: relative;
  overflow: hidden;
  padding: 70px 0 54px;
  color: var(--color-ink);
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.96) 0%, rgba(247, 249, 252, 0.94) 58%, rgba(238, 243, 248, 0.90) 100%),
    repeating-linear-gradient(135deg, rgba(16, 21, 34, 0.055) 0 1px, transparent 1px 18px),
    var(--color-surface-alt);
  border-bottom: 1px solid var(--color-line);
}

.post-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 28px;
  color: var(--color-muted);
  font-weight: 800;
}

.post-back:hover,
.post-back:focus {
  color: var(--color-ink);
}

.post-hero .tag {
  color: var(--color-muted);
  background: var(--color-soft);
  border-color: var(--color-line);
}

.post-body {
  padding: 64px 0 82px;
}

.content-flow {
  color: var(--color-ink);
}

.content-flow > * + * {
  margin-top: 1.05rem;
}

.content-flow h2,
.content-flow h3,
.content-flow h4 {
  margin-top: 2.2rem;
  color: var(--color-ink);
  font-weight: 800;
  letter-spacing: 0;
}

.content-flow h2:first-child,
.content-flow h3:first-child,
.content-flow h4:first-child {
  margin-top: 0;
}

.content-flow h3 {
  font-size: 1.45rem;
}

.content-flow h4 {
  font-size: 1.16rem;
}

.content-flow p,
.content-flow li {
  color: #303849;
}

.content-flow ul,
.content-flow ol {
  padding-left: 1.4rem;
}

.content-flow li + li {
  margin-top: 0.35rem;
}

.content-flow img {
  height: auto !important;
  max-height: 360px;
  margin: 10px 10px 10px 0;
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-tight);
  object-fit: cover;
}

.content-flow .publication-card__body > h3 {
  margin-top: 8px;
}

.content-flow .publication-card__media img {
  width: 100%;
  height: auto !important;
  max-height: 164px;
  margin: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  object-fit: contain;
  object-position: center;
}

.content-flow .project-card__media img {
  width: 100%;
  height: auto !important;
  max-height: 180px;
  margin: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  object-fit: contain;
  object-position: center;
}

.content-flow .projects-section--compact .project-card__media img {
  max-height: 150px;
}

.content-flow .person-card__photo img {
  width: 100%;
  height: 100% !important;
  max-height: none;
  margin: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  object-fit: cover;
}

.content-flow .gallery-frame img {
  width: 100%;
  height: 100% !important;
  max-height: none;
  margin: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  object-fit: contain;
  object-position: center;
}

.post-content {
  max-width: 880px;
}

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

.site-footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 2.2fr) minmax(150px, 0.45fr) minmax(150px, 0.45fr);
  gap: 42px;
}

.site-footer__brand {
  min-width: 0;
}

.site-footer__logos {
  display: grid;
  grid-template-columns: 160px 218px;
  grid-template-rows: repeat(2, 78px);
  gap: 10px;
  width: 100%;
  max-width: 388px;
}

.site-footer__logo-link {
  display: grid;
  min-width: 0;
  min-height: 0;
  padding: 8px 10px;
  place-items: center;
  background: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  text-decoration: none;
}

.site-footer__logo-link:hover,
.site-footer__logo-link:focus {
  background: #ffffff;
  border-color: rgba(255, 255, 255, 0.36);
}

.site-footer__logo-link--3dlg {
  grid-row: 1 / span 2;
}

.site-footer__logo {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  object-fit: contain;
}

.site-footer__logo--3dlg {
  height: 126px;
  max-width: 132px;
}

.site-footer__logo--gruvi {
  height: 58px;
  max-width: 184px;
}

.site-footer__logo--sfu {
  height: 38px;
  max-width: 184px;
}

.site-footer h2 {
  margin: 0 0 14px;
  color: #ffffff;
  font-size: 0.86rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.site-footer ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer a {
  color: rgba(255, 255, 255, 0.78);
  text-decoration: none;
}

.site-footer a:hover,
.site-footer a:focus {
  color: #ffffff;
}

.site-footer .social-link {
  color: rgba(255, 255, 255, 0.8);
  border-color: rgba(255, 255, 255, 0.18);
}

.site-footer .social-link:hover,
.site-footer .social-link:focus {
  color: var(--color-ink);
  background: #ffffff;
  border-color: #ffffff;
}

@media (max-width: 991px) {
  .site-nav__inner {
    min-height: 70px;
    flex-wrap: wrap;
  }

  .site-nav__collapse {
    flex-basis: 100%;
    width: 100%;
    padding: 12px 0 18px;
  }

  .site-nav__links {
    align-items: stretch;
    margin: 0;
    gap: 6px;
  }

  .site-nav__social {
    margin-top: 12px;
  }

  .home-hero h1 {
    font-size: 3.2rem;
  }

  .research-grid,
  .projects-section--compact .project-list,
  .people-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .project-card__media,
  .publication-card__media {
    min-height: 240px;
    border-right: 0;
    border-bottom: 1px solid var(--color-line);
  }

  .site-footer__grid {
    grid-template-columns: 1fr 1fr;
  }

  .site-footer__brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 720px) {
  .site-container {
    width: min(100% - 28px, var(--container));
  }

  .site-brand__tagline {
    display: none;
  }

  .site-brand__logo--landscape {
    display: none;
  }

  .site-brand__logo--sfu {
    width: auto;
    height: 34px;
  }

  .site-brand__divider {
    height: 34px;
  }

  .site-brand__logo--simple {
    display: block;
    width: 42px;
    max-height: 44px;
  }

  .home-hero {
    min-height: 500px;
    height: auto;
  }

  .home-hero__content {
    padding-top: 56px;
  }

  .home-hero h1,
  .page-hero h1,
  .post-hero h1 {
    font-size: 2.35rem;
    line-height: 1.05;
  }

  .hero-lede,
  .page-hero p:not(.eyebrow) {
    font-size: 1rem;
  }

  .home-hero__meta {
    grid-template-columns: 1fr;
  }

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

  .home-section,
  .component-section {
    margin-bottom: 48px;
  }

  .section-heading {
    display: grid;
    align-items: start;
    gap: 14px;
  }

  .section-heading h2,
  .content-flow h2,
  .component-title {
    font-size: 1.62rem;
  }

  .research-grid,
  .projects-section--compact .project-list,
  .people-grid {
    grid-template-columns: 1fr;
  }

  .gallery-photo-stage {
    aspect-ratio: 4 / 3;
  }

  .directory-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .directory-row__meta {
    justify-content: flex-start;
  }

  .news-card {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .project-card__media,
  .publication-card__media {
    min-height: 200px;
  }

  .site-footer__grid {
    grid-template-columns: 1fr;
  }

  .site-footer__grid {
    display: grid;
  }

  .site-footer__logos {
    max-width: 100%;
    grid-template-columns: minmax(122px, 0.72fr) minmax(0, 1.28fr);
    grid-template-rows: repeat(2, 76px);
  }

  .site-footer__logo-link {
    padding: 8px 10px;
  }

  .site-footer__logo--3dlg {
    height: 120px;
    max-width: 124px;
  }

  .site-footer__logo--gruvi {
    height: 42px;
  }

  .site-footer__logo--sfu {
    height: 34px;
  }
}

@media (max-width: 420px) {
  .hero-actions,
  .link-row,
  .tag-row {
    align-items: stretch;
    flex-direction: column;
  }

  .button,
  .link-pill {
    width: 100%;
  }
}