/* Tokens */
:root {
  --paper: #ffffff;
  --ink: #000000;
  --line: #000000;
  --grid: 45px;
  --stage: 1600px;
  --content: 1260px;
  --stage-scale: 1;
}

/* Base */
* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

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

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

/* Stage */
.visual-page {
  position: relative;
  z-index: 1;
  width: var(--stage);
  min-height: 100vh;
  margin: 0 auto;
  overflow-x: hidden;
}

.visual-stage-shell {
  position: relative;
  width: 100%;
  min-height: 100vh;
}

.visual-stage-scale {
  position: absolute;
  top: 0;
  left: 50%;
  width: calc(var(--stage) * 3);
  transform: translateX(-50%) scale(var(--stage-scale));
  transform-origin: top center;
  background: var(--paper);
}

/* Navigation */
.visual-stage {
  position: relative;
  width: var(--stage);
  margin: 0 auto;
  padding: 45px 0 147px;
}

.visual-nav {
  width: calc(var(--stage) - 180px);
  margin: 0 auto 45px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.visual-brand {
  display: inline-flex;
  align-items: center;
  height: 45px;
}

.visual-brand__lockup {
  display: flex;
  align-items: center;
  width: 160px;
  height: 45px;
  transform: translateX(-7px);
}

.visual-brand__logo {
  display: block;
  width: 160px;
  height: auto;
  object-fit: contain;
}

.visual-back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 134.9px;
  height: 45px;
  border: 1px solid var(--line);
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
  transition:
    background-color 180ms ease,
    color 180ms ease,
    border-color 180ms ease;
}

.visual-back:hover,
.visual-back:focus-visible {
  background: var(--ink);
  color: var(--paper);
}

/* Projects */
.visual-projects {
  display: grid;
  gap: 164px;
}

      .visual-project {
        width: var(--content);
        margin: 0 auto;
      }

      .visual-project__frame {
        width: 100%;
        height: 675px;
        background: transparent;
      }

      .visual-project__frame--gallery {
        position: relative;
        overflow: visible;
        background: transparent;
      }

      .visual-project__gallery-scroll {
        position: absolute;
        top: 0;
        left: calc(-100% - 16px);
        width: calc(300% + 32px);
        height: 100%;
        overflow: hidden;
        contain: layout paint;
      }

      .visual-project__gallery {
        display: flex;
        gap: 16px;
        width: max-content;
        height: 100%;
        transition: transform 320ms ease;
        will-change: transform;
      }

      .visual-project__gallery.is-loop-resetting {
        transition: none;
      }

      .visual-project__slide {
        flex: 0 0 1260px;
        width: 1260px;
        height: 100%;
        overflow: hidden;
        background: transparent;
        contain: paint;
      }

      .visual-project__slide-image {
        display: block;
        width: 100%;
        height: 100%;
        object-fit: cover;
        transform: translateZ(0);
      }

      .visual-project__slide-image--contain {
        object-fit: contain;
        background: #ffffff;
      }

      .visual-project__meta {
        margin-top: 14px;
        display: grid;
        grid-template-columns: 1fr auto;
        align-items: start;
        gap: 24px;
        font-size: 24px;
        line-height: 1;
        font-weight: 400;
      }

      .visual-project__title {
        font-family: "IBM Plex Sans SC", "IBM Plex Sans", sans-serif;
        justify-self: start;
      }

      .visual-project__slug {
        justify-self: end;
        text-transform: uppercase;
      }

/* Footer */
.visual-footer {
  width: calc(var(--stage) - 210px);
  margin: 202px auto 0;
}

      .visual-footer__logo {
        width: 100%;
        display: block;
      }

      .visual-footer__meta {
        margin-top: 54px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 24px;
      }

      .visual-footer__copy {
        display: inline-flex;
        align-items: center;
        gap: 5px;
        white-space: nowrap;
      }

      .visual-footer__copy-text {
        margin: 0;
        font-family: "Helvetica Neue", "IBM Plex Sans", sans-serif;
        font-size: 16px;
        font-weight: 400;
        line-height: normal;
        color: var(--ink);
        white-space: nowrap;
      }

      .visual-footer__copy img {
        display: block;
        width: 109px;
        height: 13.26px;
        object-fit: contain;
        filter: brightness(0);
      }

      .visual-footer__record {
        margin: 0;
        display: inline-flex;
        align-items: center;
        justify-content: flex-end;
        gap: 0;
        font-family: "IBM Plex Sans", "IBM Plex Sans SC", sans-serif;
        font-size: 16px;
        font-weight: 400;
        line-height: normal;
        color: var(--ink);
        white-space: nowrap;
        text-align: right;
        text-transform: uppercase;
      }

.visual-footer__record-mono {
  font-family: "IBM Plex Mono", "IBM Plex Sans", monospace;
}

/* Responsive */
@media (max-width: 1500px) {
  .visual-project__frame--gallery {
    overflow: hidden;
  }

  .visual-project__gallery-scroll {
    position: static;
    width: 100%;
    left: auto;
  }
}

@media (max-width: 900px) {
  .visual-nav {
    gap: 20px;
  }

  .visual-projects {
    gap: 96px;
  }

  .visual-project__frame {
    height: min(54vw, 675px);
  }

  .visual-project__slide {
    flex-basis: 100%;
    width: 100%;
  }

  .visual-project__meta {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .visual-project__slug,
  .visual-project__info {
    justify-self: start;
  }

  .visual-footer__meta {
    flex-direction: column;
    align-items: flex-start;
  }
}
