/* ============================================================
   THE ELEVENTH MESSIAH — site stylesheet
   ============================================================ */

:root {
  --bg: #0a0a0b;
  --bg-alt: #111113;
  --bg-card: #17171a;
  --ink: #ece6d8;
  --ink-dim: #a39b8c;
  --muted: #716a60;
  --red: #a7342f;
  --red-bright: #c2403a;
  --gold: #c9a227;
  --line: rgba(236, 230, 216, 0.12);
  --line-strong: rgba(236, 230, 216, 0.24);
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.55);
  --maxw: 1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Work Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  position: relative;
  overflow-x: hidden;
}

/* film-grain overlay */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 9998;
  pointer-events: none;
  opacity: 0.09;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain-shift 1s steps(4) infinite;
}
@keyframes grain-shift {
  0% { transform: translate(0,0); }
  25% { transform: translate(-1%,1%); }
  50% { transform: translate(1%,-1%); }
  75% { transform: translate(-1%,-1%); }
  100% { transform: translate(0,0); }
}

/* scanlines */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 9997;
  pointer-events: none;
  background: repeating-linear-gradient(
    to bottom,
    rgba(0,0,0,0.18) 0px,
    rgba(0,0,0,0.18) 1px,
    transparent 2px,
    transparent 3px
  );
  opacity: 0.35;
  mix-blend-mode: multiply;
}

/* vignette */
.vignette {
  position: fixed;
  inset: 0;
  z-index: 9996;
  pointer-events: none;
  background: radial-gradient(ellipse at center, transparent 50%, rgba(0,0,0,0.5) 100%);
}

/* occasional broadcast flicker across the whole page */
@keyframes page-flicker {
  0%, 93%, 100% { filter: none; }
  94% { filter: brightness(1.35) contrast(1.1); }
  94.3% { filter: brightness(0.85); }
  94.6% { filter: brightness(1.15); }
  95% { filter: none; }
}
body { animation: page-flicker 9s infinite; }

/* static-glitch text effect for key headings */
.glitch-text {
  position: relative;
  display: inline-block;
}
.glitch-text::before,
.glitch-text::after {
  content: attr(data-text);
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  overflow: hidden;
  opacity: 0;
}
.glitch-text::before {
  color: var(--red-bright);
  animation: glitch-flicker-1 7s infinite;
}
.glitch-text::after {
  color: var(--gold);
  animation: glitch-flicker-2 7s infinite;
}
@keyframes glitch-flicker-1 {
  0%, 90%, 100% { opacity: 0; transform: translate(0); }
  91% { opacity: 0.7; transform: translate(-3px, 1px); }
  92% { opacity: 0; }
  93% { opacity: 0.5; transform: translate(2px, -1px); }
  93.5% { opacity: 0; }
}
@keyframes glitch-flicker-2 {
  0%, 90%, 100% { opacity: 0; transform: translate(0); }
  91.2% { opacity: 0.5; transform: translate(3px, -1px); }
  92.2% { opacity: 0; }
  93.2% { opacity: 0.4; transform: translate(-2px, 1px); }
  93.7% { opacity: 0; }
}
/* On narrow screens a multi-word title's ghost duplicate (attr(data-text))
   can line-wrap differently than the real spanned content and overflow
   the viewport. Simplest safe fix: drop the duplicate layer there and
   keep the weathered base text, which is unaffected. */
@media (max-width: 640px) {
  .glitch-text::before, .glitch-text::after { display: none; }
}

h1, h2, h3, h4 {
  font-family: "Black Ops One", "Oswald", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin: 0;
  font-weight: 400;
  color: var(--ink);
}

.kicker {
  font-family: "Share Tech Mono", monospace;
  text-transform: uppercase;
  letter-spacing: 0.28em;
  font-size: 0.72rem;
  color: var(--gold);
  text-shadow: 0 0 10px rgba(201,162,39,0.35);
  animation: kicker-flicker 6s infinite;
}
@keyframes kicker-flicker {
  0%, 96%, 100% { opacity: 1; }
  97% { opacity: 0.4; }
  97.5% { opacity: 1; }
  98% { opacity: 0.6; }
  98.4% { opacity: 1; }
}

a { color: inherit; text-decoration: none; }

img { max-width: 100%; display: block; }

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 28px;
}

