/* ============================================================
   MONOLITH — Coming Soon
   ============================================================ */

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Archivo", "Helvetica Neue", Arial, sans-serif;
  background-color: #fdfdfb;
  color: #111111;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img {
  max-width: 100%;
  display: block;
}

/* ============================================================
   1. HERO
   ============================================================ */

.hero {
  position: relative;
  width: 100%;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
  background-color: #0e0e0e;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero__photo {
  position: absolute;
  inset: 0;
  background-image: url("./hero img.png");
  background-size: cover;
  background-position: center 42%;
  background-repeat: no-repeat;
}

/* Overlay cinematográfico discreto: más denso abajo para SCROLL DOWN */
.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.30) 0%,
    rgba(0, 0, 0, 0.38) 45%,
    rgba(0, 0, 0, 0.52) 100%
  );
}

.hero__content {
  position: relative;
  z-index: 2;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 clamp(1.5rem, 6vw, 4rem);
}

.hero__logo {
  width: min(clamp(280px, 58vw, 760px), 100%);
  height: auto;
}

.hero__coming {
  margin-top: clamp(1.6rem, 3.5vh, 2.6rem);
  font-family: "Archivo Black", "Archivo", "Arial Black", sans-serif;
  font-size: clamp(0.82rem, 0.6rem + 1vw, 1.25rem);
  letter-spacing: 0.48em;
  padding-left: 0.48em; /* compensa el tracking para centrado óptico */
  color: rgba(255, 255, 255, 0.92);
  text-align: center;
}

.hero__scroll {
  position: absolute;
  z-index: 2;
  left: 0;
  width: 100%;
  text-align: center;
  bottom: clamp(1.4rem, 4vh, 2.2rem);
  font-size: 10px;
  letter-spacing: 0.42em;
  padding-left: 0.42em;
  color: rgba(255, 255, 255, 0.68);
  white-space: nowrap;
}

/* ---------- Secuencia de entrada ----------
   El JS añade .js-seq (oculta los elementos) y, cuando la foto del
   hero ya está cargada, añade .is-ready (arranca la secuencia).
   Orden: foto → logo (+0.9s) → COMING SOON (+1.9s) → SCROLL DOWN (+2.9s).
   Sin JS o con prefers-reduced-motion: todo visible, sin animación. */

.js-seq .hero__photo,
.js-seq .hero__logo,
.js-seq .hero__coming,
.js-seq .hero__scroll {
  opacity: 0;
}

.js-seq.is-ready .hero__photo {
  animation: heroFade 1.1s ease-out 0s forwards;
}

.js-seq.is-ready .hero__logo {
  animation: riseFade 1.5s cubic-bezier(0.22, 0.61, 0.36, 1) 0.9s forwards;
}

.js-seq.is-ready .hero__coming {
  animation: riseFade 1.3s cubic-bezier(0.22, 0.61, 0.36, 1) 1.9s forwards;
}

.js-seq.is-ready .hero__scroll {
  animation:
    softFade 1.2s ease-out 2.9s forwards,
    scrollFloat 3.6s ease-in-out 4.4s infinite;
}

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

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

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

/* Flotación sutil de SCROLL DOWN: invita a bajar sin llamar la atención */
@keyframes scrollFloat {
  0%   { transform: translateY(0); }
  50%  { transform: translateY(5px); }
  100% { transform: translateY(0); }
}

/* ============================================================
   2. MANIFIESTO
   ============================================================ */

.manifesto {
  background-color: #fdfdfb;
  display: flex;
  justify-content: center;
  padding: clamp(7rem, 22vh, 14rem) clamp(1.75rem, 8vw, 5rem);
}

.manifesto__text {
  max-width: 620px;
  text-align: center;
  font-family: "Cormorant Garamond", "Garamond", Georgia, serif;
  font-size: clamp(1.1rem, 0.95rem + 0.7vw, 1.4rem);
  font-weight: 500;
  line-height: 1.9;
  letter-spacing: 0.01em;
  color: #1a1a1a;
}

.manifesto__text p + p {
  margin-top: 2.2em;
}

/* Reveal suave al entrar en viewport (activado por JS, con red de seguridad) */
.manifesto__text.will-reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 1.5s ease-out, transform 1.5s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.manifesto__text.will-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   3. FOOTER
   ============================================================ */

.footer {
  background-color: #fdfdfb;
  border-top: 1px solid rgba(0, 0, 0, 0.07);
  padding: clamp(3rem, 7vh, 4.5rem) clamp(1.75rem, 8vw, 5rem) clamp(2rem, 5vh, 3rem);
}

.footer__grid {
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  gap: clamp(2.5rem, 8vw, 7rem);
  flex-wrap: wrap;
  text-align: center;
}

.footer__item {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.footer__label {
  font-size: 0.68rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: #8a8a8a;
}

.footer__value {
  font-size: 0.95rem;
  font-weight: 500;
  color: #111111;
  text-decoration: none;
}

a.footer__value:hover,
a.footer__value:focus-visible {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.footer__copy {
  margin-top: clamp(2.5rem, 6vh, 4rem);
  text-align: center;
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  color: #9a9a9a;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 640px) {
  .hero__logo {
    width: min(84vw, 420px);
  }

  .hero__coming {
    letter-spacing: 0.38em;
    padding-left: 0.38em;
  }

  .hero__scroll {
    font-size: 9px;
  }

  .footer__grid {
    flex-direction: column;
    gap: 2.2rem;
  }
}

/* ============================================================
   ACCESIBILIDAD — prefers-reduced-motion
   Todo visible de inmediato, sin depender del movimiento.
   ============================================================ */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero__photo,
  .hero__logo,
  .hero__coming,
  .hero__scroll,
  .js-seq.is-ready .hero__photo,
  .js-seq.is-ready .hero__logo,
  .js-seq.is-ready .hero__coming,
  .js-seq.is-ready .hero__scroll,
  .js-seq .hero__photo,
  .js-seq .hero__logo,
  .js-seq .hero__coming,
  .js-seq .hero__scroll {
    animation: none;
    opacity: 1;
    transform: none;
  }

  .manifesto__text.will-reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
