:root {
  --ink: #111423;
  --muted: #333333;
  --paper: #ffffff;
  --hairline: #eeeeee;
  --header-height: 121px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Proxima Nova", "Helvetica Neue", Arial, sans-serif;
  font-size: 17.5px;
  line-height: 1.78;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.35em;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.96);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-height);
  padding: 30px 3vw;
}

.brand {
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 30px;
  line-height: 1.15;
  text-decoration: none;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 20px;
  color: #1f1f1f;
  font-size: 16px;
  line-height: 1.2;
}

.nav-links a {
  text-decoration: none;
}

.nav-links a[aria-current="page"] {
  border-bottom: 1px solid currentColor;
  padding-bottom: 8px;
}

.main {
  overflow: hidden;
}

.sqs-section {
  padding: 42px 3vw;
}

.hero-video {
  position: relative;
  aspect-ratio: 1280 / 556;
  height: auto;
  max-height: calc(100vh - var(--header-height));
  padding: 0;
  overflow: hidden;
  background: #fff;
}

.hero-video video {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 2.05fr) minmax(240px, 0.8fr);
  gap: 5vw;
  align-items: center;
  min-height: 538px;
}

.hero-video + .sqs-section {
  padding-top: 95px;
}

.hero-video + .sqs-section .content-grid {
  align-items: center;
  min-height: auto;
}

.content-grid .copy {
  max-width: 790px;
}

.portrait {
  justify-self: center;
  width: min(290px, 100%);
  transform: translate(0, 28px);
}

h1,
h2,
h3,
.section-title {
  margin: 0;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.17;
}

h1 {
  font-size: 48px;
}

h2 {
  font-size: 43px;
}

.section-title {
  font-size: 34px;
}

h3 {
  margin-bottom: 28px;
  font-size: 34px;
}

p {
  margin: 0 0 1rem;
}

.content-grid .copy p,
.project-text p:not(.project-title):not(.project-meta) {
  text-align: justify;
  text-align-last: left;
  text-justify: inter-word;
}

strong {
  font-weight: 700;
}

.research-section {
  padding-top: 36px;
}

.research-section .section-title {
  margin-left: 28px;
  margin-bottom: 54px;
}

.project-list {
  display: grid;
  gap: 108px;
}

.project {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 0.94fr);
  gap: 3.5vw;
  align-items: start;
  padding: 0 3vw 0 4.5vw;
}

.project-text {
  max-width: 560px;
  background: #f7f7f7;
  padding: 26px 28px;
}

.project-title {
  margin-bottom: 10px;
  font-weight: 700;
}

.project-meta {
  margin-bottom: 12px;
}

.project-media {
  display: grid;
  gap: 12px;
  width: 88%;
  justify-self: center;
}

.project:nth-child(n+2) .project-media {
  width: 76%;
  justify-self: center;
}

.project:nth-child(2) .project-media {
  width: 64%;
}

.project:nth-child(3) .project-media {
  width: 86%;
  gap: 20px;
}

.project:nth-child(4) .project-media {
  width: 80%;
}

.project-media img,
.project-media video {
  width: 100%;
  object-fit: contain;
}

.project-media video {
  background: #000;
}

.page-title {
  padding: 80px 3vw 36px;
  text-align: center;
}

.simple-page {
  width: min(1080px, calc(100% - 6vw));
  margin: 0 auto;
  padding: 48px 0 100px;
}

.publication-list {
  display: grid;
  gap: 38px;
}

.simple-page h3:not(:first-child) {
  margin-top: 58px;
}

.publication h2 {
  margin-bottom: 12px;
  font-family: "Proxima Nova", "Helvetica Neue", Arial, sans-serif;
  font-size: 21px;
  line-height: 1.45;
}

.pub-meta {
  margin-bottom: 0;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-bottom: 30px;
}

.button {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  border: 1px solid var(--ink);
  padding: 0 20px;
  text-decoration: none;
}

.pdf-frame {
  width: 100%;
  height: min(78vh, 860px);
  border: 1px solid var(--hairline);
  background: #fff;
}

.fun-section {
  padding: 56px 0 42px;
}

.fun-title {
  margin: 0 0 64px;
  padding: 0 3vw;
  text-align: center;
}

.carousel-wrap {
  position: relative;
  z-index: 1;
}

.carousel {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
  padding: 10px 3vw 34px;
}

.carousel.is-looping {
  scroll-snap-type: none;
}

.carousel::-webkit-scrollbar {
  display: none;
}

.carousel-card {
  flex: 0 0 369px;
  margin: 0;
  scroll-snap-align: start;
}

.carousel.is-looping .carousel-card {
  scroll-snap-align: none;
}

