/* ============================================================
   $AGARTHA — esoteric / hollow-earth bishounen aesthetic
   palette: ink-violet, illuminated gold, pink star, ethereal cyan
   ============================================================ */

:root {
  --ink:        #07041a;      /* deepest violet-black */
  --ink-2:      #120833;      /* deep cosmic violet */
  --ink-3:      #1f0c4a;      /* mid-mystic violet */
  --oxblood:    #4a0e2b;      /* deep ritual red */
  --gold:       #d4a949;      /* illuminated manuscript gold */
  --gold-soft:  #b89339;      /* darker gold for borders */
  --gold-bright:#f5cb6a;      /* highlight gold */
  --pink:       #ff6db5;      /* Ashtar's star */
  --pink-soft:  #c14b8c;
  --aether:     #9bd9f5;      /* a sparing celestial blue */
  --parchment:  #f0e6d4;      /* aged-paper cream text */
  --parchment-2:#c9bda5;      /* muted body text */
  --beige-dark: #5a4d38;      /* dark beige for scroll buttons */
  --panel-solid:#0b0622;      /* solid dark panel fill (matches header bar) */
}

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

html, body {
  width: 100%;
  min-height: 100%;
  background: var(--ink);
  color: var(--parchment);
  font-family: 'EB Garamond', 'Garamond', Georgia, serif;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body { scroll-behavior: smooth; }

/* Universal scene container */
.scene { display: none; width: 100%; min-height: 100vh; position: relative; }
.scene.active { display: block; }
#scene-landing.active, #scene-intro.active { height: 100vh; overflow: hidden; }

/* Filmic grain overlay (applied via pseudo on body — adds occult-paperback texture) */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1000;
  opacity: 0.07;
  mix-blend-mode: overlay;
  background-image:
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence baseFrequency='0.9' numOctaves='2'/></filter><rect width='100%' height='100%' filter='url(%23n)' opacity='0.6'/></svg>");
}

/* =========================================================
   SCENE 1 — Landing: ARE YOU WORTHY?
   ========================================================= */

.landing-bg {
  position: absolute;
  inset: 0;
  background-image: url('assets/images/ashtar-hero.jpg');
  background-size: cover;
  background-position: center;
  filter: brightness(0.42) saturate(1.25) contrast(1.06) hue-rotate(-5deg);
  animation: slowZoom 24s infinite ease-in-out alternate;
}
@keyframes slowZoom {
  from { transform: scale(1); }
  to   { transform: scale(1.10); }
}

.landing-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 55% at 50% 45%, rgba(74,14,43,0.05) 0%, rgba(7,4,26,0.425) 100%),
    linear-gradient(180deg, rgba(7,4,26,0.275) 0%, rgba(7,4,26,0.075) 45%, rgba(7,4,26,0.46) 100%);
}

.landing-content {
  position: relative;
  z-index: 2;
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.75rem;
  padding: 2rem;
  text-align: center;
}

.stars {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(2px 2px at 20% 30%, var(--gold-bright), transparent 60%),
    radial-gradient(1px 1px at 60% 70%, var(--parchment), transparent 60%),
    radial-gradient(1.5px 1.5px at 80% 20%, var(--pink), transparent 60%),
    radial-gradient(1px 1px at 40% 80%, var(--parchment), transparent 60%),
    radial-gradient(2px 2px at 90% 60%, var(--gold-bright), transparent 60%),
    radial-gradient(1px 1px at 10% 90%, var(--parchment), transparent 60%),
    radial-gradient(1px 1px at 70% 10%, var(--aether), transparent 60%),
    radial-gradient(1px 1px at 32% 55%, var(--parchment), transparent 60%);
  opacity: 0.55;
  animation: twinkle 6s infinite ease-in-out;
  pointer-events: none;
}
@keyframes twinkle {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 0.85; }
}

/* Ornamental flanking glyphs */
.sigil {
  font-family: 'Cinzel Decorative', 'Cinzel', serif;
  color: var(--gold);
  font-weight: 400;
  font-size: 1.6rem;
  letter-spacing: 0.4em;
  opacity: 0.85;
  display: inline-block;
  text-shadow: 0 0 18px rgba(212,169,73,0.4);
}
.sigil--big { font-size: 2.2rem; }

