/* ==========================================================================
   HUMAN ECHOES — Scroll Experience & Keeper Sanctuary
   Inspired by Pax Gothamista architecture · Adapted to Paper, Graphite & Pigment
   ========================================================================== */

:root {
  color-scheme: dark;
  --bg-void: #07070f;
  --bg-deep: #0b0b17;
  --bg-paper: #f4efe6;
  --cream: #f7f3eb;
  --muted: #b8b0c4;
  --graphite: #8e8899;
  --gold: #f3d078;
  --gold-bright: #ffe59e;
  --amber: #e29d52;
  --sapphire: #3b76c4;
  --crimson: #c93b4b;
  --sakura: #e88ca5;
  --emerald: #3a8f71;
  --robinhood: #00c805;
  --departed-bg: #152238;
  --seam-from: rgb(16, 24, 42);
  --font-display: 'Cinzel', 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --font-serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --font-sans: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
}

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

html {
  background: var(--bg-void);
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}

body {
  margin: 0;
  background: var(--bg-void);
  color: var(--cream);
  font-family: var(--font-sans);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Global Scroll Progress Bar */
.progress {
  position: fixed;
  bottom: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--sapphire), var(--gold), var(--sakura));
  width: 0%;
  z-index: 90;
  box-shadow: 0 0 12px rgba(243, 208, 120, 0.65);
}

/* ==========================================================================
   HEADER & NAVIGATION (Pax Gothamista Pill-Tab Style + Lang + Wallet)
   ========================================================================== */
.he-header {
  position: fixed;
  z-index: 80;
  inset: 0 0 auto 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px clamp(16px, 3.5vw, 56px);
  gap: 16px;
  background: linear-gradient(180deg, rgba(5, 5, 14, 0.88) 0%, rgba(5, 5, 14, 0.52) 65%, transparent 100%);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  pointer-events: none;
}

.he-header > * {
  pointer-events: auto;
}

.brand {
  display: block;
  width: clamp(165px, 19vw, 255px);
  text-decoration: none;
  flex-shrink: 0;
}

.brand-logo-img {
  width: 100%;
  height: auto;
  display: block;
}

.nav {
  display: flex;
  gap: clamp(4px, 0.8vw, 10px);
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav a:not(.connect) {
  font-family: var(--font-sans);
  font-size: clamp(9px, 0.78vw, 12px);
  font-weight: 800;
  letter-spacing: 0.03em;
  text-decoration: none;
  color: #f0ebf5;
  padding: 9px 13px;
  border-radius: 999px;
  white-space: nowrap;
  transition: background-color 0.25s ease, color 0.25s ease, transform 0.2s ease;
}

.nav a:not(.connect):hover {
  color: var(--gold-bright);
}

.nav a.active:not(.connect) {
  background: var(--gold);
  color: #130f1a;
  box-shadow: 0 2px 14px rgba(243, 208, 120, 0.35);
}

.header-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.lang-switch {
  display: inline-flex;
  background: rgba(18, 16, 30, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  padding: 2px;
}

.lang-btn {
  background: transparent;
  border: 0;
  color: var(--muted);
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 800;
  padding: 6px 10px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.lang-btn.active {
  background: var(--gold);
  color: #130f1a;
}

.sound-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(18, 16, 30, 0.8);
  color: var(--cream);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.sound-btn:hover,
.sound-btn[aria-pressed="true"] {
  border-color: var(--gold);
  color: var(--gold);
  box-shadow: 0 0 12px rgba(243, 208, 120, 0.3);
}

.connect-btn {
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--cream);
  background: rgba(16, 15, 28, 0.85);
  border: 1px solid var(--gold);
  padding: 10px 15px;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.22s ease;
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.connect-btn:hover {
  background: var(--gold);
  color: #14101c;
}

.connect-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--robinhood);
  box-shadow: 0 0 8px var(--robinhood);
}

/* Floating Socials Bar */
.pax-social {
  position: fixed;
  bottom: 26px;
  right: clamp(14px, 2.6vw, 42px);
  z-index: 75;
  display: flex;
  align-items: center;
  gap: 9px;
}

.pax-social a {
  display: grid;
  place-items: center;
  width: 39px;
  height: 39px;
  border-radius: 50%;
  background: rgba(16, 13, 26, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.38);
  color: var(--cream);
  backdrop-filter: blur(8px);
  transition: background 0.2s, transform 0.2s, color 0.2s, border-color 0.2s;
}

.pax-social a:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: #151020;
  transform: translateY(-3px);
}

.pax-social svg {
  width: 17px;
  height: 17px;
  fill: currentColor;
}

/* ==========================================================================
   STAGE 1: STICKY SCROLL HERO -> LORE (Pax Gothamista 660vh Choreography)
   ========================================================================== */
#stage,
#el-perfil,
#tiers,
#echoes-app,
#guardianes {
  scroll-snap-align: start;
  scroll-snap-stop: normal;
}

.scroll-stage {
  height: 660vh;
  position: relative;
}

.sticky {
  height: 100vh;
  height: 100svh;
  position: sticky;
  top: 0;
  overflow: hidden;
  background: #070714;
  isolation: isolate;
}

/* Full-Bleed Multi-Layer Scroll-Scrubbed Cinematic Canvas */
.stage-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

/* Dynamic Shade Gradient matching Pax Gothamista .shade & .shade.lore */
.shade {
  position: absolute;
  inset: 0;
  z-index: 3;
  background: linear-gradient(90deg, rgba(2, 3, 12, 0.55) 0%, rgba(3, 4, 14, 0.18) 28%, transparent 52%, rgba(3, 4, 14, 0.72) 100%);
  pointer-events: none;
  transition: background 0.5s ease;
}

.shade.lore-mode {
  background: linear-gradient(90deg, rgba(4, 3, 13, 0.72) 0%, transparent 40%, rgba(4, 3, 13, 0.28) 62%, rgba(4, 3, 13, 0.84) 100%);
}

.welcome,
.lore-wrap {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

/* Act I: Ornate Calligraphic Welcome Art on the Right */
.welcome {
  z-index: 10;
}

.welcome-art {
  position: absolute;
  right: clamp(18px, 4.5vw, 84px);
  top: 50%;
  width: clamp(280px, 38vw, 600px);
  transform: translate3d(0, -50%, 0);
  text-align: center;
  will-change: transform, opacity;
}

.welcome-emblem-img {
  width: 100%;
  max-height: 56vh;
  object-fit: contain;
  display: block;
  margin: 0 auto;
  filter: drop-shadow(0 8px 28px rgba(5, 5, 14, 0.9));
}

.welcome-poem {
  font-family: var(--font-serif);
  font-size: clamp(17.5px, 1.36vw, 23px);
  line-height: 1.56;
  color: #f7f2ea;
  margin: 2px auto 0;
  max-width: 535px;
  white-space: pre-line;
  font-style: italic;
  text-shadow: 0 3px 18px rgba(0, 0, 0, 0.95), 0 1px 4px rgba(0, 0, 0, 0.9);
}

.btn-gold {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--gold);
  color: #14101d;
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 15px 28px;
  border-radius: 999px;
  border: 0;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 6px 24px rgba(243, 208, 120, 0.3);
}

