@font-face {
  font-family: "IBMPlexSansCondensedExtraLight";
  src: url("IBMPlexSans_Condensed-ExtraLight.ttf") format("truetype");
  font-weight: 200;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --white: #f4f4f1;
  --muted: rgba(244, 244, 241, 0.7);
  --black: #050505;
}

* {
  box-sizing: border-box;
}

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

body {
  background: var(--black);
  color: var(--white);
  font-family: "IBMPlexSansCondensedExtraLight", "Arial Narrow", Arial, sans-serif;
  letter-spacing: 0;
  overflow: hidden;
}

button,
input {
  font: inherit;
}

.site-shell,
.access-screen,
.inside-screen {
  min-height: 100vh;
}

.access-screen {
  position: relative;
  display: grid;
  place-items: center;
  padding: 24px;
  isolation: isolate;
  overflow: hidden;
}

.video-layer,
.fallback-layer,
.tone-layer,
.scanlines {
  position: absolute;
  inset: 0;
  z-index: -4;
}

.video-layer {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.55) brightness(0.42) blur(0.4px);
  opacity: 0.78;
}

.fallback-layer {
  z-index: -5;
  background:
    radial-gradient(circle at 50% 43%, rgba(244, 244, 241, 0.11), transparent 22%),
    linear-gradient(90deg, rgba(244, 244, 241, 0.05) 1px, transparent 1px),
    linear-gradient(0deg, rgba(244, 244, 241, 0.035) 1px, transparent 1px),
    #060606;
  background-size: auto, 42px 42px, 42px 42px, auto;
}

.tone-layer {
  z-index: -3;
  background:
    radial-gradient(ellipse at center, transparent 0 24%, rgba(0, 0, 0, 0.5) 58%, #030303 100%),
    rgba(0, 0, 0, 0.28);
}

.scanlines {
  z-index: -2;
  opacity: 0.26;
  background:
    repeating-linear-gradient(
      0deg,
      rgba(255, 255, 255, 0.1) 0,
      rgba(255, 255, 255, 0.1) 1px,
      transparent 1px,
      transparent 5px
    );
  mix-blend-mode: screen;
  pointer-events: none;
}

.access-panel {
  width: min(94vw, 760px);
  display: grid;
  justify-items: center;
  gap: 22px;
  text-align: center;
  transform: translateY(2vh);
}

.access-logo {
  width: clamp(320px, 46vw, 620px);
  max-height: 58vh;
  object-fit: contain;
  filter: grayscale(1) brightness(1.9) contrast(1.1);
  opacity: 0.95;
}

.access-input {
  width: min(100%, 300px);
  height: 44px;
  border: 0;
  border-bottom: 1px solid rgba(244, 244, 241, 0.46);
  border-radius: 0;
  outline: 0;
  background: rgba(0, 0, 0, 0.22);
  color: var(--white);
  text-align: center;
  font-size: clamp(22px, 3vw, 34px);
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.access-input::placeholder {
  color: rgba(244, 244, 241, 0.82);
  opacity: 1;
}

.access-input:focus {
  border-color: rgba(244, 244, 241, 0.9);
  box-shadow: 0 12px 26px rgba(255, 255, 255, 0.05);
}

.access-actions {
  display: flex;
  justify-content: center;
}

.access-button {
  width: 48px;
  height: 48px;
  border: 1px solid rgba(244, 244, 241, 0.22);
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.16);
  color: rgba(244, 244, 241, 0.92);
  cursor: pointer;
  display: grid;
  place-items: center;
  font-size: 27px;
  line-height: 1;
  padding: 0 0 3px;
}

.access-button:hover,
.access-button:focus-visible {
  border-color: rgba(244, 244, 241, 0.75);
  background: rgba(244, 244, 241, 0.08);
}

.instagram-link {
  position: absolute;
  left: 50%;
  bottom: clamp(26px, 5vh, 54px);
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  color: rgba(244, 244, 241, 0.86);
  transform: translateX(-50%);
  transition: color 180ms ease, opacity 180ms ease, transform 180ms ease;
}

.instagram-link:hover,
.instagram-link:focus-visible {
  color: var(--white);
  opacity: 1;
  transform: translateX(-50%) translateY(-2px);
}

.instagram-link svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.inside-screen {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  gap: 12px;
  align-content: center;
  padding: 24px;
  background: #030303;
  opacity: 0;
  visibility: hidden;
  transform: scale(1.02);
  transition: opacity 520ms ease, transform 520ms ease, visibility 520ms ease;
}

.inside-mark {
  color: rgba(244, 244, 241, 0.62);
  font-size: 12px;
  letter-spacing: 0.54em;
  text-indent: 0.54em;
}

.inside-screen h1 {
  margin: 0;
  font-size: clamp(48px, 13vw, 140px);
  font-weight: 200;
  letter-spacing: 0.18em;
  text-indent: 0.18em;
}

.is-inside .access-screen {
  opacity: 0;
  pointer-events: none;
  transition: opacity 420ms ease;
}

.is-inside .inside-screen {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 640px) {
  .access-panel {
    transform: none;
    gap: 18px;
  }

  .access-logo {
    width: min(88vw, 430px);
    max-height: 44vh;
  }

  .access-input {
    font-size: 24px;
    letter-spacing: 0.16em;
  }
}