.worthy {
  margin: 0;
  line-height: 0;
}
.text-art {
  display: block;
  max-width: 100%;
  height: auto;
}
.text-art--worthy {
  width: min(96vw, 1260px);
  margin: 0 auto;
  animation: worthyPulse 4.5s infinite ease-in-out;
}
@keyframes worthyPulse {
  0%, 100% { opacity: 0.92; filter: drop-shadow(0 0 22px rgba(245,203,106,0.4)); }
  50%      { opacity: 1.00; filter: drop-shadow(0 0 35px rgba(245,203,106,0.7)) drop-shadow(0 0 80px rgba(255,109,181,0.35)); }
}

.subworthy {
  font-family: 'EB Garamond', serif;
  font-style: italic;
  font-size: clamp(1.0rem, 1.9vw, 1.35rem);
  color: var(--gold-bright);
  max-width: 620px;
  margin: 0.25rem 0 1rem;
  letter-spacing: 0.02em;
}

/* Image button skin (assets/images/button.png) — not used on .ca-box button */
.btn-skin {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  border: none;
  background-color: transparent;
  background-image: url('assets/images/button.png');
  background-repeat: no-repeat;
  background-position: center;
  background-size: 100% 100%;
  cursor: pointer;
  font-family: 'Cinzel Decorative', 'Cinzel', serif;
  font-weight: 700;
  color: var(--beige-dark);
  text-shadow: none;
  text-decoration: none;
  transition: filter 0.3s ease, transform 0.2s ease;
}
.btn-skin:hover {
  filter: brightness(1.12) drop-shadow(0 0 14px rgba(212,169,73,0.45));
}
.btn-skin:active {
  transform: scale(0.98);
  filter: brightness(0.95);
}

.enter-btn {
  font-size: clamp(0.75rem, 1.5vw, 1rem);
  letter-spacing: 0.28em;
  padding: 1.15rem 3.5rem 1.05rem;
  min-height: 3.75rem;
  min-width: 16rem;
  text-transform: uppercase;
}

/* =========================================================
   SCENE 2 — Intro Video
   ========================================================= */

#scene-intro { background: #000; display: none; }
#scene-intro.active { display: flex; align-items: center; justify-content: center; }
#intro-video {
  width: 100%;
  height: 100vh;
  object-fit: cover;          /* crop the black bars */
  background: #000;
}
.skip-btn {
  position: fixed;
  bottom: 1.75rem;
  right: 1.75rem;
  z-index: 10;
  padding: 0.8rem 2.35rem 0.75rem;
  min-height: 2.9rem;
  min-width: 8.5rem;
  letter-spacing: 0.22em;
  font-size: 0.72rem;
  text-transform: uppercase;
}

/* =========================================================
   SCENE 3 — Main Site
   ========================================================= */

#bg-video {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}
.bg-overlay {
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 40%, rgba(31,12,74,0.175) 0%, rgba(7,4,26,0.4) 70%),
    linear-gradient(180deg, rgba(7,4,26,0.275) 0%, rgba(7,4,26,0.39) 50%, rgba(7,4,26,0.46) 100%);
  z-index: -1;
}

/* ----- Top Nav ----- */
.top-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.0rem 2rem;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(7,4,26,0.72);
  border-bottom: 1px solid rgba(212,169,73,0.28);
  box-shadow: 0 1px 0 rgba(212,169,73,0.06);
}
.logo {
  display: block;
  line-height: 0;
  text-decoration: none;
}
.text-art--logo {
  height: 2.4rem;
  width: auto;
  filter: drop-shadow(0 0 14px rgba(212,169,73,0.45));
}
.nav-links {
  display: flex;
  gap: 2.25rem;
  list-style: none;
}
.nav-links a {
  color: var(--parchment-2);
  text-decoration: none;
  font-family: 'Cinzel Decorative', serif;
  font-size: 0.78rem;
  letter-spacing: 0.32em;
  transition: color 0.25s;
  font-weight: 700;
}
.nav-links a:hover { color: var(--gold); }
.nav-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 1.7rem;
  color: var(--gold);
}
.nav-icon--glyph {
  font-family: 'EB Garamond', serif;
  font-size: 1.5rem;
  line-height: 1;
  transition: filter 0.3s, transform 0.25s;
}
.nav-icon--img {
  width: auto;
  height: 1.7rem;
  object-fit: contain;
  filter: drop-shadow(0 0 8px rgba(212,169,73,0.3));
  transition: filter 0.3s, transform 0.25s;
}
.nav-icon:hover .nav-icon--glyph {
  color: var(--gold-bright);
  filter: drop-shadow(0 0 10px rgba(245,203,106,0.6));
  transform: scale(1.1);
}
.nav-icon:hover .nav-icon--img {
  filter: drop-shadow(0 0 13px rgba(245,203,106,0.6));
  transform: scale(1.1);
}
.mute-btn {
  background: none;
  border: none;
  padding: 0;
  min-width: 0;
  min-height: 0;
  height: 1.7rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  line-height: 1;
  color: var(--gold);
  cursor: pointer;
  flex-shrink: 0;
  filter: drop-shadow(0 0 8px rgba(212,169,73,0.3));
  transition: filter 0.3s, transform 0.25s, color 0.3s;
}
.mute-btn:hover {
  color: var(--gold-bright);
  filter: drop-shadow(0 0 13px rgba(245,203,106,0.6));
  transform: scale(1.1);
}
.mute-btn.muted {
  opacity: 0.45;
  filter: grayscale(0.35) brightness(0.85);
  color: var(--parchment-2);
}