.carousel-card img {
  width: 369px;
  height: 370px;
  object-fit: cover;
  transition: transform 180ms ease, box-shadow 180ms ease, filter 180ms ease;
}

.carousel-card a {
  display: block;
  text-decoration: none;
}

.carousel-card:hover img,
.carousel-card:focus-within img {
  position: relative;
  z-index: 3;
  transform: scale(1.045);
  filter: saturate(1.04);
  box-shadow: 0 18px 34px rgba(17, 20, 35, 0.22);
}

.carousel-card figcaption {
  margin-top: 20px;
  color: #111;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 19px;
  line-height: 1.32;
}

.carousel-arrow {
  position: absolute;
  top: 164px;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border: 0;
  border-radius: 999px;
  background: rgba(23, 28, 51, 0.72);
  color: #fff;
  font-family: Arial, "Helvetica Neue", sans-serif;
  font-size: 34px;
  font-weight: 400;
  line-height: 1;
  padding: 0 0 3px;
  cursor: pointer;
}

.carousel-arrow.prev {
  left: 5vw;
}

.carousel-arrow.next {
  right: 5vw;
}

.photos-heading {
  min-height: 217px;
  padding: 68px 3vw 24px;
  text-align: center;
}

.photos-heading h1 {
  white-space: nowrap;
}

.photo-grid-section {
  padding: 0 0 32px;
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 225px));
  justify-content: space-between;
  gap: 95px clamp(32px, 7.5vw, 96px);
  padding: 39px 3vw 42px;
}

.photo-grid a {
  position: relative;
  display: block;
  width: 225px;
  height: 169px;
  overflow: hidden;
  background: #f3f3f3;
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease, filter 180ms ease;
}

.photo-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.25s ease, transform 180ms ease;
}

.photo-grid a:hover,
.photo-grid a:focus-visible {
  z-index: 2;
  transform: scale(1.045);
  box-shadow: 0 16px 30px rgba(17, 20, 35, 0.18);
  filter: saturate(1.04);
}

.photo-grid a:hover img,
.photo-grid a:focus-visible img {
  opacity: 0.72;
  transform: scale(1.03);
}

.travel-status {
  min-height: 446px;
  padding: 72px 3vw 80px;
  text-align: center;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
  background: rgba(8, 10, 18, 0.86);
}

.lightbox[hidden] {
  display: none;
}

.lightbox img {
  max-width: min(100%, 1180px);
  max-height: 88vh;
  object-fit: contain;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.36);
}

.lightbox-close {
  position: absolute;
  top: 22px;
  right: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: #111423;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.travel-status h2 {
  width: min(792px, 100%);
  margin: 0 auto 24px;
}

.travel-status .flags {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 43px;
  font-weight: 700;
  line-height: 1.32;
  text-align: center;
}

.site-footer {
  padding: 28px 3vw 42px;
  color: #555;
  font-size: 14px;
}

@media (min-width: 901px) {
  .hero-video + .sqs-section .content-grid {
    width: calc(100% - 28px);
    margin-left: 28px;
  }

  .portrait {
    transform: translate(-66px, 28px);
  }
}

@media (max-width: 900px) {
  :root {
    --header-height: auto;
  }

  body {
    font-size: 16px;
  }

  .nav {
    align-items: flex-start;
    flex-direction: column;
    gap: 18px;
    padding: 24px 6vw;
  }

  .nav-links {
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  .hero-video {
    min-height: 0;
  }

  .sqs-section,
  .page-title,
  .project,
  .fun-title,
  .photos-heading,
  .travel-status,
  .site-footer {
    padding-left: 6vw;
    padding-right: 6vw;
  }

  .hero-video + .sqs-section {
    padding-top: 72px;
  }

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

  .project {
    gap: 20px;
    padding-top: 0;
    padding-bottom: 0;
  }

  .project:nth-child(3) .project-media {
    gap: 18px;
  }

  .project-list {
    gap: 72px;
  }

  .carousel {
    padding-left: 6vw;
    padding-right: 6vw;
  }

  .carousel-card,
  .carousel-card img {
    width: min(72vw, 369px);
  }

  .carousel-card {
    flex-basis: min(72vw, 369px);
  }

  .photo-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
    padding: 30px 6vw;
  }

  .photo-grid a {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
  }
}

@media (max-width: 560px) {
  .brand {
    font-size: 26px;
  }

  .nav-links {
    gap: 14px;
    font-size: 15px;
  }

  h1,
  h2,
  .section-title,
  .travel-status .flags {
    font-size: 35px;
  }

  h3 {
    font-size: 30px;
  }

  .hero-video {
    min-height: 330px;
  }

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