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

:root {
  color-scheme: dark;
  --bg: #1c1c1c;
  --text: #e8dcc8;
  --nav-link: #c8b89a;
  --nav-link-hover: #fff;
  --font-pirate: 'Trade Winds', cursive;
}

html {
  font-family: var(--font-pirate);
  background: var(--bg);
  color: var(--text);
}

/* ── Mobile menu ───────────────────────────────── */

.mobile-menu {
  display: none;
}

@media (max-width: 768px) {
  .desktop-nav {
    display: none;
  }

  .mobile-menu {
    display: block;
  }

  .mobile-menu__chest {
    display: flex;
    align-items: center;
    padding: 0.4rem 1rem;
    cursor: pointer;
    list-style: none;
  }

  .mobile-menu__chest::-webkit-details-marker {
    display: none;
  }

  .mobile-menu__chest img {
    height: 52px;
    width: auto;
    filter: invert(1);
  }

  .mobile-menu__links {
    list-style: none;
    padding: 0;
    border-top: 1px solid rgba(255,255,255,0.1);
  }

  .mobile-menu__links li {
    border-bottom: 1px dotted rgba(255,255,255,0.08);
  }

  .mobile-menu__links a {
    display: block;
    padding: 0.9rem 1.5rem;
    font-family: var(--font-pirate);
    font-size: 0.9rem;
    letter-spacing: 0.08em;
    color: var(--nav-link);
    text-decoration: none;
  }

  .mobile-menu__links a:hover,
  .mobile-menu__links a:active {
    color: #fff;
  }
}

/* ── Nav ───────────────────────────────────────── */

header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg);
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 0.5rem 2rem;
  max-width: 1400px;
  margin: 0 auto;
}

.logo img {
  display: block;
  height: 56px;
  width: auto;
  filter: invert(1);
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2rem;
  margin-left: auto;
}

.nav-links a {
  text-decoration: none;
  font-family: var(--font-pirate);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  color: var(--nav-link);
  transition: color 0.15s;
}

.nav-links a:hover {
  color: var(--nav-link-hover);
}

.soundcloud-link {
  color: var(--nav-link);
  transition: color 0.15s;
  display: flex;
  align-items: center;
}

.soundcloud-link:hover {
  color: #f50;
}

/* ── Inner pages ───────────────────────────────── */

.page-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 3rem 2rem;
}

/* ── Page backgrounds (zoomed crops of pirate image) ── */

.bg-moon,
.bg-body,
.bg-sand {
  background-image:
    linear-gradient(rgba(0,0,0,0.55), rgba(0,0,0,0.55)),
    url('/images/Pyle_pirate_left4dead.jpg');
  background-repeat: no-repeat;
  background-attachment: scroll;
  min-height: calc(100vh - 74px);
}

/* Moon + rowing figures, upper-right */
.bg-moon {
  background-size: 320%;
  background-position: 95% 4%;
}

/* Man on beach, close crop of torso */
.bg-body {
  background-size: 260%;
  background-position: 22% 58%;
}

/* Sand + footprints, lower-center */
.bg-sand {
  background-size: 220%;
  background-position: 52% 96%;
}

/* ── Demo V1: bat-filled text ──────────────────── */

.demo-v1 {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 70vh;
}

.clip-text-block {
  text-align: center;
}

.clip-text {
  font-family: var(--font-pirate);
  font-size: clamp(2.5rem, 7vw, 5.5rem);
  font-style: italic;
  line-height: 1.3;
  background-image: url('/images/ptero-mang_d400.png');
  background-size: 120%;
  background-position: center;
  background-repeat: no-repeat;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: invert(1) brightness(2);
}

/* ── Demo V2: oversized ghost bat ──────────────── */

.demo-v2 {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 70vh;
}

.ghost-bat-block {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 800px;
}

.ghost-bat {
  position: absolute;
  width: clamp(300px, 60vw, 600px);
  height: auto;
  filter: invert(1);
  opacity: 0.12;
  pointer-events: none;
}

.ghost-quote {
  position: relative;
  font-family: var(--font-pirate);
  font-size: clamp(1.8rem, 5vw, 4rem);
  font-style: italic;
  color: #fff;
  text-align: center;
  line-height: 1.6;
  text-shadow: 0 2px 20px rgba(0,0,0,0.9);
  letter-spacing: 0.04em;
}

/* ── Paper panel ───────────────────────────────── */

.paper-panel {
  position: relative;
  padding: 3rem 4rem 3.5rem;
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
}

.paper-panel::before {
  content: '';
  position: absolute;
  inset: -8% -6%;
  background: url('/images/treasure-map-paper.webp') center / contain no-repeat;
  mix-blend-mode: multiply;
  opacity: 0.85;
}

.paper-panel > * {
  position: relative;
  z-index: 1;
}

.paper-bat {
  width: clamp(180px, 40vw, 300px);
  height: auto;
  display: block;
  margin: 0 auto;
}

.paper-quote {
  font-family: var(--font-pirate);
  font-size: clamp(0.9rem, 2vw, 1.25rem);
  font-style: italic;
  color: #f5f0e8;
  line-height: 1.8;
  letter-spacing: 0.03em;
  margin-top: 0.5rem;
}

