/* ============================================================
   LANDING — Home
   Poster-like simplicity. One scene, one line of type, room to breathe.
   Also hosts the password gate, which shares this same backdrop.
   ============================================================ */

body.page-landing { background: var(--ink); }

.page-landing nav { display: none; }
html[data-gate="unlocked"] .page-landing nav { display: flex; }

.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 640px;
  overflow: hidden;
}

/* ── Hero photograph ── */
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom,
      rgba(18,15,21,0.18) 0%,
      rgba(18,15,21,0.04) 28%,
      rgba(18,15,21,0.30) 68%,
      rgba(18,15,21,0.72) 100%),
    url('../assets/hero-v2.webp') 32% 28% / cover no-repeat;
}

.hero-vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 40%, rgba(18,15,21,0.55) 100%);
}

.hero-grain {
  position: absolute;
  inset: 0;
  opacity: 0.05;
  mix-blend-mode: overlay;
  background-image: radial-gradient(rgba(255,255,255,0.6) 0.5px, transparent 0.5px);
  background-size: 3px 3px;
}

/* ── Corner seal ── */
.hero-seal {
  position: absolute;
  top: 1.8rem;
  left: 2rem;
  z-index: 5;
}

.hero-seal img {
  width: 68px;
  height: auto;
  display: block;
  filter: drop-shadow(0 3px 10px rgba(18,15,21,0.55));
}

@media (max-width: 768px) {
  .hero-seal { top: 1.2rem; left: 1.2rem; transform: scale(0.85); transform-origin: top left; }
}

/* ── Content layer ── */
.hero-content {
  position: relative;
  z-index: 4;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 5.5rem 1.5rem 3.5rem;
}

.hero-eyebrow {
  margin-bottom: 0.4rem;
}

.hero-wordmark {
  line-height: 0;
}

.hero-wordmark img {
  width: clamp(280px, 34vw, 560px);
  max-width: 84vw;
  height: auto;
  display: block;
  margin: 0 auto;
}

.hero-tagline {
  font-family: var(--font-caps);
  font-size: clamp(0.75rem, 1.6vw, 0.95rem);
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--parchment);
  margin-top: 1rem;
}

.hero-meta {
  margin-top: 1.1rem;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(0.95rem, 2vw, 1.15rem);
  color: var(--ash);
  line-height: 1.6;
}

.hero-content .btn {
  margin-top: 1.6rem;
  border: none;
  padding: 0.3rem 0;
  border-bottom: 1px solid rgba(216,205,192,0.45);
  text-shadow: 0 1px 8px rgba(18,15,21,0.7);
}

.hero-content .btn:hover {
  background: transparent;
  border-bottom-color: rgba(216,205,192,0.9);
}

.hero-wordmark img {
  filter: drop-shadow(0 2px 16px rgba(18,15,21,0.55));
}

.hero-tagline, .hero-meta {
  text-shadow: 0 2px 16px rgba(18,15,21,0.55);
}

/* ── Gate ── */
.gate {
  position: relative;
  z-index: 4;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 6rem 1.5rem 2rem;
  transition: opacity 0.9s ease;
}

html[data-gate="unlocked"] .page-landing .gate { display: none; }
html[data-gate="locked"] .page-landing .hero-content { display: none; }

.gate-names {
  width: clamp(240px, 34vw, 400px);
  max-width: 80vw;
  height: auto;
  display: block;
  margin: 0 auto;
  filter: drop-shadow(0 2px 16px rgba(18,15,21,0.6));
}

.gate-meta {
  margin-top: 1.1rem;
  font-family: var(--font-caps);
  font-size: 0.78rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ash);
  text-shadow: 0 1px 10px rgba(18,15,21,0.7);
}

.gate-meta span { display: block; }

.gate-form {
  margin-top: 2.6rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  width: 100%;
  max-width: 320px;
}

.gate-input {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(216,205,192,0.35);
  color: var(--cream);
  font-family: var(--font-serif);
  font-size: 1.05rem;
  letter-spacing: 0.06em;
  text-align: center;
  padding: 0.6rem 0;
  outline: none;
  transition: border-color var(--transition-med);
}

.gate-input::placeholder {
  color: var(--stone);
  opacity: 0.7;
  font-style: italic;
}

.gate-input:focus { border-bottom-color: rgba(216,205,192,0.8); }

.gate-input.shake { animation: shake 0.45s ease; }

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25%      { transform: translateX(-6px); }
  75%      { transform: translateX(6px); }
}

.gate-error {
  font-size: 0.8rem;
  color: var(--clay);
  font-style: italic;
  min-height: 1.2em;
  opacity: 0;
  transition: opacity var(--transition-med);
}

.gate-error.visible { opacity: 1; }

.gate-note {
  margin-top: 2.2rem;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 0.9rem;
  color: var(--stone);
  letter-spacing: 0.03em;
  text-shadow: 0 1px 10px rgba(18,15,21,0.7);
}

/* ── Responsive ── */
@media (max-width: 600px) {
  .hero-bg { background-position: 38% 22%; }
  .hero-content, .gate { padding-top: 4.5rem; }
  html[data-gate="unlocked"] .page-landing nav { padding-left: 6rem; }
  html[data-gate="unlocked"] .page-landing .nav-links { gap: 0.85rem; }
}

/* Three rules that were style="" attributes in index.html until the site gained
   a Content-Security-Policy. The policy forbids inline styles for the same
   reason it forbids inline scripts: an attribute the page did not write is
   indistinguishable from one it did. */
.gate-field-label { font-size:0.62rem; }
.gate-submit { margin-top:0.6rem; padding:0.7rem 2.2rem; font-size:0.62rem; }
.ornament-narrow { max-width:220px; margin:1.1rem auto; }
