:root {
  --ink-950: #0a0e14;
  --grid-line: #26313d;
  --redline: #c4472b;
  --paper-white: #e7e9ec;
  --font-display: "Space Grotesk", ui-sans-serif, system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  color-scheme: dark;
}

body {
  margin: 0;
  min-height: 100dvh;
  background: var(--ink-950);
  color: var(--paper-white);
  font-family: var(--font-display);
  -webkit-font-smoothing: antialiased;
}

.sheet {
  position: relative;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 2rem;
  overflow: hidden;
  isolation: isolate;
}

.sheet::before {
  content: "";
  position: absolute;
  inset: -10%;
  background-image: repeating-linear-gradient(
      30deg,
      rgba(154, 171, 187, 0.06) 0 1px,
      transparent 1px 72px
    ),
    repeating-linear-gradient(
      150deg,
      rgba(154, 171, 187, 0.06) 0 1px,
      transparent 1px 72px
    ),
    repeating-linear-gradient(
      90deg,
      rgba(154, 171, 187, 0.04) 0 1px,
      transparent 1px 72px
    );
  -webkit-mask-image: radial-gradient(
    ellipse 55% 55% at 50% 50%,
    transparent 0%,
    black 55%,
    black 80%,
    transparent 100%
  );
  mask-image: radial-gradient(
    ellipse 55% 55% at 50% 50%,
    transparent 0%,
    black 55%,
    black 80%,
    transparent 100%
  );
  pointer-events: none;
  z-index: 0;
  opacity: 0;
  animation: grid-fade 900ms ease-out forwards;
}

.crop {
  position: absolute;
  width: 18px;
  height: 18px;
  border-color: var(--grid-line);
  z-index: 1;
}

.crop--tl {
  top: 20px;
  left: 20px;
  border-top: 1px solid;
  border-left: 1px solid;
}

.crop--tr {
  top: 20px;
  right: 20px;
  border-top: 1px solid;
  border-right: 1px solid;
}

.crop--bl {
  bottom: 20px;
  left: 20px;
  border-bottom: 1px solid;
  border-left: 1px solid;
}

.crop--br {
  bottom: 20px;
  right: 20px;
  border-bottom: 1px solid;
  border-right: 1px solid;
}

.mark {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.mark__logo-wrap {
  position: relative;
  width: clamp(140px, 22vw, 220px);
  aspect-ratio: 1;
  overflow: hidden;
  margin-bottom: 1.75rem;
}

.mark__logo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.mark__shutter {
  position: absolute;
  inset: -20% -60%;
  background: var(--ink-950);
  transform: skewX(-30deg) translateX(0%);
  animation: shutter-lift 900ms 300ms cubic-bezier(0.65, 0, 0.35, 1) forwards;
}

.mark__word {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1rem, 0.85rem + 1vw, 1.5rem);
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--paper-white);
  opacity: 0;
  transform: translateY(8px);
  animation: fade-up 600ms 1100ms cubic-bezier(0.2, 0.7, 0.3, 1) forwards;
}

@media (max-width: 420px) {
  .mark__word {
    letter-spacing: 0.16em;
    white-space: normal;
  }
}

@keyframes grid-fade {
  to {
    opacity: 1;
  }
}

@keyframes shutter-lift {
  to {
    transform: skewX(-30deg) translateX(160%);
  }
}

@keyframes fade-up {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

:focus-visible {
  outline: 1px solid var(--redline);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  .sheet::before,
  .mark__word {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }

  .mark__shutter {
    display: none;
  }
}
