/* EMCEE4D — www.mc4d.com | site stylesheet (moved from inline <style> unchanged, except
   the Spotify iframe border-radius, moved here from an inline style attribute) */

/* ============ Design tokens ============ */
:root {
  --bg: #0b0b0d;
  --bg-alt: #101013;
  --surface: #141418;
  --line: #26262c;
  --text: #f2f0ec;
  --muted: #9a978f;
  --accent: #c8404e;      /* single cold crimson accent */
  --accent-soft: #e0596b; /* lighter accent for small text on dark */
  --display: "Bebas Neue", "Arial Narrow", Impact, sans-serif;
  --body: "Inter", -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --maxw: 1060px;
}

/* ============ Base ============ */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--accent-soft); text-decoration: none; }
a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 2px solid var(--accent-soft);
  outline-offset: 3px;
}

section { padding: 88px 20px; }
.wrap { max-width: var(--maxw); margin: 0 auto; }
.alt { background: var(--bg-alt); }

/* ============ Film grain (static, CSS-only, no request, no motion) ============ */
.grain { position: relative; }
.grain::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 140px 140px;
}

h2 {
  font-family: var(--display);
  font-size: clamp(2rem, 5vw, 2.8rem);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.kicker {
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.28em;
  font-size: 0.72rem;
  font-weight: 600;
  display: block;
  margin-bottom: 14px;
}
.lead { color: var(--muted); max-width: 560px; margin-bottom: 40px; }

/* Fade-in on scroll (subtle, under 400ms, disabled by reduced motion) */
.fade {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 380ms ease, transform 380ms ease;
}
.fade.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .fade { opacity: 1; transform: none; }
}

/* ============ Buttons ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 30px;
  font-family: var(--body);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 1px solid var(--line);
  color: var(--text);
  background: transparent;
  cursor: pointer;
  transition: border-color 200ms ease, background 200ms ease, color 200ms ease;
}
.btn:hover { border-color: var(--accent); color: var(--accent-soft); }
.btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #ffffff;
}
.btn-primary:hover { background: #a83442; border-color: #a83442; color: #ffffff; }
.btn-disabled {
  opacity: 0.45;
  cursor: not-allowed;
  color: var(--muted);
  border-color: var(--line);
  background: transparent;
  pointer-events: none;
}

/* ============ Nav ============ */
header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  background: rgba(11, 11, 13, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(8px);
}
.nav {
  max-width: var(--maxw);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
}
.brand {
  font-family: var(--display);
  font-size: 1.4rem;
  letter-spacing: 0.22em;
  color: var(--text);
}
.nav-links { display: flex; align-items: center; gap: 28px; list-style: none; }
.nav-links a {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: color 200ms ease;
}
.nav-links a:hover { color: var(--text); }
.nav-links .btn-primary { color: #ffffff; padding: 10px 20px; min-height: 44px; }
.menu-btn {
  display: none;
  background: none;
  border: 1px solid var(--line);
  color: var(--text);
  min-width: 48px;
  min-height: 44px;
  font-size: 1.1rem;
  cursor: pointer;
}
@media (max-width: 820px) {
  .menu-btn { display: block; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    padding: 8px 0 16px;
  }
  .nav-links.open { display: flex; }
  .nav-links li { text-align: center; }
  .nav-links a { display: block; padding: 14px 20px; }
  .nav-links .btn-primary { margin: 10px 20px 0; }
}

/* ============ Hero ============ */
.hero {
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  padding: 120px 20px 80px;
}
/* Approved artist portrait behind a dark overlay to preserve text contrast.
   Face is centred in the source image, so cover-cropping stays safe at all widths. */
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 90% 55% at 50% 108%, rgba(200, 64, 78, 0.08) 0%, rgba(11, 11, 13, 0) 60%),
    linear-gradient(180deg, rgba(11, 11, 13, 0.66) 0%, rgba(11, 11, 13, 0.52) 50%, rgba(11, 11, 13, 0.9) 100%),
    url("../../assets/site/emcee4d-hero-portrait-wide-web.jpg") center 30% / cover no-repeat,
    var(--bg);
}
.hero-bg::after {
  /* deeper cinematic vignette to pull focus to the name */
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 140% 100% at 50% 45%, rgba(0, 0, 0, 0) 50%, rgba(0, 0, 0, 0.55) 100%);
}
.hero-bg::before {
  /* hairline accent above the fold line */
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: min(320px, 60%);
  height: 1px;
  background: linear-gradient(90deg, rgba(200, 64, 78, 0) 0%, rgba(200, 64, 78, 0.55) 50%, rgba(200, 64, 78, 0) 100%);
}
.hero-inner { position: relative; max-width: 760px; }
.hero h1 {
  font-family: var(--display);
  font-size: clamp(4rem, 16vw, 9.5rem);
  letter-spacing: 0.14em;
  line-height: 1;
  margin-bottom: 18px;
  text-shadow: 0 0 70px rgba(200, 64, 78, 0.18); /* faint cinematic glow, no animation */
}
.hero p {
  color: var(--muted);
  font-size: clamp(0.95rem, 2.5vw, 1.1rem);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 36px;
}

