/* ── Lucid Afterglow ─────────────────────────────────────────── */

:root {
  --bg: #0c0812;
  --ink: #e9ded4;
  --ink-dim: #b8a99e;
  --ink-faint: #7d6f68;
  --peach: #f0a068;
  --rose: #d98a7e;
  --line: rgba(233, 222, 212, 0.14);
}

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

body {
  background: var(--bg);
  color: var(--ink);
  font-family: "Jost", system-ui, sans-serif;
  font-weight: 300;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

/* ── Landing: full-bleed hero, gate at the bottom ── */

.veil {
  background: #0c0812;
  overflow: hidden;
}

.veil::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  background: url("hero.jpg") center / cover no-repeat;
}

/* Portrait: cover would crop the wordmark — show a wider-than-viewport band
   of the art, vertically centered, feathered into the dark at top/bottom. */
@media (max-aspect-ratio: 4/5) {
  .veil::before {
    background-size: 150vw auto;
    background-position: 41% 50%; /* wordmark is a touch left of the art's center */
    -webkit-mask: linear-gradient(180deg, transparent 10%, #000 32%, #000 68%, transparent 90%);
            mask: linear-gradient(180deg, transparent 10%, #000 32%, #000 68%, transparent 90%);
  }
}

.void {
  flex: 1;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  min-height: 100vh;
  min-height: 100dvh;
  padding-bottom: clamp(2.5rem, 8vh, 5.5rem);
}

.gate { position: relative; z-index: 1; }

@keyframes gate-breathe {
  0%, 100% { border-color: rgba(233, 222, 212, 0.28); }
  50%      { border-color: rgba(240, 160, 104, 0.5); }
}

.gate input {
  width: 200px;
  background: none;
  border: none;
  border-bottom: 1px solid rgba(233, 222, 212, 0.35);
  padding: 0.6rem 0.25rem;
  color: var(--ink);
  font-family: inherit;
  font-size: 1rem;
  letter-spacing: 0.35em;
  text-align: center;
  caret-color: var(--peach);
  animation: gate-breathe 5s ease-in-out infinite;
  transition: width 0.4s ease;
}

.gate input::placeholder {
  color: rgba(233, 222, 212, 0.45);
  letter-spacing: 0;
}

.gate input:focus {
  outline: none;
  animation: none;
  border-color: rgba(240, 160, 104, 0.6);
  width: 240px;
}

.gate input::selection { background: rgba(240, 160, 104, 0.35); }

/* Wrong password: brief flicker + shake */
@keyframes gate-shake {
  20% { transform: translateX(-5px); }
  40% { transform: translateX(4px); }
  60% { transform: translateX(-3px); }
  80% { transform: translateX(2px); }
}
.gate.denied { animation: gate-shake 0.4s ease; }
.gate.denied input { border-color: rgba(224, 122, 106, 0.7); }

/* Whole-page fade when the gate opens */
@keyframes gate-open {
  to { opacity: 0; }
}
.veil.open { animation: gate-open 0.9s ease forwards; }

/* ── Members ── */

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem clamp(1.25rem, 4vw, 3.5rem);
}

.nav-brand {
  color: var(--ink);
  text-decoration: none;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  font-size: 0.95rem;
  font-weight: 400;
}

.members-bg {
  background:
    radial-gradient(60% 45% at 30% 100%, rgba(240, 137, 80, 0.16), transparent 70%),
    radial-gradient(45% 40% at 75% 0%, rgba(90, 60, 120, 0.18), transparent 70%),
    linear-gradient(180deg, #0d0812 0%, #0b0709 55%, #150a0b 100%);
  background-attachment: fixed;
}

.divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin: 1.75rem auto;
  max-width: 360px;
}

.divider .line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line), transparent);
}

.divider .spark {
  color: var(--peach);
  font-size: 0.8rem;
}

.members {
  flex: 1;
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  padding: clamp(2rem, 6vh, 5rem) clamp(1.25rem, 4vw, 3.5rem);
  text-align: center;
}

.members h1 {
  font-weight: 200;
  font-size: clamp(2rem, 5vw, 3.2rem);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  margin-right: -0.3em;
}

.members-section {
  margin-top: 3.5rem;
  text-align: left;
}

.members-section h2 {
  font-weight: 300;
  text-transform: uppercase;
  letter-spacing: 0.35em;
  font-size: 0.95rem;
  color: var(--rose);
  margin-bottom: 1.25rem;
}

.members-section p, .members-section li {
  color: var(--ink-dim);
  font-size: 0.95rem;
  line-height: 1.9;
  letter-spacing: 0.04em;
}

.members-section ul { list-style: none; }

.members-section li {
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn-signout {
  margin-top: 3.5rem;
  display: inline-block;
  padding: 0.8rem 2.5rem;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: none;
  color: var(--ink-dim);
  font-family: inherit;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  font-size: 0.7rem;
  cursor: pointer;
  transition: color 0.25s ease, border-color 0.25s ease;
}

.btn-signout:hover { color: var(--peach); border-color: rgba(240, 160, 104, 0.5); }

.footer {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem clamp(1.25rem, 4vw, 3.5rem);
  font-size: 0.7rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