.btn-gold:hover {
  transform: translateY(-2px);
  background: var(--gold-bright);
  box-shadow: 0 10px 28px rgba(243, 208, 120, 0.45);
}

/* Act II: Pax Gothamista 3-Column Lore Composition (Left Emblem, Center Island, Right Copy) */
.lore-wrap {
  z-index: 11;
  opacity: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr) minmax(0, 1fr);
  align-items: center;
  gap: 1vw;
  padding: 10vh clamp(18px, 4vw, 72px) 2vh;
  will-change: transform, opacity;
}

.rest-art {
  width: 100%;
  max-width: 440px;
  max-height: 62vh;
  object-fit: contain;
  justify-self: start;
  filter: drop-shadow(0 6px 24px rgba(5, 4, 13, 0.9));
}

.lore-copy {
  grid-column: 3;
  max-width: 430px;
  justify-self: end;
  text-shadow: 0 2px 18px #07040b, 0 4px 28px rgba(0, 0, 0, 0.95);
}

.lore-eyebrow {
  font-family: 'Cinzel', var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.32em;
  color: #f4d898;
  margin-bottom: 10px;
  text-transform: uppercase;
}

.lore-copy h1 {
  font-family: 'Cinzel', var(--font-display);
  font-size: clamp(24px, 2.25vw, 35px);
  font-weight: 700;
  letter-spacing: 0.05em;
  word-spacing: 0.12em;
  line-height: 1.22;
  color: #fbf6ec;
  background: linear-gradient(180deg, #ffffff 0%, #fbf6ec 55%, #dec086 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 4px 16px rgba(0, 0, 0, 0.92));
  margin: 0 0 14px;
}

.lore-divider {
  width: 110px;
  height: 1.5px;
  background: linear-gradient(90deg, #f4d898 0%, rgba(244, 216, 152, 0) 100%);
  margin: 0 0 18px;
}

.lore-copy p {
  font-family: var(--font-serif);
  font-size: clamp(18px, 1.32vw, 21.5px);
  line-height: 1.56;
  color: #f5efe6;
  margin: 0 0 14px;
}

.lore-copy .lore-vow {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 600;
  font-size: clamp(19px, 1.4vw, 23px);
  line-height: 1.45;
  color: #f4d898;
  margin: 18px 0 0;
  padding-top: 14px;
  border-top: 1px solid rgba(244, 216, 152, 0.25);
}

/* Stage Controls (Pause Animation + Scroll Hint) */
.hero-motion-btn {
  position: absolute;
  bottom: 24px;
  left: 24px;
  z-index: 25;
  background: #100c24cc;
  color: #fff;
  border: 1px solid #b6acc6;
  padding: 8px 12px;
  font-family: var(--font-sans);
  font-size: 11px;
  cursor: pointer;
}

.scroll-hint {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 20;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.3em;
  color: var(--gold-bright);
  text-align: center;
  white-space: nowrap;
  pointer-events: none;
}

.scroll-hint::after {
  content: '↓';
  display: block;
  margin-top: 8px;
  font-size: 18px;
  animation: floatArrow 1.8s ease-in-out infinite;
}

@keyframes floatArrow {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}

/* ==========================================================================
   STAGE 2: EL PERFIL & STICKY 3D COVERFLOW CAROUSEL (620vh)
   ========================================================================== */
.departed-scroll {
  height: 600vh;
  position: relative;
  background: #152238;
}

.departed-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  isolation: isolate;
  background: var(--departed-bg, #152238);
  transition: background-color 700ms cubic-bezier(0.4, 0, 0.2, 1);
}

.departed-sticky::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 50% 42%, rgba(255, 255, 255, 0.14), transparent 58%),
    linear-gradient(0deg, rgba(5, 5, 12, 0.68) 0%, transparent 45%),
    linear-gradient(180deg, rgba(7, 7, 15, 0.55) 0%, transparent 22%);
}

.departed-grain {
  position: absolute;
  inset: 0;
  z-index: 40;
  pointer-events: none;
  opacity: 0.14;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.35'/%3E%3C/svg%3E");
}

.departed-topline {
  position: absolute;
  top: 94px;
  left: clamp(22px, 5vw, 85px);
  right: clamp(22px, 5vw, 85px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 35;
  color: #f5e9ed;
  letter-spacing: 0.22em;
  font-size: 11px;
  font-weight: 800;
}

/* Top Right Profile Mythology Banner ("El Perfil — Por qué todos miran a la derecha") */
.profile-mythos-banner {
  position: absolute;
  top: 132px;
  right: clamp(22px, 5vw, 85px);
  z-index: 35;
  max-width: min(410px, 34vw);
  background: rgba(8, 8, 18, 0.66);
  border: 1px solid rgba(243, 208, 120, 0.35);
  border-radius: 16px;
  padding: 16px 20px;
  backdrop-filter: blur(10px);
}

.profile-mythos-kicker {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.22em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 6px;
}

.profile-mythos-banner h3 {
  font-family: var(--font-display);
  font-size: clamp(14px, 1.2vw, 18px);
  color: #fff;
  margin: 0 0 8px;
}

.profile-mythos-banner p {
  font-family: var(--font-serif);
  font-size: clamp(13px, 1.02vw, 16px);
  line-height: 1.5;
  color: #eae3f2;
  margin: 0;
}

.departed-ghost {
  position: absolute;
  top: 18%;
  left: 0;
  right: 0;
  white-space: nowrap;
  text-align: center;
  font-family: var(--font-display);
  font-size: clamp(54px, 10.5vw, 185px);
  letter-spacing: -0.03em;
  line-height: 1;
  color: rgba(255, 248, 238, 0.09);
  z-index: 1;
  pointer-events: none;
  text-transform: uppercase;
}

/* ==========================================================================
   COLLECTIBLE TRADING CARD SLABS (#el-perfil 3D Coverflow)
   Zero cutout fringes: displays the full original master paintings
   in an ultra-luxury Pokémon Secret Rare / Holographic Slab presentation.
   ========================================================================== */

.departed-figures {
  position: absolute;
  inset: 0;
  z-index: 5;
  pointer-events: none;
  perspective: 1400px;
  overflow: visible;
}

.departed-figure {
  position: absolute;
  top: 50%;
  left: 50%;
  width: clamp(280px, 23vw, 390px);
  max-width: 90vw;
  aspect-ratio: 3 / 4.4;
  display: flex;
  align-items: center;
  justify-content: center;
  transform-origin: center center;
  transform: translate(-50%, -50%);
  transition:
    transform 650ms cubic-bezier(0.25, 1, 0.5, 1),
    left 650ms cubic-bezier(0.25, 1, 0.5, 1),
    top 650ms cubic-bezier(0.25, 1, 0.5, 1),
    filter 650ms cubic-bezier(0.25, 1, 0.5, 1),
    opacity 650ms cubic-bezier(0.25, 1, 0.5, 1);
  will-change: transform, left, filter, opacity;
  transform-style: preserve-3d;
  cursor: pointer;
  user-select: none;
}

.departed-figure.is-side:hover {
  filter: blur(0px) brightness(1.15) !important;
}

/* Outer Card Slab Body */
.echo-card-slab {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 18px;
  padding: 10px;
  background: linear-gradient(155deg, #181525 0%, #0d0c14 55%, #151122 100%);
  border: 1.5px solid rgba(243, 208, 120, 0.5);
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.85),
    0 0 35px var(--tier-glow, rgba(243, 208, 120, 0.25)),
    inset 0 1px 2px rgba(255, 255, 255, 0.25);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transform-style: preserve-3d;
  transition: transform 250ms cubic-bezier(0.2, 0, 0, 1), box-shadow 300ms ease;
}

.departed-figure.is-active:hover .echo-card-slab {
  box-shadow:
    0 32px 75px rgba(0, 0, 0, 0.95),
    0 0 50px var(--tier-glow, rgba(243, 208, 120, 0.45)),
    inset 0 1px 3px rgba(255, 255, 255, 0.4);
}

/* Inner Frame */
.card-inner-frame {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 12px;
  background: rgba(10, 9, 16, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  flex-direction: column;
  padding: 10px 10px 12px;
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.6);
  z-index: 2;
}

/* Top Bar: Tier pill, ID tag, Stars */
.card-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  padding: 0 4px;
}

