* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
:root {
  --pantone-cloud-dancer: #F0EFEA;
  --bg-main: var(--pantone-cloud-dancer);

   --accent: #A767A2;
  --hover-bg: #B3ABAC;
  --text-dark: #2C2B2B;
  --text-light: #E0E0E0;
}
body {
  font-family: 'Poppins', Helvetica, sans-serif;
  background: var(--bg-main);
  color: #000;
}
#entry-screen {
  background:
    radial-gradient(
      rgba(0,0,0,0.015) 1px,
      transparent 1px
    ) 0 0 / 4px 4px,
    var(--pantone-cloud-dancer);
}
/* INFO PANEL */
.info {
  position: fixed;
  right: 0;
  top: 0;
  height: 100vh;
  width: 80px;
  border-left: 2px solid #000;
  background: var(--bg-main);
  z-index: 1000;
}

#info-toggle {
  width: 100%;
  height: 75px;
  font-size: 1.5rem;
  font-weight: 700;
  border: none;
  background: var(--bg-main);
  cursor: pointer;
}
#info-toggle:hover {
  color: var(--accent);           /* accent color */
}
.info-content {
  display: none;
  padding: 30px;
  font-size: 0.95rem;
}

.info.open {
  width: 400px;
}

.info.open .info-content {
  display: block;
}
.panel-btn {
  font-family: 'Poppins', sans-serif;
  font-size: 1.4rem;
  background-color: var(--text-light);
  color: var(--bg-main);
  padding: 12px 20px;
  border: none;
  border-radius: 4px;
  width: 100%;
  cursor: pointer;
  transition: all 0.3s ease;
}

.panel-btn:hover {
  background: var(--accent);
  transform: scale(1.05);
}

/* floating logo */
.floating-logo {
  position: fixed;
  top: 10px;
  left: 40px;
  font-family: 'Poppins', sans-serif;
  font-weight: 400;
  font-size: 2.5rem;
  color: var(--text-dark);
  text-decoration: none;
  z-index: 1000;
  transition: color 0.3s ease, transform 0.3s ease, -webkit-text-stroke 0.3s ease;
}

.floating-logo:hover {
  color: var(--text-light);
  -webkit-text-stroke: 2px var(--accent);
  transform: scale(1.05);
}

/* PLAYLIST */
.playlist {
  padding: 2px;
  max-width: calc(100% - 60px);
}

h1, h2, .track-btn .title {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  color:var(--text-dark)
}

.subtitle, .type, .year, .project-content p {
  font-family: 'Poppins', sans-serif;
  font-weight: 400;
  color:var(--text-dark)
  opacity: 0.7;
}

ul {
  list-style: none;
  margin-top: 60px;
}

.track-item {
  position: relative; /* for floating project-content */
}

.track-btn {
  display: grid;
  grid-template-columns: 32px 1fr 180px 60px;
  align-items: center;
  column-gap: 12px;
  width: 100%;
  text-align: left;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  border: none;
 border-bottom: 3px solid var(--accent);
  background-color: var(--bg-main);
  font-size: 2rem;
  font-weight: 700;
  cursor: pointer;
  padding: 15px 20px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.play {
  font-size: 1.2rem;
  transform: translateY(1px);
}

.year {
  font-size: 0.9rem;
  text-align: right;
  opacity: 0.6;
}

.track-btn::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 0%;
  height: 100%;
  background: var(--hover-bg);
  z-index: 0;
  transition: width 0.3s ease;
}

.track-btn:hover::before {
  width: 100%;
}

.track-btn:hover {
  color: var(--text-light);
  border-radius: 4px;
}

.track-btn:hover .play {
  transform: scale(1.2);
}

.track-btn:hover .title {
  color:var(--text-light);
  -webkit-text-stroke: 2px var(--accent);
  text-stroke: 2px var(--accent);
  z-index: 1;
  position: relative;
}

.type {
  font-size: 0.9rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.6;
  display: flex;
  align-items: center;
}

/* PROJECT CONTENT FLOATING */
.project-content {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;

  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 24px;

  max-height: 0;
  overflow: hidden;
  padding: 0 20px;

  background: var(--bg-main);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);

  border-left: 3px solid var(--accent);
  border-radius: 10px;

  box-shadow:
    0 10px 30px rgba(0,0,0,0.12),
    0 1px 0 rgba(255,255,255,0.4) inset;

  transition:
    max-height 0.4s ease,
    padding 0.4s ease,
    transform 0.35s cubic-bezier(.2,.7,.2,1);

  z-index: 10;
}

.project-content.active {
  max-height: 2000px;
  padding: 20px;
  transform: translateY(8px);
}

/* TEXT */
.project-content p {
  grid-column: 1 / span 8;
  max-width: 65ch;
  opacity: 0.8;
}

/* MEDIA (RIGHT 1/3) */
.project-content .media {
  grid-column: 9 / 13;
}

/* IMAGES */
.project-content img {
  width: 100%;
  height: auto;
  border-radius: 6px;
}

/* VIDEO EMBED (FIXED) */
.video-wrapper {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 */
  height: 0;
  margin: 20px 0;
}

.video-wrapper iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 6px;
}
.soundcloud {
  grid-column: 9 / 13; /* right 1/3 */
  height: 166px;
  border-radius: 6px;
  margin: 20px 0;
}
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 2000;
}

.lightbox.open {
  opacity: 1;
  pointer-events: auto;
}


#lightbox img {
  max-width: 85vw;
  max-height: 85vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 6px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.5);
  cursor: zoom-out;
}
/* subtle affordance */
.popup-img {
  cursor: zoom-in;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.popup-img:hover {
  transform: scale(1.02);
  box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}

/* MOBILE */
@media (max-width: 768px) {

  .playlist {
    padding: 40px 20px;
    max-width: 100%;
  }

  h1 {
    font-size: 1.5rem;
    color:var(--text-dark)
  }
   h2 {
    font-size: 1.5rem;
    color:var(--text-dark)
  }
 .track-btn {
    grid-template-columns: 28px 1fr;
    grid-template-rows: auto auto;
    color:var(--text-dark)
  }

  .type {
    grid-column: 2;
    font-size: 0.7 rem;
    margin-top: 4px;
    opacity: 0.6;
  }
 

 
  .track-btn:active {
    color: var(--text-light);
    background: var(--text-light);
    transform: translateY(-2px);
  }

  .year {
    display: none;
  }

  .info {
    width: 100%;
    height: 70px;
    bottom: 0;
    top: auto;
    border-left: none;
    border-top: 2px solid #000;
  }

  .info.open {
    height: 60vh;
    width: 100%;
  }

  #info-toggle {
    height: 50px;
  }
  #info-toggle {
  appearance: none;
  -webkit-appearance: none;
}
#info-toggle:active {
  color: var(--accent);
}
  .info-content {
    padding: 20px;
  }

 .project-content {
    display: none;
  }

  /* open accordion item */
  .project-content.active {
    display: block;
    animation: accordionOpen 0.25s ease;
  }

  @keyframes accordionOpen {
    from {
      opacity: 0;
      transform: translateY(-6px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }


  .project-content p,
  .project-content .media {
    grid-column: 1 / -1;
  }
  .floating-logo {
    top: 20px;
    left: 20px;
    font-size: 2rem;
  }
}
