:root { --bg: #000; --fg: #eaeaea; --muted:#9aa0a6; --line:#1a1a1a; --accent:#e10600; }
* { box-sizing: border-box; }
html, body { min-height: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--fg);
  font-family: "Noto Sans", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  line-height: 1.5; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
a { color: var(--fg); text-decoration: none; }
.container { width: min(1100px, 92vw); margin: 0 auto; padding: 0 20px; }

.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 20;
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px 24px; border-bottom: 1px solid var(--line); background: linear-gradient(to bottom, rgba(0,0,0,0.9), rgba(0,0,0,0.3) 60%, rgba(0,0,0,0));
  backdrop-filter: blur(6px);
}
.brand { display: inline-flex; gap: 10px; align-items: center; letter-spacing: .02em; }
.brand-mark { font-family: "Space Mono", monospace; font-weight: 700; font-size: 20px; }
.brand-text { font-weight: 600; font-size: 14px; color: var(--muted); }
.site-nav a { margin-left: 18px; font-size: 14px; color: var(--muted); }
.site-nav a:hover { color: var(--fg); }

.hero { position: relative; min-height: 100svh; display: grid; place-items: center; padding-top: 80px; overflow: hidden; }
.hero-canvas-wrap { position: absolute; inset: 0; pointer-events: none; }
#scene { width: 100%; height: 100%; display: block; }
.hero-inner { position: relative; z-index: 2; text-align: center; padding: 40px 20px; }
.sigil { width: clamp(90px, 12vw, 160px); margin: 0 auto 18px; color: var(--accent); }
.sigil-svg { display: block; width: 100%; height: auto; }
.sigil-ring, .sigil-mark { fill: none; stroke: var(--accent); stroke-width: 2; }
.sigil-mark { fill: var(--accent); opacity: .06; }

.headline { font-size: clamp(28px, 4.6vw, 64px); line-height: 1.05; margin: 10px 0 10px; letter-spacing: -0.01em; }
.subhead { color: var(--muted); margin: 0 0 24px; font-size: clamp(14px, 1.6vw, 18px); }

.button { display: inline-block; padding: 12px 18px; border-radius: 8px; font-weight: 600; border: 1px solid var(--line); transition: transform .15s ease, background-color .2s ease, border-color .2s ease; }
.button.primary { background: var(--accent); color: #fff; border-color: var(--accent); }
.button.ghost { background: transparent; color: var(--fg); }
.button:hover { border-color: #2a2a2a; }
.button:active { transform: none; }

.button.primary:hover { border-color: var(--accent); box-shadow: 0 0 12px rgba(225,6,0,.35); }

.scroll-cue { display: inline-flex; gap: 10px; align-items: center; justify-content: center; margin-top: 26px; color: var(--muted); font-size: 12px; }
.scroll-cue .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--fg); opacity: .5; animation: pulse 1.8s ease-in-out infinite; }
@keyframes pulse { 0%,100%{ opacity:.2; transform: translateY(0);} 50%{ opacity:1; transform: translateY(4px);} }

.marquee { border-block: 1px solid var(--line); overflow: hidden; background: #0e0e0e; }
.marquee .track { 
  /* slower + smoother */
  animation: slide 80s linear infinite;
  will-change: transform;
  padding-left: 100%;
  white-space: nowrap;
  color: #bdbdbd;
  font-family: "Space Mono", monospace;
  font-size: 12px;
}
@keyframes slide { 
  0% { transform: translateX(0); } 
  100% { transform: translateX(-50%); } 
}
.marquee .track span { opacity: .7; }

.section { padding: clamp(60px, 12vw, 120px) 0; }
.section .container { text-align: center; }
.section h2, .headline, .event .title { font-family: "Space Mono", monospace; letter-spacing: .01em; }
.section h2 { font-size: clamp(22px, 3vw, 32px); margin: 0 0 16px; }
.lede { color: var(--muted); margin: 0 0 24px; }

.manifesto .container { text-align: left; }
.manifesto .tenets { max-width: 800px; margin: 0 auto; }
.manifesto .tenets li { text-align: left; }
.manifesto .tenets li { padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: #0d0d0d; }

.initiation .apply { display: grid; gap: 16px; max-width: 680px; margin: 0 auto; }
.field { display: grid; gap: 8px; }
label { font-size: 13px; color: var(--muted); }
input, textarea, select {
  width: 100%; background: #0e0e0e; color: var(--fg); border: 1px solid var(--line);
  border-radius: 10px; padding: 12px 14px; font: inherit; outline: none; transition: border-color .2s ease, box-shadow .2s ease;
}
input:focus, textarea:focus { border-color: #2a2a2a; box-shadow: 0 0 0 4px rgba(255,255,255,0.03); }
.form-note { color: var(--muted); font-size: 12px; }
.form-status { min-height: 18px; color: var(--muted); font-size: 12px; margin-top: -6px; }

.calendar .events { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; overflow: visible; padding-bottom: 0; }
.event { display: grid; gap: 6px; padding: 16px; border: 1px solid var(--line); border-radius: 12px; background: #0d0d0d; align-content: start; }
.event .when { text-transform: uppercase; letter-spacing: .08em; opacity: .8; }
.event .title { font-weight: 700; }
.event .desc { color: var(--muted); overflow-wrap: anywhere; hyphens: auto; }

.faq .accordion .item { padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: #0d0d0d; }
.faq summary { cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display:none; }
.faq summary { display:flex; justify-content: space-between; align-items:center; }
.faq details[open] { background:#0f0f0f; }

.site-footer { border-top: 1px solid var(--line); padding: 28px 0; color: var(--muted); }
.footmark { font-family: "Space Mono", monospace; margin: 0 0 6px; }

[data-reveal] { opacity: 0; transform: translateY(8px); transition: opacity .5s ease, transform .5s ease; }
[data-reveal].is-visible { opacity: 1; transform: translateY(0); }

.gallery-grid { column-count: 3; column-gap: 12px; }
.gallery .item { display: inline-block; width: 100%; margin: 0 0 12px; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: #0d0d0d; }
.gallery .item img { width: 100%; height: auto; display: block; transition: transform .25s ease, opacity .25s ease; }
.gallery .item:hover img { transform: scale(1.02); opacity: .95; }

/* Lightbox */
#lightbox { position: fixed; inset: 0; background: rgba(0,0,0,0.85); display: none; align-items: center; justify-content: center; gap: 12px; z-index: 60; }
#lightbox.open { display: flex; }
.lb-img { max-width: 90vw; max-height: 82vh; border-radius: 12px; border: 1px solid var(--line); background: #0b0b0b; }
.lb-btn { position: fixed; top: 20px; background: #111; color: var(--fg); border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; cursor: pointer; }
.lb-close { right: 20px; }
.lb-prev { left: 20px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 20px; top: 50%; transform: translateY(-50%); }

/* Responsive */
@media (max-width: 720px) {
  .site-nav { display: none; }
  .event { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .gallery-grid { column-count: 2; }
  .calendar .events { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .gallery-grid { column-count: 1; }
}