/* Register CSS custom properties for Houdini animation */
@property --btn-angle {
  syntax: '<angle>';
  inherits: false;
  initial-value: 0deg;
}

:root {
  --color-obsidian: #0B0B0C;
  --color-charcoal: #1A1A1D;
  --color-gold: #e9a92b;
  --color-ember: #6A2A1B;
}

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

body {
  background-color: var(--color-obsidian);
  color: var(--color-gold);
  font-family: "Palatino Linotype", "Book Antiqua", Palatino, serif;
  overflow-x: hidden;
  overflow-y: auto;
  scroll-behavior: smooth;
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
}

html,
body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

.hero-section {
  position: relative;
  width: 100vw;
  height: 100vh;
  background-color: var(--color-obsidian);
  overflow: hidden;

  /* ✅ FORCE stick to very top */
  margin-top: 0;
  top: 0;
}

video {
  display: block;
  /* ✅ prevents inline baseline gaps everywhere */
}

.layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

/* 0. Image Background */
.layer-0-bg {
  z-index: 0;
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: translate(-50%, -50%) scale(1.13);
  /* ✅ KEY FIX */
  filter: contrast(1.1) saturate(0.85);
}

/* 1. Dark Overlay Engine */
.layer-1-overlay {
  z-index: 1;
  background: rgba(137, 137, 137, 0.75);
  mix-blend-mode: multiply;
}

/* 3. Canvas Layer for Light Rays */
.layer-3-canvas {
  z-index: 3;
  mix-blend-mode: screen;
}

/* 4. Content UI & Buttons */
.content-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 3.5rem;
  padding: 2rem;
  z-index: 6;
}

.layer-4-ui {
  z-index: 4;
  position: relative;
}

.action-row {
  display: flex;
  gap: 2.5rem;
  pointer-events: none;
  align-items: center;
}

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   FORGE BUTTON â€” Liquid Glass Gel Pill
   Inspired by: dark gel capsule with bright inner core
   and radiant outer bloom on hover
â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */

/* Override global border-radius: 0 !important for pill shape */
.forge-btn {
  border-radius: 100px !important;
}

.forge-btn::before,
.forge-btn::after {
  border-radius: inherit !important;
}

/* â”€â”€ BASE BUTTON â”€â”€ */
.forge-btn {
  --btn-x: 50%;
  --btn-y: 50%;

  pointer-events: auto;
  z-index: 4;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1.1rem 3.2rem;
  font-family: "Palatino Linotype", "Book Antiqua", Palatino, serif;
  font-size: 1rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  cursor: pointer;
  outline: none;
  border: none;
  overflow: hidden;
  transition: box-shadow 0.4s ease, transform 0.2s ease;

  /* Dark glass gel body */
  background: linear-gradient(160deg,
      rgba(18, 16, 10, 0.88) 0%,
      rgba(3, 3, 3, 0.97) 55%,
      rgba(8, 7, 4, 0.92) 100%);

  /* Resting glow: subtle gold halo + thin border ring + depth shadow */
  box-shadow:
    inset 0 1.5px 0 rgba(255, 215, 110, 0.20),
    inset 0 -1px 0 rgba(0, 0, 0, 0.65),
    inset 0 0 28px rgba(233, 169, 43, 0.04),
    0 0 18px rgba(200, 145, 30, 0.08),
    0 8px 30px rgba(0, 0, 0, 0.60),
    0 0 0 1px rgba(233, 169, 43, 0.20);

  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

/* â”€â”€ Glassy top-edge lens highlight â”€â”€ */
.forge-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 50%;
  /* The bright curved reflection at the top of the pill */
  background: linear-gradient(to bottom,
      rgba(255, 225, 130, 0.18) 0%,
      rgba(255, 210, 90, 0.05) 50%,
      transparent 100%);
  border-radius: 100px 100px 0 0 !important;
  pointer-events: none;
  z-index: 2;
}

/* â”€â”€ Mouse-tracking inner warm glow â”€â”€ */
.forge-btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at var(--btn-x) var(--btn-y),
      rgba(255, 205, 80, 0.20) 0%,
      rgba(233, 169, 43, 0.09) 35%,
      transparent 65%);
  pointer-events: none;
  z-index: 1;
  transition: background 0.08s linear;
}

/* â”€â”€ Text label â”€â”€ */
.forge-btn span {
  position: relative;
  z-index: 3;
  color: rgba(233, 169, 43, 0.90);
  text-shadow:
    0 0 10px rgba(233, 169, 43, 0.50),
    0 0 28px rgba(200, 145, 30, 0.22);
  transition:
    color 0.4s ease,
    text-shadow 0.4s ease,
    letter-spacing 0.4s ease;
}

/* â”€â”€ Shimmer sweep â”€â”€ */
.forge-btn .btn-shimmer {
  position: absolute;
  top: 0;
  left: -120%;
  width: 55%;
  height: 100%;
  background: linear-gradient(108deg,
      transparent 18%,
      rgba(255, 218, 110, 0.15) 40%,
      rgba(255, 255, 200, 0.07) 50%,
      rgba(255, 218, 110, 0.15) 62%,
      transparent 82%);
  transform: skewX(-18deg);
  z-index: 2;
  pointer-events: none;
  border-radius: 0 !important;
  animation: gelShimmer 5.5s ease-in-out infinite;
}

@keyframes gelShimmer {
  0% {
    left: -120%;
    opacity: 0;
  }

  22% {
    opacity: 1;
  }

  65% {
    left: 175%;
    opacity: 1;
  }

  100% {
    left: 175%;
    opacity: 0;
  }
}

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   HOVER STATE
â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
.forge-btn:hover {
  box-shadow:
    /* Brighter inner top edge */
    inset 0 1.5px 0 rgba(255, 225, 130, 0.38),
    inset 0 -1px 0 rgba(0, 0, 0, 0.80),
    inset 0 0 40px rgba(233, 169, 43, 0.08),
    /* The big outer bloom â€” key visual from reference */
    0 0 28px rgba(233, 169, 43, 0.50),
    0 0 65px rgba(200, 145, 30, 0.28),
    0 0 110px rgba(180, 120, 20, 0.13),
    /* Depth */
    0 10px 38px rgba(0, 0, 0, 0.80),
    /* Border brightens */
    0 0 0 1px rgba(233, 169, 43, 0.60);
}

.forge-btn:hover span {
  color: #fff;
  text-shadow:
    0 0 8px rgba(255, 225, 130, 0.95),
    0 0 22px rgba(233, 169, 43, 0.65),
    0 0 55px rgba(200, 145, 30, 0.30);
  letter-spacing: 0.26em;
}

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   ACTIVE / CLICK
â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
.forge-btn:active {
  transform: scale(0.96);
  box-shadow:
    inset 0 2px 14px rgba(0, 0, 0, 0.75),
    0 0 22px rgba(233, 169, 43, 0.55),
    0 0 0 1px rgba(233, 169, 43, 0.80);
}

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   PRIMARY VARIANT â€” "Enter the Realm"
   Glows brighter from rest, stronger bloom
â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
.forge-btn.forge-btn--primary {
  background: linear-gradient(160deg,
      rgba(28, 24, 8, 0.92) 0%,
      rgba(5, 4, 1, 0.97) 55%,
      rgba(15, 12, 3, 0.94) 100%);
  box-shadow:
    inset 0 1.5px 0 rgba(255, 225, 120, 0.30),
    inset 0 -1px 0 rgba(0, 0, 0, 0.65),
    inset 0 0 40px rgba(233, 169, 43, 0.07),
    0 0 28px rgba(233, 169, 43, 0.22),
    0 0 60px rgba(200, 145, 30, 0.09),
    0 8px 30px rgba(0, 0, 0, 0.70),
    0 0 0 1px rgba(233, 169, 43, 0.38);
}

.forge-btn.forge-btn--primary::before {
  background: linear-gradient(to bottom,
      rgba(255, 235, 145, 0.25) 0%,
      rgba(255, 215, 90, 0.07) 50%,
      transparent 100%);
}

.forge-btn.forge-btn--primary span {
  color: #fff;
  text-shadow:
    0 0 12px rgba(255, 225, 130, 0.95),
    0 0 32px rgba(233, 169, 43, 0.55),
    0 0 65px rgba(200, 145, 30, 0.28);
}

.forge-btn.forge-btn--primary:hover {
  box-shadow:
    inset 0 1.5px 0 rgba(255, 235, 145, 0.50),
    inset 0 -1px 0 rgba(0, 0, 0, 0.80),
    inset 0 0 55px rgba(233, 169, 43, 0.14),
    /* Intense gold bloom */
    0 0 38px rgba(233, 169, 43, 0.65),
    0 0 80px rgba(200, 145, 30, 0.38),
    0 0 140px rgba(180, 120, 20, 0.18),
    0 10px 38px rgba(0, 0, 0, 0.90),
    0 0 0 1px rgba(255, 215, 80, 0.75);
}

.forge-btn.forge-btn--primary:hover span {
  text-shadow:
    0 0 10px rgba(255, 245, 165, 1.0),
    0 0 28px rgba(255, 210, 80, 0.85),
    0 0 65px rgba(233, 169, 43, 0.50);
  letter-spacing: 0.26em;
}

.layer-6-text {
  z-index: 6;
  position: relative;
  pointer-events: none;
}

.rune-logo {
  margin-top: -4.5rem;
  width: 150px;
  height: 150px;
  filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.9)) drop-shadow(0 0 35px rgba(0, 0, 0, 0.9));
  max-width: 35vw;
}

.main-title {
  margin-top: -2.5rem;
  font-size: 4.5rem;
  font-weight: normal;
  letter-spacing: 0.18em;
  color: var(--color-gold);
  text-align: center;
  text-transform: uppercase;
  line-height: 1.15;
  text-shadow:
    0 0 10px rgba(252, 186, 55, 0.6),
    0 0 25px rgba(195, 151, 62, 0.4),
    0 0 50px rgba(106, 42, 27, 0.5),
    0 5px 15px rgba(0, 0, 0, 0.9);
}

.layer-7-vignette {
  z-index: 7;
  background: radial-gradient(circle at center, transparent 35%, rgba(11, 11, 12, 0.95) 100%);
}