.card-tier-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--tier-tag-bg, rgba(243, 208, 120, 0.18));
  border: 1px solid var(--tier-accent, #f3d078);
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--tier-accent, #f3d078);
  text-transform: uppercase;
}

.card-tier-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--tier-accent, #f3d078);
  box-shadow: 0 0 6px var(--tier-accent, #f3d078);
}

.card-id-tag {
  font-family: var(--font-mono, monospace);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: #fff;
  opacity: 0.9;
}

.card-stars {
  font-size: 10px;
  letter-spacing: 2px;
  color: var(--tier-accent, #f3d078);
  text-shadow: 0 0 6px var(--tier-accent, #f3d078);
}

/* Artwork Window: Inset container with original 3:4 master painting */
.card-art-window {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  border-radius: 9px;
  overflow: hidden;
  border: 1.5px solid rgba(243, 208, 120, 0.4);
  background: #000;
  box-shadow:
    inset 0 0 16px rgba(0, 0, 0, 0.7),
    0 4px 14px rgba(0, 0, 0, 0.5);
}

.card-art-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 38%;
  display: block;
  user-select: none;
  -webkit-user-drag: none;
  transition: transform 600ms cubic-bezier(0.2, 0, 0.1, 1);
}

.departed-figure.is-active:hover .card-art-img {
  transform: scale(1.035);
}

.card-art-tint {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06) 0%, transparent 25%, rgba(0, 0, 0, 0.3) 100%);
  mix-blend-mode: overlay;
}

/* Holographic Foil Sheen Overlay (Secret Rare Pokémon card effect) */
.card-holo-foil {
  position: absolute;
  inset: 0;
  border-radius: 18px;
  pointer-events: none;
  z-index: 5;
  opacity: 0.25;
  background: linear-gradient(
    115deg,
    transparent 0%,
    rgba(255, 120, 160, 0.22) 20%,
    rgba(243, 208, 120, 0.35) 35%,
    rgba(100, 240, 200, 0.3) 48%,
    rgba(80, 170, 255, 0.35) 60%,
    rgba(220, 120, 255, 0.25) 75%,
    transparent 100%
  );
  background-size: 250% 250%;
  background-position: 50% 50%;
  mix-blend-mode: color-dodge;
  transition: opacity 300ms ease;
}

.card-glare {
  position: absolute;
  inset: 0;
  border-radius: 18px;
  pointer-events: none;
  z-index: 6;
  opacity: 0;
  mix-blend-mode: overlay;
  transition: opacity 250ms ease;
}

/* Corner metallic brackets */
.card-corner {
  position: absolute;
  width: 14px;
  height: 14px;
  z-index: 7;
  pointer-events: none;
  border-color: var(--tier-accent, #f3d078);
  border-style: solid;
  opacity: 0.85;
}

.card-corner.corner-tl {
  top: 4px;
  left: 4px;
  border-width: 2px 0 0 2px;
  border-top-left-radius: 14px;
}
.card-corner.corner-tr {
  top: 4px;
  right: 4px;
  border-width: 2px 2px 0 0;
  border-top-right-radius: 14px;
}
.card-corner.corner-bl {
  bottom: 4px;
  left: 4px;
  border-width: 0 0 2px 2px;
  border-bottom-left-radius: 14px;
}
.card-corner.corner-br {
  bottom: 4px;
  right: 4px;
  border-width: 0 2px 2px 0;
  border-bottom-right-radius: 14px;
}

/* Card Bottom Plaque / Metadata */
.card-bottom-bar {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 0 4px;
}

.card-name-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.card-title {
  font-family: 'Cinzel Decorative', var(--font-display);
  font-size: clamp(11.5px, 0.96vw, 14px);
  font-weight: 700;
  letter-spacing: 0.03em;
  line-height: 1.25;
  color: #fff;
  text-shadow: 0 0 10px rgba(243, 208, 120, 0.4);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-ghost-badge {
  font-family: var(--font-display);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.16em;
  color: rgba(255, 255, 255, 0.55);
  text-transform: uppercase;
}

.card-utility-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.card-utility-pill {
  font-family: var(--font-sans);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.06em;
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(243, 208, 120, 0.14);
  border: 1px solid rgba(243, 208, 120, 0.5);
  color: var(--gold-bright);
  text-transform: uppercase;
}

.card-footer-serial {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono, monospace);
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.4);
  text-transform: uppercase;
  border-top: 1px dashed rgba(255, 255, 255, 0.12);
  padding-top: 5px;
  margin-top: 2px;
}

/* ==========================================================================
   TIER-SPECIFIC THEMING (Mythic, Epic, Rare, Uncommon, Common, Archetype)
   ========================================================================== */

/* Mythic (#2221) — Nuclear/Toxic Uranium Gold */
.tier-mythic {
  --tier-accent: #d2f822;
  --tier-glow: rgba(210, 248, 34, 0.45);
  --tier-tag-bg: rgba(210, 248, 34, 0.16);
  border-color: rgba(210, 248, 34, 0.65);
}
.tier-mythic .card-inner-frame {
  border-color: rgba(210, 248, 34, 0.35);
}
.tier-mythic .card-art-window {
  border-color: rgba(210, 248, 34, 0.55);
}
.tier-mythic .card-title {
  text-shadow: 0 0 12px rgba(210, 248, 34, 0.6);
}

