/* ============================================================
   Shadow Canvas Edition — edition-shadow-canvas.css
   Psygnosis box-art aesthetic: void blacks, neon purple/ice,
   alien ridgelines, pack-shot cards with glow borders.
   ============================================================ */

/* ── Reset / Base ── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background: #07050f;
  color: #c8b8e8;
  font-family: 'Share Tech Mono', monospace;
  min-height: 100vh;
  overflow-x: hidden;
}

a {
  text-decoration: none;
}

/* ── Scanline overlay ── */
.scanlines {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0px,
    transparent 1px,
    rgba(0, 0, 0, 0.08) 1px,
    rgba(0, 0, 0, 0.08) 2px
  );
  background-size: 100% 2px;
  opacity: 0.4;
}

/* ── Curtain ── */
.sc-curtain {
  position: fixed;
  inset: 0;
  background: #07050f;
  z-index: 9998;
  pointer-events: none;
}

/* ── Cover section ── */
.sc-cover {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 480px;
  background: #07050f;
  overflow: hidden;
}

/* Nebula blobs */
.nebula-blob {
  position: absolute;
  inset: 0;
  mix-blend-mode: screen;
  opacity: 0.5;
}

.blob-a {
  background: radial-gradient(ellipse 60% 40% at 30% 60%, #1a0a2e 0%, transparent 70%);
}

.blob-b {
  background: radial-gradient(ellipse 40% 30% at 70% 40%, #0d0a25 0%, transparent 70%);
}

.blob-c {
  background: radial-gradient(ellipse 80% 20% at 50% 100%, #160824 0%, transparent 80%);
}

/* Star field */
.stars {
  position: absolute;
  inset: 0;
}

.stars span {
  position: absolute;
  border-radius: 50%;
  background: #ede8f5;
}

/* Terrain ridges */
.ridge {
  position: absolute;
  bottom: 0;
  width: 100%;
}

.ridge-a {
  height: 55%;
  background: #1a0a2e;
  clip-path: polygon(0 100%, 0 55%, 8% 48%, 15% 52%, 23% 38%, 31% 44%, 40% 28%, 48% 35%, 56% 20%, 64% 33%, 72% 18%, 80% 30%, 88% 22%, 95% 35%, 100% 28%, 100% 100%);
}

.ridge-b {
  height: 45%;
  background: #0f0720;
  clip-path: polygon(0 100%, 0 68%, 12% 62%, 20% 70%, 30% 55%, 38% 62%, 47% 48%, 55% 58%, 63% 44%, 70% 52%, 78% 40%, 85% 50%, 93% 38%, 100% 48%, 100% 100%);
}

.ridge-c {
  height: 30%;
  background: #07050f;
  clip-path: polygon(0 100%, 0 82%, 15% 75%, 25% 85%, 35% 72%, 45% 80%, 55% 68%, 65% 78%, 75% 65%, 85% 74%, 95% 62%, 100% 70%, 100% 100%);
}

/* ── Masthead ── */
.sc-masthead {
  position: absolute;
  top: 15%;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  z-index: 10;
  white-space: nowrap;
}

.masthead-line {
  font-family: 'Orbitron', sans-serif;
  font-weight: 900;
  font-size: clamp(32px, 6vw, 80px);
  letter-spacing: 0.25em;
  text-transform: uppercase;
  background-image: linear-gradient(90deg, #7b2fff 0%, #00ccff 50%, #7b2fff 100%);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  line-height: 1.1;
}

.masthead-rule {
  width: 240px;
  height: 1px;
  background: #7b2fff;
  margin: 12px auto;
  transform-origin: center;
}

.masthead-tagline {
  font-family: 'Share Tech Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.4em;
  color: #00ccff;
  opacity: 0.8;
  text-transform: uppercase;
}

/* ── Psygnosis owl ornament ── */
.owl-ornament {
  position: absolute;
  top: 24px;
  right: 24px;
  z-index: 10;
}

.owl-outer {
  position: relative;
  width: 48px;
  height: 48px;
  border: 2px solid #7b2fff;
  border-radius: 50%;
}

/* Ear triangles */
.owl-outer::before,
.owl-outer::after {
  content: '';
  position: absolute;
  width: 0;
  height: 0;
  top: -10px;
}

.owl-outer::before {
  left: 6px;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-bottom: 10px solid #7b2fff;
}

.owl-outer::after {
  right: 6px;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-bottom: 10px solid #7b2fff;
}

.owl-inner {
  position: absolute;
  top: 8px;
  left: 8px;
  width: 28px;
  height: 28px;
  border: 1px solid #7b2fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.owl-eye {
  width: 6px;
  height: 6px;
  background: #7b2fff;
  border-radius: 50%;
}

/* ── Cover featured pack-shot ── */
.cover-featured {
  position: absolute;
  bottom: 40px;
  right: 48px;
  width: clamp(240px, 28vw, 360px);
  z-index: 10;
}

.cover-featured-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.8) contrast(1.1) saturate(1.1);
  image-rendering: auto;
}

.cover-featured-name {
  display: block;
  font-family: 'Orbitron', sans-serif;
  font-weight: 400;
  font-size: 14px;
  letter-spacing: 0.15em;
  color: #ede8f5;
  text-transform: uppercase;
  margin-top: 8px;
  text-align: center;
}

.cover-featured-placeholder {
  width: 100%;
  aspect-ratio: 3 / 4;
  background: linear-gradient(135deg, #1a0a2e 0%, #07050f 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.cover-featured-placeholder-letter {
  font-family: 'Orbitron', sans-serif;
  font-weight: 900;
  font-size: 72px;
  opacity: 0.12;
}

/* Mobile: featured below masthead */
@media (max-width: 767px) {
  .cover-featured {
    position: static;
    width: clamp(200px, 60vw, 300px);
    margin: 0 auto;
  }

  .sc-cover {
    height: auto;
    min-height: 100vh;
    padding-bottom: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
  }

  .sc-masthead {
    position: static;
    transform: none;
    left: auto;
    top: auto;
    margin-top: 15vh;
    margin-bottom: 32px;
  }

  .owl-ornament {
    top: 16px;
    right: 16px;
  }
}

/* ── Main content ── */
.sc-main {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 24px 48px;
}

/* ── Section headers ── */
.section-header {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 48px 0 24px;
}

.sh-title {
  font-family: 'Orbitron', sans-serif;
  font-weight: 700;
  font-size: clamp(11px, 2vw, 18px);
  letter-spacing: 0.4em;
  color: #7b2fff;
  text-transform: uppercase;
  white-space: nowrap;
}

.sh-left-line {
  width: 24px;
  height: 1px;
  background: #7b2fff;
  flex-shrink: 0;
  transform-origin: right center;
}

.sh-right-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, #7b2fff, transparent);
  transform-origin: left center;
}

/* ── Pack-shot grid ── */
.pack-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}

/* ── Pack-shot card ── */
.pack-card {
  background: #0a0812;
  border-radius: 4px;
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: none; /* GSAP handles hover */
}

.card-image-wrap {
  position: relative;
  height: 200px;
  overflow: hidden;
  flex-shrink: 0;
}

.card-image-wrap img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.75) contrast(1.1);
}

