:root {
  --bg:       #0a0a0a;
  --bg2:      #111111;
  --border:   #1e1e1e;
  --text:     #e8e8e8;
  --muted:    #b8b8b8;
  --accent:   #c8ff00;
  --font-head: 'Unbounded', sans-serif;
  --font-mono: 'DM Mono', monospace;
  --depiction: #b8b8b8;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 15px;
  line-height: 1.7;
  overflow-x: hidden;
}

a {
  color: var(--text);
  text-decoration: none;
  transition: color .2s;
}
a:hover { color: var(--accent); }

.header {
  position: fixed;
  top: 1.25rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 2rem;
  padding: .7rem 1.25rem .7rem 1.5rem;
  background: rgba(16, 16, 16, 0.75);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 999px;
  white-space: nowrap;
}
.nav {
  display: flex;
  gap: .25rem;
  align-items: center;
}

.nav-link {
  font-family: var(--font-head);
  font-size: .95rem;
  letter-spacing: .06em;
  color: var(--text);
  padding: .4rem .9rem;
  border-radius: 999px;
  transition: color .2s, background .2s;
}
.nav-link:hover {
  color: var(--text);
  background: rgba(255,255,255,.05);
}
.nav-link.active,
.nav-link.active:hover {
  color: #c8ff00 !important;
  background: rgba(200, 255, 0, .08);
}

.menu-btn { display: none; }

.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 2rem 2rem 3rem;
  border-bottom: 3px solid var(--border);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -200px; right: -200px;
  width: 600px; height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(200,255,0,.07) 0%, transparent 70%);
  pointer-events: none;
}

.hero-tag {
  font-size: .75rem;
  color: var(--muted);
  letter-spacing: .17em;
  text-transform: uppercase;
  margin-bottom: 1.4rem;
}

.hero-title {
  font-family: var(--font-head);
  font-size: clamp(2.9rem, 6vw, 10rem);
  font-weight: 800;
  line-height: .95;
  letter-spacing: -.02em;
  margin-bottom: 1.5rem;
}

.accent { color: var(--accent); }

.hero-sub {
  color: var(--muted);
  font-size: .9rem;
  max-width: 360px;
  margin-bottom: 2.5rem;
}

.btn {
  display: inline-block;
  padding: .7rem 1.8rem;
  border: 1px solid var(--accent);
  color: var(--accent);
  border-radius: 32px;
  font-family: var(--font-head);
  font-size: .8rem;
  letter-spacing: .1em;
  transition: background .2s, color .2s;
  font-variation-settings:
  'FILL' 0,
  'wght' 400,
  'GRAD' 0,
  'opsz' 24
}

.btn:hover {
  background: var(--accent);
  color: #000;
}

.section {
  padding: 5rem 2.5rem;
  border-bottom: 1px solid var(--border);
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 2rem;
  align-items: start;
}

.section-label {
  font-size: .7rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--muted);
  padding-top: .3rem;
}

.section-content h2 {
  font-family: var(--font-head);
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.5rem; 
  margin-top: 0; 
  line-height: 1.1; 
}

.section-content p {
  color: var(--muted);
  max-width: 480px;
}

.bento {
  display: grid;
  grid-template-columns: 1fr 340px;
  grid-template-rows: 340px 200px;
  gap: 1rem;
  padding: 0 2.5rem;
}