/* Epic (#2126) — Sapphire / Sorcerer Obelisk Blue */
.tier-epic {
  --tier-accent: #60a5fa;
  --tier-glow: rgba(96, 165, 250, 0.45);
  --tier-tag-bg: rgba(96, 165, 250, 0.16);
  border-color: rgba(96, 165, 250, 0.65);
}
.tier-epic .card-inner-frame {
  border-color: rgba(96, 165, 250, 0.35);
}
.tier-epic .card-art-window {
  border-color: rgba(96, 165, 250, 0.55);
}
.tier-epic .card-title {
  text-shadow: 0 0 12px rgba(96, 165, 250, 0.6);
}

/* Rare (#1896) — Autumn Amber Keep */
.tier-rare {
  --tier-accent: #fb923c;
  --tier-glow: rgba(251, 146, 60, 0.45);
  --tier-tag-bg: rgba(251, 146, 60, 0.16);
  border-color: rgba(251, 146, 60, 0.65);
}
.tier-rare .card-inner-frame {
  border-color: rgba(251, 146, 60, 0.35);
}
.tier-rare .card-art-window {
  border-color: rgba(251, 146, 60, 0.55);
}
.tier-rare .card-title {
  text-shadow: 0 0 12px rgba(251, 146, 60, 0.6);
}

/* Uncommon (#1458) — Coral Reef Aquamarine */
.tier-uncommon {
  --tier-accent: #2dd4bf;
  --tier-glow: rgba(45, 212, 191, 0.45);
  --tier-tag-bg: rgba(45, 212, 191, 0.16);
  border-color: rgba(45, 212, 191, 0.65);
}
.tier-uncommon .card-inner-frame {
  border-color: rgba(45, 212, 191, 0.35);
}
.tier-uncommon .card-art-window {
  border-color: rgba(45, 212, 191, 0.55);
}
.tier-uncommon .card-title {
  text-shadow: 0 0 12px rgba(45, 212, 191, 0.6);
}

/* Common (#0015) — Savanna Spire Bronze / Warm Gold */
.tier-common {
  --tier-accent: #e2c08d;
  --tier-glow: rgba(226, 192, 141, 0.35);
  --tier-tag-bg: rgba(226, 192, 141, 0.16);
  border-color: rgba(226, 192, 141, 0.65);
}
.tier-common .card-inner-frame {
  border-color: rgba(226, 192, 141, 0.35);
}
.tier-common .card-art-window {
  border-color: rgba(226, 192, 141, 0.55);
}
.tier-common .card-title {
  text-shadow: 0 0 10px rgba(226, 192, 141, 0.5);
}

/* Archetype (Lyra / echo-01) — Celestial Royal Gold */
.tier-archetype {
  --tier-accent: #f3d078;
  --tier-glow: rgba(243, 208, 120, 0.5);
  --tier-tag-bg: rgba(243, 208, 120, 0.2);
  border-color: rgba(243, 208, 120, 0.75);
}
.tier-archetype .card-inner-frame {
  border-color: rgba(243, 208, 120, 0.4);
}
.tier-archetype .card-art-window {
  border-color: rgba(243, 208, 120, 0.6);
}
.tier-archetype .card-title {
  text-shadow: 0 0 14px rgba(243, 208, 120, 0.7);
}

.departed-details {
  position: absolute;
  bottom: 7%;
  left: clamp(22px, 5vw, 85px);
  z-index: 35;
  max-width: min(410px, 33vw);
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.85);
}

.departed-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.22em;
  color: var(--gold);
  margin-bottom: 10px;
  text-transform: uppercase;
}

.departed-details h2 {
  font-family: 'Cinzel Decorative', var(--font-display);
  font-size: clamp(28px, 3.1vw, 46px);
  font-weight: 700;
  letter-spacing: 0.03em;
  line-height: 1.12;
  margin: 0 0 12px;
  color: #fff5f1;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.6));
}

.departed-meta-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.meta-pill {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.meta-pill.license-pill {
  background: rgba(243, 208, 120, 0.22);
  border: 1px solid var(--gold);
  color: var(--gold-bright);
}

.departed-details p {
  font-family: var(--font-serif);
  font-size: clamp(15px, 1.15vw, 18px);
  line-height: 1.55;
  color: #f4ebe8;
  margin: 0 0 18px;
}

.departed-controls {
  display: flex;
  gap: 10px;
  align-items: center;
}

.departed-controls button {
  width: 48px;
  height: 48px;
  border: 1.5px solid rgba(255, 255, 255, 0.65);
  border-radius: 50%;
  background: rgba(15, 14, 24, 0.5);
  color: white;
  font-size: 20px;
  cursor: pointer;
  transition: transform 150ms, background-color 150ms, border-color 150ms;
}

.departed-controls button:hover {
  transform: scale(1.08);
  background: var(--gold);
  border-color: var(--gold);
  color: #130f1c;
}

.departed-controls span {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: rgba(255, 255, 255, 0.75);
  margin-left: 6px;
  text-transform: uppercase;
}

/* ==========================================================================
   STAGE 3: HORIZONTAL CONTINUOUSLY MOVING NFT RIBBONS (Marquees)
   ========================================================================== */
.pax-nft-marquees {
  min-height: clamp(480px, 52vw, 680px);
  padding: 75px 0 65px;
  background: linear-gradient(180deg, #1b172e 0%, #161327 32%, #0f1123 68%, #0c1228 100%);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 22px;
  isolation: isolate;
}

/* Seam blend from Coverflow Carousel */
.pax-nft-marquees::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: clamp(100px, 12vw, 180px);
  z-index: 1;
  pointer-events: none;
  background: var(--seam-from, rgb(21, 34, 56));
  -webkit-mask-image: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, 0.7) 28%, rgba(0, 0, 0, 0.25) 65%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, 0.7) 28%, rgba(0, 0, 0, 0.25) 65%, transparent 100%);
}

.pax-nft-heading {
  position: absolute;
  top: 28px;
  left: 0;
  right: 0;
  text-align: center;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.28em;
  color: var(--gold-bright);
  z-index: 4;
  text-transform: uppercase;
}

.pax-nft-row {
  position: relative;
  width: 100%;
  left: 0;
  transform: none;
  overflow: hidden;
  padding: 6px 0;
  z-index: 3;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 4%, #000 96%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 4%, #000 96%, transparent 100%);
}

.pax-nft-track {
  display: flex;
  width: max-content;
  animation: paxNFTLeft 38s linear infinite;
  will-change: transform;
}

.pax-nft-row.reverse .pax-nft-track {
  animation-name: paxNFTRight;
  animation-duration: 44s;
}

