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

:root {
  --bg: #121212;
  --accent: #D4533C;
  --navy: #333A4D;
  --heavy: "Arial Black", "Helvetica Neue", Impact, sans-serif;
  --mono: "Fira Mono", ui-monospace, Menlo, Consolas, monospace;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  background-color: transparent;
  color: #fff;
  font-family: var(--mono);
  -webkit-font-smoothing: antialiased;
  position: relative;
  overflow-x: hidden;
}

/* Full-bleed, darkened background image (set per page via --bg-img on body) */
.bg {
  position: fixed;
  inset: 0;
  z-index: -2;
  background-color: #2b2b2b;
  background-image: var(--bg-img);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(18, 18, 18, 0.55), rgba(18, 18, 18, 0.72));
}

/* Pretty Parts: looping video background, layered above the still .bg with its
   own scrim for text readability. Falls back to the still on reduced-motion. */
.bg-video-wrap {
  position: fixed;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  pointer-events: none;
}
.bg-video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.bg-video-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(18, 18, 18, 0.55), rgba(18, 18, 18, 0.72));
}
@media (prefers-reduced-motion: reduce) {
  .bg-video-wrap {
    display: none;
  }
}

/* Giant faint watermark behind the content (homepage) */
.watermark {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: -1;
  font-family: var(--heavy);
  font-weight: 900;
  letter-spacing: 0.02em;
  font-size: clamp(3rem, 16vw, 11rem);
  color: rgba(255, 255, 255, 0.06);
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
}

.gate {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  max-width: 640px;
  margin: 0 auto;
  padding: 64px 16px 72px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.title {
  margin: 0;
  font-family: var(--heavy);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  line-height: 0.95;
  color: var(--accent);
  font-size: clamp(3.25rem, 12vw, 6rem);
  text-shadow: 4px 5px 0 rgba(0, 0, 0, 0.35);
}

.subtitle {
  margin: 18px 0 0;
  font-family: var(--mono);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.35em;
  font-size: clamp(1rem, 3.5vw, 1.4rem);
  color: #fff;
  padding-left: 0.35em; /* optical balance for tracking */
}

.line {
  margin: 28px 0 0;
  font-family: var(--mono);
  font-size: clamp(1rem, 3.3vw, 1.35rem);
  line-height: 1.55;
  color: #fff;
  max-width: 34ch;
}

/* Orange signup panel */
.signup {
  width: 100%;
  margin: 34px 0 0;
  padding: 22px 22px 24px;
  background: var(--accent);
  border-radius: 10px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
  text-align: left;
}

.field-label {
  display: block;
  font-family: var(--mono);
  font-weight: 700;
  font-size: 0.95rem;
  color: #fff;
  margin: 0 0 8px;
}

.signup input[type="email"] {
  width: 100%;
  border: 0;
  border-radius: 4px;
  background: #fff;
  color: #222;
  font-family: var(--mono);
  font-size: 1rem;
  padding: 14px 14px;
  outline: none;
}
.signup input[type="email"]:focus {
  box-shadow: 0 0 0 3px rgba(51, 58, 77, 0.45);
}

.cf-turnstile {
  margin: 14px 0 0;
}

.form-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 12px 0 0;
  flex-wrap: wrap;
}

.reassure {
  margin: 0;
  font-family: var(--mono);
  font-weight: 500;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.92);
}

.signup button[type="submit"] {
  border: 0;
  cursor: pointer;
  background: var(--navy);
  color: #fff;
  font-family: var(--mono);
  font-weight: 700;
  font-size: 1rem;
  padding: 13px 24px;
  border-radius: 999px;
  box-shadow: 0 6px 0 rgba(0, 0, 0, 0.18);
  transition: transform 0.05s ease, background 0.15s ease;
  white-space: nowrap;
}
.signup button[type="submit"]:hover {
  background: #2a3040;
}
.signup button[type="submit"]:active {
  transform: translateY(2px);
  box-shadow: 0 4px 0 rgba(0, 0, 0, 0.18);
}
.signup button[type="submit"]:disabled {
  opacity: 0.7;
  cursor: default;
}