/* ---------------- Header / Nav ---------------- */
header.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 500;
  background: linear-gradient(to bottom, rgba(10,10,11,0.92), rgba(10,10,11,0));
  padding: 20px 0 40px;
  transition: background 0.3s ease, padding 0.3s ease;
}
header.site-header.scrolled {
  background: rgba(8,8,9,0.92);
  backdrop-filter: blur(6px);
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  font-family: "Share Tech Mono", monospace;
  letter-spacing: 0.12em;
  font-size: 0.92rem;
  text-transform: uppercase;
  color: var(--ink);
}
.brand span { color: var(--gold); }

nav.primary-nav ul {
  list-style: none;
  display: flex;
  gap: 34px;
  margin: 0; padding: 0;
}
nav.primary-nav a {
  font-family: "Share Tech Mono", monospace;
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-dim);
  position: relative;
  padding-bottom: 4px;
}
nav.primary-nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0%; height: 1px;
  background: var(--red-bright);
  transition: width 0.25s ease;
}
nav.primary-nav a:hover,
nav.primary-nav a.active { color: var(--ink); }
nav.primary-nav a:hover::after,
nav.primary-nav a.active::after { width: 100%; }

.menu-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line-strong);
  width: 42px; height: 42px;
  border-radius: 50%;
  color: var(--ink);
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

@media (max-width: 820px) {
  nav.primary-nav {
    position: fixed;
    inset: 0;
    background: #08080a;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translateY(-100%);
    transition: transform 0.35s ease;
    z-index: 400;
  }
  nav.primary-nav.open { transform: translateY(0); }
  nav.primary-nav ul {
    flex-direction: column;
    text-align: center;
    gap: 28px;
  }
  nav.primary-nav a { font-size: 1.1rem; }
  .menu-toggle { display: flex; }
}

/* ---------------- Buttons ---------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: "Share Tech Mono", monospace;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 16px 30px;
  border: 1px solid var(--line-strong);
  color: var(--ink);
  background: transparent;
  cursor: pointer;
  transition: all 0.25s ease;
}
.btn:hover { border-color: var(--gold); color: var(--gold); }
.btn.solid {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
}
.btn.solid:hover { background: var(--red-bright); border-color: var(--red-bright); color: #fff; }
.btn-row { display: flex; gap: 16px; flex-wrap: wrap; }

/* ---------------- Video Intro ---------------- */
.video-hero {
  position: relative;
  height: 100vh;
  min-height: 560px;
  overflow: hidden;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.9s ease;
}
.video-hero.intro-done { opacity: 0; pointer-events: none; }
.video-hero video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(0.15) contrast(1.1) brightness(0.92);
  opacity: 0.95;
}
.video-hero .video-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.15) 30%, rgba(0,0,0,0.2) 70%, rgba(0,0,0,0.75) 100%);
  transition: opacity 0.6s ease;
}
.video-hero.playing .video-overlay { opacity: 0.45; }
.video-hero .scroll-cue { color: var(--ink-dim); }
.video-hero .static-edge {
  position: absolute;
  inset: 0;
  pointer-events: none;
  box-shadow: inset 0 0 160px rgba(0,0,0,0.9);
}