.bento-card {
  background: var(--bg2);
  border-radius: 1.25rem;
  padding: 2rem;
  border: 1px solid var(--border);
  transition: background .25s, border-color .25s;
  cursor: default;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.bento-card:hover {
  background: #161616;
  border-color: #2a2a2a;
}

.bento-rect {
  position: relative;
  overflow: hidden;
  grid-column: 1;
  grid-row: 1 / 3;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.card-gif {
  position: absolute;
  right: 20px;
  bottom: 0;
  height: 80%;
  width: auto;
  max-width: calc(100% - 40px);
  object-fit: contain;
  object-position: bottom right;
  pointer-events: none;
  z-index: -1;
}

.bento-rect .card-num,
.bento-rect .card-text {
  position: relative;
  z-index: 1;
}

.bento-rect .card-num {
  margin-bottom: auto;
  padding-bottom: 1rem;
}

.card-text h3 {
  font-family: var(--font-head);
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: .4rem;
}

.card-text p {
  color: var(--depiction);
  font-size: 0.98rem;
  line-height: 1.1;
}

@media (min-width: 1200px) {
  .card-text h3,
  .card-text p {
    max-width: calc(60% - 130px);
  }
}

.bento-square {
  grid-column: 2;
  grid-row: 1;
}

.bento-wide {
  grid-column: 2;
  grid-row: 2;
}

.card-num {
  font-size: .9rem;
  color: var(--accent);
  letter-spacing: .2em;
  margin-bottom: auto;
  padding-bottom: 1rem;
}

.bento-card h3 {
  font-family: var(--font-head);
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: .4rem;
}

.bento-card p { color: var(--depiction); font-size: 0.98rem; line-height: 1.1; }

#work {
  display: block;
  padding: 5rem 0;
  border-bottom: 1px solid var(--border);
}
#work .section-label {
  padding: 0 2.5rem 1.5rem;
}

.footer {
  display: flex;
  justify-content: space-between;
  padding: 1.5rem 2.5rem;
  font-size: .75rem;
  color: var(--muted);
}
#heroText::after {
  content: '|';
  color: var(--accent);
  animation: blink .7s step-end infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}

@media (max-width: 1200px) and (min-width: 641px) {
  .card-gif {
    height: 64%;
    right: auto;
    left: 50%;
    transform: translateX(-50%);
  }

  .bento-rect {
    justify-content: flex-start;
  }

  .bento-rect .card-num {
    margin-bottom: 0;
    padding-bottom: .5rem;
  }

  .card-text {
    max-width: 100%;
    text-align: center;
    align-self: center;
    margin-bottom: auto;
  }
}

@media (max-width: 640px) {

  .menu-btn { display: none; }

  .section {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .bento {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }

  .bento-rect,
  .bento-square,
  .bento-wide {
    grid-column: 1;
    grid-row: auto;
    min-height: 160px;
  }

  .bento-rect {
    justify-content: flex-end;
    cursor: pointer;
  }

  .bento-rect .card-gif {
    opacity: 0;
    pointer-events: none;
    transition: none;
  }

  .bento-rect .card-num {
    margin-bottom: auto;
    padding-bottom: 1rem;
  }

  .bento-rect .card-text {
    max-width: 100%;
    text-align: left;
    align-self: flex-start;
  }

  .bento-rect.expanded {
    min-height: 460px;
    justify-content: flex-start;
  }

  .bento-rect.expanded .card-gif {
    opacity: 1;
    pointer-events: none;
    transition: opacity .4s ease;
    right: auto;
    left: 50%;
    transform: translateX(-50%);
    height: 55%;
  }

  .bento-rect.expanded .card-num {
    margin-bottom: 0;
    padding-bottom: .4rem;
  }

  .bento-rect.expanded .card-text {
    max-width: 100%;
    text-align: center;
    align-self: center;
  }
}

#music {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 2rem;
  align-items: start;
  padding-bottom: 1.5rem;
  border-bottom: none;
  z-index: 10;
}

.music-carousel-wrapper {
  padding: 0 2.5rem 5rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  overflow: hidden;
}

.music-track-meta {
  display: flex;
  flex-direction: column;
  gap: .2rem;
  min-height: 2.6rem;
}

.music-meta-title {
  font-family: var(--font-head);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  transition: opacity .25s;
}

.music-meta-artist {
  font-size: .78rem;
  color: var(--muted);
  letter-spacing: .07em;
  transition: opacity .25s;
}

.music-meta-title.fade,
.music-meta-artist.fade { opacity: 0; }

.music-carousel {
  width: 100%;
  overflow: hidden;
  cursor: grab;
  user-select: none;
}
.music-carousel.no-drag { cursor: default; }
.music-carousel:active:not(.no-drag) { cursor: grabbing; }

