body {
  /* background-image: url("/assets/graphics/bg.svg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed; */

  background: rgba(244, 241, 236, 0.95);
  
  font-family: 'Malgun Gothic', 'Segoe UI', sans-serif;
  overflow-x: hidden;
  overflow-y: auto;

  scrollbar-width: none; 
  -ms-overflow-style: none;
}

* {
  cursor: url('/assets/graphics/cursor.svg') 14 14, auto !important;
}

/* =======================
        Header
======================= */

#header img {
    position: fixed;
    padding: 20px;
    height: 15vh;
    /* width: 50vw; */
    left: 0;
    top: 0;
}

/* =======================
        Bio
======================= */

#bio img {
    position: fixed;
    right: 0;
    top: 25vh;
    width: 120vh;
}

/* =======================
        Tiles
======================= */

#tiles {
    position: fixed;
    bottom: 0;
    padding: 50px;

    display: flex;
    gap: 60px;
}

#tiles img {
    width: 15vw;
    height: auto;
}

.tile {
  position: relative;
  width: 15vw;
}

.tile img {
  width: 100%;
  height: auto;
  display: block;
  transition: opacity 0.4s ease, transform 0.6s ease;
}

/* text layer */
.tile::after {
  content: attr(data-label);
  position: absolute;
  inset: 0;

  display: flex;
  align-items: center;
  justify-content: center;

  font-size: 1.2vw;
  letter-spacing: 0.2vw;
  text-transform: uppercase;

  color: #111;
  background: rgba(244, 241, 236, 0.6);

  opacity: 0;
  transition: opacity 0.4s ease, transform 0.4s ease;

  pointer-events: none;
}

/* hover state */
.tile:hover img {
  opacity: 0.35;
}

.tile:hover::after {
  opacity: 1;
  transform: translateY(0);
}

/* =======================
        Blur Effect
======================= */

#home {
  transition: filter 0.6s ease;
}

#home.blurred {
  filter: blur(12px);
  pointer-events: none;
}

/* =======================
        Overlays
======================= */

.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  
  background: rgba(244, 241, 236, 0.95);
  backdrop-filter: blur(20px);
  
  display: none;
  opacity: 0;
  z-index: 1000;
  
  overflow-y: auto;
  overflow-x: hidden;
}

.overlay.active {
  display: block;
}

/* Overlay Header */
.overlay-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  max-height: 8vh;
  
  padding: 40px 60px;
  background: rgba(244, 241, 236, 0.95);
  backdrop-filter: blur(20px);
  
  display: flex;
  justify-content: space-between;
  align-items: center;
  
  border-bottom: 1px solid rgba(17, 17, 17, 0.1);
  z-index: 1001;
}

.overlay-title {
  font-size: 2.5vw;
  letter-spacing: 0.15vw;
  text-transform: uppercase;
  color: #111;
  font-weight: 300;
}

.overlay-close {
  font-size: 3vw;
  color: #111;
  background: none;
  border: none;
  cursor: pointer;
  line-height: 1;
  transition: transform 0.3s ease, opacity 0.3s ease;
  padding: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.overlay-close:hover {
  transform: rotate(90deg);
  opacity: 0.6;
}

/* Overlay Content */
.overlay-content {
  margin-top: 200px;
  padding: 0 60px 80px;
}

/* Category Sections */
.category-section {
  margin-bottom: 100px;
}

.category-title {
  font-size: 1.8vw;
  letter-spacing: 0.1vw;
  text-transform: uppercase;
  color: #111;
  font-weight: 400;
  margin-bottom: 40px;
  padding-bottom: 15px;
  border-bottom: 1px solid rgba(17, 17, 17, 0.15);
}

/* Media Grid */
.media-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
}

.media-item {
  position: relative;
  width: 29vw;
  aspect-ratio: 3/2;
  overflow: hidden;
  background: rgba(17, 17, 17, 0.05);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  transition: filter 0.3s ease;
  filter: saturate(0);
}

.media-item:hover {
  /* transform: translateY(-5px); */
  /* box-shadow: 0 15px 40px rgba(17, 17, 17, 0.15); */
  filter: saturate(1)
}

.media-item img,
.media-item video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.media-item video {
  cursor: pointer;
}

/* Placeholder for empty items */
.media-item.placeholder {
  background: linear-gradient(135deg, rgba(17, 17, 17, 0.03) 0%, rgba(17, 17, 17, 0.08) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(17, 17, 17, 0.3);
  font-size: 0.9vw;
  letter-spacing: 0.05vw;
  text-transform: uppercase;
}

/* =======================
    Audio Visualizer
======================= */

.soundscape-container {
  position: relative;
  width: 100%;
}

#audioVisualizer {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  opacity: 0;
  transition: opacity 1s ease;
  pointer-events: none;
}

