:root {
  --bg: #e9e9e1;
  --ink: #111111;
  --button: #cfff24;
  --desktop-width: 1920;
  --desktop-height: 1080;
  --mobile-width: 1080;
  --mobile-height: 1920;
  --stage-scale: 1;
  --stage-left: 0px;
  --stage-top: 0px;
  --safe-area-top: env(safe-area-inset-top, 0px);
  --safe-area-right: env(safe-area-inset-right, 0px);
  --safe-area-bottom: env(safe-area-inset-bottom, 0px);
  --safe-area-left: env(safe-area-inset-left, 0px);
  --transition: 600ms ease;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
  min-height: 100%;
  margin: 0;
  background: var(--bg);
  overflow-x: hidden;
}

body {
  color: var(--ink);
  font-family: Montserrat, Arial, Helvetica, sans-serif;
  overflow-x: hidden;
  overflow-y: hidden;
}

.landing {
  display: grid;
  width: 100%;
  height: 100svh;
  height: 100lvh;
  height: 100dvh;
  overflow-x: hidden;
  overflow-y: hidden;
  background: var(--bg);
  isolation: isolate;
}

.stage {
  position: fixed;
  left: var(--stage-left);
  top: var(--stage-top);
  display: grid;
  grid-template-columns: 998px 922px;
  width: 1920px;
  height: 1080px;
  overflow: hidden;
  background: var(--bg);
  contain: layout paint;
  transform: translateZ(0) scale(var(--stage-scale));
  transform-origin: left top;
  will-change: transform;
}

.content-zone {
  position: relative;
  z-index: 5;
  grid-column: 1;
  grid-row: 1;
  pointer-events: none;
}

.brand {
  position: absolute;
  left: 113px;
  top: 86px;
  display: block;
  width: 338px;
  height: 79px;
  pointer-events: auto;
}

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

h1 {
  position: absolute;
  left: 113px;
  top: 349px;
  width: 762px;
  height: 228px;
  margin: 0;
  color: var(--ink);
  font-size: 127px;
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: 0;
  text-transform: uppercase;
}

.description {
  position: absolute;
  left: 114px;
  top: 630px;
  width: 379px;
  height: 136px;
  margin: 0;
  color: var(--ink);
  font-size: 22px;
  font-weight: 300;
  line-height: 1.24;
  letter-spacing: 0;
}

.description strong {
  font-weight: 700;
}

.portfolio-btn {
  position: absolute;
  left: 113px;
  top: 928px;
  z-index: 6;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 238px;
  height: 66px;
  border-radius: 8px 40px 8px 8px;
  background: var(--button);
  color: #1d1e1a;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.12);
  font-size: 16px;
  font-weight: 700;
  line-height: 0.96;
  letter-spacing: 0;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  pointer-events: auto;
}

.portfolio-btn:focus-visible {
  outline: 3px solid rgba(207, 255, 36, 0.82);
  outline-offset: 4px;
}

.visual-zone {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

.artwork-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  clip-path: inset(0 0 0 900px);
  transform: translateX(18px) scale(0.992);
  transform-origin: 1327px 620px;
  transition:
    opacity var(--transition),
    transform var(--transition);
}

.artwork-slide.is-active {
  opacity: 1;
  transform: translateX(0) scale(1);
}

.slide-videography {
  clip-path: inset(0 0 0 875px);
  width: 2000px;
}

.artwork-slide picture,
.artwork-slide img {
  display: block;
  width: 1920px;
  height: 1080px;
}

.artwork-slide img {
  object-fit: fill;
}

@media (min-width: 768px) and (max-width: 1023px) {
  .stage {
    grid-template-columns: 998px 922px;
    width: 1920px;
    height: 1080px;
  }
}

@media (max-width: 767px) {
  .stage {
    grid-template-columns: 1fr;
    width: 1080px;
    height: 1920px;
    /* let the lifted logo/text paint above the artboard on tall screens */
    overflow: visible;
    contain: layout;
  }

  .content-zone {
    position: relative;
    z-index: 5;
    width: 1080px;
    height: 1920px;
    overflow: visible;
    clip: auto;
    clip-path: none;
    white-space: normal;
  }

  .brand,
  h1,
  .description {
    transform: translateY(var(--content-lift, 0px));
  }

  .brand {
    left: 90px;
    top: 86px;
    width: 340px;
    height: 80px;
  }

  .brand img {
    width: 340px;
    height: 80px;
  }

  h1 {
    left: 96px;
    top: 340px;
    width: 870px;
    height: 254px;
    font-size: 128px;
    line-height: 1.02;
  }

  .description {
    left: 97px;
    top: 651px;
    width: 600px;
    height: 170px;
    font-size: 28px;
    line-height: 1.16;
  }

  .portfolio-btn {
    left: 96px;
    top: 1726px;
    width: 284px;
    height: 78px;
    font-size: 24px;
    line-height: 0.98;
  }

  .visual-zone,
  .artwork-slide {
    inset: 0;
  }

  .artwork-slide {
    clip-path: inset(890px 0 0 0);
    transform: none;
    transform-origin: 540px 1320px;
  }

  .artwork-slide.is-active {
    transform: none;
  }

  .artwork-slide picture,
  .artwork-slide img {
    width: 1080px;
    height: 1920px;
  }
}

@media (max-height: 600px) and (orientation: landscape) {
  .stage {
    grid-template-columns: 998px 922px;
    width: 1920px;
    height: 1080px;
  }

  .content-zone {
    position: relative;
    z-index: 5;
    grid-column: 1;
    grid-row: 1;
    width: auto;
    height: auto;
    overflow: visible;
    clip: auto;
    clip-path: none;
    white-space: normal;
  }

  .brand {
    left: 113px;
    top: 86px;
    width: 338px;
    height: 79px;
  }

  .brand img {
    width: 338px;
    height: 79px;
  }

  h1 {
    left: 113px;
    top: 349px;
    width: 762px;
    height: 228px;
    font-size: 127px;
    line-height: 1.04;
  }

  .description {
    left: 114px;
    top: 630px;
    width: 379px;
    height: 136px;
    font-size: 22px;
    line-height: 1.24;
  }

  .portfolio-btn {
    display: inline-flex;
  }

  .visual-zone,
  .artwork-slide {
    inset: 0;
  }

  .artwork-slide {
    clip-path: inset(0 0 0 900px);
    transform: translateX(18px) scale(0.992);
    transform-origin: 1327px 620px;
  }

  .artwork-slide.is-active {
    transform: translateX(0) scale(1);
  }

  .slide-videography {
    clip-path: inset(0 0 0 875px);
    width: 2000px;
  }

  .artwork-slide picture,
  .artwork-slide img {
    width: 1920px;
    height: 1080px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .artwork-slide {
    transition: none;
    transform: none;
  }

  .artwork-slide.is-active {
    transform: none;
  }
}