.music-track-list {
  display: flex;
  gap: 1rem;
  will-change: transform;
}

.music-card {
  flex: 0 0 280px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 1.1rem;
  overflow: hidden;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  transition: border-color .25s, background .25s;
  position: relative;
  user-select: none;
  -webkit-user-select: none;
}

.music-card:hover {
  background: #161616;
  border-color: #2a2a2a;
}

.music-card.active {
  border-color: rgba(200,255,0,.3);
}

.music-cover-wrap {
  flex-shrink: 0;
  width: 64px;
  height: 64px;
  border-radius: .6rem;
  overflow: hidden;
  background: #1a1a1a;
  position: relative;
}

.music-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: filter .3s;
}

.music-card:hover .music-cover { filter: brightness(.7); }

.music-cover-placeholder {
  width: 100%;
  height: 80%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.music-cover-placeholder svg {
  width: 45%;
  height: 45%;
  opacity: .2;
  fill: currentColor;
}

.music-card-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: .3rem;
}

.music-card-title {
  font-family: var(--font-head);
  font-size: .82rem;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--text);
}

.music-card-artist {
  font-size: .72rem;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.music-progress-wrap {
  height: 2px;
  background: var(--border);
  border-radius: 1px;
  overflow: hidden;
  margin-top: .25rem;
}

.music-progress-bar {
  height: 100%;
  width: 0%;
  background: var(--accent);
  border-radius: 1px;
  transition: width .5s linear;
}

.music-play-btn {
  flex-shrink: 0;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: var(--accent);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s, transform .2s, opacity .2s;
  opacity: 0;
  transform: scale(.85);
}

.music-card:hover .music-play-btn,
.music-card.active .music-play-btn {
  opacity: 1;
  transform: scale(1);
}

.music-play-btn:hover {
  background: #d4ff1a;
  transform: scale(1.1) !important;
}

.music-play-btn img.icon-play {
  width: 1.3rem;
  height: 1.3rem;
  margin-left: 3px;
}

.music-play-btn img.icon-pause {
  width: 1.5rem;
  height: 1.5rem;
}

.music-play-btn.playing img.icon-play  { display: none; }
.music-play-btn.playing img.icon-pause { display: block !important; }
.music-play-btn img.icon-pause { display: none; }
.music-play-btn.playing { margin-left: 0; }
.music-play-btn.playing svg { margin-left: 0; }

.music-dots {
  display: flex;
  gap: .45rem;
  align-items: center;
  justify-content: center;
}

.music-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--border);
  transition: background .3s, transform .3s;
  cursor: pointer;
}
.music-dot.active {
  background: var(--accent);
  transform: scale(1.4);
}

.music-dots.hidden { display: none; }

@media (min-width: 641px) {
  .music-card { padding: 1.5rem; flex: 0 0 520px; }
  .music-cover-wrap { width: 150px; height: 150px; }
  .music-card-title { font-size: 1.44rem; }
  .music-card-artist { font-size: 1rem; }
  .music-play-btn { width: 3rem; height: 3rem; }
  .music-play-btn svg { width: 1.5rem; height: 1.5rem; }
}

@media (max-width: 640px) {
  #music { grid-template-columns: 1fr; gap: 1rem; }
  .music-carousel-wrapper { padding: 0 2.5rem 4rem; }
  .music-carousel { overflow: hidden; width: 100%; }
  .music-card { flex: 0 0 100%; min-width: 0; width: 100%; padding: 1rem 1.25rem; }
  .music-cover-wrap { width: 72px; height: 72px; }
  .music-card-title { font-size: 1rem; }
  .music-card-artist { font-size: 0.85rem; }
  .music-play-btn { width: 3rem; height: 3rem; }
  .music-play-btn svg { width: 1.17rem; height: 1.17rem; }
}

.music-cover, .music-cover-wrap img {
  pointer-events: none;
  -webkit-user-drag: none;
}