@media (max-width: 900px) {
  .main-title {
    font-size: 2.8rem;
  }

  .action-row {
    flex-direction: column;
    gap: 1.5rem;
  }
}

@media (max-width: 480px) {
  .main-title {
    font-size: clamp(1.6rem, 7vw, 2.4rem);
    letter-spacing: 0.1em;
    margin-top: -1.5rem;
  }

  .rune-logo {
    width: 100px;
    height: 100px;
    margin-top: -2.5rem;
  }

  .content-container {
    gap: 2rem;
    padding: 1.5rem;
  }

  .forge-btn {
    padding: 1rem 2rem;
    font-size: 0.85rem;
    letter-spacing: 0.15em;
    width: 100%;
    max-width: 280px;
  }

  .action-row {
    width: 100%;
    padding: 0 1rem;
  }
}

/* --- Manifesto Section --- */
.manifesto-section {
  position: relative;
  width: 100vw;
  min-height: 100vh;
  background-color: var(--color-obsidian);
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 8rem 2rem;
  z-index: 10;
}

.manifesto-section::before {
  content: "";
  position: absolute;
  top: -250px;
  left: 0;
  width: 100%;
  height: 250px;
  background: linear-gradient(to bottom, transparent, var(--color-obsidian) 90%);
  pointer-events: none;
  z-index: 0;
}

.manifesto-haze {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, rgba(30, 30, 35, 0.4) 0%, transparent 70%);
  opacity: 0.3;
  animation: slowHazePulse 12s infinite alternate ease-in-out;
  pointer-events: none;
  z-index: 1;
}

@keyframes slowHazePulse {
  0% {
    transform: scale(1);
    opacity: 0.2;
  }

  100% {
    transform: scale(1.1);
    opacity: 0.4;
  }
}

.manifesto-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 2;
  mix-blend-mode: screen;
}

.manifesto-content {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3.5rem;
}

.manifesto-top-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.aesthetic-divider {
  width: min(1000px, 90vw);
  height: 1px;
  background: radial-gradient(circle at center, rgba(233, 169, 43, 0.8) 0%, transparent 80%);
  box-shadow: 0 0 10px rgba(233, 169, 43, 0.3);
}

.manifesto-subhead {
  font-size: 0.85rem;
  letter-spacing: 0.4em;
  color: var(--color-gold);
  text-transform: uppercase;
  font-weight: normal;
  opacity: 0.8;
  margin: 0;
  margin-top: 50px;
}

.manifesto-text {
  font-size: clamp(1.6rem, 4vw, 4rem);
  font-weight: normal;
  color: #f0f0f0;
  text-align: center;
  line-height: 1.35;
  font-style: italic;
  max-width: min(1500px, 92vw);
  margin: 0;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.1);
  word-break: break-word;
}

.text-highlight {
  color: var(--color-gold);
  text-shadow: 0 0 20px rgba(233, 169, 43, 0.3);
}

.manifesto-bottom-group {
  display: flex;
  align-items: center;
  gap: 2rem;
  opacity: 0.5;
  margin-top: 1rem;
}

.manifesto-icon {
  width: 25px;
  height: 25px;
  filter: drop-shadow(0 0 5px rgba(233, 169, 43, 0.3));
}

@media (max-width: 900px) {
  .manifesto-section {
    padding: 8rem 1.5rem;
  }

  .manifesto-content {
    gap: 2.5rem;
  }

  .manifesto-text {
    font-size: 1.8rem;
  }
}

@media (max-width: 600px) {
  .manifesto-section {
    padding: 1.5rem 1rem;
    /* ✅ UPDATED (reduced from 3rem 1rem) */
    min-height: auto;
  }

  .manifesto-text {
    font-size: 1.4rem;
    line-height: 1.5;
  }

  .manifesto-subhead {
    font-size: 0.75rem;
    letter-spacing: 0.3em;
    margin-top: 15px;
  }
}

/* --- Section 3: Worlds / Realms --- */
.worlds-section {
  position: relative;
  width: 100vw;
  min-height: 100vh;
  background-color: var(--color-obsidian);
  padding: 10rem 2rem;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: hidden;
}

.worlds-section::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 250px;
  background: linear-gradient(to bottom, transparent, #000);
  pointer-events: none;
  z-index: 15;
}

.worlds-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('images/bg.png');
  background-size: cover;
  background-position: center;
  background-attachment: scroll;
  pointer-events: none;
  z-index: 0;
  filter: blur(0px) brightness(0.6);
}

.worlds-haze {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(ellipse at top, rgba(30, 30, 35, 0.4) 0%, transparent 60%);
  opacity: 0.2;
  pointer-events: none;
  z-index: 1;
}

.worlds-header {
  position: relative;
  z-index: 2;
  text-align: center;
  margin-bottom: 6rem;
  opacity: 0;
}

.worlds-title {
  font-size: 2.5rem;
  font-weight: normal;
  letter-spacing: 0.3em;
  color: var(--color-gold);
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  text-shadow: 0 0 20px rgba(233, 169, 43, 0.2);
}

.worlds-divider {
  width: 100px;
  height: 1px;
  margin: 0 auto;
  background: radial-gradient(circle at center, rgba(233, 169, 43, 0.8) 0%, transparent 100%);
  box-shadow: 0 0 10px rgba(233, 169, 43, 0.5);
}

.worlds-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
  width: 100%;
  max-width: 1400px;
  perspective: 1500px;
}

.portal-card {
  position: relative;
  width: 100%;
  height: 600px;
  cursor: pointer;
  text-decoration: none;
  transform-style: preserve-3d;
  will-change: transform;
  border: 1px solid rgba(255, 255, 255, 0.02);
  box-shadow: 0 30px 50px rgba(0, 0, 0, 0.8);
  opacity: 0;
}

.portal-bg-wrapper {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 1;
}

.portal-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: contrast(1.1) saturate(0.85);
  transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
  z-index: 1;
}

.portal-darkness {
  position: absolute;
  inset: -5%;
  width: 110%;
  height: 110%;
  background: radial-gradient(circle at center,
      rgba(0, 0, 0, 0) 40%,
      rgba(0, 0, 0, 0.45) 70%,
      var(--color-obsidian) 100%);
  z-index: 2;
  transition: background 0.8s ease, opacity 0.8s ease, transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}

.portal-glow {
  position: absolute;
  inset: 0;
  z-index: 3;
  background: radial-gradient(800px circle at var(--mouse-x) var(--mouse-y), rgba(233, 169, 43, 0.08), transparent 40%);
  opacity: 0;
  transition: opacity 0.5s ease;
  mix-blend-mode: screen;
  pointer-events: none;
}

.portal-card::after {
  content: '';
  position: absolute;
  inset: -1px;
  background: radial-gradient(600px circle at var(--mouse-x) var(--mouse-y), rgba(233, 169, 43, 0.4), transparent 80%);
  z-index: 4;
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  padding: 5px;
}

.portal-border-glow {
  position: absolute;
  inset: -1px;
  z-index: 4;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.5s ease;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  padding: 1px;
}

.portal-border-glow::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: conic-gradient(transparent 75%, rgb(0, 0, 0) 100%);
  animation: spinGlow 3s linear infinite;
}