/* ---------------- Intro gate ---------------- */
.intro-gate {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 20px;
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.intro-gate.hidden {
  opacity: 0;
  transform: translateY(-16px);
  pointer-events: none;
}
.intro-gate .kicker { justify-content: center; display: flex; margin-bottom: 20px; }
.intro-gate h1 {
  font-size: clamp(2.2rem, 7.5vw, 5.4rem);
  line-height: 0.95;
  color: var(--ink);
  text-shadow: 0 0 30px rgba(167,52,47,0.5), 0 0 70px rgba(0,0,0,0.9);
}
.intro-gate h1 .accent { color: var(--red-bright); }
.intro-gate .sub {
  margin-top: 20px;
  font-family: "Share Tech Mono", monospace;
  letter-spacing: 0.08em;
  color: var(--ink-dim);
  font-size: 1rem;
}
.enter-btn {
  margin-top: 40px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: rgba(10,10,10,0.55);
  border: 1px solid var(--gold);
  color: var(--ink);
  font-family: "Share Tech Mono", monospace;
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 16px 30px;
  cursor: pointer;
  transition: background 0.25s ease, box-shadow 0.25s ease, transform 0.15s ease;
  box-shadow: 0 0 0 rgba(201,162,39,0);
  animation: gate-pulse 2.6s ease-in-out infinite;
}
.enter-btn .icon { color: var(--gold); font-size: 0.8rem; }
.enter-btn:hover {
  background: rgba(201,162,39,0.14);
  box-shadow: 0 0 36px rgba(201,162,39,0.35);
  transform: translateY(-2px);
}
@keyframes gate-pulse {
  0%, 100% { box-shadow: 0 0 0 rgba(201,162,39,0.15); }
  50% { box-shadow: 0 0 22px rgba(201,162,39,0.3); }
}
.enter-hint {
  display: block;
  margin: 16px auto 0;
  color: var(--muted);
  font-family: "Share Tech Mono", monospace;
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.skip-intro {
  position: fixed;
  z-index: 600;
  top: 28px;
  right: 28px;
  background: rgba(10,10,10,0.5);
  border: 1px solid var(--line-strong);
  color: var(--ink-dim);
  font-family: "Share Tech Mono", monospace;
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 9px 14px;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.skip-intro:hover { border-color: var(--gold); color: var(--gold); }
@media (max-width: 600px) {
  .skip-intro { top: 18px; right: 18px; padding: 7px 11px; }
}

.sound-toggle {
  position: absolute;
  z-index: 3;
  bottom: 34px;
  right: 34px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(10,10,10,0.6);
  border: 1px solid var(--line-strong);
  color: var(--ink-dim);
  font-family: "Share Tech Mono", monospace;
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 10px 16px;
  cursor: pointer;
  transition: border-color 0.25s ease, color 0.25s ease;
}
.sound-toggle:hover { border-color: var(--gold); color: var(--gold); }
.sound-toggle .icon { font-size: 1rem; }
@media (max-width: 600px) {
  .sound-toggle { bottom: 20px; right: 20px; padding: 8px 12px; }
  .sound-toggle .txt { display: none; }
}

/* ---------------- Hero ---------------- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  padding: 140px 0 100px;
  background:
    radial-gradient(ellipse at 20% 20%, rgba(167,52,47,0.10), transparent 55%),
    radial-gradient(ellipse at 80% 70%, rgba(201,162,39,0.06), transparent 50%),
    rgba(9,9,10,0.55);
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
  width: 100%;
}
.hero h1 {
  font-size: clamp(3.2rem, 7vw, 6.4rem);
  line-height: 0.95;
  color: var(--ink);
}
.hero h1 .accent { color: var(--red-bright); }
.hero .lede {
  margin-top: 26px;
  max-width: 46ch;
  color: var(--ink-dim);
  font-size: 1.08rem;
}
.hero .kicker { margin-bottom: 18px; display: block; }
.hero .btn-row { margin-top: 40px; }

.hero-cover {
  position: relative;
  display: flex;
  justify-content: center;
}
.hero-cover::before {
  content: "";
  position: absolute;
  inset: -30px;
  background: radial-gradient(circle, rgba(167,52,47,0.28), transparent 70%);
  filter: blur(10px);
  animation: glow-pulse 4s ease-in-out infinite;
}
@keyframes glow-pulse {
  0%, 100% { opacity: 0.7; }
  50% { opacity: 1; }
}
.hero-cover img {
  position: relative;
  width: min(340px, 80%);
  box-shadow: var(--shadow);
  transform: rotate(2deg);
  border: 1px solid rgba(255,255,255,0.08);
}
.badge-chip {
  position: absolute;
  bottom: -18px;
  left: 50%;
  transform: translateX(-50%) rotate(-1.5deg);
  background: var(--bg-card);
  border: 1px solid var(--gold);
  color: var(--gold);
  font-family: "Share Tech Mono", monospace;
  font-size: 0.64rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 8px 18px;
  white-space: nowrap;
  box-shadow: 0 0 18px rgba(201,162,39,0.2);
}

.scroll-cue {
  position: absolute;
  bottom: 34px; left: 50%;
  transform: translateX(-50%);
  font-family: "Share Tech Mono", monospace;
  font-size: 0.62rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.scroll-cue .line {
  width: 1px; height: 36px;
  background: linear-gradient(var(--gold), transparent);
  animation: pulse-line 2s ease-in-out infinite;
}
@keyframes pulse-line { 0%,100%{opacity:.3;} 50%{opacity:1;} }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero .lede { margin-left: auto; margin-right: auto; }
  .hero .btn-row { justify-content: center; }
  .hero-cover { order: -1; }
}

/* ---------------- Sections ---------------- */
section { padding: 110px 0; position: relative; }
section.alt { background: var(--bg-alt); }
.section-head { max-width: 640px; margin-bottom: 56px; }
.section-head .kicker { margin-bottom: 14px; display: block; }
.section-head h2 { font-size: clamp(2.1rem, 4vw, 3.1rem); }
.section-head p { color: var(--ink-dim); margin-top: 18px; }
hr.divider {
  border: none;
  height: 1px;
  background: linear-gradient(90deg, var(--gold), transparent);
  width: 90px;
  margin: 18px 0 0;
}

/* About / story blocks */
.story-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 70px;
  align-items: center;
}
.story-grid img {
  box-shadow: var(--shadow);
  filter: grayscale(0.35) contrast(1.12) brightness(0.92) sepia(0.08);
}
.story-grid .frame {
  position: relative;
  padding: 14px;
  border: 1px solid var(--line);
}
.story-grid .frame::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid var(--red);
  box-shadow: 0 0 24px rgba(167,52,47,0.25);
  transform: translate(10px, 10px);
  z-index: -1;
}
.pull-quote {
  font-family: "Share Tech Mono", monospace;
  font-style: italic;
  font-size: 1.3rem;
  color: var(--gold);
  border-left: 2px solid var(--red);
  padding-left: 22px;
  margin: 30px 0;
}
@media (max-width: 900px) {
  .story-grid { grid-template-columns: 1fr; }
}

/* Stats / badges row */
.badge-row {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
  margin-top: 46px;
}
.badge-row .item {
  display: flex;
  align-items: center;
  gap: 14px;
}
.badge-row .ring {
  width: 54px; height: 54px;
  border: 1px solid var(--gold);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--gold);
  font-family: "Black Ops One", sans-serif;
  font-size: 1.3rem;
}
.badge-row .label {
  font-family: "Share Tech Mono", monospace;
  font-size: 0.74rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-dim);
}

