:root {
  color-scheme: dark;
  font-family:
    "Helvetica Neue", "Avenir Next", Avenir, "Segoe UI", Arial, sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  --ivory: #f7f5ed;
  --muted-ivory: rgba(247, 245, 237, 0.79);
}

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

html,
body {
  width: 100%;
  min-height: 100%;
  margin: 0;
  background: #182019;
}

body {
  min-width: 18rem;
  overflow: hidden;
}

.page {
  position: relative;
  display: grid;
  width: 100%;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
  isolation: isolate;
  place-items: center;
}

.landscape,
.landscape img,
.atmosphere {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.landscape {
  z-index: -3;
  overflow: hidden;
  background: #7d8a75;
}

.landscape img {
  object-fit: cover;
  object-position: 54% center;
  filter: saturate(0.9) contrast(0.98) brightness(0.94);
  animation: settle 2.4s cubic-bezier(0.22, 1, 0.36, 1) both;
  transform: scale(1.018);
}

.atmosphere {
  z-index: -2;
  background:
    radial-gradient(
      ellipse 47% 38% at 50% 48%,
      rgba(10, 18, 14, 0.43) 0%,
      rgba(10, 18, 14, 0.3) 42%,
      rgba(10, 18, 14, 0) 100%
    ),
    linear-gradient(
      180deg,
      rgba(12, 21, 18, 0.2) 0%,
      rgba(12, 21, 18, 0.05) 48%,
      rgba(5, 12, 7, 0.28) 100%
    );
}

.atmosphere::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(4, 9, 6, 0.12),
    transparent 24%,
    transparent 76%,
    rgba(4, 9, 6, 0.1)
  );
  content: "";
}

.identity {
  display: flex;
  min-width: 0;
  width: min(92vw, 70rem);
  padding:
    max(2rem, env(safe-area-inset-top))
    max(1.5rem, env(safe-area-inset-right))
    max(2rem, env(safe-area-inset-bottom))
    max(1.5rem, env(safe-area-inset-left));
  color: var(--ivory);
  text-align: center;
  text-shadow: 0 0.125rem 2rem rgba(0, 0, 0, 0.34);
  animation: arrive 1.4s 0.14s cubic-bezier(0.22, 1, 0.36, 1) both;
  align-items: center;
  flex-direction: column;
  transform: translateY(-1.5vh);
}

h1 {
  max-width: 100%;
  margin: 0;
  font-size: clamp(4.25rem, 10.5vw, 9.25rem);
  font-weight: 300;
  letter-spacing: -0.072em;
  line-height: 0.9;
  white-space: nowrap;
}

h1 span {
  color: rgba(247, 245, 237, 0.72);
  font-weight: 200;
}

.rule {
  width: clamp(2.75rem, 5vw, 4rem);
  height: 1px;
  margin: clamp(1.5rem, 3.1vh, 2.25rem) 0 clamp(1.25rem, 2.5vh, 1.8rem);
  background: rgba(247, 245, 237, 0.62);
  transform-origin: center;
  animation: reveal-rule 1.2s 0.5s cubic-bezier(0.22, 1, 0.36, 1) both;
}

p {
  margin: 0;
  color: var(--muted-ivory);
  font-size: clamp(0.72rem, 1.25vw, 0.9rem);
  font-weight: 450;
  letter-spacing: 0.2em;
  line-height: 1.5;
}

a {
  position: relative;
  margin-top: clamp(1rem, 2.1vh, 1.4rem);
  color: rgba(247, 245, 237, 0.92);
  font-size: clamp(0.78rem, 1.15vw, 0.88rem);
  font-weight: 400;
  letter-spacing: 0.095em;
  line-height: 1.5;
  text-decoration: none;
}

a::after {
  position: absolute;
  right: 0;
  bottom: -0.28rem;
  left: 0;
  height: 1px;
  background: currentColor;
  content: "";
  opacity: 0.56;
  transform: scaleX(0.18);
  transition:
    opacity 260ms ease,
    transform 420ms cubic-bezier(0.22, 1, 0.36, 1);
}

a:hover::after,
a:focus-visible::after {
  opacity: 0.92;
  transform: scaleX(1);
}

a:focus-visible {
  border-radius: 0.2rem;
  outline: 2px solid rgba(247, 245, 237, 0.86);
  outline-offset: 0.55rem;
}

@keyframes settle {
  from {
    opacity: 0.65;
    transform: scale(1.045);
  }

  to {
    opacity: 1;
    transform: scale(1.018);
  }
}

@keyframes arrive {
  from {
    opacity: 0;
    transform: translateY(calc(-1.5vh + 0.75rem));
  }

  to {
    opacity: 1;
    transform: translateY(-1.5vh);
  }
}

@keyframes reveal-rule {
  from {
    opacity: 0;
    transform: scaleX(0);
  }

  to {
    opacity: 1;
    transform: scaleX(1);
  }
}

@media (max-width: 42rem) {
  .landscape img {
    object-position: 76% center;
  }

  .atmosphere {
    background:
      radial-gradient(
        ellipse 82% 34% at 50% 47%,
        rgba(10, 18, 14, 0.46) 0%,
        rgba(10, 18, 14, 0.29) 48%,
        rgba(10, 18, 14, 0) 100%
      ),
      linear-gradient(
        180deg,
        rgba(12, 21, 18, 0.2) 0%,
        rgba(12, 21, 18, 0.06) 48%,
        rgba(5, 12, 7, 0.31) 100%
      );
  }

  .identity {
    width: 100%;
  }

  h1 {
    font-size: clamp(3.25rem, 16.5vw, 5.5rem);
    letter-spacing: -0.064em;
  }

  p {
    letter-spacing: 0.145em;
  }
}

@media (max-height: 34rem) and (orientation: landscape) {
  .identity {
    transform: none;
  }

  h1 {
    font-size: clamp(3.25rem, 14vh, 5rem);
  }

  .rule {
    margin: 0.85rem 0;
  }

  a {
    margin-top: 0.65rem;
  }
}

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