:root {
  color-scheme: dark;
  --bg: #242424;
  --panel: #2d2d2d;
  --text: #f4f1eb;
  --muted: rgba(244, 241, 235, .58);
  --line: rgba(244, 241, 235, .16);
  --accent: #d8c9a0;
  --site-rem: min(11.7072px, 1.5642857vw);
  --body-copy: calc(1.2 * var(--site-rem));
  --body-copy-line: calc(1.44 * var(--site-rem));
  --heading-copy: calc(2 * var(--site-rem));
  --heading-line: calc(2.2 * var(--site-rem));
  --header-font: var(--heading-copy);
  --header-line: var(--heading-line);
  --header-pad-y: calc(2 * var(--site-rem));
  --header-pad-x: var(--site-rem);
  --header-gap: calc(2 * var(--site-rem));
  --footer-heading-font: var(--heading-copy);
  --footer-heading-line: var(--heading-line);
  --footer-body-font: var(--body-copy);
  --footer-body-line: var(--body-copy-line);
  --footer-pad: var(--site-rem);
  --footer-gap: var(--site-rem);
  --footer-title-gap: var(--body-copy-line);
  --footer-min-height: calc(7.8 * var(--site-rem));
}

@font-face {
  font-family: "Diatype Variable";
  src: url("fonts/Cargo-DiatypePlusVariable.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

@font-face {
  font-family: "Diatype Variable";
  src: url("fonts/Cargo-DiatypePlusVariable-Italic.woff2") format("woff2");
  font-style: italic;
  font-weight: 100 900;
  font-display: swap;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: "Diatype Variable", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

body {
  opacity: 1;
  padding-bottom: 112px;
  font-size: var(--body-copy);
  line-height: var(--body-copy-line);
  font-weight: 500;
}

body:has(.project-page) {
  padding-bottom: 0;
}

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

.site-header {
  position: relative;
  z-index: 20;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--header-gap);
  align-items: center;
  min-height: calc(5.4 * var(--site-rem));
  padding: var(--header-pad-y) var(--header-pad-x);
  color: rgba(255, 255, 255, .75);
  background: #2d2d2d;
  border-bottom: 1px solid rgba(80, 80, 80, .75);
  box-shadow: 0 clamp(2.0736px, .18vw, 2.592px) clamp(62.208px, 5.4vw, 77.76px) clamp(1.0368px, .09vw, 1.296px) #000;
}

.brand,
.header-work,
.header-contact {
  color: rgba(255, 255, 255, .75);
  font-size: var(--header-font);
  line-height: var(--header-line);
  font-weight: 650;
}

.brand {
  display: flex;
  align-items: baseline;
  min-width: 0;
  white-space: nowrap;
}

.brand-separator {
  margin: 0 .06em 0 .22em;
  color: rgba(255, 255, 255, .55);
}

.header-work {
  justify-self: center;
}

.header-contact {
  justify-self: end;
}

.mobile-menu-toggle {
  display: none;
}

.site-header a:hover,
.site-footer a:hover {
  color: var(--text);
}

main {
  width: min(1680px, 100%);
  margin: 0 auto;
  padding: 12.96px;
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12.96px;
}

.work-card {
  position: relative;
  display: block;
  grid-column: span 2;
  overflow: hidden;
  background: transparent;
}

.work-card:nth-child(1),
.work-card:nth-child(2) {
  grid-column: span 3;
}

.work-card img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 11;
  object-fit: cover;
}

.work-card span {
  display: block;
  padding: calc(.5 * var(--site-rem)) 0 0;
  background: transparent;
  color: rgba(255, 255, 255, .85);
  font-size: var(--body-copy);
  line-height: var(--body-copy-line);
  font-weight: 500;
}

.work-divider {
  height: 1px;
  margin: 7.776px 0;
  border: 0;
  background: rgba(255, 255, 255, .75);
}

.image-river {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12.96px;
  margin-top: 0;
}

.home-slideshow {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: transparent;
  transition: aspect-ratio 360ms ease;
}

.home-slide-track {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 520ms cubic-bezier(.45, 0, .2, 1);
}

.image-river .media-tile {
  flex: 0 0 100%;
  height: 100%;
  margin: 0;
  border: 0;
  background: transparent;
}

.media-tile {
  break-inside: avoid;
  margin: 0 0 16px;
  background: #1b1b1b;
  border: 1px solid var(--line);
}

.media-tile img {
  display: block;
  width: 100%;
  height: auto;
}

.image-river .media-tile img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.image-river .media-tile figcaption {
  display: none;
}

.slide-arrow {
  position: absolute;
  top: 0;
  bottom: 0;
  z-index: 2;
  width: 28%;
  padding: 0;
  border: 0;
  color: rgba(255, 255, 255, .88);
  background: transparent;
  cursor: pointer;
  font-family: "Diatype Variable", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 64px;
  line-height: 1;
  font-weight: 300;
  opacity: 0;
  transition: opacity 160ms ease, background-color 160ms ease;
}

.home-slideshow:hover .slide-arrow,
.slide-arrow:focus-visible {
  opacity: .86;
}

.slide-arrow:hover {
  opacity: 1;
  background: transparent;
}

.slide-arrow-previous {
  left: 0;
  text-align: left;
  padding-left: 16px;
}

.slide-arrow-next {
  right: 0;
  text-align: right;
  padding-right: 16px;
}

.project-media {
  columns: 3 320px;
  column-gap: 16px;
  margin-top: 16px;
}

.media-tile figcaption {
  padding: 9px 10px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.project-page {
  width: min(84vw, 1360px);
  max-width: none;
}

.project-bottom-nav {
  display: flex;
  justify-content: flex-end;
  margin: 36.288px 0 0;
  padding: 6.2208px 0 0;
  border-top: 1px solid rgba(128, 128, 128, .95);
  color: rgba(255, 255, 255, .85);
  font-size: 12.4416px;
  line-height: 14.9299px;
  font-weight: 500;
}

.project-bottom-nav a:hover {
  color: var(--text);
}

.miage-page,
.cargo-project-page {
  padding: 10.368px 0 13px;
  color: rgba(255, 255, 255, .85);
  font-size: 12.4416px;
  line-height: 14.9299px;
  font-weight: 500;
}

.miage-page > section,
.miage-page > div,
.miage-page > hr,
.miage-page > nav {
  pointer-events: none;
}

.miage-page h1,
.miage-page p,
.miage-page a,
.miage-page img,
.miage-page iframe {
  pointer-events: auto;
}

.miage-title-row,
.miage-meta,
.project-title-row,
.project-meta {
  display: grid;
  gap: 10.368px;
  color: rgba(255, 255, 255, .85);
  font: inherit;
}

.miage-title-row,
.project-title-row {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 14.9299px;
}

.miage-title-row p,
.project-title-row p {
  text-align: right;
  color: rgba(255, 255, 255, .4);
}

.miage-title-row h1,
.miage-title-row p,
.miage-meta p,
.project-title-row h1,
.project-title-row p,
.project-meta p {
  position: relative;
  z-index: 1;
  margin: 0;
  font: inherit;
}

.text-icon-link {
  display: inline;
}

.text-icon-arrow {
  display: inline-block;
  position: relative;
  width: 1.2em;
  height: 1.2em;
  margin-top: -1em;
  margin-bottom: -.25em;
  vertical-align: baseline;
}

.text-icon-arrow svg {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  fill: currentColor;
  pointer-events: none;
}

.miage-hero-video,
.project-hero-video {
  margin: 0 0 14.9299px;
  border: 0;
  background: #000;
}

.miage-meta,
.project-meta {
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  margin-bottom: 29.8598px;
}

.project-meta a {
  color: inherit;
}

.miage-stills-grid,
.project-stills-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10.368px;
}

.miage-still,
.miage-photo,
.project-still,
.project-columnized-item {
  margin: 0;
  border: 0;
  background: transparent;
}

.miage-still img,
.project-still img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.miage-still figcaption,
.miage-photo figcaption,
.project-still figcaption,
.project-columnized-item figcaption {
  display: none;
}

.project-divider {
  height: 1px;
  margin: 36.288px 0 6.2208px;
  border: 0;
  background: rgba(128, 128, 128, .95);
}

.project-section-label {
  margin: 0 0 14.9299px;
  color: rgba(255, 255, 255, .85);
  font-size: 12.4416px;
  line-height: 14.9299px;
  font-weight: 500;
}

.miage-photo-grid {
  position: relative;
  width: 100%;
  aspect-ratio: 962.765625 / 930.078125;
}

.miage-photo {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: 100%;
  width: var(--w);
  height: var(--h);
}

.miage-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-columnized-grid {
  columns: 3 260px;
  column-gap: 10.368px;
}

.project-columnized-item {
  break-inside: avoid;
  margin-bottom: 10.368px;
}

.project-columnized-item img {
  display: block;
  width: 100%;
  height: auto;
}

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

.walkingpad-column {
  display: flex;
  flex-direction: column;
  gap: 10.368px;
}

.walkingpad-column .project-columnized-item {
  margin-bottom: 0;
}

.narrative-layout {
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: 10.368px;
  align-items: start;
}

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

.narrative-gallery-column {
  display: flex;
  flex-direction: column;
  gap: 10.368px;
}

.narrative-gallery .project-columnized-item {
  margin-bottom: 0;
}

.narrative-copy {
  margin: 0;
  white-space: pre-wrap;
  color: rgba(255, 255, 255, .85);
  font: inherit;
}

.project-intro {
  display: grid;
  grid-template-columns: minmax(220px, 380px) 1fr;
  gap: 12px 36px;
  margin-bottom: 28px;
}

.project-intro h1 {
  grid-row: span 8;
  margin: 0;
  font-size: clamp(30px, 4vw, 54px);
  line-height: 1.02;
  font-weight: 500;
}

.project-intro p {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
}

.video-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  margin: 0 0 18px;
  background: #111;
  border: 1px solid var(--line);
}

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