/* ============ Latest release ============ */
.release {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
  align-items: center;
}
.release-art {
  position: relative;
  width: 100%;
  max-width: 420px;
}
.release-art::before {
  /* album-cover glow: blurred copy of the same artwork, no extra asset */
  content: "";
  position: absolute;
  inset: -26px;
  background: url("../../assets/covers/album-the-introduction.jpg") center / cover no-repeat;
  filter: blur(52px) saturate(1.15);
  opacity: 0.3;
  pointer-events: none;
}
.release-art::after {
  /* offset editorial hairline frame */
  content: "";
  position: absolute;
  inset: -12px;
  border: 1px solid var(--line);
  pointer-events: none;
}
.release-art-frame {
  position: relative;
  aspect-ratio: 1 / 1;
  width: 100%;
  background: #0a0a0c;
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.release-art-frame img {
  width: 100%;
  height: 100%;
  object-fit: contain; /* never crop, stretch, or display portrait */
}
.release-title {
  font-family: var(--display);
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  letter-spacing: 0.08em;
  margin-bottom: 10px;
}
.release p { color: var(--muted); margin-bottom: 26px; max-width: 460px; }
@media (min-width: 780px) {
  .release { grid-template-columns: 420px 1fr; }
}

/* ============ Listen links ============ */
.link-row { display: flex; flex-wrap: wrap; gap: 12px; }
.link-row .btn { flex: 1 1 150px; }

/* ============ Full album player (local MP3s) ============ */
#full-album-player { scroll-margin-top: 90px; }  /* keep the label clear of the fixed header on anchor scroll */
#catalogue { scroll-margin-top: 90px; }
.player-note { margin: -6px 0 18px; }
.album-player {
  border: 1px solid var(--line);
  background: var(--surface);
  padding: 12px;
}
.album-player audio { width: 100%; display: block; }
.track-list {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 4px;
}
@media (min-width: 720px) {
  .track-list { grid-template-columns: repeat(2, 1fr); }
}
.track-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 44px;
  padding: 10px 14px;
  background: transparent;
  border: 1px solid transparent;
  color: var(--muted);
  font-family: var(--body);
  font-size: 0.88rem;
  text-align: left;
  cursor: pointer;
  transition: color 200ms ease, border-color 200ms ease, background 200ms ease;
}
.track-btn:hover { color: var(--text); border-color: var(--line); }
.track-btn.is-active {
  color: var(--text);
  border-color: var(--line);
  background: var(--bg-alt);
}
.track-btn .track-no {
  font-family: var(--display);
  color: var(--accent-soft);
  font-size: 1rem;
  letter-spacing: 0.06em;
  min-width: 24px;
}

/* ============ Spotify embed frame ============ */
.embed-kicker { margin-top: 44px; }
.embed-frame {
  margin-top: 0;
  padding: 12px;
  border: 1px solid var(--line);
  background: var(--surface);
  overflow: hidden;
}
.embed-frame iframe {
  display: block;
  border-radius: 12px; /* moved from the iframe's inline style attribute */
}

