@font-face {
  font-family: "Onest";
  font-style: normal;
  font-weight: 300 400;
  font-display: swap;
  src: url("/assets/fonts/onest-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: "Onest";
  font-style: normal;
  font-weight: 300 400;
  font-display: swap;
  src: url("/assets/fonts/onest-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215,
    U+FEFF, U+FFFD;
}

:root {
  color-scheme: light;
  --ink: #11110f;
  --paper: #d8ccb9;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --page-edge: clamp(1.5rem, 4.5vw, 5.5rem);
}

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

html {
  min-width: 320px;
  background: var(--paper);
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  overflow: hidden;
  background: var(--paper);
  color: var(--ink);
  font-family: "Onest", "Helvetica Neue", sans-serif;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

.hero {
  position: relative;
  isolation: isolate;
  width: 100%;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
  background: var(--paper);
}

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

.hero__media {
  z-index: 0;
  display: block;
  opacity: 1;
  animation: image-reveal 1800ms var(--ease-out) both;
}

.hero__media img {
  display: block;
  object-fit: cover;
  object-position: 50% 50%;
}

.hero__statement {
  position: absolute;
  z-index: 1;
  top: clamp(2.25rem, 7.5vh, 6.75rem);
  left: var(--page-edge);
  width: min(37rem, 40vw);
  margin: 0;
  color: var(--ink);
  font-size: clamp(2.65rem, 4.35vw, 5.35rem);
  font-weight: 300;
  letter-spacing: -0.062em;
  line-height: 0.96;
  text-wrap: balance;
  opacity: 1;
  transform: translateY(0);
  animation: statement-reveal 1000ms var(--ease-out) 520ms both;
}

.hero__statement span {
  display: block;
}

.hero__footer {
  position: absolute;
  z-index: 1;
  bottom: max(1.25rem, env(safe-area-inset-bottom));
  left: 38vw;
  margin: 0;
  color: rgba(17, 17, 15, 0.66);
  font-size: 0.625rem;
  font-weight: 400;
  letter-spacing: 0.16em;
  line-height: 1;
  text-transform: uppercase;
  opacity: 1;
  animation: footer-reveal 700ms var(--ease-out) 1050ms both;
}

.hero__footer small {
  font: inherit;
}

@keyframes image-reveal {
  from {
    opacity: 0;
  }
}

@keyframes statement-reveal {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
}

@keyframes footer-reveal {
  from {
    opacity: 0;
  }
}

@media (max-width: 820px) and (orientation: portrait), (max-aspect-ratio: 4/5) {
  :root {
    --page-edge: clamp(1.35rem, 7vw, 3rem);
  }

  .hero__media img {
    object-position: 50% 50%;
  }

  .hero__statement {
    top: max(3.25rem, calc(env(safe-area-inset-top) + 2rem));
    width: min(84vw, 31rem);
    font-size: clamp(2.55rem, 11.5vw, 4.7rem);
    letter-spacing: -0.066em;
    line-height: 0.94;
  }

  .hero__footer {
    right: var(--page-edge);
    bottom: max(1.5rem, calc(env(safe-area-inset-bottom) + 1rem));
    left: auto;
    color: rgba(17, 17, 15, 0.56);
    font-size: 0.58rem;
  }
}

@media (max-width: 380px) {
  .hero__statement {
    top: max(2.6rem, calc(env(safe-area-inset-top) + 1.5rem));
    font-size: clamp(2.25rem, 11.2vw, 2.75rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero__media {
    animation-duration: 220ms;
  }

  .hero__statement {
    transform: none;
    animation-name: footer-reveal;
    animation-duration: 220ms;
    animation-delay: 80ms;
  }

  .hero__footer {
    animation-duration: 180ms;
    animation-delay: 160ms;
  }
}