.project-page .video-frame {
  border: 0;
  background: #000;
}

.contact-page {
  min-height: 70vh;
  display: grid;
  place-items: center;
}

.contact-panel {
  width: min(760px, 100%);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 40px 0;
}

.contact-panel h1 {
  margin: 0 0 24px;
  font-size: 44px;
  font-weight: 500;
}

.contact-panel p {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 18px;
}

.contact-panel a {
  color: var(--text);
  border-bottom: 1px solid var(--accent);
}

.contact-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 24px;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transition: opacity 140ms ease, visibility 0s linear 140ms;
}

.contact-modal.is-open {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
  transition-delay: 0s;
}

.contact-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .52);
}

.contact-modal-panel {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  width: min(532px, calc(100vw - 48px));
  height: min(74vh, 760px);
  min-height: 480px;
  color: rgba(255, 255, 255, .82);
  background: #202020;
  border: 1px solid rgba(255, 255, 255, .12);
  box-shadow: 10px 10px 0 rgba(118, 118, 118, .82), 0 20px 60px rgba(0, 0, 0, .52);
}

.contact-modal-panel h2 {
  margin: 0;
  padding: 13px 48px 13px;
  border-bottom: 1px solid rgba(255, 255, 255, .12);
  text-align: center;
  font-size: 18px;
  line-height: 1.2;
  font-weight: 700;
}

