:root {
  --bg: #0b0b0b;
  --fg: #f4f4f2;
  --muted: #7d7d7a;
  --body: "Inter Tight", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --pad: clamp(16px, 4vw, 48px);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: clip; }
body {
  background: var(--bg); color: var(--fg);
  font-family: var(--body); line-height: 1.5;
  overflow-x: clip; -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

.mono { font-family: var(--mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; }
.muted { color: var(--muted); }
h1, h2 { font-weight: 600; letter-spacing: -.035em; line-height: .95; }
h2 { font-size: clamp(36px, 5vw, 56px); }

/* NAV — slides away on scroll down, back on scroll up */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 50;
  display: flex; justify-content: space-between; align-items: center;
  padding: 20px var(--pad);
  background: linear-gradient(var(--bg), rgba(11,11,11,0));
  transition: transform .5s var(--ease), opacity .4s var(--ease);
}
.nav.hidden { transform: translateY(-100%); opacity: 0; }
.logo { font-weight: 600; letter-spacing: .02em; }
.nav nav { display: flex; gap: clamp(16px, 3vw, 32px); }
.nav nav a { font-size: 14px; color: var(--muted); transition: color .2s; }
.nav nav a:hover { color: var(--fg); }

/* HERO */
.hero { min-height: 80svh; padding: 120px var(--pad) 64px; display: flex; flex-direction: column; justify-content: flex-end; gap: 16px; }
.hero h1 { font-size: clamp(64px, 16vw, 240px); }
.hero .mono { padding-left: .4em; }

/* SECTIONS */
.section { padding: clamp(72px, 10vw, 128px) var(--pad); }
.section-title { margin-bottom: 56px; }

/* TRACKS */
.crate { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 56px 32px; }

.record-stage { position: relative; display: block; width: 100%; aspect-ratio: 1; overflow: hidden; }
.record-stage:focus-visible { outline: 1px solid var(--fg); outline-offset: 6px; }

.sleeve {
  position: absolute; inset: 0;
  background: var(--cover); background-size: cover; background-position: center;
  padding: 16px; display: flex; flex-direction: column; justify-content: flex-end; text-align: left;
  transition: filter .7s var(--ease);
}
.record-stage:hover .sleeve { filter: invert(1); }
/* while playing (and not hovered) the cover slowly breathes between normal and inverted */
.record.playing .record-stage:not(:hover) .sleeve { animation: breathe 2.6s ease-in-out infinite alternate; }
@keyframes breathe { from { filter: invert(1); } to { filter: invert(0); } }
.sleeve-title { font-size: clamp(36px, 4vw, 48px); font-weight: 600; letter-spacing: -.02em; line-height: 1; }

.play-btn {
  position: absolute; left: 50%; top: 50%;
  width: 124px; height: 124px; display: grid; place-items: center;
  mix-blend-mode: difference;
  opacity: 0; transform: translate(-50%, -50%) scale(.9);
  transition: opacity .25s var(--ease), transform .25s var(--ease);
}
.play-btn svg { width: 124px; height: 124px; fill: #fff; grid-area: 1 / 1; }
.play-btn .i-pause { display: none; }
.record.playing .play-btn .i-pause { display: block; }
.record.playing .play-btn .i-play { display: none; }
.record-stage:hover .play-btn,
.record-stage:focus-visible .play-btn { opacity: 1; transform: translate(-50%, -50%) scale(1); }
@media (hover: none) { .play-btn { opacity: 1; transform: translate(-50%, -50%) scale(1); } }

.record-meta { margin-top: 16px; }
.record-meta h3 { font-size: 22px; font-weight: 600; letter-spacing: -.035em; line-height: 1; color: #cfcfcc; transition: color .3s; }
.record.playing .record-meta h3 { color: var(--fg); }

/* ABOUT */
.about { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.about-photo img { display: block; width: 100%; aspect-ratio: 4/5; object-fit: cover; }
.about-text h2 { margin-bottom: 32px; }
.about-text p { max-width: 520px; color: var(--muted); font-size: 18px; margin-bottom: 16px; }
.about-text p:first-of-type { color: var(--fg); margin: 0; }

/* CONTACT */
.contact-mail { display: inline-block; margin: 32px 0; font-size: clamp(22px, 4.5vw, 52px); font-weight: 500; letter-spacing: -.03em; transition: opacity .2s; word-break: break-all; }
.contact-mail:hover { opacity: .6; }
.socials { display: flex; flex-wrap: wrap; gap: 24px; }
.socials a { color: var(--muted); transition: color .2s; }
.socials a:hover { color: var(--fg); }

.footer { font-size: 16px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 24px var(--pad); }

@media (max-width: 760px) {
  .about { grid-template-columns: 1fr; }
}