/* ----- Hero (main landing section) ----- */
.hero {
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  min-height: 100dvh;
  padding: 1.5rem 2rem 0;
  text-align: center;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background-image: url('assets/images/agartha-background.jpg');
  background-size: cover;
  background-position: center center;
  background-attachment: fixed;
  background-color: var(--ink-2);
}

.hero-bg-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(ellipse 80% 70% at 50% 45%, rgba(7,4,26,0.075) 0%, rgba(7,4,26,0.275) 100%),
    linear-gradient(180deg, rgba(7,4,26,0.125) 0%, rgba(7,4,26,0.2) 50%, rgba(7,4,26,0.325) 100%);
  pointer-events: none;
}

.hero-ufo {
  position: absolute;
  top: 5.25rem;
  z-index: 2;
  width: min(12.8vw, 106px);
  height: auto;
  pointer-events: none;
  user-select: none;
  opacity: 0.9;
  filter: drop-shadow(0 0 18px rgba(155, 217, 245, 0.35));
}

.hero-ufo--left {
  left: max(3.5rem, 10vw);
  animation: heroUfoFloatLeft 5.2s ease-in-out infinite;
}

.hero-ufo--right {
  right: max(3.5rem, 10vw);
  animation: heroUfoFloatRight 6.9s ease-in-out infinite 2.6s;
}

@keyframes heroUfoFloatLeft {
  0%, 100% { transform: rotate(-14deg) translateY(0); }
  50%      { transform: rotate(-14deg) translateY(-11px); }
}