.contact-modal-close {
  position: absolute;
  top: 11px;
  right: 12px;
  width: 25px;
  height: 25px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: #202020;
  background: rgba(255, 255, 255, .66);
  font: inherit;
  font-size: 24px;
  line-height: 22px;
  cursor: pointer;
}

.contact-modal-form {
  display: flex;
  flex: 1;
  min-height: 0;
  flex-direction: column;
}

.contact-field {
  display: block;
  position: relative;
  margin: 0;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
}

.contact-field span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.contact-field input,
.contact-field textarea {
  display: block;
  width: 100%;
  border: 0;
  border-radius: 0;
  color: rgba(255, 255, 255, .86);
  background: transparent;
  font: inherit;
  font-size: 16px;
  line-height: 20px;
  outline: 0;
}

.contact-field input {
  height: 47px;
  padding: 12px 10px;
}

.contact-message-field {
  flex: 1;
  min-height: 0;
  border-bottom: 0;
}

.contact-field textarea {
  height: 100%;
  resize: none;
  padding: 12px 10px;
}

.contact-field input::placeholder,
.contact-field textarea::placeholder {
  color: rgba(255, 255, 255, .46);
  opacity: 1;
}

.contact-form-error {
  min-height: 20px;
  margin: 0;
  padding: 0 10px;
  color: rgba(255, 213, 124, .9);
  font-size: 13px;
  line-height: 20px;
}