.pax-nft-row:hover .pax-nft-track,
.pax-nft-row:focus-within .pax-nft-track {
  animation-play-state: paused;
}

.pax-nft-set {
  display: flex;
  gap: 14px;
  padding-right: 14px;
  flex-shrink: 0;
}

.pax-nft-card {
  width: clamp(145px, 16.5vw, 220px);
  height: clamp(185px, 21vw, 280px);
  background: #f5f2eb;
  border-radius: 12px;
  overflow: hidden;
  flex: none;
  border: 2px solid rgba(243, 208, 120, 0.4);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.55);
  position: relative;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.pax-nft-card:hover {
  transform: scale(1.04);
  border-color: var(--gold);
}

.pax-nft-card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.pax-nft-caption {
  position: absolute;
  bottom: 24px;
  left: 0;
  right: 0;
  text-align: center;
  z-index: 4;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

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

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

/* ==========================================================================
   STAGE 4: INTERACTIVE MONUMENT STAGE — TIERS & LAS 12 RESONANCIAS
   (Inspired by Pax Gothamista's Deathly Offerings & Mortuary interactive stage)
   ========================================================================== */
.he-tiers-stage {
  position: relative;
  min-height: 100svh;
  background:
    radial-gradient(ellipse at 50% 25%, var(--tier-glow, rgba(59, 118, 196, 0.22)) 0%, transparent 62%),
    linear-gradient(180deg, #0c1228 0%, #090b16 50%, #070811 100%);
  padding: 110px clamp(20px, 5vw, 88px) 80px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  isolation: isolate;
  overflow: hidden;
  transition: background 0.5s ease;
}

.tiers-header-row {
  max-width: 1280px;
  width: 100%;
  margin: 0 auto 32px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
}

.tiers-eyebrow {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.24em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 8px;
}

.tiers-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.4vw, 52px);
  margin: 0;
  color: #fff;
}

.tiers-supply-pill {
  background: rgba(243, 208, 120, 0.12);
  border: 1px solid rgba(243, 208, 120, 0.4);
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--gold-bright);
}

/* Interactive 5-Monolith Island Selector + Inspector */
.tiers-interactive-grid {
  max-width: 1280px;
  width: 100%;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.25fr 0.95fr;
  gap: clamp(24px, 3.5vw, 48px);
  align-items: stretch;
}

.tier-monoliths {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  align-items: end;
}

.tier-monolith {
  position: relative;
  background: rgba(15, 16, 32, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 18px;
  padding: 16px 12px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), border-color 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
  color: var(--cream);
  font-family: var(--font-sans);
}

.tier-monolith:nth-child(1) { min-height: 290px; }
.tier-monolith:nth-child(2) { min-height: 320px; }
.tier-monolith:nth-child(3) { min-height: 350px; }
.tier-monolith:nth-child(4) { min-height: 380px; }
.tier-monolith:nth-child(5) { min-height: 415px; }

.tier-monolith:hover,
.tier-monolith.is-selected {
  transform: translateY(-10px);
  border-color: var(--gold);
  background: linear-gradient(180deg, rgba(243, 208, 120, 0.16) 0%, rgba(16, 18, 36, 0.95) 100%);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.6), 0 0 25px rgba(243, 208, 120, 0.25);
}

.monolith-thumb {
  width: 100%;
  height: 135px;
  object-fit: contain;
  margin-bottom: auto;
  filter: drop-shadow(0 8px 14px rgba(0, 0, 0, 0.5));
  transition: transform 0.3s ease;
}

.tier-monolith:hover .monolith-thumb,
.tier-monolith.is-selected .monolith-thumb {
  transform: scale(1.08) translateY(-4px);
}

.monolith-tier-name {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-top: 12px;
}

.monolith-lore-name {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  margin: 4px 0;
}

.monolith-count {
  font-size: 18px;
  font-weight: 900;
  color: var(--cream);
  margin-bottom: 8px;
}

.monolith-license-badge {
  font-size: 10px;
  font-weight: 800;
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(0, 200, 5, 0.16);
  border: 1px solid rgba(0, 200, 5, 0.45);
  color: #7dff82;
  width: 100%;
}

/* Right Column: Active Tier Spotlight & Resonances Card */
.tier-spotlight-panel {
  background: rgba(12, 13, 28, 0.88);
  border: 1px solid rgba(243, 208, 120, 0.35);
  border-radius: 22px;
  padding: clamp(22px, 3vw, 36px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.65);
  position: relative;
  overflow: hidden;
}

.tier-spotlight-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.spotlight-badge {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.2em;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--gold);
  color: #14101c;
  text-transform: uppercase;
}

.spotlight-pieces {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--gold-bright);
}

.spotlight-heading {
  font-family: var(--font-display);
  font-size: clamp(26px, 2.5vw, 38px);
  margin: 0 0 12px;
  color: #fff;
}

.spotlight-desc {
  font-family: var(--font-serif);
  font-size: clamp(17px, 1.25vw, 21px);
  line-height: 1.6;
  color: #f0eae1;
  margin: 0 0 22px;
}

.spotlight-utility-box {
  background: rgba(0, 200, 5, 0.08);
  border: 1px solid rgba(0, 200, 5, 0.35);
  border-radius: 16px;
  padding: 16px 20px;
  margin-bottom: 18px;
}

.utility-box-label {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.2em;
  color: #7dff82;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.utility-box-value {
  font-size: clamp(16px, 1.3vw, 20px);
  font-weight: 800;
  color: #fff;
  margin: 0 0 4px;
}

.utility-box-sub {
  font-size: 13px;
  color: #cfe8d0;
  margin: 0;
}