@keyframes heroUfoFloatRight {
  0%, 100% { transform: rotate(14deg) translateY(0); }
  50%      { transform: rotate(14deg) translateY(-11px); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-ufo--left,
  .hero-ufo--right {
    animation: none;
  }
  .hero-ufo--left  { transform: rotate(-14deg); }
  .hero-ufo--right { transform: rotate(14deg); }
}

.hero-yakub,
.hero-ashtar {
  position: absolute;
  bottom: 0;
  z-index: 2;
  width: auto;
  height: min(62vh, 560px);
  max-width: min(40vw, 460px);
  object-fit: contain;
  pointer-events: none;
  user-select: none;
}

.hero-yakub {
  left: 0;
  object-position: bottom left;
  filter: drop-shadow(0 0 40px rgba(212, 169, 73, 0.22));
}

.hero-ashtar {
  right: 0;
  object-position: bottom right;
  filter: drop-shadow(0 0 40px rgba(155, 217, 245, 0.25));
}

.hero-content {
  position: relative;
  z-index: 2;
  min-height: calc(100dvh - 5rem);
  min-height: calc(100vh - 5rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding-top: 0;
}
.welcome {
  margin: 0;
  line-height: 0;
  animation: welcomeFadeIn 1.6s ease-out;
}
.text-art--welcome {
  width: min(92vw, 900px);
  height: auto;
  margin: 0 auto;
  filter: drop-shadow(0 0 28px rgba(245,203,106,0.5)) drop-shadow(0 0 65px rgba(255,109,181,0.35));
}
@keyframes welcomeFadeIn {
  from { opacity: 0; transform: translateY(24px) scale(0.95); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
.tagline {
  font-family: 'EB Garamond', serif;
  font-size: clamp(1.0rem, 1.9vw, 1.35rem);
  font-style: italic;
  max-width: 680px;
  color: var(--gold-bright);
  letter-spacing: 0.04em;
  line-height: 1.45;
  margin-top: 0;
}

/* Decorative hr-glyph divider — used inside hero + between sections */
.glyph-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.2rem;
  margin: 1.25rem 0 1.25rem;
  color: var(--gold);
  font-family: 'Cinzel Decorative', serif;
  font-size: 1.05rem;
  letter-spacing: 0.5em;
  opacity: 0.85;
}
.glyph-divider::before,
.glyph-divider::after {
  content: "";
  flex: 0 1 110px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-soft), transparent);
}

/* CA box */
.ca-box {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.75rem;
  padding: 1rem 3.25rem;
  min-height: 3.35rem;
  background-color: transparent;
  background-image: url('assets/images/button.png');
  background-repeat: no-repeat;
  background-position: center;
  background-size: 100% 100%;
  border: none;
  border-radius: 0;
  font-family: 'Cinzel Decorative', 'Cinzel', serif;
  flex-wrap: wrap;
  justify-content: center;
  max-width: 95%;
  cursor: pointer;
  transition: filter 0.3s ease, transform 0.2s ease;
}
.ca-box:hover {
  filter: brightness(1.08) drop-shadow(0 0 14px rgba(212,169,73,0.45));
}
.ca-box:active {
  transform: scale(0.99);
  filter: brightness(0.96);
}
.ca-label {
  color: var(--beige-dark);
  font-weight: 700;
  letter-spacing: 0.2em;
  font-size: 0.78rem;
  font-family: 'Cinzel Decorative', 'Cinzel', serif;
  text-transform: uppercase;
}
.ca-box code {
  color: var(--beige-dark);
  word-break: break-all;
  font-size: 0.8rem;
  font-weight: 700;
  font-family: 'Cinzel Decorative', 'Cinzel', serif;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.buy-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 1rem;
}
.btn-primary,
.btn-secondary {
  padding: 1rem 2.85rem 0.95rem;
  min-height: 3.35rem;
  min-width: 12.5rem;
  letter-spacing: 0.22em;
  font-size: 0.78rem;
  text-transform: uppercase;
}

/* ----- Sections ----- */
.content-section {
  position: relative;
  z-index: 1;
  padding: 5rem 2rem 5rem;
  max-width: 1180px;
  margin: 0 auto;
}
.content-section h2 {
  display: block;
  width: 100%;
  max-width: 900px;
  margin: 0 auto 0.4rem;
  font-family: 'Cinzel Decorative', 'Cinzel', serif;
  font-size: clamp(2.4rem, 5.5vw, 4rem);
  font-weight: 900;
  letter-spacing: 0.18em;
  line-height: 1.1;
  text-align: center;
  color: var(--gold);
  text-shadow: 0 0 22px rgba(212,169,73,0.45), 0 0 60px rgba(212,169,73,0.18);
  text-wrap: balance;
}
.content-section h2 .sigil { margin: 0 0.8em; vertical-align: middle; font-size: 0.7em; }
.section-title {
  display: block;
  text-align: center;
  line-height: 0;
  margin: 0 auto 1rem;
  position: relative;
  z-index: 2;
}
.content-section h2.section-title {
  color: transparent;
  text-shadow: none;
  margin: 0 auto 1rem;
}
.text-art--section-title {
  display: block;
  width: min(78vw, 620px);
  height: auto;
  max-width: 90vw;
  margin: 0 auto;
  filter: drop-shadow(0 0 28px rgba(212,169,73,0.38)) drop-shadow(0 0 60px rgba(155,217,245,0.16));
}
.section-title--memes .text-art--section-title {
  width: min(97.5vw, 775px);
  max-width: 97.5vw;
}
.section-title--howto .text-art--section-title,
.section-title--socials .text-art--section-title {
  width: min(92vw, 840px);
  max-width: 92vw;
}

.section-sub {
  display: block;
  text-align: center;
  font-style: italic;
  color: var(--parchment-2);
  font-size: 1.05rem;
  font-family: 'EB Garamond', serif;
  letter-spacing: 0.03em;
  max-width: 640px;
  margin: 0 auto 2rem;
}

/* ----- Lore (illuminated cards) ----- */
.lore-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}
.lore-block {
  position: relative;
  padding: 2.1rem 1.85rem 1.85rem;
  background: var(--panel-solid);
  border: 1px solid var(--gold-soft);
  border-radius: 10px;
  transition: all 0.4s;
  overflow: hidden;
}
.lore-block::before,
.lore-block::after {
  content: "✦";
  position: absolute;
  color: var(--gold);
  font-family: 'Cinzel Decorative', serif;
  font-size: 0.85rem;
  opacity: 0.7;
}
.lore-block::before { top: 0.4rem; left: 0.55rem; }
.lore-block::after  { bottom: 0.4rem; right: 0.55rem; }
.lore-block:hover {
  border-color: var(--gold);
  transform: translateY(-4px);
  box-shadow: 0 12px 35px rgba(212,169,73,0.18), 0 0 1px rgba(212,169,73,0.4);
}
.lore-block h3 {
  font-family: 'Cinzel Decorative', serif;
  color: var(--gold-bright);
  margin-bottom: 0.9rem;
  font-size: 1.05rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.lore-block p {
  font-family: 'EB Garamond', serif;
  font-size: 1.12rem;
  line-height: 1.6;
  color: var(--parchment);
  letter-spacing: 0.01em;
}
.lore-block p::first-letter {
  font-family: 'UnifrakturCook', 'Cinzel Decorative', serif;
  font-size: 2.4em;
  float: left;
  line-height: 0.9;
  padding: 0.05em 0.18em 0 0;
  color: var(--gold-bright);
  text-shadow: 0 0 12px rgba(212,169,73,0.4);
}

.lore-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 2.5rem;
  align-items: stretch;
}
.lore-block--full {
  text-align: left;
}
.lore-map {
  position: relative;
  align-self: start;
  border: 1px solid var(--gold-soft);
  border-radius: 10px;
  overflow: hidden;
  background: var(--ink-2);
  box-shadow: 0 0 35px rgba(212,169,73,0.18) inset, 0 8px 30px rgba(0,0,0,0.45);
}
.lore-map img {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
  filter: saturate(1.05) contrast(1.03);
}
.lore-map img + img {
  border-top: 1px solid var(--gold-soft);
}
.lore-map::before,
.lore-map::after {
  content: "✦";
  position: absolute;
  color: var(--gold);
  font-family: 'Cinzel Decorative', serif;
  font-size: 0.95rem;
  opacity: 0.85;
  z-index: 2;
  text-shadow: 0 0 10px rgba(212,169,73,0.5);
}
.lore-map::before { top: 0.5rem; left: 0.65rem; }
.lore-map::after  { bottom: 0.5rem; right: 0.65rem; }

