/* ============================================================
   Design 8 — "CURTAIN RISE"
   Full-bleed arts/drama photography. Cinematic overlay.
   Text anchored to the bottom third like a film poster.
   ============================================================ */

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

:root {
  --teal:    #6FA7A3;
  --charcoal:#1E1E1E;
  --coral:   #DD6F56;
  --ash:     #EEECE7;
  --sage:    #8DA48F;
  --font-head: 'Poppins', sans-serif;
  --font-body: 'Nunito', sans-serif;
}

html, body { height: 100%; overflow: hidden; }

body { font-family: var(--font-body); background: #111; }

/* ── Background photo ───────────────────────────────────── */

.bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  /* JS sets background-image */
  transition: opacity 0.8s ease;
  opacity: 0;
}

.bg.is-loaded { opacity: 1; }

/* Multi-layer cinematic gradient overlay */
.bg__overlay {
  position: absolute;
  inset: 0;
  background:
    /* bottom dark for text legibility */
    linear-gradient(to top, rgba(10,8,6,0.97) 0%, rgba(10,8,6,0.7) 38%, rgba(10,8,6,0.1) 62%, transparent 100%),
    /* overall dark tint */
    rgba(10, 8, 6, 0.28);
}

/* ── Layout ──────────────────────────────────────────────── */

.layout {
  position: relative;
  z-index: 10;
  height: 100dvh;
  display: grid;
  grid-template-rows: auto 1fr auto auto;
  padding: 0;
}

/* ── Top bar ─────────────────────────────────────────────── */

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.75rem 2.5rem;
  animation: fade-in 0.8s 0.3s ease both;
}

.topbar__logo {
  width: 56px;
  height: 56px;
  object-fit: contain;
  border-radius: 8px;
  /* Subtle glow behind logo on dark bg */
  filter: drop-shadow(0 2px 12px rgba(0,0,0,0.5));
}

.topbar__nav {
  display: flex;
  gap: 1.5rem;
}

.topbar__nav a {
  font-family: var(--font-head);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(238,236,231,0.45);
  text-decoration: none;
  transition: color 0.2s;
}

.topbar__nav a:hover { color: var(--ash); }

/* ── Centre badge ─────────────────────────────────────────── */

.badge {
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fade-in 0.8s 0.5s ease both;
}

.badge__text {
  font-family: var(--font-head);
  font-size: 0.62rem;
  font-weight: 300;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: rgba(238,236,231,0.3);
  border: 1px solid rgba(238,236,231,0.15);
  padding: 0.5rem 1.25rem;
  border-radius: 100px;
}

/* ── Hero ────────────────────────────────────────────────── */

.hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 3rem;
  padding: 0 2.5rem 2rem;
  animation: fade-in 0.8s 0.6s ease both;
}

.hero__left { flex-shrink: 0; }

.hero__eyebrow {
  font-family: var(--font-head);
  font-size: 0.65rem;
  font-weight: 300;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 0.6rem;
}

.hero__heading {
  font-family: var(--font-head);
  font-weight: 900;
  line-height: 0.86;
  display: flex;
  flex-direction: column;
}

.hero__line {
  font-size: clamp(5rem, 13vw, 11rem);
  color: var(--ash);
  letter-spacing: -0.02em;
  display: block;
}

.hero__line--stroke {
  color: transparent;
  -webkit-text-stroke: 2px rgba(238,236,231,0.55);
  font-style: italic;
}

.hero__line--stroke em {
  color: var(--coral);
  -webkit-text-stroke: 0;
  font-style: normal;
}

/* ── Right column: body + form ───────────────────────────── */

.hero__right {
  max-width: 380px;
  padding-bottom: 0.5rem;
  flex-shrink: 0;
}

.hero__body {
  font-size: 0.92rem;
  line-height: 1.8;
  color: rgba(238,236,231,0.55);
  margin-bottom: 1.5rem;
}

/* ── Form ────────────────────────────────────────────────── */

.form__label {
  display: block;
  font-family: var(--font-head);
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(238,236,231,0.35);
  margin-bottom: 0.6rem;
}

.form__row { display: flex; }

.form__input {
  flex: 1;
  height: 44px;
  padding: 0 1rem;
  background: rgba(238,236,231,0.08);
  border: 1px solid rgba(238,236,231,0.18);
  border-right: none;
  border-radius: 3px 0 0 3px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--ash);
  outline: none;
  transition: background 0.2s, border-color 0.2s;
  backdrop-filter: blur(4px);
}

.form__input::placeholder { color: rgba(238,236,231,0.25); }
.form__input:focus {
  background: rgba(238,236,231,0.12);
  border-color: var(--teal);
}

.form__btn {
  height: 44px;
  padding: 0 1.25rem;
  background: var(--coral);
  color: #fff;
  border: none;
  border-radius: 0 3px 3px 0;
  font-family: var(--font-head);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s;
}

.form__btn:hover { background: #c95d45; }

.form__confirm {
  margin-top: 0.65rem;
  font-size: 0.82rem;
  color: var(--teal);
  font-weight: 600;
}
.form__confirm[hidden] { display: none; }

/* ── Bottom strip ────────────────────────────────────────── */

.strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 2.5rem;
  border-top: 1px solid rgba(238,236,231,0.07);
  animation: fade-in 0.8s 0.8s ease both;
}

.strip__copy {
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  color: rgba(238,236,231,0.2);
}

.strip__photo-credit {
  font-size: 0.62rem;
  letter-spacing: 0.06em;
  color: rgba(238,236,231,0.2);
}

.strip__unsplash {
  color: rgba(238,236,231,0.35);
  text-decoration: none;
  transition: color 0.2s;
}
.strip__unsplash:hover { color: var(--ash); }

/* ── Keyframes ───────────────────────────────────────────── */

@keyframes fade-in {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Responsive ──────────────────────────────────────────── */

@media (max-width: 740px) {
  html, body { overflow-y: auto; height: auto; }
  .bg { position: fixed; }
  .layout { height: auto; min-height: 100dvh; grid-template-rows: auto auto 1fr auto; }
  .hero {
    flex-direction: column;
    align-items: flex-start;
    gap: 2rem;
  }
  .hero__right { max-width: 100%; }
  .topbar { padding: 1.25rem 1.5rem; }
  .topbar__nav { display: none; }
  .hero { padding: 0 1.5rem 1.5rem; }
  .strip { padding: 0.75rem 1.5rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
