@import url('https://fonts.googleapis.com/css2?family=Space+Mono:ital,wght@0,400;0,700;1,400&family=Cinzel:wght@400;700&display=swap');

:root {
  --bg: #0a0a0f;
  --fg: #e8e4d9;
  --accent: #c9a84c;
  --dim: #6b6655;
  --red: #8b2020;
}

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

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--fg);
  font-family: 'Space Mono', monospace;
  font-size: 15px;
  line-height: 1.7;
  overflow-x: hidden;
}

/* grain overlay */
.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 100;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-size: 256px 256px;
}

/* ── HEADER ── */
header {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 80px 20px 60px;
  border-bottom: 1px solid #1e1e2a;
}

.logo-wrap {
  text-align: center;
}

.logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.logo-top,
.logo-bottom {
  font-family: 'Cinzel', serif;
  font-size: clamp(2.5rem, 10vw, 6rem);
  font-weight: 700;
  letter-spacing: 0.3em;
  color: var(--fg);
  line-height: 1;
}

.logo-bottom {
  color: var(--accent);
}

.eye-container {
  padding: 6px 0;
}

.eye {
  width: 60px;
  height: 38px;
  border: 2px solid var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: blink 7s infinite;
}

.pupil {
  width: 18px;
  height: 18px;
  background: var(--accent);
  border-radius: 50%;
  animation: look 12s ease-in-out infinite;
}

.church-label {
  font-family: 'Space Mono', monospace;
  font-size: 0.75rem;
  letter-spacing: 0.5em;
  color: var(--dim);
  margin-top: 18px;
}

@keyframes blink {
  0%, 90%, 100% { transform: scaleY(1); }
  94%, 98% { transform: scaleY(0.05); }
}

@keyframes look {
  0%, 100% { transform: translate(0, 0); }
  20% { transform: translate(6px, -3px); }
  45% { transform: translate(-8px, 2px); }
  70% { transform: translate(4px, 4px); }
}

/* ── SECTIONS ── */
main {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 24px;
}

section {
  padding: 80px 0;
  border-bottom: 1px solid #1e1e2a;
}

section:last-child {
  border-bottom: none;
}

h2 {
  font-family: 'Cinzel', serif;
  font-size: 0.7rem;
  letter-spacing: 0.4em;
  color: var(--dim);
  margin-bottom: 40px;
}

/* ── ARRIVAL ── */
.arrival {
  text-align: center;
  padding: 100px 0;
}

.glitch {
  font-family: 'Cinzel', serif;
  font-size: clamp(1.6rem, 5vw, 2.8rem);
  font-weight: 700;
  position: relative;
  display: inline-block;
}

.glitch::before,
.glitch::after {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
}

.glitch::before {
  color: #ff2244;
  animation: glitch1 4s infinite;
  clip-path: polygon(0 30%, 100% 30%, 100% 50%, 0 50%);
}

.glitch::after {
  color: #2244ff;
  animation: glitch2 4s infinite;
  clip-path: polygon(0 55%, 100% 55%, 100% 70%, 0 70%);
}

@keyframes glitch1 {
  0%, 80%, 100% { transform: translate(0); opacity: 0; }
  82% { transform: translate(-4px, 1px); opacity: 0.8; }
  86% { transform: translate(4px, -1px); opacity: 0.8; }
  90% { transform: translate(0); opacity: 0; }
}

@keyframes glitch2 {
  0%, 83%, 100% { transform: translate(0); opacity: 0; }
  85% { transform: translate(4px, 2px); opacity: 0.7; }
  89% { transform: translate(-4px, -2px); opacity: 0.7; }
  92% { transform: translate(0); opacity: 0; }
}

.subtitle {
  color: var(--dim);
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  margin-top: 20px;
}

/* ── TENETS ── */
.tenet-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.tenet-list li {
  display: flex;
  gap: 20px;
  align-items: baseline;
  padding-bottom: 28px;
  border-bottom: 1px solid #181820;
}

.tenet-list li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.num {
  color: var(--accent);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  flex-shrink: 0;
  width: 28px;
}

.text {
  font-size: 1rem;
  line-height: 1.8;
}

.text em {
  font-style: italic;
  color: var(--accent);
}

.redact {
  background: var(--fg);
  color: var(--fg);
  letter-spacing: -0.1em;
  cursor: default;
  transition: background 0.3s, color 0.3s;
  border-radius: 2px;
  padding: 0 2px;
}

.redact:hover {
  background: transparent;
  color: var(--red);
}

/* ── CONGREGATION ── */
.member-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 32px;
}

.member {
  text-align: center;
  padding: 24px 16px;
  border: 1px solid #1e1e2a;
  background: #0d0d14;
  transition: border-color 0.3s, transform 0.3s;
}

.member:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
}

.head-icon {
  font-size: 2.5rem;
  margin-bottom: 12px;
  color: var(--accent);
  animation: pulse 3s ease-in-out infinite;
}

.member:nth-child(2) .head-icon { animation-delay: -1s; }
.member:nth-child(3) .head-icon { animation-delay: -2s; }
.member:nth-child(4) .head-icon { animation-delay: -0.5s; }

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.member p {
  font-family: 'Cinzel', serif;
  font-size: 0.85rem;
  margin-bottom: 6px;
}

.member small {
  font-size: 0.7rem;
  color: var(--dim);
  font-style: italic;
}

/* ── TRANSMISSION ── */
.transmission {
  overflow: hidden;
}

.ticker-wrap {
  overflow: hidden;
  border-top: 1px solid var(--accent);
  border-bottom: 1px solid var(--accent);
  padding: 14px 0;
  background: #0d0d14;
}

.ticker {
  display: inline-block;
  white-space: nowrap;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  color: var(--accent);
  animation: scroll 30s linear infinite;
}

@keyframes scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ── JOIN ── */
.join {
  text-align: center;
}

.join-sub {
  color: var(--dim);
  font-size: 0.85rem;
  max-width: 420px;
  margin: 0 auto 40px;
  line-height: 1.9;
}

.join-form {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.join-form input {
  background: #0d0d14;
  border: 1px solid #2e2e3a;
  color: var(--fg);
  font-family: 'Space Mono', monospace;
  font-size: 0.85rem;
  padding: 12px 18px;
  width: 280px;
  outline: none;
  transition: border-color 0.3s;
}

.join-form input:focus {
  border-color: var(--accent);
}

.join-form input::placeholder {
  color: var(--dim);
}

.join-form button {
  background: var(--accent);
  border: none;
  color: var(--bg);
  font-family: 'Cinzel', serif;
  font-size: 0.8rem;
  letter-spacing: 0.3em;
  padding: 12px 24px;
  cursor: pointer;
  transition: background 0.3s, transform 0.1s;
}

.join-form button:hover {
  background: #e8c060;
}

.join-form button:active {
  transform: scale(0.97);
}

.join-response {
  margin-top: 28px;
  font-style: italic;
  color: var(--accent);
  font-size: 0.9rem;
  min-height: 1.5em;
  opacity: 0;
  transition: opacity 0.5s;
}

.join-response.visible {
  opacity: 1;
}

/* ── FOOTER ── */
footer {
  text-align: center;
  padding: 60px 24px;
  color: var(--dim);
  font-size: 0.7rem;
  line-height: 2;
  border-top: 1px solid #1e1e2a;
}

.footer-small {
  margin-top: 8px;
  font-size: 0.65rem;
  opacity: 0.6;
}