.lore-block--full p + p {
  margin-top: 1rem;
}
.lore-block--full p::first-letter { all: unset; }
.lore-block--full p:first-of-type::first-letter {
  font-family: 'UnifrakturCook', 'Cinzel Decorative', serif;
  font-size: 2.4em;
  float: left;
  line-height: 0.9;
  padding: 0.05em 0.18em 0 0;
  color: var(--gold-bright);
  text-shadow: 0 0 12px rgba(212,169,73,0.4);
}

@media (max-width: 860px) {
  .lore-layout {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .lore-map { aspect-ratio: auto; }
}

/* ----- Memes ----- */
.lore-layout,
.meme-marquee,
.socials-grid {
  margin-top: 0.5rem;
}

.meme-marquee {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  width: 100%;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 8%, #000 92%, transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0, #000 8%, #000 92%, transparent 100%);
}
.meme-row {
  overflow: hidden;
  width: 100%;
}
.meme-track {
  display: flex;
  gap: 1.25rem;
  width: max-content;
  will-change: transform;
}
.meme-row--left  .meme-track { animation: marqueeLeft  60s linear infinite; }
.meme-row--right .meme-track { animation: marqueeRight 60s linear infinite; }
.meme-row:hover .meme-track   { animation-play-state: paused; }

.meme-marquee .meme-card {
  flex: 0 0 auto;
  width: clamp(220px, 22vw, 320px);
  aspect-ratio: 1 / 1;
}

@keyframes marqueeLeft {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@keyframes marqueeRight {
  from { transform: translateX(-50%); }
  to   { transform: translateX(0); }
}

@media (prefers-reduced-motion: reduce) {
  .meme-row--left .meme-track,
  .meme-row--right .meme-track { animation: none; }
  .meme-marquee { -webkit-mask-image: none; mask-image: none; overflow-x: auto; }
}
.meme-card {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  text-decoration: none;
  border: 1px solid var(--gold-soft);
  border-radius: 10px;
  transition: all 0.35s;
  background: var(--ink);
}
.meme-card::before {
  /* gold corner ornaments */
  content: "";
  position: absolute;
  inset: 4px;
  border: 1px solid rgba(212,169,73,0.25);
  border-radius: 7px;
  pointer-events: none;
  z-index: 2;
  transition: all 0.35s;
}
.meme-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 38px rgba(212,169,73,0.28), 0 0 1px var(--gold);
  border-color: var(--gold);
}
.meme-card:hover::before { border-color: rgba(245,203,106,0.55); inset: 8px; }
.meme-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.65s ease;
  filter: saturate(1.05);
}
.meme-card:hover img { transform: scale(1.08); filter: saturate(1.18); }
.meme-card .credit {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 0.7rem;
  background: linear-gradient(to top, rgba(7,4,26,0.95), rgba(7,4,26,0));
  color: var(--gold-bright);
  font-family: 'Cinzel Decorative', serif;
  letter-spacing: 0.18em;
  text-align: center;
  font-size: 0.78rem;
  z-index: 3;
}
.meme-quote {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: linear-gradient(135deg, rgba(31,12,74,0.85), rgba(7,4,26,0.95));
  color: var(--parchment);
  text-align: center;
}
.meme-quote .quote-text {
  font-family: 'EB Garamond', serif;
  font-style: italic;
  font-size: 1.25rem;
  line-height: 1.4;
  color: var(--gold-bright);
}