.contact-modal-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 10px 0 26px;
  margin: 0 10px;
  border-top: 1px solid rgba(255, 255, 255, .1);
}

.contact-modal-button {
  height: 32px;
  border: 0;
  border-radius: 18px;
  font: inherit;
  font-size: 16px;
  line-height: 1;
  font-weight: 650;
  cursor: pointer;
}

.contact-modal-cancel {
  color: rgba(255, 255, 255, .72);
  background: rgba(255, 255, 255, .16);
}

.contact-modal-send {
  color: #333;
  background: rgba(255, 255, 255, .88);
}

.site-footer {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 40;
  display: grid;
  grid-template-columns: 4fr 3fr 3fr 2fr;
  gap: var(--footer-gap);
  min-height: var(--footer-min-height);
  padding: var(--footer-pad);
  color: var(--text);
  background: #000;
  border-top: 1px solid rgba(80, 80, 80, .75);
  box-shadow: 0 -2.6px 78px 0 #000;
  font-size: var(--footer-body-font);
  line-height: var(--footer-body-line);
  font-weight: 500;
}

.site-footer h2 {
  margin: 0 0 var(--footer-title-gap);
  color: rgba(255, 255, 255, .75);
  font-size: var(--footer-heading-font);
  line-height: var(--footer-heading-line);
  font-weight: 700;
}

.site-footer p,
.footer-body {
  margin: 0;
  color: rgba(255, 255, 255, .85);
  font-size: var(--footer-body-font);
  line-height: var(--footer-body-line);
  font-weight: 500;
}

.site-footer a {
  border-bottom: 0;
}

.footer-body b {
  font-weight: 700;
}

.footer-arrow {
  display: inline-block;
  width: .9em;
  margin-right: .15em;
  font-weight: 500;
}

.site-footer .footer-year {
  text-align: right;
}

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 70;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease, visibility 0s linear 180ms;
}

.mobile-menu.is-open {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
  transition-delay: 0s;
}

.mobile-menu-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .72);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.mobile-menu-panel {
  position: relative;
  z-index: 1;
  display: flex;
  min-height: 100%;
  flex-direction: column;
  align-items: flex-start;
  overflow-y: auto;
  padding: 168px 58px 38px;
  color: rgba(255, 255, 255, .86);
}

.mobile-menu-close {
  position: fixed;
  top: 42px;
  right: 48px;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 0;
  color: rgba(255, 255, 255, .9);
  background: transparent;
  font: inherit;
  font-size: 56px;
  line-height: 34px;
  font-weight: 250;
  cursor: pointer;
}

.mobile-menu-work,
.mobile-menu-panel section {
  display: block;
  margin: 0 0 34px;
}

.mobile-menu-work span,
.mobile-menu-panel h2,
.mobile-menu-year {
  margin: 0;
  color: rgba(255, 255, 255, .88);
  font-size: clamp(54px, 9.1vw, 82px);
  line-height: .95;
  font-weight: 420;
  white-space: nowrap;
}

.mobile-menu-work small,
.mobile-menu-panel p {
  display: block;
  margin: 8px 0 0 58px;
  color: rgba(255, 255, 255, .82);
  font-size: clamp(24px, 4.1vw, 38px);
  line-height: 1.16;
  font-weight: 560;
}

.mobile-menu-panel a:hover {
  color: #fff;
}

.mobile-menu-year {
  margin-top: auto;
  padding-top: 90px;
  font-size: clamp(54px, 8.6vw, 78px);
  font-weight: 380;
}