#audioVisualizer.active {
  opacity: 1;
}

/* =======================
    Soundscape Grid
======================= */

.soundscape-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.soundscape-item {
  position: relative;
  aspect-ratio: 1;
  background: rgba(17, 17, 17, 0.03);
  border: 1px solid rgba(17, 17, 17, 0.1);
  
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  
  cursor: pointer;
  transition: all 0.4s ease;
  overflow: hidden;
}

/* Background image with opacity */
.soundscape-item::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: var(--bg-image);
  background-size: cover;
  background-position: center;
  opacity: 0.08;
  z-index: 0;
  transition: opacity 0.4s ease;
}

.soundscape-item:hover::before {
  opacity: 0.15;
}

.soundscape-item:hover {
  background: rgba(17, 17, 17, 0.08);
  border-color: rgba(17, 17, 17, 0.2);
  box-shadow: 0 10px 30px rgba(17, 17, 17, 0.1);
}

.soundscape-item.playing {
  background: rgba(17, 17, 17, 0.12);
  border-color: rgba(17, 17, 17, 0.3);
}

.soundscape-item.playing::before {
  opacity: 0.2;
}

.soundscape-info {
  position: relative;
  z-index: 1;
  text-align: center;
  margin-bottom: 20px;
}

.soundscape-title {
  font-size: 1.2vw;
  letter-spacing: 0.1vw;
  text-transform: uppercase;
  color: #111;
  font-weight: 400;
  margin-bottom: 8px;
}

.soundscape-duration {
  font-size: 0.9vw;
  letter-spacing: 0.05vw;
  color: rgba(17, 17, 17, 0.5);
  font-weight: 300;
}

.soundscape-play {
  position: relative;
  z-index: 1;
  font-size: 2vw;
  color: rgba(17, 17, 17, 0.4);
  transition: all 0.3s ease;
}

.soundscape-item:hover .soundscape-play {
  color: rgba(17, 17, 17, 0.8);
  transform: scale(1.1);
}

.soundscape-item.playing .soundscape-play {
  color: rgba(17, 17, 17, 0.8);
}

/* Spotify Embed */
.category-section iframe {
  margin-top: 60px;
  border-radius: 0;
  border: 1px solid rgba(17, 17, 17, 0.1);
  background: rgba(17, 17, 17, 0.02);
  transition: all 0.4s ease;
}

.category-section iframe:hover {
  border-color: rgba(17, 17, 17, 0.2);
  box-shadow: 0 10px 30px rgba(17, 17, 17, 0.1);
}

/* =======================
    Projects Grid
======================= */

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.project-item {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  cursor: pointer;
  text-decoration: none;
  display: block;
  border: 1px solid rgba(17, 17, 17, 0.1);
  transition: all 0.4s ease;
}

.project-item:hover {
  border-color: rgba(17, 17, 17, 0.2);
  box-shadow: 0 15px 40px rgba(17, 17, 17, 0.15);
}

.project-item.project-coming-soon {
  cursor: default;
}

.project-image {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.6s ease, filter 0.4s ease;
}

.project-item:hover .project-image {
  transform: scale(1.05);
  filter: brightness(0.7);
}

.project-item.project-coming-soon:hover .project-image {
  filter: brightness(0.6);
}

.project-overlay {
  position: absolute;
  inset: 0;
  background: rgba(17, 17, 17, 0.9);
  backdrop-filter: blur(10px);
  
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px;
  
  opacity: 0;
  transition: opacity 0.4s ease;
}

.project-item:hover .project-overlay {
  opacity: 1;
}

.project-title {
  font-size: 1.8vw;
  letter-spacing: 0.1vw;
  text-transform: uppercase;
  color: #f4f1ec;
  font-weight: 400;
  margin-bottom: 15px;
  text-align: center;
}

.project-description {
  font-size: 1vw;
  letter-spacing: 0.05vw;
  color: rgba(244, 241, 236, 0.7);
  font-weight: 300;
  text-align: center;
  line-height: 1.6;
  margin-bottom: 25px;
}

.project-link {
  font-size: 0.9vw;
  letter-spacing: 0.1vw;
  text-transform: uppercase;
  color: #f4f1ec;
  font-weight: 400;
  padding: 12px 24px;
  border: 1px solid rgba(244, 241, 236, 0.3);
  transition: all 0.3s ease;
}

.project-item:hover .project-link {
  background: rgba(244, 241, 236, 0.1);
  border-color: rgba(244, 241, 236, 0.6);
}

.project-status {
  font-size: 0.9vw;
  letter-spacing: 0.1vw;
  text-transform: uppercase;
  color: rgba(244, 241, 236, 0.5);
  font-weight: 300;
  font-style: italic;
}