/* ── Demo V3: quote as wings ───────────────────── */

.demo-v3 {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 70vh;
}

.wings-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  text-align: center;
  max-width: 700px;
}

.wings-above,
.wings-below {
  font-family: var(--font-pirate);
  font-size: clamp(1rem, 2.8vw, 1.8rem);
  font-style: italic;
  color: #fff;
  letter-spacing: 0.06em;
  text-shadow: 0 2px 10px rgba(0,0,0,0.8);
  line-height: 1.4;
}

.wings-above {
  margin-bottom: -1.5rem;
  z-index: 1;
}

.wings-below {
  margin-top: -1.5rem;
  z-index: 1;
}

.wings-bat {
  width: clamp(180px, 40vw, 320px);
  height: auto;
  filter: invert(1);
  opacity: 0.85;
  mix-blend-mode: screen;
  position: relative;
  z-index: 0;
}


.manifest {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 3rem;
  margin-bottom: 4rem;
}

.manifest--centered {
  grid-template-columns: repeat(auto-fit, minmax(240px, 340px));
  justify-content: center;
}

.album-title {
  position: relative;
  z-index: 0;
  font-family: var(--font-pirate);
  font-size: 1.1rem;
  font-weight: normal;
  letter-spacing: 0.08em;
  color: #cc0000;
  font-size: 1.4rem;
  text-shadow: 0 0 4px #000, 0 0 8px #000, 1px 1px 0 #000, -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000;
  border-bottom: 1px solid rgba(255,255,255,0.15);
  padding-bottom: 0.5rem;
  margin-bottom: 1rem;
  text-align: center;
}

.album-title::before {
  content: '';
  position: absolute;
  z-index: -1;
  width: 150px;
  height: 150px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: url('/images/ptero-mang_d400.png') center / contain no-repeat;
  filter: invert(1);
  opacity: 0.68;
  pointer-events: none;
}

.tracklist {
  list-style: none;
  padding: 0;
  counter-reset: track;
}

.tracklist li {
  counter-increment: track;
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  padding: 0.3rem 0;
  border-bottom: 1px dotted rgba(255,255,255,0.08);
  font-family: var(--font-pirate);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
}

.tracklist li::before {
  content: counter(track, decimal-leading-zero);
  color: rgba(255,255,255,0.3);
  font-size: 0.7rem;
  min-width: 1.8rem;
  flex-shrink: 0;
}

.tracklist a {
  color: var(--nav-link);
  text-decoration: none;
  transition: color 0.15s;
}

.tracklist a:hover {
  color: #fff;
}

.track-note {
  font-size: 0.65rem;
  color: rgba(255,255,255,0.35);
  letter-spacing: 0.06em;
}

.track-subtitle {
  color: var(--nav-link);
}

.soundcloud-section {
  text-align: center;
  padding-top: 1rem;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.soundcloud-text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--nav-link);
  text-decoration: none;
  font-family: var(--font-pirate);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  transition: color 0.15s;
}

.soundcloud-text-link:hover {
  color: #f50;
}

.page-image {
  text-align: center;
}

.page-image img {
  max-width: 100%;
  height: auto;
  filter: invert(1);
}

/* ── Hero ──────────────────────────────────────── */

.hero {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.hero img {
  display: block;
  width: 100%;
  height: auto;
}

.hero-text {
  position: absolute;
  bottom: 42%;
  right: 6%;
  text-align: right;
}

@media (max-width: 768px) {
  .hero {
    height: 88vh;
    background-image:
      linear-gradient(rgba(0,0,0,0.35), rgba(0,0,0,0.35)),
      url('/images/Pyle_pirate_left4dead.jpg');
    background-size: 450%;
    background-position: 22% 62%;
    background-repeat: no-repeat;
  }

  .hero img {
    display: none;
  }

  .hero-text {
    bottom: auto;
    top: 1.5rem;
    right: 0;
    left: 0;
    text-align: center;
    padding: 0 1.5rem;
  }
}

.band-name {
  font-family: var(--font-pirate);
  font-size: clamp(2.5rem, 7vw, 6rem);
  font-weight: normal;
  font-style: italic;
  line-height: 1;
  letter-spacing: 0.02em;
  color: #cc0000;
  text-shadow: 0 0 12px #000, 2px 2px 4px #000, 4px 4px 16px rgba(0,0,0,0.95);
}

.tagline {
  font-family: var(--font-pirate);
  font-size: clamp(1rem, 2.5vw, 2rem);
  font-weight: normal;
  margin-top: 0.4rem;
  color: #cc0000;
  text-shadow: 0 0 12px #000, 0 0 4px #000, 2px 2px 4px #000, 4px 4px 16px rgba(0,0,0,0.95);
  transform: skewX(-8deg);
  display: inline-block;
}

@media (max-width: 768px) {
  .band-name {
    font-size: clamp(6rem, 24vw, 10rem);
  }

  .tagline {
    font-size: clamp(2.8rem, 10vw, 4.4rem);
  }

  .bg-moon,
  .bg-body,
  .bg-sand {
    background-size: cover;
    background-position: 22% 50%;
  }
}
