@font-face {
  font-family: "Geist";
  src: url("assets/geist-latin.woff2") format("woff2");
  font-display: swap;
  font-style: normal;
  font-weight: 100 900;
}

:root {
  color-scheme: dark;
  --base: #111216;
  --ink: #f5ecdf;
  --muted: #d8cdc0;
  --stone: #dcc49e;
  --green: #b8d0bd;
  --product-mark-size: 0.83em;
  --footer-offset: 24svh;
  --footer-offset-mobile: 23svh;
  --footer-offset-short: 16svh;
  --font: "Geist", -apple-system, BlinkMacSystemFont, "SF Pro Display", sans-serif;
}

* { box-sizing: border-box; }

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
  background: var(--base);
}

body {
  color: var(--ink);
  font-family: var(--font);
  text-rendering: optimizeLegibility;
}

.teaser {
  position: relative;
  display: grid;
  width: 100%;
  height: 100vh;
  height: 100svh;
  place-items: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 20% 8%, rgba(119, 79, 94, 0.45), transparent 30%),
    radial-gradient(circle at 84% 88%, rgba(67, 76, 132, 0.45), transparent 34%),
    linear-gradient(145deg, #111216, #24252b 50%, #121319);
}

.studio-signature {
  position: absolute;
  top: max(1.5rem, env(safe-area-inset-top));
  left: max(1.4rem, env(safe-area-inset-left));
  z-index: 5;
  display: block;
  color: var(--stone);
  text-decoration: none;
  transition: opacity 160ms ease;
  animation: settle-in 800ms 320ms both cubic-bezier(0.22, 1, 0.36, 1);
}

.studio-signature:hover { opacity: 0.76; }

.studio-signature:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 0.45rem;
}

.studio-signature__lockup {
  display: block;
  width: clamp(9.5rem, 12vw, 11.5rem);
  aspect-ratio: 1600 / 191;
  background: currentColor;
  -webkit-mask: url("assets/qatnap-lockup.png") center / contain no-repeat;
  mask: url("assets/qatnap-lockup.png") center / contain no-repeat;
}

.hero-copy {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: max-content;
  max-width: calc(100vw - 2.5rem);
  padding: 5rem 1rem 7rem;
}

.product-lockup {
  display: flex;
  align-items: center;
  gap: 0.18em;
  font-size: clamp(4rem, 10vw, 9rem);
  animation: settle-in 900ms 100ms both cubic-bezier(0.22, 1, 0.36, 1);
}

.product-mark {
  width: var(--product-mark-size);
  height: var(--product-mark-size);
  flex: 0 0 auto;
  border-radius: 0.75rem;
  box-shadow: 0 0 2rem rgba(240, 215, 183, 0.12);
}

h1 {
  margin: 0;
  color: var(--stone);
  font-size: 0.68em;
  font-weight: 680;
  line-height: 0.92;
  letter-spacing: -0.045em;
  text-shadow: 0 1px 1.4rem rgba(12, 9, 8, 0.2);
}

.message {
  display: grid;
  gap: 0.12rem;
  margin-top: clamp(2rem, 4.5vw, 3.25rem);
  color: var(--muted);
  font-size: clamp(1rem, 1.65vw, 1.28rem);
  font-weight: 470;
  line-height: 1.45;
  letter-spacing: -0.012em;
  text-align: left;
  text-shadow: 0 1px 1rem rgba(12, 9, 8, 0.32);
  animation: settle-in 900ms 240ms both cubic-bezier(0.22, 1, 0.36, 1);
}

.message p { margin: 0; }

.message p:first-child {
  color: var(--ink);
  font-weight: 560;
}

.message .arrival {
  margin-top: 1.15rem;
  color: var(--green);
  font-weight: 560;
}

footer {
  position: absolute;
  right: 1.5rem;
  bottom: max(clamp(8rem, var(--footer-offset), 13rem), env(safe-area-inset-bottom));
  left: 1.5rem;
  z-index: 5;
  color: var(--muted);
  font-size: clamp(0.78rem, 1.1vw, 0.94rem);
  font-weight: 470;
  letter-spacing: -0.01em;
  text-align: center;
  text-shadow: 0 1px 0.7rem rgba(12, 9, 8, 0.4);
  animation: settle-in 900ms 420ms both cubic-bezier(0.22, 1, 0.36, 1);
}

footer a {
  color: var(--stone);
  font-weight: 560;
  text-decoration: none;
  text-underline-offset: 0.18em;
}

footer a:hover { text-decoration: underline; }

footer a:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 0.25rem;
}

@keyframes settle-in {
  from {
    opacity: 0;
    transform: translateY(0.7rem);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 640px) {
  .studio-signature {
    top: max(1.35rem, env(safe-area-inset-top));
    left: max(1.25rem, env(safe-area-inset-left));
  }

  .studio-signature__lockup { width: 8.5rem; }

  .hero-copy {
    width: max-content;
    max-width: calc(100vw - 2.5rem);
    padding: 4.75rem 1.3rem 7rem;
  }

  .product-lockup { font-size: clamp(3rem, 15vw, 4.4rem); }

  h1 {
    line-height: 0.96;
    letter-spacing: -0.05em;
  }

  .message {
    margin-top: 2rem;
    font-size: 1.03rem;
  }

  footer {
    right: 1.25rem;
    bottom: max(clamp(7rem, var(--footer-offset-mobile), 11rem), env(safe-area-inset-bottom));
    left: 1.25rem;
  }
}

@media (max-height: 620px) {
  .product-lockup { font-size: clamp(3rem, 9vw, 6rem); }

  .message {
    margin-top: 1.4rem;
    font-size: 0.95rem;
  }

  .message .arrival { margin-top: 0.7rem; }

  footer {
    bottom: max(clamp(4rem, var(--footer-offset-short), 5.5rem), env(safe-area-inset-bottom));
  }
}

@media (prefers-reduced-motion: reduce) {
  .studio-signature,
  .product-lockup,
  .message,
  footer {
    animation: none;
  }
}