.form-error {
  margin: 12px 0 0;
  font-family: var(--mono);
  font-size: 0.85rem;
  color: #fff;
  background: rgba(0, 0, 0, 0.22);
  padding: 8px 10px;
  border-radius: 4px;
}

/* Social icons */
.socials {
  display: flex;
  gap: 22px;
  margin: 28px 0 0;
  align-items: center;
  justify-content: center;
}
.socials a {
  display: inline-flex;
  width: 26px;
  height: 26px;
}
.socials svg {
  width: 100%;
  height: 100%;
  fill: var(--accent);
  transition: fill 0.15s ease;
}
.socials a:hover svg {
  fill: #fff;
}

/* Revealed embed view */
.embed {
  width: 100%;
  margin: 30px 0 0;
}
.embed .success {
  font-family: var(--mono);
  font-size: 1rem;
  line-height: 1.5;
  color: #fff;
  margin: 0 0 18px;
}
.embed .player {
  width: 100%;
  border: 0;
  border-radius: 10px;
  background: #000;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}
.embed .player-video {
  aspect-ratio: 16 / 9;
}
.embed .player-audio {
  height: 240px;
}
[hidden] {
  display: none !important;
}

/* ============================================================
   Pretty Parts (/pp): oversized headline, short punchy subtext, and a
   video that takes over most of the screen once it's revealed.
   Scoped to .gate-pp so the other gates are unaffected.
   ============================================================ */
.gate-pp .title {
  font-size: clamp(4.5rem, 21vw, 9.5rem);
}
.gate-pp .line,
.gate-dttg .line,
.gate-homepage .line {
  font-size: clamp(1.1rem, 3.1vw, 1.7rem);
  line-height: 1.5;
  max-width: none;
  /* Each sentence (the two are split by <br>) holds on one line and scales
     with the viewport instead of wrapping. */
  white-space: nowrap;
}
/* Below this width a one-line fit would get too small, so let it wrap. */
@media (max-width: 540px) {
  .gate-pp .line,
  .gate-dttg .line,
  .gate-homepage .line {
    white-space: normal;
    max-width: 24ch;
  }
}

/* Don't Touch The Gorilla (/dttg): bigger headline. The wordmark is longer
   than Pretty Parts, so it caps lower to stay within the column. */
.gate-dttg .title {
  font-size: clamp(3.75rem, 15vw, 7.5rem);
}

/* Homepage (HØSAM): short wordmark, so it goes largest of all. nowrap keeps
   it one line (the inline-block spinning Ø would otherwise allow a break). */
.gate-homepage .title {
  font-size: clamp(4.5rem, 22vw, 10rem);
  white-space: nowrap;
}

/* The Ø in HØSAM slowly spins like a record. */
.spin-o {
  display: inline-block;
  vertical-align: baseline;
  animation: spin-o 12s linear infinite;
}
@keyframes spin-o {
  to {
    transform: rotate(360deg);
  }
}

/* "Don't Touch The Gorilla" gag: a gray gorilla that dodges the cursor
   (positioning is driven by gorilla.js). */
.gorilla {
  position: fixed;
  z-index: 6;
  width: 72px;
  height: 72px;
  left: 0;
  top: 0;
  color: #8f8f8f; /* gray fur */
  visibility: hidden; /* until gorilla.js places it */
  cursor: pointer;
  filter: drop-shadow(0 5px 12px rgba(0, 0, 0, 0.55));
  transition: left 0.26s cubic-bezier(0.2, 0.9, 0.2, 1),
    top 0.26s cubic-bezier(0.2, 0.9, 0.2, 1), color 0.35s ease;
}
.gorilla svg {
  display: block;
  width: 100%;
  height: 100%;
}
.gorilla.poof {
  animation: gorilla-poof 0.3s ease;
}
@keyframes gorilla-poof {
  0% {
    transform: scale(0.62) rotate(-14deg);
  }
  60% {
    transform: scale(1.12) rotate(4deg);
  }
  100% {
    transform: scale(1);
  }
}
/* Caught (after signup): he gives up and turns brand orange. */
.gorilla.caught {
  color: var(--accent);
  cursor: default;
}

@media (prefers-reduced-motion: reduce) {
  .spin-o {
    animation: none;
  }
  .gorilla {
    display: none;
  }
}

@media (max-width: 480px) {
  .gorilla {
    width: 58px;
    height: 58px;
  }
}

/* The player breaks out of the 640px column to near-full width. Hidden until
   reveal, so this doesn't affect the landing state. */
.gate-pp .embed {
  width: min(1200px, 96vw);
  max-width: min(1200px, 96vw);
}
.gate-pp .embed .success {
  font-size: clamp(1.1rem, 3.6vw, 1.5rem);
  font-weight: 700;
}

/* On reveal, step the headline down and drop the prompt line so the video is
   the focus. :has targets the moment #embed stops being hidden. */
.gate-pp:has(#embed:not([hidden])) .title {
  font-size: clamp(1.8rem, 6vw, 2.75rem);
}
.gate-pp:has(#embed:not([hidden])) .line {
  display: none;
}

/* ============================================================
   Document pages (card.hosamdaddy.com, gorilla.hosamdaddy.com)
   Plain dark reading page, no background image.
   ============================================================ */
body.doc {
  background-color: #121212;
}
.doc-wrap {
  position: relative;
  z-index: 1;
  max-width: 680px;
  margin: 0 auto;
  padding: 64px 18px 88px;
  text-align: center;
}
.doc-title {
  font-size: clamp(2.5rem, 10vw, 4.5rem);
  text-shadow: 3px 4px 0 rgba(0, 0, 0, 0.35);
}
.doc-wrap .line {
  margin: 20px auto 0;
}

/* Album cover */
.cover {
  margin: 36px 0 0;
}
.cover img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.45);
}
.cover figcaption {
  margin: 14px 0 0;
}
.cover-dl {
  font-family: var(--mono);
  font-size: 0.85rem;
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid rgba(212, 83, 60, 0.5);
  padding-bottom: 2px;
}
.cover-dl:hover {
  color: #fff;
  border-color: #fff;
}

