:root {
  color-scheme: dark;
  --ink: #101813;
  --ink-soft: #18231c;
  --parchment: #ede8dc;
  --parchment-muted: #c7c0b2;
  --brass: #aa9060;
  --hairline: rgba(218, 204, 172, 0.35);
  --parallax-y: 15vh;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: var(--ink);
}

body {
  min-width: 320px;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior-y: auto;
  color: var(--parchment);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  -webkit-font-smoothing: antialiased;
  -webkit-overflow-scrolling: touch;
}

.hero {
  position: relative;
  min-height: 160vh;
  min-height: 160svh;
  isolation: isolate;
  overflow: clip;
}

.hero__picture,
.hero__wash {
  position: fixed;
  width: 100%;
}

.hero__picture {
  top: -15vh;
  left: 0;
  z-index: 0;
  display: block;
  height: 130vh;
  height: 130svh;
  transform: translate3d(0, var(--parallax-y), 0);
  will-change: transform;
}

.hero__landscape {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: 52% center;
}

.hero__wash {
  inset: 0;
  z-index: 1;
  height: 100vh;
  height: 100svh;
  background:
    linear-gradient(90deg, rgba(8, 15, 11, 0.36) 0%, rgba(8, 15, 11, 0.16) 50%, rgba(8, 15, 11, 0.36) 100%),
    linear-gradient(180deg, rgba(8, 13, 10, 0.2) 0%, transparent 42%, rgba(8, 13, 10, 0.66) 100%),
    radial-gradient(circle at 75% 18%, transparent 0%, rgba(8, 13, 10, 0.16) 46%, rgba(8, 13, 10, 0.54) 100%);
}

.hero::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  opacity: 0.13;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.34'/%3E%3C/svg%3E");
  mix-blend-mode: soft-light;
}

.announcement-stage {
  position: fixed;
  inset: 0;
  z-index: 3;
  display: grid;
  place-items: center;
  padding: clamp(1.25rem, 5vw, 5rem);
  pointer-events: none;
}

.announcement {
  width: min(100%, 43rem);
  padding: clamp(1.5rem, 4vw, 4rem);
  background: linear-gradient(135deg, #101813 0%, #16211a 100%);
  border: 1px solid var(--hairline);
  box-shadow:
    0 2rem 6rem rgba(3, 8, 5, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.scroll-cue {
  position: fixed;
  right: clamp(1.15rem, 2.5vw, 2.5rem);
  bottom: max(1.25rem, env(safe-area-inset-bottom));
  z-index: 4;
  width: 1px;
  height: 3.25rem;
  overflow: hidden;
  background: rgba(237, 232, 220, 0.2);
  opacity: 0;
  transition: opacity 0.8s ease 1.8s;
}

.scroll-cue span {
  position: absolute;
  top: -45%;
  left: 0;
  width: 100%;
  height: 45%;
  background: var(--brass);
  animation: scroll-pulse 2s cubic-bezier(0.45, 0, 0.55, 1) infinite;
}

.js.ready .scroll-cue {
  opacity: 0.8;
}

.js.scrolled .scroll-cue {
  opacity: 0;
  transition-delay: 0s;
}

@keyframes scroll-pulse {
  0% {
    transform: translateY(0);
  }
  72%,
  100% {
    transform: translateY(7rem);
  }
}

.announcement__header {
  display: grid;
  grid-template-columns: auto minmax(2rem, 1fr);
  align-items: center;
  gap: 1rem;
  margin-bottom: clamp(3.25rem, 7vw, 6.5rem);
  color: var(--parchment-muted);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.monogram {
  color: var(--brass);
  font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
}

.rule {
  width: 100%;
  height: 1px;
  background: var(--hairline);
}

h1 {
  max-width: 12ch;
  margin: 0;
  font-family: "Iowan Old Style", Baskerville, "Times New Roman", serif;
  font-size: clamp(2.75rem, 6.2vw, 6.35rem);
  font-weight: 400;
  letter-spacing: -0.045em;
  line-height: 0.96;
  text-wrap: balance;
}

h1 span,
h1 em {
  display: block;
}

h1 em {
  margin-top: 0.14em;
  color: var(--brass);
  font-weight: 400;
}

.domain {
  margin: clamp(3.5rem, 8vw, 7rem) 0 0;
  color: var(--parchment-muted);
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.js .hero__landscape {
  filter: blur(15px) saturate(0.72) brightness(0.62);
  transform: scale(1.1);
}

.js .hero__wash {
  opacity: 0.96;
}

.js .announcement {
  opacity: 0;
  filter: blur(16px);
  transform: translateY(3.5rem) scale(0.985);
}

.js.ready .hero__landscape {
  filter: blur(0) saturate(0.82) brightness(0.83);
  transform: scale(1.025);
  transition:
    filter 2.5s cubic-bezier(0.22, 1, 0.36, 1),
    transform 3.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.js.ready .hero__wash {
  opacity: 1;
  transition: opacity 2.4s ease;
}

.js.ready .announcement {
  opacity: 1;
  filter: blur(0);
  transform: translateY(0) scale(1);
  transition:
    opacity 1.25s ease 0.34s,
    filter 1.55s cubic-bezier(0.22, 1, 0.36, 1) 0.3s,
    transform 1.55s cubic-bezier(0.22, 1, 0.36, 1) 0.3s;
}

@media (max-width: 720px) {
  .hero {
    min-height: 165vh;
    min-height: 165svh;
  }

  .hero__landscape {
    object-position: 50% center;
  }

  .announcement-stage {
    padding: max(1rem, env(safe-area-inset-top)) 1rem
      max(1rem, env(safe-area-inset-bottom));
  }

  .announcement {
    padding: 1.5rem 1.35rem 1.75rem;
  }

  .scroll-cue {
    right: 0.65rem;
  }

  .announcement__header {
    margin-bottom: 3.5rem;
  }

  h1 {
    max-width: 11ch;
    font-size: clamp(2.55rem, 13vw, 4.5rem);
  }

  .domain {
    margin-top: 3.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero__picture,
  .js .hero__landscape,
  .js .announcement,
  .js.ready .hero__landscape,
  .js.ready .announcement {
    opacity: 1;
    filter: none;
    transform: none;
    transition: none;
  }

  .hero__picture {
    transform: none;
  }

  .scroll-cue span {
    animation: none;
  }
}