/* Mythic 12 Resonances Callout Banner */
.resonances-banner {
  max-width: 1280px;
  width: 100%;
  margin: 32px auto 0;
  background: linear-gradient(90deg, rgba(201, 59, 75, 0.18) 0%, rgba(243, 208, 120, 0.15) 50%, rgba(59, 118, 196, 0.18) 100%);
  border: 1px solid rgba(243, 208, 120, 0.4);
  border-radius: 20px;
  padding: 24px clamp(20px, 3vw, 36px);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.resonances-copy {
  max-width: 820px;
}

.resonances-copy h3 {
  font-family: var(--font-display);
  font-size: clamp(18px, 1.8vw, 26px);
  color: var(--gold-bright);
  margin: 0 0 6px;
}

.resonances-copy p {
  font-family: var(--font-serif);
  font-size: clamp(15px, 1.15vw, 18px);
  line-height: 1.55;
  color: #f5efe6;
  margin: 0;
}

/* ==========================================================================
   STAGE 5: ECHOES ANDROID APP UTILITY — SWIPEABLE 3D DECK + LIVE DEMO
   (Replicating Pax Gothamista's #unfinished-business deck + Echoes App preview)
   ========================================================================== */
.he-app-stage {
  position: relative;
  min-height: 100svh;
  background:
    radial-gradient(ellipse at 25% 50%, rgba(58, 143, 113, 0.18) 0%, transparent 60%),
    linear-gradient(180deg, #070811 0%, #0b1412 50%, #07090e 100%);
  padding: 110px clamp(20px, 5vw, 88px) 90px;
  overflow: hidden;
  isolation: isolate;
}

.app-stage-container {
  max-width: 1280px;
  margin: 0 auto;
}

.app-header-block {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 44px;
}

.app-brand-cluster {
  display: flex;
  align-items: center;
  gap: 18px;
}

.app-icon-frame {
  width: 78px;
  height: 78px;
  border-radius: 14%;
  overflow: hidden;
  filter: drop-shadow(0 10px 24px rgba(0, 0, 0, 0.55));
  flex-shrink: 0;
}

.app-icon-frame img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

/* Unfinished-Business style 3D Swipeable Deck + Copy */
.underground-content {
  display: grid;
  grid-template-columns: minmax(280px, 360px) minmax(0, 680px);
  gap: clamp(36px, 5vw, 72px);
  align-items: center;
  justify-content: center;
}

.deck {
  position: relative;
  width: 100%;
  max-width: 340px;
  aspect-ratio: 3 / 4;
  margin: 0 auto;
  touch-action: none;
  user-select: none;
  outline: none;
}

.deck:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 10px;
  border-radius: 20px;
}

.deck .card {
  position: absolute;
  inset: 0;
  border-radius: 20px;
  background: #141829;
  border: 2px solid rgba(243, 208, 120, 0.45);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.72);
  overflow: hidden;
  cursor: grab;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  transition: transform 280ms ease-out, opacity 280ms ease-out;
}

.deck .card:active {
  cursor: grabbing;
}

.deck .card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  pointer-events: none;
}

.deck .card-badge-overlay {
  position: relative;
  z-index: 2;
  background: linear-gradient(180deg, transparent 0%, rgba(8, 10, 20, 0.92) 45%, rgba(8, 10, 20, 0.98) 100%);
  padding: 36px 18px 18px;
}

.deck .card-badge-overlay span {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.18em;
  color: var(--gold);
  text-transform: uppercase;
  display: block;
  margin-bottom: 4px;
}

.deck .card-badge-overlay strong {
  font-family: var(--font-display);
  font-size: 18px;
  color: #fff;
}

.deck-copy-panel .eyebrow {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.22em;
  color: var(--gold);
  margin-bottom: 10px;
}

.deck-copy-panel h3 {
  font-family: var(--font-display);
  font-size: clamp(26px, 2.6vw, 40px);
  color: #fff;
  margin: 0 0 12px;
}

.deck-copy-panel .status {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.16em;
  background: rgba(58, 143, 113, 0.25);
  border: 1px solid #5cd6a9;
  color: #8affd1;
  margin-bottom: 16px;
}

.deck-copy-panel .description {
  font-family: var(--font-serif);
  font-size: clamp(16px, 1.25vw, 20px);
  line-height: 1.62;
  color: #f2ece1;
  margin: 0 0 22px;
}

.deck-nav-controls {
  display: flex;
  align-items: center;
  gap: 14px;
}

.deck-nav-controls button {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.5);
  background: transparent;
  color: #fff;
  font-size: 22px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.deck-nav-controls button:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: #120e1a;
}

.deck-nav-controls .counter {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.18em;
  color: var(--gold-bright);
}

.deck-hint {
  margin-top: 10px;
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.06em;
}

/* Interactive Mini-Echoes Android Simulator Card */
.echoes-live-sim {
  background: #f5efe6;
  color: #1c241e;
  border-radius: 26px;
  padding: 20px;
  border: 4px solid #2b3830;
  box-shadow: 0 24px 55px rgba(0, 0, 0, 0.65);
}

.sim-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(28, 36, 30, 0.14);
  margin-bottom: 14px;
}

.sim-brand-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 900;
  font-size: 14px;
  color: #1b4332;
}

.sim-mode-badge {
  font-size: 11px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 999px;
  background: #d8f3dc;
  color: #1b4332;
}

.sim-prompt {
  font-size: 15px;
  font-weight: 700;
  color: #1c241e;
  margin: 0 0 12px;
  text-align: center;
}

.sim-pads-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 14px;
}

.sim-pad {
  height: 68px;
  border-radius: 14px;
  border: 2px solid rgba(0, 0, 0, 0.12);
  cursor: pointer;
  font-weight: 800;
  font-size: 14px;
  color: #fff;
  transition: transform 0.15s ease, filter 0.15s ease, box-shadow 0.15s ease;
}

