/* Crystal Forge Group — dark Karavan landing v4.5
   true-center contact; mobile full-bleed (no left black band) */

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

html, body {
  height: 100%;
  background: #050505;
  color: #F7F4EF;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  min-height: 100vh;
  min-height: 100dvh;
  overflow: hidden;
}

.stage {
  position: relative;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: hidden;
  background: #050505;
}

.stage__bg {
  position: absolute;
  inset: 0;
  background: url("../assets/hero.jpg") center / cover no-repeat;
  transform: scale(1.02);
  transform-origin: center center;
  z-index: 0;
}

.stage__scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 60% 50% at 48% 42%,
      rgba(0, 0, 0, 0.08) 0%,
      rgba(0, 0, 0, 0.28) 55%,
      rgba(0, 0, 0, 0.62) 100%),
    linear-gradient(180deg,
      rgba(0, 0, 0, 0.28) 0%,
      rgba(0, 0, 0, 0.06) 32%,
      rgba(0, 0, 0, 0.10) 55%,
      rgba(0, 0, 0, 0.48) 72%,
      rgba(0, 0, 0, 0.72) 100%);
}

.center {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  text-align: center;
  padding: 0 1.5rem max(5.5vh, 2.4rem);
  width: 100%;
  max-width: 100%;
  gap: 0;
}

.wordmark {
  display: block;
  width: min(52vw, 560px);
  height: auto;
  margin: 0 auto 1.35rem;
  flex-shrink: 0;
  filter: drop-shadow(0 2px 18px rgba(0, 0, 0, 0.45));
  user-select: none;
  -webkit-user-drag: none;
}

/* Full-width row so the link is truly page-centered */
.mailto-row {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.mailto {
  display: inline-block;
  font-family: "Helvetica Neue", Helvetica, Arial, "Segoe UI", system-ui, sans-serif;
  font-weight: 300;
  font-size: clamp(0.58rem, 1.05vw, 0.72rem);
  letter-spacing: 0.28em;
  /* optical balance for trailing letter-spacing */
  padding-left: 0.28em;
  color: rgba(247, 244, 239, 0.78);
  text-decoration: none;
  text-transform: uppercase;
  text-align: center;
  transition: color 0.25s ease;
  white-space: nowrap;
}

.mailto:hover,
.mailto:focus-visible {
  color: rgba(247, 244, 239, 0.98);
  outline: none;
}

@media (max-width: 640px) {
  /* Wider-than-viewport layer + pan — never translateX (that caused the left black band) */
  .stage__bg {
    inset: auto;
    top: 0;
    bottom: 0;
    left: -12%;
    width: 124%;
    background-image: url("../assets/hero.jpg");
    background-size: cover;
    background-position: 58% center;
    background-repeat: no-repeat;
    transform: none;
  }
  .center {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
    padding-bottom: max(7vh, 2.8rem);
  }
  .wordmark {
    width: min(78vw, 340px);
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 1.2rem;
  }
  .mailto {
    font-size: 0.5rem;
    letter-spacing: 0.16em;
    padding-left: 0.16em;
    white-space: nowrap;
  }
}

@media (min-width: 1440px) {
  .wordmark {
    width: min(42vw, 640px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .mailto { transition: none; }
}
