:root {
  --cream: #f4e6c0;
  --coffee: #604a36;
  --black: #302a27;
  --header-height: 76px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
}

body {
  min-height: 100vh;
  font-family: "Geist", sans-serif;
  color: var(--black);
  background: var(--cream);
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
  width: 100%;
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 18px 24px;
  background: transparent;
  box-shadow: none;
  transition:
    background-color 0.25s ease,
    box-shadow 0.25s ease;
}

.site-header.scrolled {
  background: var(--cream);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  height: 100%;
  min-width: 0;
}

.header-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  flex-shrink: 0;
}

.header-logo {
  display: block;
  width: clamp(90px, 15vw, 170px);
  aspect-ratio: 170 / 60;
  background-color: var(--cream);
  -webkit-mask: url("logos/emkari_cream.png") center / contain no-repeat;
  mask: url("logos/emkari_cream.png") center / contain no-repeat;
  transition: background-color 0.25s ease;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 36px;
  margin-left: auto;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.header-nav a {
  position: relative;
  color: var(--cream);
  text-decoration: none;
  font-size: clamp(1.1rem, 1.25vw, 1.25rem);
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: color 0.25s ease, opacity 0.2s ease;
  white-space: nowrap;
}

.header-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 100%;
  height: 1px;
  background-color: currentColor;
  opacity: 0;
  transform: scaleX(0);
  transform-origin: left center;
  transition:
    transform 0.22s ease,
    opacity 0.22s ease;
}

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

.site-header.scrolled .header-logo {
  background-color: var(--coffee);
}

.site-header.scrolled .header-nav a {
  color: var(--coffee);
}

.page {
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding-top: 0;
}

.hero {
  position: relative;
  width: 100%;
  min-height: 100svh;
  height: 100vh;
  overflow: hidden;
  flex-shrink: 0;
}

.bg-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: right center;
  pointer-events: none;
}

.overlay {
  position: absolute;
  inset: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 40px 24px;
  text-align: center;
}

.logo {
  width: clamp(300px, 30vw, 550px);
  max-width: 100%;
  max-height: 75%;
  height: auto;
  display: block;
  margin: 0;
  opacity: 0;
  animation: fadeInLogo 1.4s ease forwards;
}

.tagline {
  margin: 18px 0 0;
  text-align: center;
  color: var(--cream);
  line-height: 1.05;
  opacity: 0;
  transform: translateY(12px);
  animation: slideUpText 0.9s ease forwards;
  animation-delay: 0.35s;
}

.tagline-top {
  display: block;
  font-family: "Geist", sans-serif;
  font-size: clamp(1rem, 1vw, 1.25rem);
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.tagline-bottom {
  display: block;
  margin-top: 0.15em;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(1.2rem, 1.8vw, 1.7rem);
  font-style: italic;
  font-weight: 500;
}

.coming-soon-wrap {
  flex: 1;
  min-height: 380px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 72px 24px;
  background: var(--cream);
  text-align: center;
  overflow: hidden;
}

.coming-frame {
  position: relative;
  display: inline-block;
}

.coming-lockup {
  margin: 0;
  color: var(--coffee);
  font-family: "BBH Bartle", serif;
  font-size: clamp(3rem, 8vw, 7rem);
  font-weight: 400;
  line-height: 0.82;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(24px);
  animation: slideUpText 0.9s ease forwards;
  animation-delay: 0.9s;
}

.coming-lockup span {
  display: block;
}

.coming-lockup span + span {
  margin-top: 0.06em;
}

.spinning-star {
  position: absolute;
  top: 50%;
  width: clamp(52px, 5vw, 96px);
  height: auto;
  display: block;
  transform-origin: center;
  animation: spinStar 6s linear infinite;
}

.star-left {
  left: clamp(-110px, -8vw, -72px);
}

.star-right {
  right: clamp(-110px, -8vw, -72px);
}

@keyframes spinStar {
  from {
    transform: translateY(-50%) rotate(0deg);
  }
  to {
    transform: translateY(-50%) rotate(360deg);
  }
}

@keyframes fadeInLogo {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideUpText {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Tablet */
@media (max-width: 900px) {
  :root {
    --header-height: 72px;
  }

  .site-header {
    padding: 12px 16px;
  }

  .header-logo {
    width: min(112px, 26vw);
  }

  .header-nav {
    gap: 14px;
  }

  .header-nav a {
    font-size: 0.92rem;
  }

  .logo {
    width: min(70vw, 400px);
    max-height: 58%;
  }

  .tagline-top {
    font-size: 0.9rem;
    letter-spacing: 0.1em;
  }

  .tagline-bottom {
    font-size: 1.25rem;
  }

  .coming-soon-wrap {
    min-height: 280px;
    padding: 52px 18px;
  }

  .coming-lockup {
    font-size: clamp(2.2rem, 9vw, 4.2rem);
    line-height: 0.9;
  }

  .spinning-star {
    width: clamp(34px, 4.5vw, 52px);
  }

  .star-left {
    left: -44px;
  }

  .star-right {
    right: -44px;
  }
}

/* Phones */
@media (max-width: 600px) {
  :root {
    --header-height: 52px;
  }

  .site-header {
    padding: 8px 12px;
  }

  .header-inner {
    gap: 10px;
    align-items: center;
  }

  .header-logo {
    width: 84px;
  }

  .header-nav {
    gap: 10px;
    flex-wrap: nowrap;
  }

  .header-nav a {
    font-size: 0.82rem;
    letter-spacing: 0.01em;
  }

  .hero {
    min-height: 100svh;
    height: 100svh;
  }

  .hero-content {
    padding: 36px 16px 24px;
  }

  .logo {
    width: min(78vw, 300px);
    max-height: 46%;
  }

  .tagline {
    margin-top: 12px;
  }

  .tagline-top {
    font-size: 0.74rem;
    letter-spacing: 0.08em;
  }

  .tagline-bottom {
    font-size: 0.98rem;
  }

  .coming-soon-wrap {
    min-height: 180px;
    padding: 36px 16px;
    overflow: hidden;
  }

  .coming-lockup {
    font-size: clamp(1.4rem, 9vw, 2.2rem);
    line-height: 0.96;
  }

  .coming-lockup span + span {
    margin-top: 0.09em;
  }

  /* Stars scale with the text, not the viewport */
  .spinning-star {
    width: clamp(28px, 6vw, 44px);
  }

  .star-left {
    left: clamp(-40px, -7vw, -28px);
  }

  .star-right {
    right: clamp(-40px, -7vw, -28px);
  }
}

/* Very small phones */
@media (max-width: 380px) {
  :root {
    --header-height: 48px;
  }

  .site-header {
    padding: 6px 10px;
  }

  .header-logo {
    width: 76px;
  }

  .header-nav {
    gap: 8px;
  }

  .header-nav a {
    font-size: 0.76rem;
  }

  .logo {
    width: min(80vw, 270px);
  }

  .coming-lockup {
    font-size: clamp(1.3rem, 9vw, 1.9rem);
  }

  .spinning-star {
    width: clamp(22px, 5.5vw, 34px);
  }

  .star-left {
    left: clamp(-32px, -6vw, -22px);
  }

  .star-right {
    right: clamp(-32px, -6vw, -22px);
  }
}