*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --ink: #050505;
  --lockup: clamp(12.5rem, 40vmin, 30rem);
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-left: env(safe-area-inset-left, 0px);
  --safe-right: env(safe-area-inset-right, 0px);
}

html {
  height: 100%;
  background: var(--ink);
  color: #fff;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  min-height: 100%;
  min-height: 100dvh;
  width: 100%;
  overflow: hidden;
  background: var(--ink);
  font-family: "Cormorant Garamond", "Times New Roman", Times, serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.stage {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: var(--ink);
  pointer-events: none;
}

.bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.bg__parallax {
  position: absolute;
  inset: 0;
  transform: translate3d(var(--mx, 0px), var(--my, 0px), 0);
  will-change: transform;
}

.bg__motion {
  position: absolute;
  /* Extra bleed so scale/pan never shows edges */
  inset: -3.5%;
  will-change: transform;
  transform: translate3d(0, 0, 0) scale(1);
  animation: bg-drift 22s ease-in-out infinite alternate;
}

.bg__image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Keep central peaks + dark foreground framing like the reference */
  object-position: center 46%;
  user-select: none;
  -webkit-user-drag: none;
}

@keyframes bg-drift {
  from {
    transform: translate3d(0%, 0%, 0) scale(1);
  }
  to {
    transform: translate3d(-0.55%, -0.35%, 0) scale(1.03);
  }
}

@media (prefers-reduced-motion: reduce) {
  .bg__motion {
    animation: none;
  }

  .bg__parallax {
    transform: none;
    will-change: auto;
  }
}

/* Moderate local darkening behind branding only — not a full-image crush */
.bg__focus {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse 44% 40% at 50% 48%,
    rgba(0, 0, 0, 0.42) 0%,
    rgba(0, 0, 0, 0.22) 38%,
    rgba(0, 0, 0, 0.06) 62%,
    transparent 78%
  );
  pointer-events: none;
}

/* Preserve near-black lower foreground; leave sky relatively open */
.bg__veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      to top,
      rgba(0, 0, 0, 0.35) 0%,
      rgba(0, 0, 0, 0.08) 22%,
      transparent 42%
    ),
    radial-gradient(
      ellipse 85% 70% at 50% 55%,
      transparent 45%,
      rgba(0, 0, 0, 0.12) 100%
    );
  pointer-events: none;
}

.brand {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: calc(var(--lockup) * 0.045);
  width: 100%;
  min-height: 100dvh;
  min-height: 100vh;
  padding:
    calc(1rem + var(--safe-top))
    calc(0.75rem + var(--safe-right))
    calc(1rem + var(--safe-bottom))
    calc(0.75rem + var(--safe-left));
  text-align: center;
}

.brand__mark {
  display: block;
  width: var(--lockup);
  max-width: min(78vw, 30rem);
  height: auto;
  aspect-ratio: 1892 / 1504;
  object-fit: contain;
  filter:
    drop-shadow(0 1px 1px rgba(0, 0, 0, 0.85))
    drop-shadow(0 3px 10px rgba(0, 0, 0, 0.55));
  user-select: none;
  -webkit-user-drag: none;
}

.brand__wordmark {
  color: #ffffff;
  font-weight: 700;
  font-size: calc(var(--lockup) * 0.1);
  letter-spacing: 0.48em;
  line-height: 1;
  text-indent: 0.48em;
  text-transform: uppercase;
  text-shadow:
    0 1px 1px rgba(0, 0, 0, 0.85),
    0 2px 8px rgba(0, 0, 0, 0.5);
  white-space: nowrap;
}

@media (max-width: 600px) {
  :root {
    --lockup: clamp(11.5rem, 62vw, 17rem);
  }

  .brand__wordmark {
    font-size: calc(var(--lockup) * 0.115);
    letter-spacing: 0.4em;
    text-indent: 0.4em;
  }
}

@media (min-width: 1600px) {
  :root {
    --lockup: clamp(18rem, 38vmin, 32rem);
  }
}