/* FAQ accordion */
.faq-list { border-top: 1px solid var(--line); max-width: 820px; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q {
  width: 100%;
  background: none;
  border: none;
  color: var(--ink);
  text-align: left;
  padding: 28px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  cursor: pointer;
  font-family: "Share Tech Mono", monospace;
  font-size: 1.05rem;
  letter-spacing: 0.01em;
}
.faq-q .num {
  color: var(--red-bright);
  font-family: "Black Ops One", sans-serif;
  font-size: 0.95rem;
  margin-right: 14px;
}
.faq-q .plus {
  font-family: "Black Ops One", sans-serif;
  font-size: 1.4rem;
  color: var(--gold);
  transition: transform 0.3s ease;
  flex-shrink: 0;
}
.faq-item.open .faq-q .plus { transform: rotate(45deg); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
  color: var(--ink-dim);
}
.faq-item.open .faq-a { padding-bottom: 28px; }
.faq-a p { margin: 0; max-width: 72ch; }

/* Order page */
.order-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.order-card {
  background: rgba(10,10,10,0.58);
  border: 1px solid var(--line);
  padding: 38px 30px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: relative;
}
.order-card .fmt {
  font-family: "Share Tech Mono", monospace;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.72rem;
  color: var(--gold);
}
.order-card h3 { font-size: 1.5rem; }
.order-card p { color: var(--ink-dim); font-size: 0.94rem; margin: 0; flex-grow: 1; }
.order-card.limited { border-color: var(--gold); }
.order-card.limited .fmt { color: var(--red-bright); }
.coming-soon-tag {
  position: absolute;
  top: -1px; right: -1px;
  background: var(--gold);
  color: #141208;
  font-family: "Share Tech Mono", monospace;
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 6px 12px;
}
@media (max-width: 900px) { .order-grid { grid-template-columns: 1fr; } }

/* Events */
.event-card {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  min-height: 540px;
  background: rgba(10,10,10,0.58);
  border: 1px solid var(--line);
  overflow: hidden;
}
.event-card img { height: 100%; width: 100%; min-height: 540px; object-fit: contain; object-position: center; background: #0a0a0b; }
.event-body { padding: 46px; display: flex; flex-direction: column; gap: 16px; }
.event-status {
  display: inline-flex;
  align-self: flex-start;
  font-family: "Share Tech Mono", monospace;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 9px 20px;
  border: 1px solid var(--line-strong);
  color: var(--ink-dim);
}
.event-status.past {
  color: #141208;
  background: var(--gold);
  border-color: var(--gold);
}
.event-meta { display: flex; flex-direction: column; gap: 10px; margin-top: 6px; }
.event-meta .row { display: flex; gap: 12px; align-items: baseline; color: var(--ink-dim); font-size: 0.96rem; }
.event-meta .row b { color: var(--ink); font-weight: 500; min-width: 110px; }
.events-empty {
  border: 1px dashed var(--line-strong);
  padding: 50px;
  text-align: center;
  color: var(--ink-dim);
  margin-top: 30px;
}
@media (max-width: 820px) {
  .event-card { grid-template-columns: 1fr; min-height: 0; }
  .event-card img { min-height: 0; max-height: 480px; }
}

/* Gallery */
.video-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-bottom: 54px;
}
@media (max-width: 900px) {
  .video-grid { grid-template-columns: repeat(2, 1fr); }
}
.video-card {
  margin: 0;
  border: 1px solid var(--line);
  background: rgba(10,10,10,0.58);
  overflow: hidden;
}
.video-card video {
  display: block;
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  background: #000;
}
.video-card figcaption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  font-family: "Share Tech Mono", monospace;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: var(--ink-dim);
  border-top: 1px solid var(--line);
}
.video-card figcaption a {
  color: var(--gold);
  text-decoration: none;
  white-space: nowrap;
}
.video-card figcaption a:hover { text-decoration: underline; }
.ig-embed-card {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  aspect-ratio: 9 / 16;
  text-decoration: none;
  background-color: #000;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
  transition: filter 0.3s ease;
}
.ig-embed-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.72) 0%, rgba(0,0,0,0.12) 45%, rgba(0,0,0,0.38) 100%);
}
.ig-embed-card:hover { filter: brightness(1.12); }
.ig-fallback {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  gap: 14px;
  width: 100%;
  color: #fff;
  font-family: "Share Tech Mono", monospace;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  text-align: center;
  padding: 20px;
  text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}