@keyframes spinGlow {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

.portal-content {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 3rem;
  z-index: 5;
  transform: translateZ(50px);
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.portal-title {
  font-size: 1.8rem;
  font-weight: normal;
  letter-spacing: 0.15em;
  color: rgba(233, 169, 43, 0.7);
  text-transform: uppercase;
  transition: color 0.6s ease, text-shadow 0.6s ease, transform 0.6s ease;
}

.portal-subtitle {
  font-size: 0.9rem;
  letter-spacing: 0.25em;
  color: #fff;
  opacity: 0;
  transform: translateY(10px);
  text-transform: uppercase;
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.portal-card.card-leaving {
  transition: transform 1s cubic-bezier(0.16, 1, 0.3, 1);
  transform: perspective(1500px) rotateY(0deg) rotateX(0deg) translateZ(0px) !important;
}

.portal-card:hover .portal-bg,
.portal-card:hover .portal-darkness {
  transform: scale(1.08);
}

.portal-card:hover .portal-glow,
.portal-card:hover::after {
  opacity: 10;
}

.portal-card:hover .portal-content {
  transform: translateZ(80px);
}

.portal-card:hover .portal-title {
  color: rgba(233, 169, 43, 1);
  text-shadow: 0 0 15px rgba(233, 169, 43, 0.4);
}

.portal-card:hover .portal-subtitle {
  opacity: 0.6;
  transform: translateY(0);
}

.enter-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: #000;
  z-index: 9999;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  /* Added to fully clear interaction */
  transition: opacity 2s cubic-bezier(0.25, 1, 0.5, 1), visibility 2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.enter-overlay.active {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
}

/* Modal Styling Additions */
.modal-close-btn {
  position: fixed; /* Bypasses parent layout issues */
  top: 2rem;
  right: 3rem;
  background: rgba(11, 11, 12, 0.6);
  border: 1px solid rgba(233, 169, 43, 0.3);
  color: var(--color-gold);
  width: 54px;
  height: 54px;
  cursor: pointer;
  z-index: 999999; /* Matches custom cursor level to be on top of everything */
  pointer-events: auto !important;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50% !important;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.5s ease;
  padding: 0;
  opacity: 0;
  visibility: hidden;
}

.modal-close-btn svg {
  width: 28px;
  height: 28px;
  pointer-events: none;
}

.modal-close-btn.visible {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.5s ease 0.8s, transform 0.3s ease; /* Delay slightly longer than overlay */
}

.modal-close-btn:hover {
  transform: scale(1.1) rotate(90deg);
  filter: drop-shadow(0 0 10px var(--color-gold));
}

.modal-content-wrapper {
  display: flex;
  width: 90vw;
  max-width: 1400px;
  height: 85vh;
  height: 85dvh;
  overflow: visible;
  /* Allow content to be seen fully */
  position: relative;
  z-index: 200;
  pointer-events: none;
}

.enter-overlay.active .modal-content-wrapper {
  pointer-events: none; /* Keep none to prevent blocking close button */
}

.modal-left,
.modal-right-container {
  pointer-events: auto; /* Enable interaction for content only */
}

.enter-overlay.active .modal-content-wrapper {
  opacity: 1;
  transform: scale(1) translateY(0);
  transition-delay: 0.5s;
}

.modal-left {
  flex: 1;
  padding: 2rem;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  border-right: 1px solid rgba(233, 169, 43, 0.1);
  position: relative;
  /* Contain absolute glitch layers */
}

.modal-left img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 4px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
  filter: contrast(1.1) saturate(0.9);
}

.modal-right-container {
  flex: 1.2;
  height: 100%;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.modal-right {
  width: 100%;
  height: 100%;
  /* âœ… IMPORTANT */
  padding: 4rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  scroll-behavior: smooth !important;

  overflow-y: auto;
  /* âœ… ENABLE FULL SCROLL */
  -ms-overflow-style: none;
  /* Hide scrollbar for IE and Edge */
  scrollbar-width: none;
  /* Hide scrollbar for Firefox */
}

/* Cinematic scroll mask for infinite effect */
.modal-right {
  /* ... existing styles ... */
  -webkit-mask-image: linear-gradient(to bottom,
      transparent 0%,
      black 150px,
      black calc(100% - 150px),
      transparent 100%);
  mask-image: linear-gradient(to bottom,
      transparent 0%,
      black 150px,
      black calc(100% - 150px),
      transparent 100%);
  /* Smoothly shift mask when at top/bottom for transition */
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
  transition: -webkit-mask-image 0.8s ease, mask-image 0.8s ease;
}

/* Classes to remove masks at edges for 'end of scroll' feel */
.modal-right.at-top {
  -webkit-mask-image: linear-gradient(to bottom, black calc(100% - 150px), transparent 100%);
  mask-image: linear-gradient(to bottom, black calc(100% - 150px), transparent 100%);
}

.modal-right.at-bottom {
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 150px, black 100%);
  mask-image: linear-gradient(to bottom, transparent 0%, black 150px, black 100%);
}

.modal-right.at-top.at-bottom {
  -webkit-mask-image: none;
  mask-image: none;
}

/* Hide legacy blocks to avoid conflict */
.modal-scroll-fade,
.modal-scroll-fade-top {
  display: none !important;
}

.modal-scroll-fade {
  bottom: 0;
  background: linear-gradient(to top, #000 0%, transparent 100%);
}

.modal-scroll-fade-top {
  top: 0;
  background: linear-gradient(to bottom, #000 0%, transparent 100%);
}

.modal-scroll-fade.fade-hidden {
  opacity: 0;
  transform: translateY(10px);
}

.modal-scroll-fade-top.fade-hidden {
  opacity: 0;
  transform: translateY(-10px);
}

/* Hide scrollbar for Chrome, Safari and Opera */
.modal-right::-webkit-scrollbar {
  display: none;
}

.modal-title {
  font-size: 3.5rem;
  margin-top: 0;
  color: var(--color-gold);
  margin-bottom: 2rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  text-shadow: 0 0 15px rgba(233, 169, 43, 0.4);
  line-height: 1.1;
  font-weight: normal;
}

.modal-text {
  font-size: 1.15rem;
  line-height: 1.8;
  color: #ccc;
  font-family: Arial, sans-serif;
}

.modal-text p {
  margin-bottom: 1.5rem;
}

@media (max-width: 1100px) {
  .worlds-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .worlds-section {
    padding: 6rem 1.5rem;
  }

  .worlds-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .portal-card {
    height: 420px;
  }

  .worlds-title {
    font-size: 1.8rem;
    letter-spacing: 0.2em;
  }

  .worlds-header {
    margin-bottom: 3rem;
  }
}

/* ============================================================
   Section 4 â€” Obsidian Hall Image Sequence
   ============================================================ */

.obsidian-hall-section {
  position: relative;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  /* Dynamic viewport height to fix mobile address-bar bounding box shifts */
  background-color: #000;
  overflow: clip;
  /* clip protects layout boundaries but allows sticky to function */
  z-index: 20;
}

.obsidian-hall-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 250px;
  background: linear-gradient(to bottom, #000, transparent);
  pointer-events: none;
  z-index: 25;
}

#sequence-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  outline: none;
}

/* Cinematic edge vignette */
.obsidian-hall-section::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 50%, rgba(0, 0, 0, 0.6) 100%);
  pointer-events: none;
  z-index: 5;
}

/* â”€â”€ Loading overlay â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
#seq-loading-overlay {
  position: absolute;
  inset: 0;
  z-index: 30;
  background: var(--color-obsidian);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.8s ease;
}

#seq-loading-overlay.seq-loading-hidden {
  opacity: 0;
  pointer-events: none;
}

.seq-loading-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.4rem;
  width: 320px;
}

.seq-loading-bar-track {
  width: 100%;
  height: 1px;
  background: rgba(233, 169, 43, 0.12);
  position: relative;
  overflow: hidden;
}

.seq-loading-bar-fill {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, rgba(233, 169, 43, 0.35), var(--color-gold));
  box-shadow: 0 0 8px rgba(233, 169, 43, 0.45);
  transition: width 0.12s ease;
}

.seq-loading-label {
  font-family: "Palatino Linotype", "Book Antiqua", Palatino, serif;
  font-size: 0.72rem;
  letter-spacing: 0.38em;
  color: rgba(233, 169, 43, 0.45);
  text-transform: uppercase;
}

/* ============================================================
   Obsidian Gate Button
   ============================================================ */

#obsidian-gate {
  /* Sits above canvas (z:5) and vignette */
  position: absolute;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;

  /* Hidden until gate--visible is added */
  opacity: 0;
  pointer-events: none;
  transform: translateY(30px) scale(0.98);
  transition:
    opacity 0.85s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.85s cubic-bezier(0.16, 1, 0.3, 1);
}

#obsidian-gate.gate--visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

#obsidian-gate.gate--exit {
  opacity: 0;
  transform: translateY(-18px) scale(0.97);
  transition: opacity 0.65s ease, transform 0.65s ease;
  pointer-events: none;
}

/* Dark radial backdrop so button reads over any frame */
.gate-backdrop {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 55% at center,
      rgba(5, 3, 2, 0.82) 0%,
      rgba(5, 3, 2, 0.55) 50%,
      transparent 100%);
  pointer-events: none;
}

/* Column layout for ornament + button + inscription */
.gate-inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

/* SVG ornament strips */
.gate-ornament svg {
  display: block;
}

.gate-ornament--top svg {
  width: 260px;
}

.gate-ornament--bottom svg {
  width: 180px;
}

.gate-ornament {
  filter: drop-shadow(0 0 5px rgba(233, 169, 43, 0.35));
  opacity: 0.85;
}

/* â”€â”€ The Button â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.gate-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 1.35rem 4.5rem;
  background: linear-gradient(180deg,
      rgba(16, 12, 8, 0.97) 0%,
      rgba(7, 5, 3, 0.97) 100%);
  border: none;
  outline: none;
  cursor: pointer;
  font-family: "Palatino Linotype", "Book Antiqua", Palatino, serif;
  font-size: 1rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--color-gold);

  /* Layered gold border effect */
  box-shadow:
    0 0 0 1px rgba(233, 169, 43, 0.85),
    0 0 0 3px rgba(7, 5, 3, 0.95),
    0 0 0 4px rgba(233, 169, 43, 0.2),
    0 10px 45px rgba(0, 0, 0, 0.85),
    0 0 55px rgba(100, 40, 10, 0.25);

  transition:
    color 0.45s ease,
    box-shadow 0.45s ease,
    transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);

  animation: gatePulse 3.5s ease-in-out infinite;
}

/* Slow ember-glow pulse on the border */
@keyframes gatePulse {

  0%,
  100% {
    box-shadow:
      0 0 0 1px rgba(233, 169, 43, 0.85),
      0 0 0 3px rgba(7, 5, 3, 0.95),
      0 0 0 4px rgba(233, 169, 43, 0.2),
      0 10px 45px rgba(0, 0, 0, 0.85),
      0 0 55px rgba(100, 40, 10, 0.25);
  }

  50% {
    box-shadow:
      0 0 0 1px rgba(233, 169, 43, 1),
      0 0 0 3px rgba(7, 5, 3, 0.95),
      0 0 0 6px rgba(233, 169, 43, 0.4),
      0 10px 45px rgba(0, 0, 0, 0.85),
      0 0 80px rgba(180, 80, 15, 0.5),
      0 0 130px rgba(100, 40, 10, 0.3);
  }
}

/* Etched corner marks */
.gate-btn-corner {
  position: absolute;
  width: 11px;
  height: 11px;
  border-color: var(--color-gold);
  border-style: solid;
  opacity: 0.9;
  transition: opacity 0.45s ease;
}

.gate-btn-corner.tl {
  top: -1px;
  left: -1px;
  border-width: 1.5px 0 0 1.5px;
}

.gate-btn-corner.tr {
  top: -1px;
  right: -1px;
  border-width: 1.5px 1.5px 0 0;
}

.gate-btn-corner.bl {
  bottom: -1px;
  left: -1px;
  border-width: 0 0 1.5px 1.5px;
}

.gate-btn-corner.br {
  bottom: -1px;
  right: -1px;
  border-width: 0 1.5px 1.5px 0;
}

/* Inner bloom glow that becomes visible on hover */
.gate-btn-bloom {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center,
      rgba(200, 130, 35, 0.2) 0%,
      transparent 68%);
  opacity: 0;
  transition: opacity 0.45s ease;
  pointer-events: none;
}

/* Text span so z-index sits above bloom */
.gate-btn-label {
  position: relative;
  z-index: 1;
  text-shadow:
    0 0 10px rgba(233, 169, 43, 0.45),
    0 0 22px rgba(233, 169, 43, 0.15);
  transition: text-shadow 0.45s ease, color 0.45s ease;
}

/* Hover */
.gate-btn:hover {
  color: #fff;
  transform: translateY(-2px) scale(1.012);
  animation: none;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.75),
    0 0 0 3px rgba(7, 5, 3, 0.95),
    0 0 0 5px rgba(233, 169, 43, 0.45),
    0 12px 50px rgba(0, 0, 0, 0.9),
    0 0 90px rgba(200, 110, 20, 0.55),
    0 0 160px rgba(100, 40, 10, 0.35);
}