.sim-pad[data-pad="0"] { background: #2d6a4f; }
.sim-pad[data-pad="1"] { background: #b5651d; }
.sim-pad[data-pad="2"] { background: #3b5998; }
.sim-pad[data-pad="3"] { background: #9b2226; }

.sim-pad.lit {
  transform: scale(1.05);
  filter: brightness(1.35);
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.35);
}

.sim-action-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.sim-play-btn {
  width: 100%;
  padding: 12px;
  border-radius: 12px;
  border: 0;
  background: #1b4332;
  color: #fff;
  font-weight: 800;
  font-size: 13px;
  cursor: pointer;
}

.sim-play-btn:hover {
  background: #2d6a4f;
}

.sim-status-text {
  margin-top: 10px;
  font-size: 12px;
  font-weight: 700;
  text-align: center;
  color: #2d6a4f;
  min-height: 18px;
}

/* ==========================================================================
   STAGE 6: GUARDIANES & ROBINHOOD CHAIN REDEMPTION PORTAL
   (Replicating Pax Gothamista's #orbituary radial cursor spotlight reveal!)
   ========================================================================== */
.he-orbituary {
  position: relative;
  min-height: 100svh;
  background: #05050a;
  padding: 110px clamp(20px, 5vw, 88px) 90px;
  overflow: hidden;
  isolation: isolate;
}

/* Cursor-driven radial spotlight reveal layer (Monochrome pencil -> Full color under gaze) */
.gaze-spotlight-stage {
  position: relative;
  max-width: 1280px;
  margin: 0 auto;
  border-radius: 26px;
  border: 1px solid rgba(243, 208, 120, 0.35);
  background: #0b0b16;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.8);
}

.gaze-backdrop-mono,
.gaze-backdrop-color {
  position: absolute;
  inset: 0;
  background-image: url('../assets/echoes/echo_01_cutout.png');
  background-repeat: no-repeat;
  background-position: 88% center;
  background-size: auto 92%;
  pointer-events: none;
}

.gaze-backdrop-mono {
  filter: grayscale(1) contrast(1.15) opacity(0.26);
}

.gaze-backdrop-color {
  opacity: 0;
  filter: saturate(1.45) contrast(1.1) drop-shadow(0 0 30px rgba(243, 208, 120, 0.4));
  mask-image: radial-gradient(circle 260px at var(--rx, 75%) var(--ry, 50%), black 0%, black 42%, rgba(0, 0, 0, 0.5) 70%, transparent 100%);
  -webkit-mask-image: radial-gradient(circle 260px at var(--rx, 75%) var(--ry, 50%), black 0%, black 42%, rgba(0, 0, 0, 0.5) 70%, transparent 100%);
  transition: opacity 0.25s ease;
}

.gaze-backdrop-color.active {
  opacity: 1;
}

.guardian-portal-grid {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(24px, 4vw, 56px);
  padding: clamp(26px, 4vw, 56px);
  background: linear-gradient(90deg, rgba(8, 8, 18, 0.94) 0%, rgba(8, 8, 18, 0.82) 55%, rgba(8, 8, 18, 0.55) 100%);
}

.guardian-lore-col .eyebrow {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.24em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 10px;
}

.guardian-lore-col h2 {
  font-family: var(--font-display);
  font-size: clamp(28px, 3vw, 46px);
  color: #fff;
  margin: 0 0 16px;
}

.guardian-lore-col p {
  font-family: var(--font-serif);
  font-size: clamp(16px, 1.22vw, 20px);
  line-height: 1.6;
  color: #f0eae1;
  margin: 0 0 14px;
}

.guardian-cta-banner {
  margin-top: 20px;
  padding: 16px 20px;
  border-left: 3px solid var(--gold);
  background: rgba(243, 208, 120, 0.08);
  font-family: var(--font-display);
  font-size: 16px;
  color: var(--gold-bright);
}

/* Redemption Vault Panel */
.redeem-vault-card {
  background: rgba(14, 15, 30, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 20px;
  padding: clamp(20px, 2.6vw, 32px);
  backdrop-filter: blur(14px);
}

.vault-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.vault-network-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: #7dff82;
  background: rgba(0, 200, 5, 0.12);
  border: 1px solid rgba(0, 200, 5, 0.35);
  padding: 6px 12px;
  border-radius: 999px;
}

.vault-step-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.demo-tier-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: var(--cream);
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.demo-tier-btn:hover,
.demo-tier-btn.active {
  background: var(--gold);
  border-color: var(--gold);
  color: #14101c;
}

.vault-wallet-row {
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
}

.vault-input {
  width: 100%;
  background: rgba(6, 6, 14, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 12px;
  padding: 13px 16px;
  color: #fff;
  font-family: var(--font-sans);
  font-size: 13px;
}

.vault-input:focus {
  outline: none;
  border-color: var(--gold);
}

.vault-detected-box {
  background: rgba(243, 208, 120, 0.08);
  border: 1px solid rgba(243, 208, 120, 0.3);
  border-radius: 14px;
  padding: 14px 16px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.detected-info strong {
  display: block;
  font-size: 15px;
  color: #fff;
}

.detected-info span {
  font-size: 12px;
  color: var(--gold-bright);
}

.license-counter-pill {
  background: var(--gold);
  color: #14101c;
  font-weight: 900;
  font-size: 13px;
  padding: 8px 14px;
  border-radius: 999px;
  white-space: nowrap;
}

.redeem-method-selector {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-bottom: 16px;
}

.method-option {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 12px;
  padding: 12px 14px;
  text-align: left;
  color: var(--cream);
  transition: all 0.2s ease;
}

.method-option.active {
  border-color: rgba(243, 208, 120, 0.55);
  background: linear-gradient(135deg, rgba(243, 208, 120, 0.14) 0%, rgba(243, 208, 120, 0.05) 100%);
}

.method-option strong {
  display: block;
  font-size: 12.5px;
  color: var(--gold);
  margin-bottom: 4px;
  letter-spacing: 0.02em;
}

.method-option small {
  display: block;
  font-size: 11.5px;
  line-height: 1.45;
  color: #d6cee2;
}

.redeem-result-codes {
  margin-top: 16px;
  padding: 14px;
  border-radius: 12px;
  background: rgba(0, 200, 5, 0.1);
  border: 1px solid rgba(0, 200, 5, 0.4);
  display: none;
}

.redeem-result-codes.visible {
  display: block;
}

.result-box-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-bottom: 10px;
}

.copy-hint-text {
  font-size: 11px;
  color: rgba(138, 255, 209, 0.78);
}

.code-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.code-chip {
  font-family: monospace;
  font-size: 13px;
  font-weight: 700;
  background: #080b12;
  border: 1px solid #5cd6a9;
  color: #8affd1;
  padding: 7px 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.16s ease, background 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}

.code-chip:hover {
  background: rgba(92, 214, 169, 0.15);
  border-color: #8affd1;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(92, 214, 169, 0.2);
}

.code-chip.is-copied {
  background: rgba(243, 208, 120, 0.18);
  border-color: var(--gold);
  color: var(--gold);
}

/* ==========================================================================
   EPILOGUE (Frase-Semilla) & FOOTER
   ========================================================================== */
.seed-epilogue {
  min-height: 46vh;
  display: grid;
  place-items: center;
  padding: 90px 24px;
  text-align: center;
  background: radial-gradient(ellipse at 50% 50%, rgba(243, 208, 120, 0.12) 0%, #050407 70%);
  border-top: 1px solid rgba(243, 208, 120, 0.2);
}

.seed-epilogue blockquote {
  max-width: 900px;
  margin: 0 auto 16px;
  font-family: var(--font-display);
  font-size: clamp(24px, 3.6vw, 48px);
  line-height: 1.22;
  color: #fff;
}

.seed-epilogue small {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.26em;
  color: var(--gold);
  text-transform: uppercase;
}

.pax-footer {
  background: #040307;
  color: #c6becf;
  padding: 48px clamp(22px, 5vw, 80px) 58px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.pax-footer-grid {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: clamp(20px, 4vw, 56px);
}

.pax-footer h3 {
  font-family: var(--font-display);
  font-size: 14px;
  letter-spacing: 0.1em;
  color: var(--gold);
  margin: 0 0 14px;
  text-transform: uppercase;
}

.pax-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.pax-footer li {
  margin-bottom: 8px;
}

.pax-footer a {
  color: #c6becf;
  text-decoration: none;
  font-size: 13px;
  transition: color 0.2s;
}

.pax-footer a:hover {
  color: var(--gold-bright);
}

.pax-footer-bottom {
  max-width: 1280px;
  margin: 36px auto 0;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  font-size: 12px;
  color: #8f869c;
}

/* ==========================================================================
   RESPONSIVE DESIGN (Mobile & Tablet)
   ========================================================================== */
@media (max-width: 1024px) {
  .tiers-interactive-grid,
  .underground-content,
  .guardian-portal-grid {
    grid-template-columns: 1fr;
  }
  .profile-mythos-banner {
    display: none;
  }
}

@media (max-width: 760px) {
  .he-header {
    padding: 12px 14px;
    flex-wrap: wrap;
  }
  .brand {
    width: 145px;
  }
  .nav {
    order: 3;
    width: 100%;
    justify-content: center;
    gap: 4px;
  }
  .nav a:not(.connect) {
    font-size: 9px;
    padding: 6px 9px;
  }
  .welcome-art {
    top: auto;
    bottom: 10%;
    left: 6%;
    right: 6%;
    width: auto;
    max-height: 44vh;
  }
  .lore-wrap {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: stretch;
    gap: 12px;
    padding: 88px 7% 7vh;
    background: linear-gradient(180deg, transparent 10%, rgba(6, 4, 16, 0.8) 54%, rgba(6, 4, 16, 0.95));
  }
  .rest-art {
    width: 44vw;
    max-height: 20vh;
    align-self: flex-start;
  }
  .lore-copy {
    max-width: 100%;
  }
  .lore-copy h1 {
    font-size: 28px;
    margin-bottom: 12px;
  }
  .lore-copy p {
    font-size: 12px;
    line-height: 1.55;
    margin-bottom: 9px;
  }
  .departed-figure {
    width: clamp(260px, 78vw, 320px);
    aspect-ratio: 3 / 4.4;
  }
  .departed-details {
    left: 5%;
    right: 5%;
    max-width: none;
    bottom: 4%;
  }
  .tier-monoliths {
    grid-template-columns: repeat(2, 1fr);
  }
  .tier-monolith:nth-child(n) {
    min-height: 240px;
  }
  .pax-footer-grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-snap-type: none;
    scroll-behavior: auto;
  }
  .pax-nft-track {
    animation: none;
  }
}


/* ==========================================================================
   STAGE 4B: DEDICATED INTERACTIVE STAGE — LAS 12 RESONANCIAS (#2211 - #2222)
   ("Las doce voces del acorde humano" — Chromatic 12-Voice Mythic Vault)
   ========================================================================== */
#resonancias {
  scroll-snap-align: start;
  scroll-snap-stop: normal;
}

.he-resonancias-stage {
  position: relative;
  min-height: 100svh;
  background:
    radial-gradient(ellipse at 70% 45%, rgba(186, 214, 52, 0.14) 0%, rgba(201, 59, 75, 0.1) 38%, transparent 70%),
    linear-gradient(180deg, #070811 0%, #0d0b18 50%, #070811 100%);
  padding: 110px clamp(20px, 5vw, 88px) 90px;
  isolation: isolate;
  overflow: hidden;
}

.resonancias-container {
  max-width: 1280px;
  margin: 0 auto;
}

.resonancias-header {
  max-width: 900px;
  margin-bottom: 36px;
}

.resonancias-header p {
  font-family: var(--font-serif);
  font-size: clamp(16px, 1.25vw, 20px);
  line-height: 1.6;
  color: #e9e3d8;
  margin: 12px 0 0;
}

.resonancias-vault-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(24px, 3.5vw, 48px);
  align-items: start;
}

/* 12-Voice Selector Matrix (4x3 grid of the 12 Mythics) */
.mythic-twelve-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.mythic-voice-card {
  position: relative;
  background: rgba(14, 15, 29, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  padding: 8px;
  cursor: pointer;
  text-align: left;
  color: var(--cream);
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
  overflow: hidden;
}

.mythic-voice-card:hover,
.mythic-voice-card.active {
  transform: translateY(-4px);
  border-color: var(--gold);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.65), 0 0 18px rgba(243, 208, 120, 0.28);
}

.mythic-voice-thumb {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: center top;
  border-radius: 9px;
  display: block;
  margin-bottom: 8px;
}

.mythic-voice-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--gold);
  margin-bottom: 3px;
}

.mythic-voice-title {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Right Column: Active Mythic 1-of-12 Showcase Panel */
.mythic-inspector-panel {
  background: rgba(12, 13, 26, 0.92);
  border: 1px solid rgba(243, 208, 120, 0.4);
  border-radius: 22px;
  padding: clamp(20px, 2.5vw, 30px);
  box-shadow: 0 26px 65px rgba(0, 0, 0, 0.75);
  display: grid;
  grid-template-columns: minmax(180px, 230px) 1fr;
  gap: 22px;
  align-items: center;
}

.mythic-inspector-art {
  width: 100%;
  aspect-ratio: 3 / 4;
  border-radius: 14px;
  overflow: hidden;
  border: 2px solid rgba(243, 208, 120, 0.5);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.65);
}

.mythic-inspector-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.mythic-inspector-copy h3 {
  font-family: var(--font-display);
  font-size: clamp(20px, 2vw, 28px);
  color: #fff;
  margin: 8px 0 14px;
}

.mythic-trait-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mythic-trait-item {
  background: rgba(255, 255, 255, 0.04);
  border-left: 2px solid var(--gold);
  padding: 8px 12px;
  border-radius: 0 10px 10px 0;
}

.mythic-trait-item small {
  display: block;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.16em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 3px;
}

.mythic-trait-item span {
  font-family: var(--font-serif);
  font-size: 15px;
  line-height: 1.4;
  color: #f3ede2;
}

.tier-spec-box {
  background: rgba(255, 255, 255, 0.05);
  border-left: 2px solid var(--gold);
  padding: 10px 14px;
  border-radius: 0 10px 10px 0;
  margin-bottom: 16px;
  font-size: 12px;
  line-height: 1.5;
  color: #dcd5e8;
}

/* ==========================================================================
   PRE-MINT VS POST-MINT VISIBILITY & FLOATING ADMIN PREVIEW SWITCH
   ========================================================================== */
body:not(.postmint-enabled) [data-postmint-only] {
  display: none !important;
}

body.postmint-enabled [data-premint-only] {
  display: none !important;
}

.postmint-preview-bar {
  position: fixed;
  left: 18px;
  bottom: 18px;
  z-index: 9999;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(14, 15, 26, 0.92);
  border: 1px solid rgba(243, 208, 120, 0.45);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(12px);
}

.preview-bar-label {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: var(--muted);
  text-transform: uppercase;
}

.preview-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.06);
  color: #f3ede2;
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.15s ease;
}

.preview-toggle-btn:hover {
  transform: translateY(-1px);
  border-color: var(--gold);
}

.preview-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ff9f5a;
  box-shadow: 0 0 8px rgba(255, 159, 90, 0.8);
  transition: background 0.2s ease, box-shadow 0.2s ease;
}

.preview-toggle-btn.is-active {
  background: rgba(73, 219, 146, 0.16);
  border-color: rgba(73, 219, 146, 0.7);
  color: #98ffd1;
}

.preview-toggle-btn.is-active .preview-dot {
  background: #49db92;
  box-shadow: 0 0 10px rgba(73, 219, 146, 0.9);
}

