:root {
  --bg-color: #F4EFE6;
  --text-primary: #757949;
  --text-secondary: #706C65;
  --border-subtle: #D8D2C9;
  --accent-color: #382E25;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  overflow: hidden;
  background-color: var(--bg-color);
  color: var(--text-primary);
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

button,
input,
textarea,
select {
  font: inherit;
}

.launch-scene {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 100vh;
  min-height: 100dvh;
  padding: 4vw;
  isolation: isolate;
}

.bg-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}

.bg-overlay {
  position: absolute;
  inset: 0;
  background-color: var(--bg-color);
  opacity: 0.90;
  /* Pushes video further back, slightly visible */
  z-index: -1;
  pointer-events: none;
}

.stage {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6vh;
  min-height: 60vh;
  width: 100%;
  text-align: center;
  z-index: 1;
}

.brand-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2vh;
  opacity: 0;
  transform: translateY(24px);
  animation: fadeUp 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: 0.2s;
}

.brand-logo {
  width: clamp(260px, 25vw, 500px);
  max-width: 100%;
  max-height: 35vh;
  object-fit: contain;
  height: auto;
  animation: logoBreathe 6s ease-in-out infinite;
  filter: drop-shadow(0 12px 24px rgba(56, 46, 37, 0.25));
}

@keyframes logoBreathe {

  0%,
  100% {
    transform: translateY(0) scale(1);
  }

  50% {
    transform: translateY(-4px) scale(1.02);
  }
}

.brand-title {
  margin: 0;
  color: var(--text-primary);
  font-family: 'Poppins', sans-serif;
  font-size: clamp(5rem, 12vw, 15rem);
  font-weight: 500;
  letter-spacing: 0.38em;
  margin-right: -0.38em;
  line-height: 1;
  text-transform: uppercase;
}

.brand-subtitle {
  margin: 0;
  color: var(--text-secondary);
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: clamp(0.85rem, 1.2vw, 1.8rem);
  font-weight: 300;
  letter-spacing: 0.5em;
  margin-right: -0.5em;
  text-transform: uppercase;
}

.launch-controls {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2vh;
  opacity: 0;
  transform: translateY(24px);
  animation: fadeUp 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: 0.6s;
}

.launch-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: clamp(16px, 1.5vw, 32px) clamp(40px, 4vw, 80px);
  background-color: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
  border-radius: 40px 0 40px 0;
  font-size: clamp(0.85rem, 1.2vw, 1.8rem);
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  outline: none;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

/* Button Hover Fill Effect */
.launch-button::before {
  content: "";
  position: absolute;
  inset: 0;
  background-color: var(--text-primary);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 0;
}

.launch-button:hover::before,
.launch-button:focus-visible::before {
  transform: scaleY(1);
}

.launch-cta {
  position: relative;
  z-index: 1;
  transition: color 0.4s ease;
  margin-right: -0.1em;
}

.launch-button:hover .launch-cta,
.launch-button:focus-visible .launch-cta {
  color: var(--bg-color);
}



.fade-overlay {
  position: absolute;
  inset: 0;
  background-color: var(--bg-color);
  opacity: 0;
  pointer-events: none;
  z-index: 10;
  transition: opacity 1.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.loading-bar {
  width: 0;
  height: 1px;
  background-color: var(--text-primary);
  margin-top: 1vh;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.is-launching .fade-overlay {
  opacity: 1;
}

.is-launching .launch-button {
  pointer-events: none;
  opacity: 0;
  transform: translateY(-10px);
}

.is-launching .loading-bar {
  opacity: 1;
  animation: loadingProgress 1.5s cubic-bezier(0.7, 0, 0.3, 1) forwards;
}

@keyframes loadingProgress {
  0% {
    width: 0px;
  }

  100% {
    width: clamp(160px, 15vw, 300px);
  }
}

.noscript-message {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  margin: 0;
  padding: 14px 16px;
  border-radius: 4px;
  background: var(--text-primary);
  color: var(--bg-color);
  text-align: center;
  z-index: 20;
  font-size: 0.85rem;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }

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