.card-image-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 30%, #0a0812 100%);
  pointer-events: none;
}

.card-img-tint {
  position: absolute;
  inset: 0;
  mix-blend-mode: screen;
  opacity: 0.12;
  pointer-events: none;
}

.card-img-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #1a0a2e 0%, #07050f 100%);
}

.card-img-placeholder-letter {
  font-family: 'Orbitron', sans-serif;
  font-weight: 900;
  font-size: 72px;
  opacity: 0.12;
}

.card-body {
  padding: 12px 14px 14px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.card-name {
  font-family: 'Orbitron', sans-serif;
  font-weight: 400;
  font-size: 13px;
  letter-spacing: 0.15em;
  color: #ede8f5;
  text-transform: uppercase;
}

.card-meta {
  font-family: 'Share Tech Mono', monospace;
  font-size: 10px;
  color: #c8890a;
  letter-spacing: 0.05em;
}

.card-pages {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin-top: 4px;
}

.card-page-link {
  font-family: 'Share Tech Mono', monospace;
  font-size: 11px;
  color: #00ccff;
  opacity: 0.8;
  display: block;
  transition: none; /* GSAP handles hover */
}

/* ── No-motion overrides ── */
.no-motion .sc-curtain {
  opacity: 0 !important;
}

.no-motion .pack-card,
.no-motion .card-image-wrap img {
  opacity: 1 !important;
  filter: brightness(0.75) contrast(1.1) !important;
}

.no-motion .sh-left-line,
.no-motion .sh-right-line {
  transform: scaleX(1) !important;
}

.no-motion .sc-masthead,
.no-motion .masthead-line,
.no-motion .masthead-rule,
.no-motion .masthead-tagline,
.no-motion .owl-ornament,
.no-motion .cover-featured {
  opacity: 1 !important;
  transform: none !important;
}

.no-motion .stars span {
  opacity: 1 !important;
}

.no-motion .ridge {
  transform: none !important;
}

/* ── Footer ── */
.sc-footer {
  background: #05030c;
  border-top: 1px solid #2a1a4a;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

.footer-brand {
  font-family: 'Share Tech Mono', monospace;
  font-size: 10px;
  color: #3a2a5a;
  letter-spacing: 0.3em;
  text-transform: uppercase;
}

.footer-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-link {
  font-family: 'Share Tech Mono', monospace;
  font-size: 11px;
  color: #3a2a5a;
}

.footer-sep {
  font-family: 'Share Tech Mono', monospace;
  font-size: 11px;
  color: #3a2a5a;
}
