/* ============================================================
   Michael Quinn Productions — Coming Soon
   Cinematic theatrical landing page
   ============================================================ */

:root {
  --black: #000000;
  --white: #ffffff;
  --muted: rgba(255, 255, 255, 0.62);
  --gold: #d4af37;
  --champagne: #f4e2c7;
  --ease-cinematic: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --font: "Montserrat", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

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

html,
body {
  margin: 0;
  padding: 0;
  height: 100%;
  background: var(--black);
}

body {
  font-family: var(--font);
  color: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow: hidden;
}

/* ------------------------------------------------------------
   Stage: full-viewport container
   ------------------------------------------------------------ */
.stage {
  position: relative;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  min-height: 480px;
  overflow: hidden;
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

/* ------------------------------------------------------------
   Backdrop: the supplied stage photograph.
   Begins nearly black; the house lights come up between
   0.4s and 1.8s via opacity + a whisper of brightness.
   ------------------------------------------------------------ */
.backdrop {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.backdrop-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 28%;
  opacity: 0;
  filter: brightness(0.6);
  animation:
    house-lights 1.4s var(--ease-cinematic) 0.4s forwards,
    light-breathing 11s ease-in-out 3.2s infinite;
  will-change: opacity, filter;
}

/* Soft vignette: lets the stage glow carry the centre while the
   edges fall away into the dark of the auditorium. */
.backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse 90% 75% at 50% 34%,
    transparent 42%,
    rgba(0, 0, 0, 0.28) 76%,
    rgba(0, 0, 0, 0.55) 100%
  );
}

@keyframes house-lights {
  from {
    opacity: 0;
    filter: brightness(0.6);
  }
  to {
    opacity: 1;
    filter: brightness(1);
  }
}

/* Ambient: almost imperceptible luminosity variation —
   a theatre holding its breath before the curtain. */
@keyframes light-breathing {
  0%, 100% {
    filter: brightness(1);
  }
  50% {
    filter: brightness(1.045);
  }
}

/* ------------------------------------------------------------
   Composition: logo, tagline, links
   ------------------------------------------------------------ */
.composition {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 24px;
  padding-top: max(21vh, calc(21dvh + env(safe-area-inset-top, 0px)));
  width: 100%;
}

/* Logo — fades in 1.0s → 2.1s: opacity, gentle rise,
   and a near-invisible settle from 0.97 to 1. */
.logo {
  display: block;
  width: clamp(250px, 26vw, 420px);
  height: auto;
  opacity: 0;
  transform: translateY(12px) scale(0.97);
  animation: logo-reveal 1.1s var(--ease-cinematic) 1s forwards;
  will-change: opacity, transform;
  /* Quieten the bright haze immediately behind the mark. */
  filter:
    drop-shadow(0 2px 10px rgba(0, 0, 0, 0.6))
    drop-shadow(0 0 46px rgba(0, 0, 0, 0.48));
}
}

@keyframes logo-reveal {
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Tagline — restrained reveal 1.8s → 2.6s. */
.tagline {
  margin: clamp(28px, 4.5vh, 44px) 0 0;
  font-size: 0.82rem;
  font-weight: 300;
  letter-spacing: 0.32em;
  text-indent: 0.32em; /* optically recentres tracked text */
  text-transform: uppercase;
  color: var(--champagne);
  opacity: 0;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.65);
  animation: tagline-reveal 0.8s var(--ease-cinematic) 1.8s forwards;
  will-change: opacity;
}

@keyframes tagline-reveal {
  from {
    opacity: 0;
    letter-spacing: 0.42em;
    text-indent: 0.42em;
  }
  to {
    opacity: 1;
    letter-spacing: 0.32em;
    text-indent: 0.32em;
  }
}

/* Links — appear 2.2s → 2.9s. */
.links {
  display: flex;
  align-items: center;
  gap: 1.6rem;
  margin-top: clamp(20px, 3vh, 32px);
  opacity: 0;
  animation: links-reveal 0.7s var(--ease-cinematic) 2.2s forwards;
}

@keyframes links-reveal {
  to {
    opacity: 1;
  }
}

.link {
  position: relative;
  display: inline-block;
  padding: 12px 2px; /* generous touch target */
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.24em;
  text-indent: 0.24em;
  text-transform: uppercase;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.78);
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.6);
  transition: color 300ms var(--ease-cinematic);
}

/* Fine gold rule that draws itself on hover. */
.link::after {
  content: "";
  position: absolute;
  left: 0.12em;
  right: 0.12em;
  bottom: 7px;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 320ms var(--ease-cinematic);
}

.link:hover,
.link:focus-visible {
  color: var(--gold);
}

.link:hover::after,
.link:focus-visible::after {
  transform: scaleX(1);
}

.link:focus-visible {
  outline: 1px solid var(--gold);
  outline-offset: 6px;
}

.link-divider {
  width: 1px;
  height: 12px;
  background: rgba(255, 255, 255, 0.22);
}

/* ------------------------------------------------------------
   Responsive composition
   ------------------------------------------------------------ */
@media (max-width: 700px) {
  .backdrop-img {
    object-position: center 26%;
  }

  .composition {
    padding-top: max(17vh, calc(17dvh + env(safe-area-inset-top, 0px)));
  }

  .logo {
    width: clamp(240px, 68vw, 330px);
  }

  .tagline {
    font-size: 0.72rem;
    letter-spacing: 0.28em;
    text-indent: 0.28em;
  }

  .link {
    font-size: 0.68rem;
    padding: 14px 2px;
  }
}

@media (max-height: 520px) and (orientation: landscape) {
  .composition {
    padding-top: max(12vh, calc(12dvh + env(safe-area-inset-top, 0px)));
  }

  .logo {
    width: clamp(200px, 22vw, 300px);
  }

  .tagline {
    margin-top: 20px;
  }

  .links {
    margin-top: 14px;
  }
}

/* ------------------------------------------------------------
   Reduced motion: a quiet crossfade, nothing more.
   ------------------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
  .backdrop-img,
  .logo,
  .tagline,
  .links {
    animation: none;
    opacity: 1;
    transform: none;
    filter: none;
    letter-spacing: inherit;
  }

  .tagline {
    letter-spacing: 0.32em;
    text-indent: 0.32em;
  }

  .link,
  .link::after {
    transition-duration: 0.01ms;
  }
}
