:root {
  --black: #020607;
  --px: 0px;
  --py: 0px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
}

html {
  background: var(--black);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  overflow: hidden;
  color: #f8f1df;
  background: var(--black);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}

img {
  display: block;
  max-width: 100%;
}

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

.identity {
  position: relative;
  isolation: isolate;
  width: 100%;
  height: 100dvh;
  min-height: 100svh;
  overflow: hidden;
  background: var(--black);
}

.identity__wallpaper {
  position: absolute;
  inset: -5vh -5vw;
  z-index: -6;
  width: 110vw;
  height: 110vh;
  max-width: none;
  object-fit: cover;
  object-position: center;
  transform: translate3d(calc(var(--px) * -0.42), calc(var(--py) * -0.34), 0) scale(1.035);
  filter: none;
  transition: transform 900ms cubic-bezier(0.16, 1, 0.3, 1);
  animation: oceanDrift 28s ease-in-out infinite;
}

.identity__grain {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 5;
  opacity: 0.095;
  mix-blend-mode: soft-light;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='grain'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.82' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23grain)' opacity='0.72'/%3E%3C/svg%3E");
  background-size: 180px 180px;
  animation: grainShift 900ms steps(2) infinite;
}

.identity__mark {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  padding: clamp(1.25rem, 4vw, 4rem);
  opacity: 0;
  transform: translate3d(calc(var(--px) * 0.22), calc(var(--py) * 0.16 + 16px), 0) scale(0.985);
  animation: markReveal 1400ms cubic-bezier(0.16, 1, 0.3, 1) 180ms forwards;
}

.identity__logo {
  width: clamp(28rem, 74vw, 76rem);
  max-width: none;
  max-height: min(48rem, 74dvh);
  object-fit: contain;
  filter:
    drop-shadow(0 18px 22px rgba(0, 0, 0, 0.54))
    drop-shadow(0 4px 8px rgba(0, 0, 0, 0.42));
  transition: transform 450ms ease;
  user-select: none;
}

.identity:focus-within .identity__logo,
.identity__mark:hover .identity__logo {
  transform: translateY(-2px) scale(1.006);
}

@keyframes markReveal {
  to {
    opacity: 1;
    transform: translate3d(calc(var(--px) * 0.22), calc(var(--py) * 0.16), 0) scale(1);
  }
}

@keyframes oceanDrift {
  0%,
  100% {
    object-position: 50% 50%;
  }

  50% {
    object-position: 52% 49%;
  }
}

@keyframes grainShift {
  0% {
    transform: translate(0, 0);
  }

  100% {
    transform: translate(-4%, 3%);
  }
}

@media (max-width: 760px) {
  .identity__wallpaper {
    inset: -5vh -24vw;
    width: 148vw;
    height: 110vh;
    object-position: 60% center;
    filter: none;
  }

  .identity__logo {
    width: min(138vw, 42rem);
    max-height: min(62dvh, 34rem);
    transform: translate(-1.25%, 3.75%);
  }

  .identity__mark {
    padding: 0.75rem;
    transform: translate3d(calc(var(--px) * 0.14), calc(var(--py) * 0.11 + 12px), 0) scale(0.985);
  }

  .identity:focus-within .identity__logo,
  .identity__mark:hover .identity__logo {
    transform: translate(-1.25%, calc(3.75% - 2px)) scale(1.006);
  }
}

@media (max-width: 420px) {
  .identity__logo {
    width: 132vw;
    max-height: 58dvh;
    transform: translate(-1.25%, 4.5%);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 1ms !important;
  }

  .identity__wallpaper,
  .identity__mark {
    transform: none;
  }

  .identity__mark {
    opacity: 1;
  }
}