/* Track list */
.tracks {
  margin: 40px 0 0;
  text-align: left;
}
.track {
  padding: 16px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.track:last-child {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.track-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 10px;
}
.track-lyrics {
  margin-left: auto;
  flex: none;
  font-family: var(--mono);
  font-weight: 700;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
  text-decoration: none;
  background: transparent;
  border: 1px solid rgba(212, 83, 60, 0.5);
  border-radius: 999px;
  padding: 5px 13px;
  line-height: 1.2;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}
.track-lyrics:hover {
  background: var(--accent);
  color: #fff;
}

/* Lyrics modal */
body.modal-open {
  overflow: hidden;
}
.lyric-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.lyric-modal[hidden] {
  display: none;
}
.lyric-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
}
.lyric-modal-panel {
  position: relative;
  z-index: 1;
  width: min(560px, 100%);
  max-height: min(82vh, 780px);
  display: flex;
  flex-direction: column;
  text-align: left;
  background: #181818;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.6);
  padding: 26px 24px 22px;
}
.lyric-modal-close {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 36px;
  height: 36px;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.6);
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
  border-radius: 999px;
}
.lyric-modal-close:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}
.lyric-modal-title {
  margin: 0 40px 14px 0;
  font-family: var(--heavy);
  font-weight: 900;
  text-transform: uppercase;
  color: var(--accent);
  font-size: clamp(1.05rem, 4vw, 1.35rem);
  line-height: 1.1;
}
.lyric-modal-body {
  margin: 0;
  overflow-y: auto;
  font-family: var(--mono);
  font-size: 0.92rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.92);
  white-space: pre-wrap;
  word-break: break-word;
  -webkit-overflow-scrolling: touch;
}
.track-n {
  font-family: var(--mono);
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--accent);
}
.track-title {
  font-family: var(--mono);
  font-weight: 700;
  font-size: 1rem;
  color: #fff;
}
.track .player,
.dttg-listen .player {
  width: 100%;
  height: 40px;
}
.track-note {
  margin: 10px 0 0;
  font-family: var(--mono);
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
}

/* DTTG native listen block (funnel reveal) */
.dttg-listen {
  text-align: left;
}
.dttg-listen .track-title {
  display: block;
  margin: 0 0 10px;
}