.ig-play {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.7);
  background: rgba(0,0,0,0.25);
  font-size: 1.1rem;
  padding-left: 3px;
}
.instagram-cta { text-align: center; padding: 48px 44px; }
.instagram-cta .btn-row { display: flex; }
@media (max-width: 640px) {
  .video-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
  .video-card figcaption { flex-direction: column; align-items: flex-start; gap: 4px; }
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.contact-card {
  background: rgba(10,10,10,0.58);
  border: 1px solid var(--line);
  padding: 44px 30px;
  text-align: center;
  transition: border-color 0.25s ease, transform 0.25s ease;
}
.contact-card:hover { border-color: var(--gold); transform: translateY(-4px); }
.contact-card .icon {
  width: 52px; height: 52px;
  margin: 0 auto 20px;
  border: 1px solid var(--gold);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--gold);
}
.contact-card h3 {
  font-family: "Share Tech Mono", monospace;
  font-size: 0.9rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.contact-card p { color: var(--ink-dim); font-size: 0.9rem; word-break: break-word; }
@media (max-width: 820px) { .contact-grid { grid-template-columns: 1fr; } }

/* Footer */
footer.site-footer {
  border-top: 1px solid var(--line);
  padding: 50px 0;
  background: #060607;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}
.footer-inner .brand { font-size: 0.8rem; }
.footer-social { display: flex; gap: 22px; }
.footer-social a {
  font-family: "Share Tech Mono", monospace;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-dim);
}
.footer-social a:hover { color: var(--gold); }
.copyright { color: var(--muted); font-size: 0.78rem; }

/* ---------------- Ruins backdrop + weathered panels ----------------
   NOTE: body also carries an animated `filter` (page-flicker, below).
   A `filter` on an ancestor creates a new containing block for any
   `position: fixed` descendant, which would break a fixed pseudo-element
   background here (it would size itself to the full scrolled body height
   instead of the viewport). background-attachment: fixed sidesteps that
   entirely, so the color grading is baked into the image itself instead
   of applied via a competing CSS filter. */
.ruins-bg {
  position: relative;
  background-color: #000;
  background-image:
    linear-gradient(to bottom, rgba(6,6,7,0.08) 0%, rgba(6,6,7,0.02) 35%, rgba(6,6,7,0.2) 75%, rgba(6,6,7,0.52) 100%),
    url("../images/bg-ruins.jpg");
  background-size: cover, cover;
  background-position: center 62%, center 62%;
  background-repeat: no-repeat, no-repeat;
  background-attachment: fixed, fixed;
}

.tablet {
  background: rgba(8,8,9,0.42);
  border: 1px solid rgba(236,230,216,0.18);
  outline: 1px solid rgba(0,0,0,0.6);
  outline-offset: -6px;
  box-shadow: 0 0 0 1px rgba(0,0,0,0.4), 0 30px 70px rgba(0,0,0,0.6);
  backdrop-filter: blur(1px);
}

.weathered {
  text-shadow:
    0 1px 0 rgba(255,255,255,0.06),
    2px 3px 0 rgba(0,0,0,0.65),
    0 0 40px rgba(0,0,0,0.8);
  letter-spacing: 0.01em;
}

/* Page intro (non-home pages) */
.page-intro {
  padding: 180px 0 70px;
  text-align: center;
}
.page-intro .kicker { justify-content: center; display: flex; margin-bottom: 16px; }
.page-intro h1 { font-size: clamp(2.6rem, 6vw, 4.4rem); }
.page-intro hr.divider { margin-left: auto; margin-right: auto; }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }

/* ---------------- Atmosphere: drifting smoke + embers + heat flashes ----------------
   A persistent fixed overlay on every page, above the background, below content
   readability — the "you are standing inside the ruins" layer. */
.atmosphere {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 3;
}
.atmosphere .smoke {
  position: absolute;
  bottom: -20%;
  width: 72vw;
  height: 62vh;
  border-radius: 50%;
  filter: blur(26px);
  mix-blend-mode: screen;
  background: radial-gradient(ellipse at center, rgba(130,132,136,0.30) 0%, rgba(90,90,92,0.16) 42%, rgba(60,58,58,0) 72%);
  animation: drift-smoke 75s ease-in-out infinite;
  will-change: transform;
}
.atmosphere .smoke.s1 { left: -18%; bottom: -22%; animation-duration: 80s; }
.atmosphere .smoke.s2 {
  left: 32%; bottom: -30%; width: 92vw; height: 70vh;
  animation-duration: 105s; animation-delay: -30s; opacity: 0.8;
}
.atmosphere .smoke.s3 {
  left: 58%; bottom: -16%; width: 62vw; height: 54vh;
  animation-duration: 65s; animation-delay: -48s;
  background: radial-gradient(ellipse at center, rgba(200,118,66,0.26) 0%, rgba(140,78,52,0.14) 45%, rgba(0,0,0,0) 72%);
}
@keyframes drift-smoke {
  0%   { transform: translate(-4%, 0%) scale(1); }
  50%  { transform: translate(5%, -3%) scale(1.06); }
  100% { transform: translate(-4%, 0%) scale(1); }
}
@media (prefers-reduced-motion: reduce) {
  .atmosphere .smoke { animation: none; }
}

.atmosphere .embers { position: absolute; inset: 0; }
.ember {
  position: absolute;
  bottom: -10px;
  left: 0;
  border-radius: 50%;
  background: radial-gradient(circle, #ffe2b0 0%, #ff9c4a 55%, rgba(255,120,40,0) 100%);
  box-shadow: 0 0 7px 2px rgba(255,140,60,0.55);
  opacity: 0;
  animation-name: ember-rise;
  animation-timing-function: ease-in;
  animation-iteration-count: infinite;
}
@keyframes ember-rise {
  0%   { transform: translate(0, 0); opacity: 0; }
  6%   { opacity: 0.85; }
  92%  { opacity: 0.5; }
  100% { transform: translate(var(--drift, 20px), -105vh); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .ember { display: none; }
}

/* occasional distant flare — a fire-glow pulse across the whole screen */
.heat-flash {
  position: fixed;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  background: radial-gradient(ellipse at 62% 74%, rgba(255,140,70,0.4) 0%, rgba(255,110,50,0.12) 35%, rgba(0,0,0,0) 65%);
  opacity: 0;
  transition: opacity 0.4s ease;
}
.heat-flash.active { opacity: 1; transition: opacity 0.12s ease; }

/* ---------------- Site music toggle ---------------- */
.music-toggle {
  position: fixed;
  z-index: 50;
  bottom: 28px;
  left: 28px;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(10,10,10,0.6);
  border: 1px solid var(--line-strong);
  color: var(--ink-dim);
  font-size: 1rem;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}
.music-toggle:hover { border-color: var(--gold); color: var(--gold); }
.music-toggle[aria-pressed="true"] { border-color: var(--gold); color: var(--gold); background: rgba(201,162,39,0.1); }
@media (max-width: 600px) {
  .music-toggle { bottom: 18px; left: 18px; width: 38px; height: 38px; font-size: 0.85rem; }
}