/* ----- Socials ----- */
.socials-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 240px));
  gap: 1.5rem;
  max-width: 820px;
  margin: 0.5rem auto 0;
  justify-content: center;
}

@media (max-width: 720px) {
  .socials-grid {
    grid-template-columns: 1fr;
    max-width: 360px;
  }
}
.social-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.7rem;
  padding: 2.5rem 1.5rem;
  background: var(--panel-solid);
  border: 1px solid var(--gold-soft);
  border-radius: 10px;
  text-decoration: none;
  color: var(--parchment);
  transition: all 0.4s;
  position: relative;
}
.social-card::before,
.social-card::after {
  content: "✦";
  position: absolute;
  color: var(--gold);
  font-family: 'Cinzel Decorative', serif;
  font-size: 0.75rem;
  opacity: 0.7;
}
.social-card::before { top: 0.45rem; left: 0.55rem; }
.social-card::after  { top: 0.45rem; right: 0.55rem; }
.social-card:hover {
  transform: translateY(-6px);
  border-color: var(--gold);
  box-shadow: 0 12px 35px rgba(212,169,73,0.25);
}
.social-icon {
  font-size: 2.4rem;
  color: var(--gold);
  line-height: 1;
}
.social-icon--img {
  width: auto;
  height: 2.7rem;
  object-fit: contain;
  filter: drop-shadow(0 0 10px rgba(212,169,73,0.35));
  transition: filter 0.4s, transform 0.4s;
}
.social-card[data-net="x"]:hover       .social-icon { color: var(--parchment); }
.social-card:hover .social-icon--img {
  filter: drop-shadow(0 0 16px rgba(245,203,106,0.65));
  transform: scale(1.08);
}
.social-name {
  font-family: 'Cinzel Decorative', serif;
  letter-spacing: 0.26em;
  font-size: 0.78rem;
  color: var(--gold-bright);
  font-weight: 700;
}
.social-handle {
  font-family: 'Courier Prime', 'Courier New', monospace;
  font-size: 0.82rem;
  color: var(--parchment-2);
}

/* ----- Section breaks (between sections) ----- */
.section-break {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.4rem;
  margin: 1rem auto 1rem;
  color: var(--gold-soft);
  font-family: 'Cinzel Decorative', serif;
  font-size: 1rem;
  letter-spacing: 0.55em;
  max-width: 600px;
}
.section-break::before,
.section-break::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-soft), transparent);
}