/* The INSHALLAH 100 */
.hundred {
  margin: 52px 0 0;
}
.hundred h2 {
  margin: 0;
  font-family: var(--heavy);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  color: #fff;
  font-size: clamp(1.4rem, 6vw, 2rem);
}
.hundred-sub {
  margin: 12px auto 0;
  max-width: 44ch;
  font-family: var(--mono);
  font-size: 0.9rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.78);
}
.roster-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 8px;
  margin: 26px 0 0;
  text-align: left;
}
.slot {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  min-height: 38px;
}
.slot-n {
  font-family: var(--mono);
  font-weight: 700;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.4);
}
.slot.claimed {
  border-color: rgba(212, 83, 60, 0.5);
  background: rgba(212, 83, 60, 0.08);
}
.slot.claimed .slot-n {
  color: var(--accent);
}
.slot-name {
  font-family: var(--mono);
  font-size: 0.82rem;
  color: #fff;
}
.roster-count {
  margin: 22px 0 0;
  font-family: var(--mono);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--accent);
}

.doc-foot {
  margin: 48px 0 0;
  font-family: var(--mono);
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.55);
}

/* Gorilla document sections */
.doc-section {
  margin: 40px 0 0;
  padding: 24px 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: left;
}
.sec-n {
  margin: 0 0 6px;
  font-family: var(--mono);
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--accent);
}
.doc-section h2 {
  margin: 0 0 14px;
  font-family: var(--heavy);
  font-weight: 900;
  text-transform: uppercase;
  color: #fff;
  font-size: clamp(1.1rem, 4.5vw, 1.5rem);
  line-height: 1.1;
}
.muted {
  font-family: var(--mono);
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.5);
}
.doc-section .player-video {
  width: 100%;
  border: 0;
  border-radius: 10px;
  background: #000;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
  aspect-ratio: 16 / 9;
}
.locked {
  margin: 36px auto 0;
  max-width: 34ch;
  font-family: var(--mono);
  font-size: 1rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.7);
}

/* EPK press kit */
/* Background photo (fixed, via the shared .bg element) with a stronger scrim so
   the dense deck + album content stays readable over it. */
body.doc.epk {
  background: transparent;
}
body.doc.epk .bg::after {
  background: linear-gradient(
    180deg,
    rgba(18, 18, 18, 0.62) 0%,
    rgba(18, 18, 18, 0.84) 45%,
    rgba(18, 18, 18, 0.92) 100%
  );
}
.epk-sub {
  margin: 14px 0 0;
  letter-spacing: 0.3em;
  font-size: clamp(0.8rem, 3vw, 1rem);
}
.epk-h {
  margin: 0 0 14px;
  font-family: var(--heavy);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  color: #fff;
  font-size: clamp(1.1rem, 4.5vw, 1.5rem);
}
.epk-listen {
  margin: 34px 0 0;
  text-align: left;
}
.deck {
  margin: 40px 0 0;
  text-align: left;
}
/* Deck as a one-page-at-a-time slide carousel (compact) */
.deck-slider {
  margin: 0;
}
.slide-viewport {
  position: relative;
  width: 100%;
  aspect-ratio: 7 / 5;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.25);
  overflow: hidden;
}
.slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: none;
}
.slide.active {
  display: block;
}
.slide-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin: 14px 0 0;
}
.slide-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-family: var(--mono);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.05s ease;
}
.slide-btn:hover {
  background: #b8442f;
}
.slide-btn:active {
  transform: translateY(1px);
}
.slide-count {
  font-family: var(--mono);
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.75);
  min-width: 64px;
  text-align: center;
}
.deck-dl {
  margin: 16px 0 0;
}
.epk-album {
  margin: 44px 0 0;
  text-align: left;
}
.epk-album .tracks {
  margin: 0;
}
.epk-lyrics {
  margin: 40px 0 0;
  text-align: left;
}

@media (max-width: 480px) {
  .gate {
    padding: 44px 16px 56px;
  }
  .form-footer {
    flex-direction: column;
    align-items: stretch;
  }
  .signup button[type="submit"] {
    width: 100%;
  }
}