/* ============ Release metadata line ============ */
.release-meta {
  color: var(--accent-soft);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin: 0 0 18px;
}

/* ============ Catalogue ============ */
.album-intro-title {
  font-family: var(--display);
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text);
  margin: 10px 0 10px;
}
.album-intro-copy {
  max-width: 720px;
  margin-bottom: 40px;
}
.catalogue-album-art {
  position: relative;
  width: 100%;
  max-width: 500px;
  margin: 8px auto 48px;
  border: 1px solid var(--line);
  background: var(--surface);
}
.catalogue-album-art img {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  display: block;
}
.catalogue-album-art::after {
  /* offset editorial hairline frame, matching the Featured Release treatment */
  content: "";
  position: absolute;
  inset: -12px;
  border: 1px solid var(--line);
  pointer-events: none;
}
.cat-grid {
  display: grid;
  grid-template-columns: 1fr;          /* mobile: 1 column */
  gap: 20px;
}
@media (min-width: 420px) {
  .cat-grid { grid-template-columns: repeat(2, 1fr); }  /* larger phones/tablet: 2 columns */
}
@media (min-width: 1000px) {
  .cat-grid { grid-template-columns: repeat(4, 1fr); gap: 24px; }  /* desktop: 4 columns */
}
.cat-item {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 14px;
  transition: border-color 200ms ease, transform 200ms ease;
}
.cat-item:hover { border-color: var(--accent); }
.cat-art {
  /* Dark cinematic frame. Full artwork always visible: contain, never crop. */
  aspect-ratio: 1 / 1;
  width: 100%;
  background: #0a0a0c;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  overflow: hidden;
}
.cat-art img {
  width: 100%;
  height: 100%;
  object-fit: contain;   /* letterbox/pad, never crop or stretch */
  transition: transform 220ms ease;
}
.cat-item:hover .cat-art img { transform: scale(1.02); }
@media (prefers-reduced-motion: reduce) {
  .cat-item:hover .cat-art img { transform: none; }
}
.cat-num {
  font-family: var(--display);
  color: var(--accent-soft);
  font-size: 1.05rem;
  letter-spacing: 0.06em;
  margin-right: 10px;
}
.cat-item h3 {
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1.35;
}
.cat-item .cat-artist {
  color: var(--muted);
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin: 4px 0 14px;
}
.cat-item .btn {
  margin-top: auto;
  width: 100%;
  min-height: 44px;
  padding: 10px 16px;
  font-size: 0.78rem;
}

/* ============ Bio ============ */
.bio p { max-width: 640px; color: var(--text); }
.bio p + p { margin-top: 18px; }
.bio-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: start;
}
@media (min-width: 820px) {
  .bio-grid { grid-template-columns: 1fr 340px; }
}
.bio-portrait {
  position: relative;
  margin: 12px;  /* room for the offset frame */
  border: 1px solid var(--line);
  background: var(--surface);
}
.bio-portrait img { width: 100%; height: auto; display: block; }
.bio-portrait::after {
  content: "";
  position: absolute;
  inset: -12px;
  border: 1px solid var(--line);
  pointer-events: none;
}

/* ============ Project ============ */
.project p { max-width: 640px; color: var(--text); }
.project p + p { margin-top: 18px; }
.project .lead { margin-bottom: 28px; }
.project-visual {
  position: relative;
  margin-top: 48px;
  border: 1px solid var(--line);
}
.project-visual img { width: 100%; height: auto; display: block; }
.project-visual::after {
  /* subtle bottom gradient so the visual settles into the section */
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(16, 16, 19, 0) 62%, rgba(16, 16, 19, 0.55) 100%);
  pointer-events: none;
}
/* Hairline divider: Project and Videos both use the alt background,
   so a subtle centred line keeps them reading as separate sections.
   Matches the gradient hairline treatment used in the hero. */
