/* ============================================================
   BLANKFACE — EPK GATE PAGE
   ============================================================ */

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

:root {
  --bg: #0a0908;
  --text: #e8e4dc;
  --muted: #a09a8e;
  --faint: #5a554e;
  --accent: #c0392b;
  --font-display: 'Bebas Neue', sans-serif;
  --font-body: 'Barlow', sans-serif;
}

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

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
}

/* ── Gate screen ── */

.gate {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

.gate__bg {
  position: absolute;
  inset: 0;
  background-image: url('./assets/carpenter-tools.jpg');
  background-size: cover;
  background-position: center 20%;
  filter: brightness(0.25) saturate(0.7);
}

.gate__overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(10,9,8,0.4) 0%, rgba(10,9,8,0.85) 100%);
}

.gate__box {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 3rem 2.5rem;
  max-width: 460px;
  width: 90%;
  background: rgba(10,9,8,0.75);
  border: 1px solid rgba(255,255,255,0.08);
  backdrop-filter: blur(20px);
  border-radius: 2px;
  transition: opacity 0.4s;
}

.gate__box.unlocking { opacity: 0; pointer-events: none; }

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-8px); }
  40%, 80% { transform: translateX(8px); }
}
.gate__box.shake { animation: shake 0.4s ease; }

.gate__back {
  position: absolute;
  top: 1rem;
  left: 1.2rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--faint);
  text-decoration: none;
  transition: color 0.2s;
}
.gate__back:hover { color: var(--muted); }

.gate__logo {
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: 0.18em;
  color: var(--faint);
  margin-bottom: 0.5rem;
}

.gate__film {
  font-family: var(--font-display);
  font-size: clamp(2rem, 6vw, 3rem);
  letter-spacing: 0.08em;
  color: var(--text);
  line-height: 1;
  margin-bottom: 0.4rem;
}

.gate__label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.8rem;
}

.gate__note {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 2rem;
  max-width: 340px;
}

.gate__form {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.gate__input {
  width: 100%;
  padding: 0.9rem 1.2rem;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 2px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  letter-spacing: 0.08em;
  text-align: center;
  outline: none;
  transition: border-color 0.2s;
}
.gate__input:focus { border-color: var(--accent); }
.gate__input::placeholder { color: var(--faint); letter-spacing: 0.1em; }

.gate__btn {
  width: 100%;
  padding: 0.9rem;
  background: var(--accent);
  color: #0a0908;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  border: none;
  border-radius: 2px;
  cursor: pointer;
  transition: background 0.2s;
}
.gate__btn:hover { background: #e74c3c; }

.gate__error {
  display: none;
  font-size: 0.78rem;
  color: #e05050;
  letter-spacing: 0.06em;
}

.gate__contact {
  margin-top: 1.8rem;
  font-size: 0.78rem;
  color: var(--faint);
}
.gate__contact a {
  color: var(--accent);
  text-decoration: none;
}
.gate__contact a:hover { text-decoration: underline; }

/* ── EPK wrapper (post-unlock) ── */

.epk-wrapper {
  display: none;
  flex-direction: column;
  position: fixed;
  inset: 0;
  background: #0a0908;
}

.epk-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 1.5rem;
  background: rgba(10,9,8,0.95);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  flex-shrink: 0;
}

.epk-header__back {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #5a554e;
  text-decoration: none;
  font-family: 'Barlow', sans-serif;
  transition: color 0.2s;
}
.epk-header__back:hover { color: #a09a8e; }

.epk-header__title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1rem;
  letter-spacing: 0.14em;
  color: #e8e4dc;
}

.epk-header__lock {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #5a554e;
  background: none;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 2px;
  padding: 0.35rem 0.8rem;
  cursor: pointer;
  font-family: 'Barlow', sans-serif;
  transition: color 0.2s, border-color 0.2s;
}
.epk-header__lock:hover { color: #e05050; border-color: rgba(224,80,80,0.4); }

#epkFrame {
  flex: 1;
  width: 100%;
  border: none;
  display: block;
}

/* Gate logo image */
.gate__logo-img {
  height: 56px;
  width: auto;
  display: block;
  margin-bottom: 0.5rem;
  mix-blend-mode: screen;
  opacity: 0.85;
}