.gate-btn:hover .gate-btn-bloom {
  opacity: 1;
}

.gate-btn:hover .gate-btn-corner {
  opacity: 1;
}

.gate-btn:hover .gate-btn-label {
  color: #fff;
  text-shadow:
    0 0 14px rgba(255, 220, 130, 0.75),
    0 0 35px rgba(233, 169, 43, 0.45);
}

/* Active / press */
.gate-btn:active {
  transform: translateY(0) scale(0.99);
  box-shadow:
    0 0 0 1px rgba(233, 169, 43, 0.7),
    0 0 0 3px rgba(7, 5, 3, 0.95),
    0 0 0 4px rgba(233, 169, 43, 0.15),
    inset 0 2px 8px rgba(0, 0, 0, 0.7),
    0 4px 20px rgba(0, 0, 0, 0.8);
}

/* Inscription below the button */
.gate-whisper {
  font-size: 0.7rem;
  letter-spacing: 0.48em;
  color: rgba(233, 169, 43, 0.35);
  text-transform: uppercase;
  font-style: italic;
  text-align: center;
  animation: whisperFlicker 6s ease-in-out infinite;
}

@keyframes whisperFlicker {

  0%,
  88%,
  100% {
    opacity: 1;
  }

  92% {
    opacity: 0.25;
  }

  95% {
    opacity: 0.85;
  }
}

@media (max-width: 768px) {
  .gate-btn {
    padding: 1.1rem 2.6rem;
    font-size: 0.85rem;
  }

  .gate-ornament--top svg {
    width: 180px;
  }

  .gate-ornament--bottom svg {
    width: 130px;
  }
}

/* ---- End-of-Sequence Caption (kept from original) ---- */
#seq-caption {
  position: absolute;
  inset: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  opacity: 0;
}

.seq-caption-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.8rem;
  text-align: center;
  padding: 2rem;
}

.seq-caption-line {
  width: 200px;
  height: 1px;
  background: radial-gradient(circle at center, rgba(233, 169, 43, 0.8) 0%, transparent 80%);
  box-shadow: 0 0 10px rgba(233, 169, 43, 0.3);
}

.seq-caption-title {
  font-size: 3rem;
  font-weight: normal;
  letter-spacing: 0.3em;
  color: var(--color-gold);
  text-transform: uppercase;
  text-shadow:
    0 0 15px rgba(233, 169, 43, 0.5),
    0 0 40px rgba(106, 42, 27, 0.4);
}

.seq-caption-sub {
  font-size: 0.9rem;
  letter-spacing: 0.4em;
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
  font-style: italic;
}

@media (max-width: 768px) {
  .seq-caption-title {
    font-size: 1.8rem;
  }
}

/* ============================================================
   Section 5 â€” The Order (Team)
   ============================================================ */

.order-section {
  position: relative;
  width: 100vw;
  min-height: 100vh;
  padding: 8rem 2rem;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: hidden;

  /* Premium pure black base */
  background-color: #000;

  /* Layered depth atmosphere */
  background-image:
    radial-gradient(ellipse 80% 40% at 50% 0%,
      rgba(233, 169, 43, 0.06) 0%,
      transparent 70%),
    radial-gradient(ellipse 70% 50% at 50% 100%,
      rgba(0, 0, 0, 0.9) 0%,
      transparent 70%),
    radial-gradient(ellipse 60% 60% at 50% 50%,
      rgba(12, 10, 5, 0.6) 0%,
      transparent 100%);
}

/* Premium dot-grid texture overlay */
.order-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle,
      rgba(233, 169, 43, 0.12) 1px,
      transparent 1px);
  background-size: 36px 36px;
  opacity: 0.18;
  pointer-events: none;
  z-index: 1;
  -webkit-mask-image: radial-gradient(ellipse 90% 80% at 50% 50%,
      black 30%,
      transparent 100%);
  mask-image: radial-gradient(ellipse 90% 80% at 50% 50%,
      black 30%,
      transparent 100%);
}

/* Thin gold top-edge accent line */
.order-section::after {
  content: '';
  position: absolute;
  top: 0;
  left: 10%;
  width: 80%;
  height: 1px;
  background: radial-gradient(circle at center,
      rgba(233, 169, 43, 0.5) 0%,
      transparent 70%);
  pointer-events: none;
  z-index: 2;
}

/* â”€â”€ Bottom black blend gradient â”€â”€ */
.order-section .order-bottom-fade {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 260px;
  background: linear-gradient(to bottom,
      transparent 0%,
      #000 100%);
  pointer-events: none;
  z-index: 3;
}

/* â”€â”€ Floating ambient orb â”€â”€ */
.order-ambient-orb {
  position: absolute;
  top: 10%;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle,
      rgba(233, 169, 43, 0.07) 0%,
      rgba(180, 120, 20, 0.03) 40%,
      transparent 70%);
  border-radius: 50% !important;
  pointer-events: none;
  z-index: 0;
  animation: orbPulse 8s ease-in-out infinite alternate;
}

@keyframes orbPulse {
  0% {
    transform: translateX(-50%) scale(1);
    opacity: 0.6;
  }

  100% {
    transform: translateX(-50%) scale(1.25);
    opacity: 1;
  }
}

/* â”€â”€ Editorial eyebrow label â”€â”€ */
.order-eyebrow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.2rem;
  margin-bottom: 1.8rem;
}

.order-eyebrow-line {
  display: block;
  width: 60px;
  height: 1px;
  background: linear-gradient(to right,
      transparent,
      rgba(233, 169, 43, 0.5),
      transparent);
}

.order-eyebrow-text {
  font-size: 0.7rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: rgba(233, 169, 43, 0.5);
  font-family: "Palatino Linotype", serif;
  white-space: nowrap;
}

/* â”€â”€ Tagline below divider â”€â”€ */
.order-tagline {
  margin-top: 1.8rem;
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.22);
  font-style: italic;
}

/* â”€â”€ Card index number â”€â”€ */
.order-card-index {
  position: absolute;
  top: -1.4rem;
  left: 0;
  font-size: 0.65rem;
  letter-spacing: 0.3em;
  color: rgba(233, 169, 43, 0.35);
  font-family: "Palatino Linotype", serif;
  z-index: 3;
  transition: color 0.4s ease;
}

.order-card:hover .order-card-index {
  color: rgba(233, 169, 43, 0.75);
}

/* â”€â”€ Portrait corner brackets â”€â”€ */
.order-corner {
  position: absolute;
  width: 16px;
  height: 16px;
  pointer-events: none;
  z-index: 4;
  transition: width 0.4s ease, height 0.4s ease, border-color 0.4s ease;
}

.order-corner--tl {
  top: 0;
  left: 0;
  border-top: 1px solid rgba(233, 169, 43, 0.25);
  border-left: 1px solid rgba(233, 169, 43, 0.25);
}

.order-corner--tr {
  top: 0;
  right: 0;
  border-top: 1px solid rgba(233, 169, 43, 0.25);
  border-right: 1px solid rgba(233, 169, 43, 0.25);
}

.order-corner--bl {
  bottom: 0;
  left: 0;
  border-bottom: 1px solid rgba(233, 169, 43, 0.25);
  border-left: 1px solid rgba(233, 169, 43, 0.25);
}

.order-corner--br {
  bottom: 0;
  right: 0;
  border-bottom: 1px solid rgba(233, 169, 43, 0.25);
  border-right: 1px solid rgba(233, 169, 43, 0.25);
}

.order-card:hover .order-corner {
  width: 24px;
  height: 24px;
  border-color: rgba(233, 169, 43, 0.7);
}

/* â”€â”€ Bottom ornament rule â”€â”€ */
.order-bottom-rule {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-top: 6rem;
  position: relative;
  z-index: 2;
}

.order-rule-line {
  display: block;
  width: 120px;
  height: 1px;
  background: linear-gradient(to right,
      transparent,
      rgba(233, 169, 43, 0.4),
      transparent);
}

.order-rule-diamond {
  font-size: 0.5rem;
  color: rgba(233, 169, 43, 0.5);
  letter-spacing: 0;
}

.order-header {
  position: relative;
  z-index: 2;
  text-align: center;
  margin-bottom: 6rem;
}

.order-title {
  font-size: 2.5rem;
  font-weight: normal;
  letter-spacing: 0.3em;
  color: var(--color-gold);
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  text-shadow: 0 0 20px rgba(233, 169, 43, 0.2);
}

.order-divider {
  width: 100px;
  height: 1px;
  margin: 0 auto;
}

.order-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 3rem;
  width: 100%;
  max-width: 1600px;
}

.order-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  cursor: pointer;
  opacity: 0;
  /* Handled by GSAP ScrollTrigger */
  transform: translateY(50px);
  /* Handled by GSAP ScrollTrigger */
}

.order-portrait {
  position: relative;
  width: 100%;
  aspect-ratio: 3/4;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.03);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
  transition: box-shadow 0.6s ease, transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.order-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: contrast(1.1) grayscale(0.2) brightness(0.9);
  transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1), filter 0.6s ease;
  will-change: transform;
}

/* Heavy shadow overlay to obscure the image */
/* .order-shadow-gradient {
  position: absolute;
  inset: -10%;
  width: 120%;
  height: 120%;
  background: linear-gradient(to bottom,
      rgba(11, 11, 12, 0) 0%,
      rgba(11, 11, 12, 0.4) 40%,
      rgba(11, 11, 12, 0.95) 85%,
      var(--color-obsidian) 100%);
  z-index: 2;
  transition: opacity 0.6s ease, background 0.6s ease;
} */

/* Soft elegant glow around the portrait */
.order-portrait::before {
  content: '';
  position: absolute;
  inset: 0;
  border: 1px solid rgba(233, 169, 43, 0);
  z-index: 3;
  transition: border-color 0.6s ease, box-shadow 0.6s ease;
  pointer-events: none;
}