.project {
  position: relative;
}
.project::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: min(720px, calc(100% - 40px));
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line), transparent);
}

/* ============ Studio visual (Project section) ============ */
.studio-visuals { margin-top: 48px; }
.studio-note { margin: -6px 0 22px; }
.studio-main {
  position: relative;
  margin: 0;
  border: 1px solid var(--line);
  background: var(--surface);
}
.studio-main img { width: 100%; height: auto; display: block; }
.studio-main::after {
  /* subtle settling gradient, consistent with the project visual */
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(16, 16, 19, 0) 68%, rgba(16, 16, 19, 0.45) 100%);
  pointer-events: none;
}

/* ============ Visuals gallery (editorial, single column) ============ */
.visual-gallery {
  display: grid;
  gap: 40px;
  margin: 40px 0 64px;
}
.visual-gallery-item {
  position: relative;
  margin: 0;
  border: 1px solid var(--line);
  background: var(--surface);
}
.visual-gallery-item img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}
.visual-gallery-item::after {
  /* subtle offset hairline frame, consistent with the site's artwork treatment */
  content: "";
  position: absolute;
  inset: -8px;
  border: 1px solid var(--line);
  pointer-events: none;
}
.visual-gallery-portrait {
  width: 100%;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}
.visual-video-block {
  margin-top: 24px;
}
@media (max-width: 480px) {
  .visual-gallery {
    gap: 28px;
  }
  .visual-gallery-item::after {
    inset: -4px;
  }
}

/* ============ Signup note ============ */
.form-note { color: var(--muted); font-size: 0.8rem; margin-top: 14px; }

/* ============ Contact ============ */
.contact p { font-size: 1.05rem; }
.contact a { color: var(--accent-soft); font-weight: 600; }
.contact a:hover { color: var(--text); }

/* ============ Footer ============ */
footer {
  border-top: 1px solid var(--line);
  padding: 36px 20px;
  text-align: center;
  color: var(--muted);
  font-size: 0.85rem;
  letter-spacing: 0.06em;
}

/* ============ Hero CTA row ============ */
.hero-cta {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ============ Website-exclusive Now Playing bar ============ */
/* Hidden via the [hidden] attribute until playback starts. Fixed above content,
   dark cinematic surface, safe-area aware for small phones. No animation added. */
.now-playing {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  background: rgba(11, 11, 13, 0.96);
  border-top: 1px solid var(--line);
  backdrop-filter: blur(8px);
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px));
}
.now-playing[hidden] { display: none; }
.np-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.np-info {
  display: flex;
  align-items: baseline;
  gap: 10px;
  min-width: 0;
}
.np-label {
  color: var(--accent-soft);
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.62rem;
  font-weight: 600;
  white-space: nowrap;
}
.np-title {
  font-weight: 600;
  font-size: 0.9rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.np-artist {
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  white-space: nowrap;
}
.np-controls {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1 1 260px;
}
.np-btn {
  min-height: 40px;
  padding: 8px 16px;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--text);
  font-family: var(--body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: border-color 200ms ease, color 200ms ease;
}
.np-btn:hover { border-color: var(--accent); color: var(--accent-soft); }
.np-progress {
  flex: 1 1 120px;
  min-width: 80px;
  accent-color: var(--accent);
  cursor: pointer;
}
.np-time {
  color: var(--muted);
  font-size: 0.75rem;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
@media (max-width: 480px) {
  .np-info { width: 100%; }
  .np-controls {
    flex-wrap: wrap;
    gap: 8px;
  }
  .np-progress {
    order: 4;
    flex: 1 0 100%;
    width: 100%;
  }
  .np-time {
    margin-left: auto;
  }
  .np-btn {
    padding: 8px 12px;
  }
}

/* Reserve space below content while the fixed Now Playing bar is open,
   so it never covers the footer or bottom content. No animation. */
body.dimension-player-open {
  padding-bottom: 90px;
}
@media (max-width: 480px) {
  body.dimension-player-open {
    padding-bottom: 145px;
  }
}