@media (max-width: 800px) {
  body:has(.mobile-menu) {
    padding-top: 65px;
    padding-bottom: 0;
  }

  body.mobile-menu-is-open {
    overflow: hidden;
  }

  .site-header:has(.mobile-menu-toggle) {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    grid-template-columns: 2fr 8fr 2fr;
    gap: 0;
    min-height: 65px;
    padding: 14px 14px 13px;
  }

  .site-header:has(.mobile-menu-toggle) .brand {
    grid-column: 2;
    justify-self: center;
    font-size: clamp(18px, 5.2vw, 22px);
    line-height: 1.2;
  }

  .site-header:has(.mobile-menu-toggle) .header-work,
  .site-header:has(.mobile-menu-toggle) .header-contact {
    display: none;
  }

  .site-header:has(.mobile-menu-toggle) .mobile-menu-toggle {
    display: inline-grid;
    grid-template-rows: repeat(3, max-content);
    align-content: center;
    row-gap: .13em;
    grid-column: 3;
    justify-self: center;
    align-self: center;
    width: .92em;
    height: 1em;
    justify-items: center;
    padding: 0;
    border: 0;
    color: rgba(255, 255, 255, .8);
    background: transparent;
    cursor: pointer;
    font-size: clamp(18px, 5.2vw, 22px);
    line-height: 1.2;
  }

  .site-header:has(.mobile-menu-toggle) .mobile-menu-toggle span {
    display: block;
    width: .9em;
    height: .095em;
    background: currentColor;
  }

  main {
    padding: 2px;
  }

  .work-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 10px 3px;
  }

  .work-card {
    min-height: 0;
  }

  .work-card,
  .work-card:nth-child(1),
  .work-card:nth-child(2) {
    grid-column: span 6;
  }

  .work-card:nth-child(3),
  .work-card:nth-child(4),
  .work-card:nth-child(5),
  .work-card:nth-child(6),
  .work-card:nth-child(7),
  .work-card:nth-child(8) {
    grid-column: span 3;
  }

  .work-card span {
    padding-top: 5px;
    font-size: 11px;
    line-height: 12.8px;
  }

  .project-intro {
    display: block;
  }

  .project-intro h1 {
    margin-bottom: 18px;
  }

  .image-river {
    grid-template-columns: 1fr;
  }

  .project-media {
    columns: 1;
  }

  .media-tile figcaption {
    font-size: 10px;
  }

  .slide-arrow {
    font-size: 50px;
    opacity: .72;
  }

  .site-footer {
    position: static;
    grid-template-columns: 1fr;
    min-height: 0;
    padding: 18px;
    font-size: 14px;
  }

  .site-footer .footer-year {
    text-align: left;
  }

  .contact-modal {
    padding: 18px;
  }

  .contact-modal-panel {
    width: calc(100vw - 36px);
    height: min(78vh, 620px);
    min-height: 380px;
    box-shadow: 6px 6px 0 rgba(118, 118, 118, .82), 0 18px 48px rgba(0, 0, 0, .54);
  }

  .contact-modal-panel h2 {
    font-size: 17px;
  }

  .contact-field span,
  .contact-field input,
  .contact-field textarea,
  .contact-modal-button {
    font-size: 15px;
  }
}

@media (max-width: 460px) {
  .mobile-menu-panel {
    padding: 122px 34px 34px;
  }

  .mobile-menu-close {
    top: 32px;
    right: 36px;
  }

  .mobile-menu-work,
  .mobile-menu-panel section {
    margin-bottom: 26px;
  }

  .mobile-menu-work span,
  .mobile-menu-panel h2 {
    font-size: clamp(38px, 9.4vw, 42px);
    font-weight: 390;
  }

  .mobile-menu-work small,
  .mobile-menu-panel p {
    margin-left: 34px;
    font-size: clamp(18px, 4.7vw, 21px);
    font-weight: 540;
  }

  .mobile-menu-year {
    font-size: clamp(38px, 9.2vw, 42px);
  }
}