.order-info {
  text-align: center;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.order-name {
  font-size: 1.4rem;
  font-weight: normal;
  letter-spacing: 0.15em;
  color: var(--color-gold);
  text-transform: uppercase;
  margin-bottom: 0.5rem;
  text-shadow: 0 0 10px rgba(233, 169, 43, 0.2);
  transition: text-shadow 0.6s ease, color 0.6s ease;
}

.order-role {
  font-size: 0.75rem;
  letter-spacing: 0.25em;
  color: rgba(233, 169, 43, 0.45);
  text-transform: uppercase;
  font-style: italic;
  transition: color 0.6s ease;
}

/* Hover Interactions */
.order-card:hover .order-portrait {
  transform: scale(1.02);
  box-shadow:
    0 30px 60px rgba(0, 0, 0, 0.8),
    0 0 30px rgba(233, 169, 43, 0.1);
}

.order-card:hover .order-portrait img {
  transform: scale(1.05);
  filter: contrast(1.1) grayscale(0) brightness(1);
}

.order-card:hover .order-shadow-gradient {
  background: linear-gradient(to bottom,
      rgba(11, 11, 12, 0) 0%,
      rgba(11, 11, 12, 0.2) 50%,
      rgba(11, 11, 12, 0.9) 95%,
      var(--color-obsidian) 100%);
  opacity: 0.9;
}

.order-card:hover .order-portrait::before {
  border-color: rgba(233, 169, 43, 0.2);
  box-shadow: inset 0 0 20px rgba(233, 169, 43, 0.15);
}

.order-card:hover .order-info {
  transform: translateY(-5px);
}

.order-card:hover .order-name {
  color: #fff;
  text-shadow: 0 0 15px rgba(233, 169, 43, 0.5);
}

.order-card:hover .order-role {
  color: rgba(233, 169, 43, 0.7);
}

/* Responsiveness */
@media (max-width: 1200px) {
  .order-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 900px) {
  .order-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .order-section {
    padding: 6rem 1.5rem;
  }

  .order-grid {
    grid-template-columns: 1fr;
    gap: 4rem;
    max-width: 400px;
  }
}

/* ============================================================
   Section 6 â€” Contact
   ============================================================ */

.contact-section {
  position: relative;
  width: 100vw;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  overflow: hidden;

  /* Pure black ancient base */
  background-color: #000;

  /* Rich multi-layer ancient atmosphere â€” Center Focus ONLY */
  background-image:
    /* Warm ancient gold centre spotlight */
    radial-gradient(ellipse 60% 55% at 50% 50%,
      rgba(255, 210, 100, 0.12) 0%,
      rgba(233, 169, 43, 0.05) 50%,
      transparent 80%),
    /* Bottom deep shadow well */
    radial-gradient(ellipse 100% 40% at 50% 100%,
      rgba(0, 0, 0, 1) 0%,
      transparent 60%);
}

/* Premium dot-grid texture overlay */
.contact-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle,
      rgba(233, 169, 43, 0.1) 1px,
      transparent 1px);
  background-size: 36px 36px;
  opacity: 0.14;
  pointer-events: none;
  z-index: 1;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 50%,
      black 25%,
      transparent 100%);
  mask-image: radial-gradient(ellipse 80% 70% at 50% 50%,
      black 25%,
      transparent 100%);
}

/* â”€â”€ Top black blend gradient â”€â”€ */
.contact-section::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 200px;
  background: linear-gradient(to bottom,
      #000 0%,
      transparent 100%);
  pointer-events: none;
  z-index: 2;
}

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   ANCIENT GRADIENT ATMOSPHERE ELEMENTS
â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */

/* Left ember burn orb */
.contact-ember {
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50% !important;
  pointer-events: none;
  z-index: 0;
}

.contact-ember--left {
  top: -80px;
  left: -180px;
  background: radial-gradient(circle at 60% 40%,
      rgba(255, 210, 100, 0.25) 0%,
      rgba(233, 169, 43, 0.12) 35%,
      rgba(180, 120, 20, 0.05) 60%,
      transparent 80%);
  filter: blur(40px);
  animation: emberDriftLeft 12s ease-in-out infinite alternate;
}

.contact-ember--right {
  top: -80px;
  right: -180px;
  background: radial-gradient(circle at 40% 40%,
      rgba(233, 169, 43, 0.20) 0%,
      rgba(200, 145, 30, 0.10) 35%,
      rgba(150, 100, 15, 0.04) 60%,
      transparent 80%);
  filter: blur(40px);
  animation: emberDriftRight 14s ease-in-out infinite alternate;
}

@keyframes emberDriftLeft {
  0% {
    transform: translate(0, 0) scale(1);
    opacity: 0.7;
  }

  50% {
    transform: translate(30px, 20px) scale(1.1);
    opacity: 1;
  }

  100% {
    transform: translate(10px, 40px) scale(0.95);
    opacity: 0.8;
  }
}

@keyframes emberDriftRight {
  0% {
    transform: translate(0, 0) scale(1);
    opacity: 0.6;
  }

  50% {
    transform: translate(-25px, 30px) scale(1.08);
    opacity: 0.9;
  }

  100% {
    transform: translate(-10px, 15px) scale(0.98);
    opacity: 0.75;
  }
}

/* Centre ancient aura */
.contact-aura {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 700px;
  height: 700px;
  border-radius: 50% !important;
  pointer-events: none;
  z-index: 0;
  background: radial-gradient(circle at center,
      rgba(255, 220, 120, 0.05) 0%,
      rgba(233, 169, 43, 0.03) 30%,
      rgba(200, 145, 30, 0.01) 55%,
      transparent 75%);
  filter: blur(30px);
  animation: auraBreath 9s ease-in-out infinite alternate;
}

@keyframes auraBreath {
  0% {
    transform: translate(-50%, -50%) scale(0.9);
    opacity: 0.5;
  }

  100% {
    transform: translate(-50%, -50%) scale(1.15);
    opacity: 1;
  }
}

/* Also add ember orbs to The Order section */
.order-section .order-ember {
  position: absolute;
  border-radius: 50% !important;
  pointer-events: none;
  z-index: 0;
  filter: blur(50px);
}

.order-section .order-ember--left {
  width: 450px;
  height: 450px;
  bottom: 10%;
  left: -120px;
  background: radial-gradient(circle,
      rgba(233, 169, 43, 0.15) 0%,
      rgba(180, 120, 20, 0.06) 45%,
      transparent 75%);
  animation: emberDriftLeft 15s ease-in-out infinite alternate;
}

.order-section .order-ember--right {
  width: 400px;
  height: 400px;
  bottom: 15%;
  right: -100px;
  background: radial-gradient(circle,
      rgba(255, 210, 100, 0.12) 0%,
      rgba(233, 169, 43, 0.05) 45%,
      transparent 75%);
  animation: emberDriftRight 18s ease-in-out infinite alternate;
}

.contact-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  text-align: center;
}

.contact-title {
  font-size: 4.5rem;
  font-weight: normal;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  margin: 0;

  /* Ancient gold gradient text */
  background: linear-gradient(to bottom,
      rgba(255, 240, 190, 1) 0%,
      rgba(225, 180, 60, 1) 45%,
      rgba(140, 70, 20, 1) 80%,
      rgba(70, 25, 5, 1) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;

  /* Ambient glow and depth shadow */
  filter: drop-shadow(0 0 30px rgba(212, 175, 55, 0.25)) drop-shadow(0 15px 20px rgba(0, 0, 0, 0.8));

  opacity: 0;
  /* Animates in via GSAP */
  transform: translateY(30px);
}

.contact-email {
  font-family: inherit;
  font-size: 1.4rem;
  letter-spacing: 0.15em;
  color: rgba(212, 175, 55, 0.85);
  text-decoration: none;
  position: relative;
  transition: color 0.5s ease, text-shadow 0.5s ease;
  opacity: 0;
  /* Animates in */
  transform: translateY(20px);
  padding-bottom: 0.3rem;
}

/* Subtle glowing underline effect */
.contact-email::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0%;
  height: 1px;
  background: var(--color-gold);
  box-shadow: 0 0 10px rgba(233, 169, 43, 0.6);
  transition: width 0.6s cubic-bezier(0.16, 1, 0.3, 1), left 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.contact-email:hover {
  color: #fff;
  text-shadow: 0 0 15px rgba(255, 255, 255, 0.4);
}

.contact-email:hover::after {
  width: 100%;
  left: 0;
}

.contact-divider {
  width: 160px;
  height: 1px;
  background: radial-gradient(circle at center, rgba(212, 175, 55, 0.7) 0%, transparent 90%);
  box-shadow: 0 0 12px rgba(212, 175, 55, 0.4);
  margin-top: 1rem;
  opacity: 0;
  /* Animates in */
  transform: scaleX(0);
}

/* Responsiveness */
@media (max-width: 768px) {
  .contact-title {
    font-size: 2.5rem;
  }

  .contact-email {
    font-size: 1.1rem;
  }
}

@media (max-width: 480px) {
  .contact-title {
    font-size: 2rem;
  }

  .contact-email {
    font-size: 0.95rem;
  }

  .contact-divider {
    width: 120px;
  }
}

/* ============================================================
   Ancient Preloader
   ============================================================ */
#ancient-preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: var(--color-obsidian);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 1.5s cubic-bezier(0.25, 1, 0.5, 1), visibility 1.5s;
}

#ancient-preloader.loaded {
  opacity: 0;
  visibility: hidden;
}

.preloader-content {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3rem;
  z-index: 2;
}

.logo-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.rune-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 150px;
  height: 150px;
  border: 1px dashed rgba(233, 169, 43, 0.4);
  border-radius: 50% !important;
  animation: spinRuneWrapper 15s linear infinite;
  pointer-events: none;
}

.orbiter-dot {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 20px;
  border-radius: 50% !important;
  background: var(--color-gold);
  box-shadow: 0 0 20px var(--color-gold), 0 0 60px var(--color-gold);
}

.rune-ring::before,
.rune-ring::after {
  content: '';
  position: absolute;
  top: -15px;
  left: -15px;
  right: -15px;
  bottom: -15px;
  border: 1px solid rgba(233, 169, 43, 0.15);
  border-radius: 50% !important;
  animation: spinRuneReverse 25s linear infinite;
}

.rune-ring::after {
  top: 15px;
  left: 15px;
  right: 15px;
  bottom: 15px;
  border: 2px dotted rgba(233, 169, 43, 0.3);
  animation: spinInnerRune 10s linear infinite;
}

