@font-face {
  font-family: "JetBrains Mono";
  src: url("../font/JetBrainsMono-VariableFont_wght.ttf") format("truetype");
  font-weight: 100 800;
  font-style: normal;
  font-display: block;
}

:root {
  color: #ffffff;
  background: #000000;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
}

.landing-v2-page {
  background: #000000;
  color: #ffffff;
  font-family: "forma-djr-micro", Arial, sans-serif;
}

.landing-v2-contact {
  position: fixed;
  z-index: 7;
  bottom: max(24px, env(safe-area-inset-bottom));
  left: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  color: #fff;
  background: rgb(0 0 0 / 20%);
  backdrop-filter: blur(24px);
  font: 500 12px/18px "JetBrains Mono", monospace;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 140ms ease;
}

.landing-v2-contact:hover { background: rgb(0 0 0 / 30%); }
.landing-v2-contact:focus-visible { outline: 2px solid #fff; outline-offset: 4px; }

@media (pointer: coarse) {
  .landing-v2-contact { min-height: 44px; }
}

.landing-v2 {
  display: grid;
  grid-template-columns: calc(50% + var(--landing-v2-split-offset, 0px)) minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr);
  width: 100%;
  height: 100vh;
  height: 100svh;
  background: #000000;
  overflow: hidden;
}

@supports (height: 100dvh) {
  .landing-v2 {
    height: 100dvh;
  }
}

.landing-v2-panel {
  position: relative;
  display: block;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  isolation: isolate;
  color: inherit;
  background: #050505;
  text-decoration: none;
}

.landing-v2-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  display: block;
  pointer-events: none;
}

.landing-v2-panel::after {
  z-index: 3;
  inset: -2px;
  background-color: rgba(0, 0, 0, 0.01);
  transform: translateZ(0);
  backface-visibility: hidden;
  transition: background-color 460ms cubic-bezier(0.22, 0.61, 0.36, 1);
}

.landing-v2-panel:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: -6px;
  z-index: 3;
}

.landing-v2-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: block;
}

.landing-v2-media-visual {
  position: absolute;
  inset: 0;
  display: block;
  overflow: hidden;
  background-color: #050505;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  transform-origin: center;
  transform: translateZ(0) scale(1);
  transition: transform 460ms cubic-bezier(0.22, 0.61, 0.36, 1);
  will-change: transform;
}


.landing-v2-video,
.landing-v2-photo {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  user-select: none;
  -webkit-user-select: none;
}

.landing-v2-video {
  opacity: 1;
  pointer-events: none;
}

.landing-v2-video.is-media-fallback {
  visibility: hidden;
}

.landing-v2-photo.is-media-fallback {
  visibility: hidden;
}

.landing-loader {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(320px, calc(100% - 48px));
  transform: translate(-50%, -50%);
  color: #fff;
}

.landing-loader__command {
  position: relative;
  height: 18px;
  margin-bottom: 18px;
  font-family: "JetBrains Mono", monospace;
  font-size: clamp(10px, 3vw, 12px);
  font-weight: 400;
  font-style: normal;
  font-variant-ligatures: none;
  line-height: 18px;
  white-space: pre;
  text-transform: uppercase;
}

.landing-loader__line {
  position: absolute;
  inset: 0;
}

.landing-loader__character {
  display: inline-block;
  width: 1ch;
  opacity: 0;
}

.landing-loader__track {
  height: 2px;
  overflow: hidden;
  background: #454545;
}

.landing-loader__progress {
  width: 100%;
  height: 100%;
  background: #fff;
  transform: scaleX(0);
  transform-origin: left center;
}

.is-reduced-motion .landing-v2-video {
  opacity: 0;
}

@supports (-moz-appearance: none) {
  .landing-v2-video {
    opacity: 0.999;
  }

  .landing-v2-panel--video .landing-v2-video {
    /* Keep Firefox's video in a filtered surface during hover transforms.
       A non-identity value avoids eliminating the filter; the gain is 0.01%. */
    filter: brightness(1.0001);
  }
}

.landing-v2-photo {
  z-index: 0;
  opacity: 0;
  transition: opacity 520ms ease;
}

.landing-v2-photo.is-active {
  z-index: 1;
  opacity: 1;
}

.landing-v2-caption {
  position: absolute;
  top: 50%;
  right: max(clamp(24px, 2.1vw, 54px), env(safe-area-inset-right));
  left: max(clamp(24px, 2.1vw, 54px), env(safe-area-inset-left));
  z-index: 2;
  display: grid;
  gap: 2px;
  transform: translateY(-50%);
  text-align: left;
  pointer-events: none;
}

.landing-v2-panel--photography .landing-v2-caption {
  text-align: right;
}

.landing-v2-title {
  display: block;
  margin: 0;
  color: #ffffff;
  font-family: "Special Gothic", sans-serif;
  font-optical-sizing: auto;
  font-size: clamp(24px, 2.7vw, 34.5px);
  font-weight: 600;
  font-style: normal;
  font-variation-settings: "wdth" 100;
  line-height: 1.1;
  letter-spacing: 0;
}

.landing-v2-subtitle {
  display: block;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.25;
}

.landing-v2:has(.landing-v2-panel:focus-visible)
  .landing-v2-panel:not(:focus-visible)::after {
  background-color: rgba(0, 0, 0, 0.6);
}

.landing-v2-panel:focus-visible .landing-v2-media-visual {
  transform: translateZ(0) scale(1.04);
}

@media (hover: hover) and (pointer: fine) {
  .landing-v2:not(:has(.landing-v2-panel:focus-visible)):has(
      .landing-v2-panel:hover
    )
    .landing-v2-panel:not(:hover)::after {
    background-color: rgba(0, 0, 0, 0.6);
  }

  .landing-v2:not(:has(.landing-v2-panel:focus-visible))
    .landing-v2-panel:hover
    .landing-v2-media-visual {
    transform: translateZ(0) scale(1.04);
  }
}

@media (max-aspect-ratio: 1 / 1) {
  .landing-v2 {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: repeat(2, minmax(0, 1fr));
  }

  .landing-v2-caption {
    right: max(24px, env(safe-area-inset-right));
    left: max(24px, env(safe-area-inset-left));
    transform: none;
  }

  .landing-v2-panel--video .landing-v2-caption {
    top: auto;
    bottom: 24px;
  }

  .landing-v2-panel--photography .landing-v2-caption {
    top: 24px;
  }

  .landing-v2-title {
    font-size: clamp(24px, 4.35vw, 34.5px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .landing-v2-contact,
  .landing-v2-panel,
  .landing-v2-panel::after,
  .landing-v2-media-visual,
  .landing-v2-photo {
    transition: none;
  }

  .landing-v2-panel:hover .landing-v2-media-visual,
  .landing-v2-panel:focus-visible .landing-v2-media-visual {
    transform: translateZ(0) scale(1);
  }
}