/* Section-specific atmospheric backgrounds */
.lore-section,
.memes-section,
.socials-section {
  max-width: none;
  margin: 0;
  padding-left: 0;
  padding-right: 0;
  overflow-x: clip;
}
.lore-section > *,
.memes-section > *,
.socials-section > * {
  max-width: 1180px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 2rem;
  padding-right: 2rem;
  text-align: center;
}
.lore-section::before,
.memes-section::before,
.socials-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  z-index: -2;
  opacity: 0.85;
}
.lore-section::after,
.memes-section::after,
.socials-section::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 40%, rgba(31,12,74,0.131) 0%, rgba(7,4,26,0.293) 70%),
    linear-gradient(180deg, rgba(7,4,26,0.206) 0%, rgba(7,4,26,0.244) 50%, rgba(7,4,26,0.319) 100%);
  z-index: -1;
  pointer-events: none;
}

.lore-section::before    { background-image: url('assets/images/agartha-background-2.jpg'); }
.memes-section::before   { background-image: url('assets/images/agartha-background-3.jpg'); }
.socials-section::before { background-image: url('assets/images/agartha-background-4.jpg'); }

/* ----- Footer ----- */
.site-footer {
  padding: 1.5rem 2rem 2.5rem;
  text-align: center;
  margin-top: 0;
  background: rgba(7,4,26,0.78);
}
.site-footer p {
  margin-bottom: 0.45rem;
  font-family: 'Cinzel Decorative', serif;
  letter-spacing: 0.24em;
  font-size: 0.78rem;
  color: var(--gold);
}
.site-footer .fine-print {
  font-family: 'EB Garamond', serif;
  font-style: italic;
  color: var(--parchment-2);
  font-size: 0.92rem;
  letter-spacing: 0.04em;
}

/* Hidden YT player */
#yt-wrap {
  position: fixed;
  left: -9999px;
  top: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

/* ----- Mobile ----- */
@media (max-width: 768px) {
  .top-nav { padding: 0.85rem 1rem; flex-wrap: wrap; gap: 0.65rem; }
  .nav-links { gap: 1.2rem; order: 3; flex-basis: 100%; justify-content: center; }
  .nav-links a { font-size: 0.7rem; letter-spacing: 0.22em; }
  .text-art--logo { height: 2rem; }
  .content-section { padding: 3rem 1.25rem 3rem; }
  .content-section h2 { font-size: clamp(2.1rem, 8.5vw, 3.2rem); letter-spacing: 0.14em; }
  .text-art--section-title { width: min(86vw, 440px); }
  .section-title--memes .text-art--section-title {
    width: min(107.5vw, 550px);
    max-width: 100vw;
  }
  .section-title--howto .text-art--section-title,
  .section-title--socials .text-art--section-title {
    width: min(96vw, 560px);
    max-width: 96vw;
  }
  .section-sub { margin-bottom: 0.85rem; font-size: 0.98rem; }
  .hero { padding: 1rem 1.25rem 0; min-height: 100dvh; }
  .hero-ufo {
    width: min(16vw, 77px);
    top: 7.25rem;
    opacity: 0.82;
  }
  .hero-ufo--left  { left: max(2.25rem, 14vw); }
  .hero-ufo--right { right: max(2.25rem, 14vw); }
  .hero-yakub,
  .hero-ashtar {
    height: min(48vh, 380px);
    max-width: min(46vw, 220px);
    opacity: 0.92;
  }
  .welcome { margin: 0; }
  .text-art--welcome { width: min(94vw, 650px); }
  .hero-bg { background-attachment: scroll; }
  .lore-block { padding: 1.55rem 1.3rem; }
  .lore-section::before,
  .memes-section::before,
  .socials-section::before { background-attachment: scroll; }
  .lore-section > *,
  .memes-section > *,
  .socials-section > * { padding-left: 1.25rem; padding-right: 1.25rem; }
}

/* =========================================================
   ADDED SECTION — How to Buy (Crossing the Threshold)
   Reuses the established full-bleed parallax pattern.
   ========================================================= */

.howto-section {
  max-width: none;
  margin: 0;
  padding-left: 0;
  padding-right: 0;
  overflow-x: clip;
}
.howto-section > * {
  max-width: 1180px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 2rem;
  padding-right: 2rem;
  text-align: center;
}
.howto-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  z-index: -2;
  opacity: 0.85;
}
.howto-section::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 40%, rgba(31,12,74,0.131) 0%, rgba(7,4,26,0.293) 70%),
    linear-gradient(180deg, rgba(7,4,26,0.206) 0%, rgba(7,4,26,0.244) 50%, rgba(7,4,26,0.319) 100%);
  z-index: -1;
  pointer-events: none;
}
.howto-section::before      { background-image: url('assets/images/agartha-background-2.jpg'); }