.preloader-logo {
  position: relative;
  width: 100px;
  height: 100px;
  opacity: 0.85;
  animation: pulseLogo 2s ease-in-out infinite alternate;
  filter: drop-shadow(0 0 15px rgba(233, 169, 43, 0.6));
  z-index: 3;
}

.preloader-text {
  font-size: 0.8rem;
  color: var(--color-gold);
  text-transform: uppercase;
  text-shadow: 0 0 15px rgba(233, 169, 43, 0.5);
  z-index: 3;
  margin-top: 1.2rem;
  display: flex;
  gap: 1em;
}

@keyframes spinRuneWrapper {
  0% {
    transform: translate(-50%, -50%) rotate(0deg);
  }

  100% {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

@keyframes spinInnerRune {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

@keyframes spinRuneReverse {
  0% {
    transform: rotate(360deg);
  }

  100% {
    transform: rotate(0deg);
  }
}

@keyframes pulseLogo {
  0% {
    transform: scale(0.95);
    opacity: 0.6;
    filter: drop-shadow(0 0 10px rgba(233, 169, 43, 0.3));
  }

  100% {
    transform: scale(1.05);
    opacity: 1;
    filter: drop-shadow(0 0 30px rgba(233, 169, 43, 0.9));
  }
}

.loader-letter {
  display: inline-block;
  opacity: 0.4;
  transform: translateY(0);
  animation: loader-letter-anim 2.5s infinite;
  z-index: 1;
}

.loader-letter:nth-child(1) {
  animation-delay: 0s;
}

.loader-letter:nth-child(2) {
  animation-delay: 0.1s;
}

.loader-letter:nth-child(3) {
  animation-delay: 0.2s;
}

.loader-letter:nth-child(4) {
  animation-delay: 0.3s;
}

.loader-letter:nth-child(5) {
  animation-delay: 0.4s;
}

.loader-letter:nth-child(6) {
  animation-delay: 0.5s;
}

.loader-letter:nth-child(7) {
  animation-delay: 0.6s;
}

.loader-letter:nth-child(8) {
  animation-delay: 0.7s;
}

.loader-letter:nth-child(9) {
  animation-delay: 0.8s;
}

.loader-letter:nth-child(10) {
  animation-delay: 0.9s;
}

.loader-letter:nth-child(11) {
  animation-delay: 1.0s;
}

.loader-letter:nth-child(12) {
  animation-delay: 1.1s;
}

.loader-letter:nth-child(13) {
  animation-delay: 1.2s;
}

.loader-letter:nth-child(14) {
  animation-delay: 1.3s;
}

.loader-letter:nth-child(15) {
  animation-delay: 1.4s;
}

.loader-letter:nth-child(16) {
  animation-delay: 1.5s;
}

.loader-letter:nth-child(17) {
  animation-delay: 1.6s;
}

.loader-letter:nth-child(18) {
  animation-delay: 1.7s;
}

.loader-letter:nth-child(19) {
  animation-delay: 1.8s;
}

@keyframes loader-letter-anim {

  0%,
  100% {
    opacity: 0.3;
    transform: translateY(0);
    text-shadow: 0 0 5px rgba(233, 169, 43, 0.2);
  }

  20% {
    opacity: 1;
    transform: scale(1.2) translateY(-2px);
    text-shadow: 0 0 20px var(--color-gold);
  }

  40% {
    opacity: 0.6;
    transform: translateY(0);
  }
}

/* ============================================================
   Contact Section & Social Links
   ============================================================ */

.contact-section {
  position: relative;
  width: 100vw;
  min-height: 50vh;
  background-color: #000;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 8rem 2rem;
  z-index: 10;
}

.contact-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  z-index: 2;
}

.contact-title {
  font-size: 4rem;
  font-weight: normal;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;

  /* Ancient gold gradient text */
  background: linear-gradient(to bottom,
      rgba(255, 240, 190, 1) 0%,
      rgba(225, 180, 60, 1) 45%,
      rgba(140, 70, 20, 1) 80%,
      rgba(70, 25, 5, 1) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;

  /* Ambient glow and depth shadow */
  filter: drop-shadow(0 0 30px rgba(212, 175, 55, 0.25)) drop-shadow(0 10px 10px rgba(0, 0, 0, 0.8));
}

.contact-email {
  font-size: 1.2rem;
  letter-spacing: 0.1em;
  color: #fff;
  text-decoration: none;
  transition: color 0.4s ease, text-shadow 0.4s ease;
}

.contact-email:hover {
  color: var(--color-gold);
  text-shadow: 0 0 15px rgba(233, 169, 43, 0.5);
}

.social-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  margin-top: 1.5rem;
  margin-bottom: 2rem;
}

.social-icon {
  display: inline-block;
  width: 50px;
  height: 50px;
  position: relative;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  /* no filter applied by default so it looks as it is */
}

.social-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 0 0 rgba(233, 169, 43, 0));
  transition: filter 0.4s ease, transform 0.4s ease;
}

.social-icon:hover {
  transform: translateY(-8px) scale(1.3);
  /* Increases size more when hovered */
}

.social-icon:hover img {
  filter: drop-shadow(0 0 15px rgba(233, 169, 43, 0.8)) drop-shadow(0 0 30px rgba(233, 169, 43, 0.4));
}

.contact-divider {
  width: 150px;
  height: 1px;
  margin: 0 auto;
  margin-top: 1rem;
  background: radial-gradient(circle at center, rgba(233, 169, 43, 0.8) 0%, transparent 100%);
  box-shadow: 0 0 10px rgba(233, 169, 43, 0.5);
}

/* ============================================================ */
/* CUSTOM CURSOR LOGIC                                          */
/* ============================================================ */
* {
  cursor: none !important;
}

.custom-cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 30px;
  height: 30px;
  border: 2px solid var(--color-gold);
  border-radius: 50% !important;
  pointer-events: none;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 10px var(--color-gold), inset 0 0 5px var(--color-gold);
  z-index: 999999;
  /* Ensure it stays on top of everything */
  transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1), height 0.3s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.3s ease;
}

.custom-cursor.hovering {
  width: 50px;
  height: 50px;
  background-color: rgba(233, 169, 43, 0.2);
  box-shadow: 0 0 15px var(--color-gold), inset 0 0 10px var(--color-gold);
}

/* â”€â”€ Hide custom cursor on tablet & mobile (touch devices) â”€â”€ */
@media (max-width: 1024px) {
  * {
    cursor: auto !important;
  }

  .custom-cursor {
    display: none !important;
  }
}

/* ============================================================
   CINEMATIC GLITCH EFFECT â€” Modal Open System
   ============================================================ */

/* Glitch overlay layers */
.glitch-flash {
  position: absolute;
  inset: 0;
  background: #fff;
  opacity: 0;
  pointer-events: none;
  z-index: 102;
}

.glitch-scanlines {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(0deg, transparent, transparent 2px,
      rgba(0, 0, 0, 0.15) 2px, rgba(0, 0, 0, 0.15) 4px);
  pointer-events: none;
  z-index: 100;
  opacity: 0;
}

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

.glitch-rgb-r,
.glitch-rgb-b {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 98;
  opacity: 0;
}

.glitch-rgb-r {
  background: rgba(255, 0, 0, 0.06);
}

.glitch-rgb-b {
  background: rgba(0, 100, 255, 0.06);
}

.glitch-tear {
  position: absolute;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, rgba(233, 169, 43, 0.8), transparent);
  pointer-events: none;
  z-index: 101;
  opacity: 0;
}

/* Image glitch RGB ghost layers */
.img-glitch-r,
.img-glitch-b {
  position: absolute;
  inset: 2rem;
  background-size: cover;
  background-position: center;
  opacity: 0;
  z-index: 1;
  filter: contrast(1.1) saturate(0.9);
  pointer-events: none;
  /* Prevent blocking interactions */
}

.img-glitch-r {
  mix-blend-mode: screen;
}

.img-glitch-b {
  mix-blend-mode: screen;
}

/* Title glitch RGB split pseudo-elements */
.modal-title[data-text]::before,
.modal-title[data-text]::after {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
}

.modal-title[data-text]::before {
  color: rgba(255, 0, 80, 0.7);
  clip-path: polygon(0 0, 100% 0, 100% 35%, 0 35%);
}

.modal-title[data-text]::after {
  color: rgba(0, 200, 255, 0.7);
  clip-path: polygon(0 65%, 100% 65%, 100% 100%, 0 100%);
}

.modal-title {
  position: relative;
}

.modal-title.glitch-title::before {
  animation: glitchTitleTop 0.3s steps(2) forwards;
}

.modal-title.glitch-title::after {
  animation: glitchTitleBot 0.3s steps(2) forwards;
}

@keyframes glitchTitleTop {
  0% {
    opacity: 1;
    transform: translate(-4px, 0);
  }

  33% {
    transform: translate(4px, 0);
  }

  66% {
    transform: translate(-2px, 0);
  }

  100% {
    opacity: 0;
    transform: translate(0);
  }
}

@keyframes glitchTitleBot {
  0% {
    opacity: 1;
    transform: translate(4px, 0);
  }

  33% {
    transform: translate(-4px, 0);
  }

  66% {
    transform: translate(2px, 0);
  }

  100% {
    opacity: 0;
    transform: translate(0);
  }
}

@keyframes scanFlicker {

  0%,
  100% {
    opacity: 0.3;
  }

  50% {
    opacity: 0.5;
  }
}

@keyframes noiseDrift {

  0%,
  100% {
    opacity: 0.06;
    transform: translate(0, 0);
  }

  25% {
    opacity: 0.1;
    transform: translate(-2px, 1px);
  }

  75% {
    opacity: 0.07;
    transform: translate(2px, -1px);
  }
}

/* ============================================================
   SITE FOOTER â€” Premium Dark Fantasy Edition
   ============================================================ */

