:root {
  --paper: #f4f2ee;
  --ink: #050505;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  border: 0;
  padding: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font: inherit;
  text-transform: inherit;
}

body.menu-open {
  overflow: hidden;
}

.top-gradient {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 30;
  width: 100%;
  height: 12px;
  background: linear-gradient(90deg, #2755d9 0%, #8ed4d2 32%, #efe68f 58%, #ed7d32 82%, #b82724 100%);
}

.site-nav {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  width: 100%;
  padding: 42px 38px 30px;
  color: #050505;
  font-family: "Arial Narrow", Arial, Helvetica, sans-serif;
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: color 180ms ease;
}

.nav-left {
  display: flex;
  gap: 34px;
}

.nav-menu {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  justify-self: end;
}

.burger-lines {
  display: none;
  width: 24px;
}

.burger-lines span {
  display: block;
  width: 24px;
  height: 1px;
  margin: 5px 0;
  background: currentColor;
}

.menu-panel {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: stretch;
  justify-content: flex-end;
  padding: 30px;
  background: rgba(31, 42, 58, 0);
  opacity: 0;
  pointer-events: none;
  transition: background 240ms ease, opacity 240ms ease;
}

.menu-panel.is-open {
  background: rgba(31, 42, 58, 0.88);
  opacity: 1;
  pointer-events: auto;
}

.menu-shell {
  position: relative;
  width: min(520px, 100%);
  min-height: 100%;
  overflow: hidden;
  background: #030303;
  color: #fff;
  transform: translateX(24px);
  transition: transform 240ms ease;
}

.menu-panel.is-open .menu-shell {
  transform: translateX(0);
}

.menu-gradient {
  height: 14px;
  background: linear-gradient(90deg, #2755d9 0%, #8ed4d2 32%, #efe68f 58%, #ed7d32 82%, #b82724 100%);
}

.menu-top {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  padding: 24px 28px 42px;
}

.menu-brand img {
  display: block;
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.menu-close {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.menu-close span {
  display: block;
  width: 21px;
  height: 1px;
  background: currentColor;
}

.menu-close span:first-child {
  transform: translateX(35px) rotate(45deg);
}

.menu-close span:nth-child(2) {
  transform: rotate(-45deg);
}

.menu-links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 0 28px;
}

.menu-links a {
  font-size: clamp(44px, 6vw, 72px);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.03em;
  text-transform: none;
}

.menu-links a:hover,
.menu-links a:focus {
  color: #d9e6ff;
}

.nav-logo {
  position: relative;
  display: block;
  width: 42px;
  height: 42px;
}

.nav-logo img {
  display: block;
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.nav-logo .logo-white {
  position: absolute;
  inset: 0;
  opacity: 0;
}

.site-nav.is-light {
  color: #fff;
}

.site-nav.is-light .logo-black {
  opacity: 0;
}

.site-nav.is-light .logo-white {
  opacity: 1;
}

.nav-light {
  color: #fff;
}

.home {
  height: 200vh;
}

.intro,
.project-browser {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
}

.intro {
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--paper);
  transition: opacity 80ms linear;
}

.intro-center {
  padding: 0 24px;
  text-align: center;
}

.intro h1 {
  margin: 0;
  font-size: clamp(42px, 8.4vw, 146px);
  font-weight: 900;
  letter-spacing: 0.18em;
  line-height: 0.95;
  text-transform: uppercase;
}

.intro p {
  margin: 38px 0 0;
  font-family: "Arial Narrow", Arial, Helvetica, sans-serif;
  font-size: clamp(13px, 1.45vw, 22px);
  letter-spacing: 0.55em;
  text-transform: uppercase;
}

.scroll-enter {
  position: absolute;
  bottom: 42px;
  left: 50%;
  transform: translateX(-50%);
  padding-bottom: 4px;
  border-bottom: 1px solid transparent;
  font-family: "Arial Narrow", Arial, Helvetica, sans-serif;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: border-color 160ms ease, opacity 160ms ease;
}

.scroll-enter:hover,
.scroll-enter:focus {
  border-bottom-color: currentColor;
  opacity: 0.72;
}

.project-browser {
  z-index: 1;
  margin-top: -100vh;
  background: #000;
  color: #fff;
  opacity: 0;
  pointer-events: none;
  transition: opacity 80ms linear;
}

.browser-bg {
  position: absolute;
  inset: 0;
  background-position: center;
  background-size: cover;
}

.browser-bg.is-current {
  opacity: 1;
}

.browser-bg.is-next {
  opacity: 0;
  transition: opacity 420ms ease;
}

.browser-bg.is-next.is-visible {
  opacity: 1;
}

.project-list {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: min(720px, calc(100vw - 48px));
  height: 100%;
  padding-left: 38px;
  padding-top: 70px;
}

.project-link {
  display: flex;
  align-items: baseline;
  width: fit-content;
  gap: 22px;
  padding: 12px 0;
  border-bottom: 1px solid transparent;
  color: #fff;
  opacity: 0.42;
  transition: border-color 180ms ease, opacity 180ms ease;
}

.project-link:last-child {
  border-bottom-color: transparent;
}

.project-list:hover .project-link,
.project-list:focus-within .project-link {
  opacity: 0.28;
}

.project-list .project-link.is-active,
.project-list .project-link:hover,
.project-list .project-link:focus {
  border-bottom-color: rgba(255, 255, 255, 0.8);
  opacity: 1;
}

.project-title {
  font-family: Impact, "Arial Black", Haettenschweiler, sans-serif;
  font-size: clamp(42px, 5.7vw, 88px);
  font-weight: 900;
  line-height: 0.9;
  text-transform: uppercase;
}

.project-year {
  font-family: Impact, "Arial Black", Haettenschweiler, sans-serif;
  font-size: 15px;
}

.browser-arrow {
  position: absolute;
  right: 38px;
  bottom: 32px;
  z-index: 2;
  font-size: 42px;
  line-height: 1;
  transition: opacity 160ms ease, transform 160ms ease;
}

.browser-arrow:hover,
.browser-arrow:focus {
  opacity: 0.72;
  transform: translateY(-4px);
}

.mobile-project-card {
  display: none;
}

.project-hero {
  position: relative;
  min-height: 100vh;
  background-position: center;
  background-size: cover;
  color: #fff;
}

.hero-left {
  position: absolute;
  left: 38px;
  bottom: 34px;
}

.hero-left h1 {
  margin: 0 0 12px;
  font-size: 32px;
  line-height: 1;
  text-transform: uppercase;
}

.hero-left p,
.hero-right p,
.label {
  margin: 0;
  font-family: "Arial Narrow", Arial, Helvetica, sans-serif;
  font-size: 12px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.hero-right {
  position: absolute;
  right: 38px;
  bottom: 34px;
  display: grid;
  gap: 16px;
}

.name {
  margin-top: 4px;
  font-size: 14px;
}

.info-section {
  padding: 42px 7.6vw 48px;
  background: var(--paper);
}

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

.info-value {
  margin: 8px 0 0;
  font-size: 20px;
}

.description {
  max-width: 720px;
  margin: 34px 0 34px;
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.08;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 5px;
}

.image-block {
  background-position: center;
  background-size: cover;
}

.wide {
  grid-column: span 2;
  aspect-ratio: 16 / 5;
}

.half {
  aspect-ratio: 16 / 7;
}

.bts-row {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 22px;
  margin-top: 18px;
}

.bts-images {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 5px;
}

.bts-images .image-block {
  aspect-ratio: 4 / 3;
}

.credits {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 28px;
  margin-top: 42px;
}

.credits .name {
  font-size: 14px;
}

.next-project {
  display: block;
  min-height: 42vh;
  padding: 48px 7.6vw;
  background-position: center;
  background-size: cover;
  color: #fff;
}

.next-title {
  margin-top: 16px;
  font-size: clamp(36px, 5vw, 72px);
  line-height: 1;
  text-transform: uppercase;
}

.contact-page {
  min-height: 100vh;
  background: var(--paper);
}

.contact-center {
  display: flex;
  min-height: 100vh;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  text-align: center;
  text-transform: uppercase;
}

.contact-center h1 {
  margin: 0 0 26px;
  font-size: clamp(46px, 7vw, 96px);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.contact-center .email {
  margin-bottom: 18px;
  font-size: 24px;
  text-transform: none;
}

.site-footer {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 28px;
  align-items: end;
  padding: 34px 7.6vw;
  border-top: 1px solid rgba(0, 0, 0, 0.22);
  background: var(--paper);
  color: var(--ink);
  font-family: "Arial Narrow", Arial, Helvetica, sans-serif;
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.site-footer img {
  display: block;
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.site-footer p {
  margin: 10px 0 0;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}

.site-footer > p {
  justify-self: end;
}

.about-page {
  background: var(--paper);
}

.about-hero {
  position: relative;
  min-height: 62vh;
  background-position: center;
  background-size: cover;
  color: #fff;
}

.about-hero h1 {
  position: absolute;
  left: 7.6vw;
  bottom: 88px;
  margin: 0;
  font-family: Impact, "Arial Black", Haettenschweiler, sans-serif;
  font-size: clamp(72px, 8vw, 122px);
  line-height: 0.9;
  text-transform: uppercase;
}

.about-intro {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 90px;
  padding: 88px 7.6vw 76px;
  background: var(--paper);
}

.about-copy h2 {
  max-width: 720px;
  margin: 0 0 42px;
  font-size: clamp(34px, 3.4vw, 50px);
  line-height: 1.08;
}

.about-copy p {
  max-width: 540px;
  margin: 0 0 28px;
  font-size: 21px;
  line-height: 1.25;
}

.about-facts {
  display: grid;
  align-content: start;
  gap: 0;
}

.about-facts > div {
  padding: 0 0 28px;
  margin-bottom: 28px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.26);
}

.about-facts p:not(.label) {
  margin: 12px 0 0;
  font-size: 18px;
  line-height: 1.25;
}

.about-approach {
  padding: 0 7.6vw 74px;
  background: var(--paper);
}

.about-approach > .label {
  padding-top: 42px;
  border-top: 1px solid rgba(0, 0, 0, 0.22);
}

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

.approach-image {
  aspect-ratio: 4 / 3;
  margin-bottom: 18px;
  background-position: center;
  background-size: cover;
}

.approach-grid h3 {
  margin: 0 0 10px;
  font-size: 14px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.approach-grid p {
  max-width: 300px;
  margin: 0;
  font-size: 16px;
  line-height: 1.32;
}

.capabilities {
  padding: 70px 7.6vw 92px;
  background: var(--paper);
  color: var(--ink);
  text-align: left;
}

.capabilities::before {
  content: none;
}

.capabilities-kicker {
  margin: 0 0 32px;
  padding-top: 44px;
  border-top: 1px solid rgba(0, 0, 0, 0.22);
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.capabilities-heading {
  display: grid;
  grid-template-columns: 1fr 0.8fr;
  gap: 70px;
  align-items: end;
}

.capabilities-heading h2 {
  margin: 0;
  font-family: Impact, "Arial Black", Haettenschweiler, sans-serif;
  font-size: clamp(58px, 7vw, 112px);
  font-weight: 900;
  line-height: 0.9;
  text-transform: uppercase;
}

.capabilities-heading p {
  max-width: 520px;
  margin: 0;
  font-size: clamp(22px, 2.2vw, 34px);
  line-height: 1.08;
}

.capabilities-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 34px;
  margin-top: 72px;
}

.capabilities-grid > div {
  padding-top: 18px;
  border-top: 1px solid rgba(0, 0, 0, 0.25);
}

.capabilities h3 {
  margin: 0 0 22px;
  font-size: 18px;
  line-height: 1;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.capabilities ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.capabilities li {
  margin: 9px 0;
  font-size: 17px;
  line-height: 1.2;
}

@media (max-width: 760px) {
  .site-nav {
    grid-template-columns: 1fr auto;
    padding: 32px 18px 22px;
    font-size: 12px;
  }

  .nav-left {
    display: none;
  }

  .nav-logo {
    justify-self: start;
    grid-column: 1;
  }

  .nav-menu {
    grid-column: 2;
  }

  .menu-word {
    display: none;
  }

  .burger-lines {
    display: block;
  }

  .intro h1 {
    letter-spacing: 0.1em;
  }

  .intro p {
    letter-spacing: 0.28em;
  }

  .home {
    height: calc(100vh + (var(--mobile-project-count, 6) * 62vh));
  }

  .project-browser {
    background: #344052;
  }

  .browser-bg {
    inset: 0;
  }

  .project-list {
    display: none;
  }

  .mobile-project-card {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: block;
    color: #fff;
  }

  .mobile-project-copy {
    position: absolute;
    left: 30px;
    bottom: 92px;
  }

  .mobile-project-copy h2 {
    margin: 0 0 8px;
    font-size: clamp(38px, 11vw, 56px);
    font-weight: 900;
    line-height: 0.92;
  }

  .mobile-project-copy p {
    margin: 0;
    font-size: 16px;
    font-style: italic;
    font-weight: 700;
  }

  .mobile-project-progress {
    position: absolute;
    right: 32px;
    bottom: 86px;
    display: grid;
    justify-items: center;
    gap: 10px;
    font-size: 16px;
    font-weight: 700;
  }

  .mobile-progress-line {
    display: block;
    width: 1px;
    height: 96px;
    background: currentColor;
    transform-origin: top;
    transition: transform 260ms ease;
  }

  .browser-arrow {
    right: 30px;
    bottom: 30px;
    font-size: 30px;
  }

  .hero-left,
  .hero-right {
    left: 18px;
    right: auto;
  }

  .hero-right {
    bottom: 118px;
  }

  .info-grid,
  .credits,
  .bts-row {
    grid-template-columns: 1fr;
  }

  .bts-images {
    grid-template-columns: repeat(2, 1fr);
  }

  .site-footer {
    grid-template-columns: 1fr;
    align-items: start;
    padding: 28px 24px;
  }

  .site-footer nav {
    justify-content: flex-start;
  }

  .site-footer > p {
    justify-self: start;
  }

  .about-hero {
    min-height: 58vh;
  }

  .about-hero h1 {
    left: 24px;
    bottom: 54px;
  }

  .about-intro {
    grid-template-columns: 1fr;
    gap: 42px;
    padding: 58px 24px 52px;
  }

  .about-copy p {
    font-size: 18px;
  }

  .about-approach {
    padding: 0 24px 58px;
  }

  .approach-grid {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .capabilities {
    padding: 50px 24px 68px;
  }

  .capabilities-kicker {
    margin-bottom: 24px;
  }

  .capabilities-heading {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .capabilities-heading p {
    font-size: 16px;
  }

  .capabilities-grid {
    grid-template-columns: 1fr;
    gap: 34px;
    margin-top: 46px;
  }

  .menu-panel {
    padding: 0;
  }

  .menu-shell {
    width: 100%;
  }

  .menu-links a {
    font-size: clamp(42px, 14vw, 66px);
  }
}