/* ----- How to Buy (the four rites) ----- */
.howto-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.5rem;
  margin-top: 0.5rem;
}
.howto-step {
  position: relative;
  padding: 3rem 1.6rem 1.9rem;
  background: var(--panel-solid);
  border: 1px solid var(--gold-soft);
  border-radius: 10px;
  text-align: center;
  transition: all 0.4s;
}
.howto-step:hover {
  transform: translateY(-4px);
  border-color: var(--gold);
  box-shadow: 0 12px 35px rgba(212,169,73,0.2);
}
.step-numeral {
  position: absolute;
  top: -0.85rem;
  left: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.7rem;
  height: 2.7rem;
  border-radius: 50%;
  background: var(--ink-2);
  border: 1px solid var(--gold-soft);
  font-family: 'Cinzel Decorative', serif;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.05em;
  color: var(--gold-bright);
  text-shadow: 0 0 14px rgba(212,169,73,0.5);
  box-shadow: 0 0 22px rgba(212,169,73,0.25);
}
.howto-step h3 {
  font-family: 'Cinzel Decorative', serif;
  color: var(--gold-bright);
  margin-bottom: 0.7rem;
  font-size: 1rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.howto-step p {
  font-family: 'EB Garamond', serif;
  font-size: 1.05rem;
  line-height: 1.55;
  color: var(--parchment);
}
.howto-cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 2.5rem;
}

@media (max-width: 768px) {
  .howto-section::before { background-attachment: scroll; }
  .howto-section > * { padding-left: 1.25rem; padding-right: 1.25rem; }
}

/* ============================================================
   United Colony display font (easy to revert: delete this block)
   Variants available: 'United Colony' (regular), '…3D', '…Grad'
   ============================================================ */
@font-face {
  font-family: 'United Colony';
  src: url('assets/fonts/unitedcolony.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'United Colony 3D';
  src: url('assets/fonts/unitedcolony3d.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'United Colony Grad';
  src: url('assets/fonts/unitedcolonygrad.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
.nav-links a,
.lore-block h3,
.howto-step h3,
.social-name,
.step-numeral {
  font-family: 'United Colony', 'Cinzel Decorative', 'Cinzel', serif;
}
/* Scroll-skinned elements (CA box + buttons) use the Space Age face */
.btn-skin,
.ca-label,
.ca-box code {
  font-family: 'Space Age', 'Cinzel Decorative', 'Cinzel', serif;
}
/* United Colony is condensed — size it up for presence */
.lore-block h3,
.howto-step h3 {
  letter-spacing: 0.03em;
  font-size: 1.05rem;
}
.btn-primary,
.btn-secondary {
  letter-spacing: 0.1em;
  font-size: 0.86rem;
}
.enter-btn { font-size: clamp(0.95rem, 1.9vw, 1.25rem); }
.nav-links a { letter-spacing: 0.12em; }
.ca-label { font-size: 0.92rem; }
.ca-box code { letter-spacing: 0.03em; font-size: 0.95rem; }
.social-name { letter-spacing: 0.1em; font-size: 0.9rem; }
.step-numeral { font-size: 1.2rem; }
/* United Colony on the hero tagline + landing subtext (match the lander) */
.tagline,
.subworthy {
  font-family: 'United Colony', 'EB Garamond', serif;
  font-style: normal;
  letter-spacing: 0.01em;
  font-size: clamp(0.85rem, 1.7vw, 1.2rem);
  line-height: 1.6;
}
/* More breathing room between header and content — only Entering Agartha + Inner Circle */
.content-section h2.section-title--howto,
.content-section h2.section-title--socials {
  margin-bottom: 3.25rem;
}
.howto-section .howto-steps,
.socials-section #dexscreener-embed {
  margin-top: 1.5rem;
}

/* ============================================================
   Space Age font on body / paragraph text
   ============================================================ */
@font-face {
  font-family: 'Space Age';
  src: url('assets/fonts/space-age.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
.lore-block p,
.lore-block--full p,
.howto-step p {
  font-family: 'Space Age', 'EB Garamond', serif;
}
/* Remove all text from the From the Feed meme tiles
   (hide the @handle overlays; drop the text-only quote tiles entirely) */
.meme-card .credit {
  display: none;
}
.meme-marquee .meme-quote {
  display: none;
}