.site-footer {
  position: relative;
  z-index: 20;
  background: linear-gradient(to bottom, #080808, #000);
  padding: 0 2rem 2.5rem;
  overflow: hidden;
}

/* Ambient gold radial glow behind the footer */
.site-footer::before {
  content: '';
  position: absolute;
  bottom: -60px;
  left: 50%;
  transform: translateX(-50%);
  width: 70%;
  height: 160px;
  background: radial-gradient(ellipse at center, rgba(233, 169, 43, 0.07) 0%, transparent 70%);
  pointer-events: none;
}

/* â”€â”€ Top glow beam â”€â”€ */
.footer-top-glow {
  width: 100%;
  height: 1px;
  background: radial-gradient(ellipse at center, rgba(233, 169, 43, 0.6) 0%, transparent 70%);
  box-shadow: 0 0 18px 2px rgba(233, 169, 43, 0.15);
  margin-bottom: 2rem;
}

/* â”€â”€ Ornament row (rule + rune + rule) â”€â”€ */
.footer-ornament-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.2rem;
  margin-bottom: 1.8rem;
}

.footer-rule {
  flex: 1;
  max-width: 320px;
  height: 4px;
  display: block;
  opacity: 0.85;
}

/* â”€â”€ Central rune diamond â”€â”€ */
.footer-rune {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  filter: drop-shadow(0 0 6px rgba(233, 169, 43, 0.45));
  animation: footerRunePulse 4s ease-in-out infinite;
}

@keyframes footerRunePulse {

  0%,
  100% {
    opacity: 0.8;
    filter: drop-shadow(0 0 5px rgba(233, 169, 43, 0.35));
  }

  50% {
    opacity: 1;
    filter: drop-shadow(0 0 12px rgba(233, 169, 43, 0.7));
  }
}

/* â”€â”€ Inner row: copyright left, links right â”€â”€ */
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* â”€â”€ Copyright text â”€â”€ */
.footer-copy {
  font-family: 'Palatino Linotype', Palatino, serif;
  font-size: 0.78rem;
  font-style: italic;
  letter-spacing: 0.14em;
  color: rgba(233, 169, 43, 0.45);
  text-transform: uppercase;
}

/* â”€â”€ Links group â”€â”€ */
.footer-links {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

/* â”€â”€ Diamond separator â”€â”€ */
.footer-sep {
  color: rgba(233, 169, 43, 0.3);
  font-size: 0.55rem;
  user-select: none;
  line-height: 1;
}

/* â”€â”€ Individual link â”€â”€ */
.footer-link {
  position: relative;
  font-family: 'Palatino Linotype', Palatino, serif;
  font-size: 0.78rem;
  font-style: italic;
  letter-spacing: 0.14em;
  color: rgba(233, 169, 43, 0.5);
  text-decoration: none;
  text-transform: uppercase;
  transition: color 0.35s ease, text-shadow 0.35s ease;
}

/* Elegant underline that expands from center on hover */
.footer-link::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 50%;
  width: 0;
  height: 1px;
  background: var(--color-gold);
  box-shadow: 0 0 6px rgba(233, 169, 43, 0.5);
  transform: translateX(-50%);
  transition: width 0.35s ease;
}

.footer-link:hover {
  color: var(--color-gold);
  text-shadow: 0 0 12px rgba(233, 169, 43, 0.45);
}

.footer-link:hover::after {
  width: 100%;
}

/* â”€â”€ Responsive stacking â”€â”€ */
@media (max-width: 640px) {
  .footer-inner {
    flex-direction: column;
    text-align: center;
    gap: 0.75rem;
  }

  .footer-rule {
    max-width: 120px;
  }
}

/* ============================================================
   MOBILE OPTIMIZATIONS â€” Comprehensive Fix
   Breakpoints: 768px (tablet), 480px (phone)
   ============================================================ */

/* â”€â”€ Modal: stack vertically on mobile â”€â”€ */
@media (max-width: 768px) {
  .enter-overlay {
    align-items: flex-start;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .modal-content-wrapper {
    flex-direction: column;
    width: 100vw;
    height: auto;
    min-height: 100dvh;
    overflow-y: visible;
    -webkit-overflow-scrolling: touch;
    padding-top: 85px;
    pointer-events: none; /* Ensure no overlap blocking */
  }

  .modal-left {
    flex: none;
    width: 100%;
    height: auto;
    aspect-ratio: auto;
    /* Remove hard ratio to allow full image height */
    max-height: 50vh;
    /* Prevent it taking too much space */
    border-right: none;
    border-bottom: 1px solid rgba(233, 169, 43, 0.1);
    padding: 0;
    background: radial-gradient(circle at center, rgba(233, 169, 43, 0.05), transparent);
  }

  .modal-left img {
    width: 100%;
    height: auto;
    max-height: 50vh;
    object-fit: contain;
    /* Show the full image, no cropping! */
    object-position: top center;
    border-radius: 0;
  }

  .modal-right-container {
    flex: none;
    width: 100%;
    height: auto;
    overflow: visible;
  }

  .modal-right {
    height: auto;
    min-height: 60dvh;
    padding: 2rem 1.5rem 4rem;
    overflow-y: visible;
    -webkit-mask-image: none !important;
    mask-image: none !important;
  }

  .modal-title {
    font-size: clamp(1.6rem, 6vw, 2.5rem);
    margin-bottom: 1.2rem;
  }

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

  .modal-close-btn {
    position: fixed;
    top: 1rem;
    right: 1rem;
    width: 48px; 
    height: 48px;
    background: rgba(11, 11, 12, 0.95);
    border-radius: 50% !important;
    backdrop-filter: blur(8px);
    z-index: 10000000; /* Absolute top */
    pointer-events: auto !important;
    touch-action: manipulation; /* Faster taps */
    transform: none !important; /* Disable hover scale on mobile */
  }

  /* ✅ MASSIVE INVISIBLE HIT AREA */
  .modal-close-btn::after {
    content: "";
    position: absolute;
    top: -20px;
    left: -20px;
    right: -20px;
    bottom: -20px;
    background: transparent;
    border-radius: 50% !important;
  }
}

/* â”€â”€ Order / Team Section mobile â”€â”€ */
@media (max-width: 768px) {
  .order-section {
    padding: 5rem 1.5rem 4rem;
  }

  .order-header {
    margin-bottom: 3.5rem;
  }

  .order-title {
    font-size: clamp(1.6rem, 5vw, 2rem);
    letter-spacing: 0.2em;
  }

  .order-tagline {
    font-size: 0.75rem;
  }

  .order-eyebrow-text {
    font-size: 0.62rem;
    letter-spacing: 0.25em;
    white-space: normal;
    text-align: center;
  }

  .order-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    max-width: 100%;
  }

  .order-name {
    font-size: 1.1rem;
  }

  .order-role {
    font-size: 0.65rem;
  }
}

@media (max-width: 420px) {
  .order-grid {
    grid-template-columns: 1fr;
    max-width: 320px;
    gap: 3rem;
  }
}

/* â”€â”€ Contact Section mobile â”€â”€ */
@media (max-width: 600px) {
  .contact-section {
    padding: 5rem 1.5rem;
    min-height: auto;
  }

  .contact-title {
    font-size: clamp(2rem, 10vw, 3rem) !important;
    letter-spacing: 0.15em;
    word-break: break-word;
  }

  .contact-email {
    font-size: clamp(0.8rem, 3.5vw, 1.1rem);
    letter-spacing: 0.05em;
    word-break: break-all;
    text-align: center;
  }

  .social-links {
    gap: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
  }

  .social-icon {
    width: 42px;
    height: 42px;
  }
}

/* â”€â”€ Obsidian Hall / Image Sequence mobile â”€â”€ */
@media (max-width: 768px) {
  .obsidian-hall-section {
    height: 100vh;
    height: 100dvh;
  }

  .seq-caption-title {
    font-size: clamp(1.2rem, 5vw, 1.8rem);
    letter-spacing: 0.15em;
  }

  .gate-btn {
    padding: 1rem 2rem;
    font-size: 0.8rem;
    letter-spacing: 0.2em;
  }

  .gate-ornament--top svg {
    width: 140px;
  }

  .gate-ornament--bottom svg {
    width: 100px;
  }

  .gate-whisper {
    font-size: 0.6rem;
    letter-spacing: 0.3em;
  }
}

/* â”€â”€ Manifesto Section mobile â”€â”€ */
@media (max-width: 768px) {
  .manifesto-section {
    padding: 5rem 1.5rem;
  }

  .manifesto-text {
    font-size: clamp(1.2rem, 4.5vw, 1.8rem);
    line-height: 1.5;
  }

  .manifesto-subhead {
    font-size: 0.7rem;
    letter-spacing: 0.25em;
    margin-top: 30px;
  }

  .manifesto-content {
    gap: 2rem;
  }

  .manifesto-bottom-group {
    gap: 1.2rem;
  }
}

/* â”€â”€ Preloader mobile â”€â”€ */
@media (max-width: 480px) {
  .rune-ring {
    width: 120px;
    height: 120px;
  }

  .preloader-logo {
    width: 80px;
    height: 80px;
  }

  .preloader-text {
    font-size: 0.7rem;
    gap: 0.6em;
    text-align: center;
    flex-wrap: wrap;
    justify-content: center;
    padding: 0 1rem;
  }
}

/* â”€â”€ Worlds Section mobile padding â”€â”€ */
@media (max-width: 480px) {
  .worlds-section {
    padding: 5rem 1rem;
  }

  .portal-card {
    height: 360px;
  }

  .portal-content {
    padding: 1.5rem;
  }

  .portal-title {
    font-size: 1.3rem;
  }
}

/* â”€â”€ General mobile touch & tap optimizations â”€â”€ */
@media (max-width: 1024px) {

  /* Disable 3D transforms on mobile for performance */
  .portal-card {
    transform-style: flat;
    will-change: auto;
  }

  .portal-content {
    transform: none;
  }

  .portal-card:hover .portal-content {
    transform: none;
  }

  .portal-card:hover .portal-bg,
  .portal-card:hover .portal-darkness {
    transform: none;
  }

  /* Ensure buttons are tap-friendly */
  .forge-btn,
  .gate-btn {
    min-height: 48px;
    touch-action: manipulation;
  }

  /* Disable hover states on touch devices - show subtitle always */
  .portal-subtitle {
    opacity: 0.45;
    transform: translateY(0);
  }

  /* Show cards without animation on mobile */
  .portal-card {
    opacity: 1;
  }

  .worlds-header {
    opacity: 1;
  }
}

/* â”€â”€ Landscape phone orientation â”€â”€ */
@media (max-width: 768px) and (orientation: landscape) {
  .hero-section {
    height: 100dvh;
  }

  .main-title {
    font-size: clamp(1.2rem, 5vw, 1.8rem);
    margin-top: -1rem;
  }

  .rune-logo {
    width: 70px;
    height: 70px;
    margin-top: -1rem;
  }

  .content-container {
    gap: 1.2rem;
  }

  .obsidian-hall-section {
    height: 100dvh;
  }
}

/* â”€â”€ Safe area insets (notched phones) â”€â”€ */
@supports (padding: max(0px)) {
  .content-container {
    padding-left: max(1.5rem, env(safe-area-inset-left));
    padding-right: max(1.5rem, env(safe-area-inset-right));
    padding-bottom: max(1.5rem, env(safe-area-inset-bottom));
  }

  .site-footer {
    padding-bottom: max(2.5rem, calc(env(safe-area-inset-bottom) + 1rem));
  }

  .modal-right {
    padding-bottom: max(4rem, calc(env(safe-area-inset-bottom) + 2rem));
  }
}

/* ============================================================
   OBSIDIAN HALL — style.css
   ============================================================ */

/* -- DOM OVERLAY -- */
#obsidian-hall-3d-modal {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 1000;
  background-color: #0B0B0C;
  pointer-events: auto;
  opacity: 1;
  transition: opacity 0.8s ease;
}

#obsidian-hall-3d-modal.departing {
  opacity: 0;
  pointer-events: none;
}

#canvas-container {
  position: fixed;
  inset: 0;
  z-index: 1;
}

/* -- OVERLAYS (shared) -- */
.overlay {
  position: fixed;
  inset: 0;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.overlay.active {
  opacity: 1;
  pointer-events: auto;
}

/* ============================================================
   NAV OVERLAY
   ============================================================ */
#overlay-nav {
  pointer-events: none;
}

#overlay-nav.active {
  pointer-events: none;
}

/* Top bar */
.nav-top {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2rem 2.5rem;
  pointer-events: none;
}

/* ═══════════════════════════════════════════════════════════
   PRIVACY POLICY MODAL
   Matches the dark obsidian / gold forge aesthetic
═══════════════════════════════════════════════════════════ */

.pp-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 99000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;

  /* Hidden by default */
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transition: opacity 0.45s cubic-bezier(0.4, 0, 0.2, 1),
              visibility 0s linear 0.45s;
}

.pp-modal-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
  transition: opacity 0.45s cubic-bezier(0.4, 0, 0.2, 1),
              visibility 0s linear 0s;
}

/* Dark frosted backdrop */
.pp-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 5, 6, 0.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  cursor: pointer;
}

/* ── Container ── */
.pp-modal-container {
  position: relative;
  width: 100%;
  max-width: 760px;
  max-height: 88vh;
  background: linear-gradient(
    160deg,
    rgba(22, 20, 14, 0.98) 0%,
    rgba(11, 11, 12, 0.99) 55%,
    rgba(18, 16, 10, 0.98) 100%
  );
  border: 1px solid rgba(233, 169, 43, 0.22);
  box-shadow:
    0 0 0 1px rgba(233, 169, 43, 0.08),
    0 0 60px rgba(233, 169, 43, 0.10),
    0 30px 80px rgba(0, 0, 0, 0.90),
    inset 0 1px 0 rgba(255, 215, 110, 0.08);
  display: flex;
  flex-direction: column;

  /* Entry animation */
  transform: translateY(28px) scale(0.97);
  transition: transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.pp-modal-overlay.is-open .pp-modal-container {
  transform: translateY(0) scale(1);
}

/* ── Decorative Corner Runes ── */
.pp-corner {
  position: absolute;
  width: 18px;
  height: 18px;
  pointer-events: none;
  z-index: 2;
}

.pp-corner--tl { top: -1px;    left: -1px;   border-top: 1.5px solid rgba(233,169,43,0.75); border-left: 1.5px solid rgba(233,169,43,0.75); }
.pp-corner--tr { top: -1px;    right: -1px;  border-top: 1.5px solid rgba(233,169,43,0.75); border-right: 1.5px solid rgba(233,169,43,0.75); }
.pp-corner--bl { bottom: -1px; left: -1px;   border-bottom: 1.5px solid rgba(233,169,43,0.75); border-left: 1.5px solid rgba(233,169,43,0.75); }
.pp-corner--br { bottom: -1px; right: -1px;  border-bottom: 1.5px solid rgba(233,169,43,0.75); border-right: 1.5px solid rgba(233,169,43,0.75); }

/* ── Gold Top Rule ── */
.pp-top-rule {
  display: flex;
  align-items: center;
  gap: 0;
  padding: 1.4rem 4.5rem 0;
  flex-shrink: 0;
}

.pp-rule-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(233,169,43,0.55), transparent);
}

.pp-rule-diamond {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  margin: 0 0.6rem;
  filter: drop-shadow(0 0 6px rgba(233,169,43,0.5));
}

/* ── Header ── */
.pp-modal-header {
  padding: 1.2rem 2.5rem 1rem;
  text-align: center;
  flex-shrink: 0;
}

.pp-modal-title {
  font-family: "Palatino Linotype", "Book Antiqua", Palatino, serif;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: normal;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--color-gold);
  text-shadow:
    0 0 12px rgba(233, 169, 43, 0.45),
    0 0 30px rgba(200, 145, 30, 0.20);
  margin: 0 0 0.4rem;
}

.pp-modal-eyebrow {
  font-family: "Palatino Linotype", "Book Antiqua", Palatino, serif;
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(233, 169, 43, 0.45);
  margin: 0;
}

/* ── Scrollable Body Wrapper ── */
.pp-modal-body {
  position: relative;
  flex: 1;
  min-height: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* Cinematic fade overlays */
.pp-fade-top,
.pp-fade-bottom {
  position: absolute;
  left: 0;
  right: 0;
  height: 56px;
  pointer-events: none;
  z-index: 5;
  transition: opacity 0.3s ease;
}

.pp-fade-top {
  top: 0;
  background: linear-gradient(to bottom, rgba(14, 13, 9, 0.95), transparent);
  opacity: 0;
}

.pp-fade-bottom {
  bottom: 0;
  background: linear-gradient(to top, rgba(14, 13, 9, 0.95), transparent);
}

/* ── Scroll Area ── */
.pp-modal-scroll {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 0.8rem 2.5rem 2.5rem;
  scrollbar-width: thin;
  scrollbar-color: rgba(233,169,43,0.3) transparent;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.pp-modal-scroll::-webkit-scrollbar {
  width: 4px;
}
.pp-modal-scroll::-webkit-scrollbar-track {
  background: transparent;
}
.pp-modal-scroll::-webkit-scrollbar-thumb {
  background: rgba(233,169,43,0.3);
}
.pp-modal-scroll::-webkit-scrollbar-thumb:hover {
  background: rgba(233,169,43,0.55);
}

/* ── Sections ── */
.pp-section {
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(233, 169, 43, 0.08);
}

.pp-section:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

.pp-section-title {
  font-family: "Palatino Linotype", "Book Antiqua", Palatino, serif;
  font-size: 0.78rem;
  font-weight: normal;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--color-gold);
  text-shadow: 0 0 10px rgba(233,169,43,0.25);
  margin: 0 0 0.85rem;
}

.pp-section p {
  font-family: "Palatino Linotype", "Book Antiqua", Palatino, serif;
  font-size: 0.92rem;
  line-height: 1.8;
  color: rgba(210, 195, 165, 0.82);
  margin: 0 0 0.75rem;
}

.pp-section p:last-child {
  margin-bottom: 0;
}

/* ── List ── */
.pp-list {
  list-style: none;
  padding: 0;
  margin: 0.6rem 0 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.pp-list li {
  font-family: "Palatino Linotype", "Book Antiqua", Palatino, serif;
  font-size: 0.9rem;
  line-height: 1.7;
  color: rgba(200, 185, 155, 0.78);
  padding-left: 1.2rem;
  position: relative;
}

.pp-list li::before {
  content: '◆';
  position: absolute;
  left: 0;
  top: 0.1em;
  font-size: 0.4rem;
  color: rgba(233,169,43,0.55);
  line-height: 1.9;
}

.pp-list-label {
  color: rgba(233,169,43,0.80);
  font-style: italic;
}

/* ── Highlight ── */
.pp-highlight {
  color: rgba(233, 169, 43, 0.90);
  text-shadow: 0 0 8px rgba(233,169,43,0.25);
}

/* ── Contact Block ── */
.pp-contact-block {
  margin-top: 0.6rem !important;
  padding: 1rem 1.4rem;
  border: 1px solid rgba(233,169,43,0.15);
  background: rgba(233,169,43,0.04);
  line-height: 2 !important;
}

/* ── Close Button ── */
.pp-close-btn {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 38px;
  height: 38px;
  background: rgba(233,169,43,0.06);
  border: 1px solid rgba(233,169,43,0.20);
  color: rgba(233,169,43,0.70);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: background 0.25s ease, color 0.25s ease,
              border-color 0.25s ease, transform 0.2s ease;
}

.pp-close-btn svg {
  width: 16px;
  height: 16px;
  pointer-events: none;
}

.pp-close-btn:hover {
  background: rgba(233,169,43,0.14);
  border-color: rgba(233,169,43,0.55);
  color: #fff;
  transform: rotate(90deg) scale(1.1);
}

.pp-close-btn:active {
  transform: rotate(90deg) scale(0.95);
}

/* ── Responsive ── */
@media (max-width: 600px) {
  .pp-modal-overlay {
    padding: 0;
    align-items: flex-end;
  }

  .pp-modal-container {
    max-height: 92vh;
    max-width: 100%;
    width: 100%;
    border-left: none;
    border-right: none;
    border-bottom: none;
  }

  .pp-modal-header {
    padding: 1rem 1.5rem 0.8rem;
  }

  .pp-modal-scroll {
    padding: 0.8rem 1.5rem 2rem;
  }

  .pp-top-rule {
    padding: 1.2rem 1.5rem 0;
  }

  .pp-modal-title {
    letter-spacing: 0.18em;
  }
}