:root {
  color-scheme: dark;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;

  --bg: #030303;
  --surface: #0d0d0d;
  --surface-hover: #141414;
  --line: rgba(255, 255, 255, 0.1);

  --text: #f7f7f2;
  --muted: #aaa79f;
  --faint: #6f6c66;

  --accent: #d7ff5f;
  --spotlight: rgba(215, 255, 95, 0.08);

  --radius: 8px;
  --maxw: 1080px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), transparent 38rem),
    repeating-linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.035) 0,
      rgba(255, 255, 255, 0.035) 1px,
      transparent 1px,
      transparent 96px
    ),
    var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 96px 96px;
  -webkit-mask-image: linear-gradient(180deg, black 0%, transparent 58%);
  mask-image: linear-gradient(180deg, black 0%, transparent 58%);
  pointer-events: none;
}

::selection {
  background: var(--accent);
  color: #050505;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  background: rgba(3, 3, 3, 0.68);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}

.site-header.scrolled {
  border-bottom-color: var(--line);
  background: rgba(3, 3, 3, 0.88);
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0.9rem 1.25rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 600;
  letter-spacing: 0;
  font-size: 0.95rem;
  white-space: nowrap;
}

.brand-logo {
  display: inline-grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  font-size: 1.45rem;
  line-height: 1;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.35rem;
}

.nav-links a {
  position: relative;
  color: var(--muted);
  font-size: 0.92rem;
  letter-spacing: 0;
  white-space: nowrap;
  transition: color 0.2s var(--ease);
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 1px;
  background: var(--text);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.28s var(--ease);
}

.nav-links a:hover {
  color: var(--text);
}

.nav-links a:hover::after {
  transform: scaleX(1);
}

/* ---------- Layout ---------- */
main {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(3rem, 8vw, 5.5rem) 1.25rem 5rem;
}

section {
  scroll-margin-top: 90px;
}

.eyebrow,
.card-section > p.eyebrow,
.contact p.eyebrow {
  margin: 0 0 1rem;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

/* ---------- Buttons ---------- */
.button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 2.85rem;
  padding: 0.78rem 1.25rem;
  border-radius: 999px;
  background: var(--text);
  color: #030303;
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: 0;
  border: 1px solid transparent;
  transition: transform 0.2s var(--ease), box-shadow 0.25s var(--ease),
    background 0.2s var(--ease);
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
}

.button .arrow {
  transition: transform 0.25s var(--ease);
}

.button:hover .arrow {
  transform: translateX(3px);
}

/* ---------- Sections ---------- */
.card-section {
  margin-bottom: 4.75rem;
}

.section-head {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  margin-bottom: 1.75rem;
}

.section-head h2 {
  font-size: 1.4rem;
  font-weight: 600;
  letter-spacing: 0;
  margin: 0;
}

.section-head .count {
  color: var(--faint);
  font-size: 0.85rem;
  font-variant-numeric: tabular-nums;
}

.card-section > p {
  color: var(--muted);
  max-width: 68ch;
  font-size: 1.08rem;
}

/* ---------- About toto — four lines, nothing more ---------- */
.about-lines {
  display: grid;
  gap: 1.5rem;
  max-width: 68ch;
}

.about-lines p {
  margin: 0;
}

.about-lead {
  font-size: clamp(1.45rem, 3vw, 1.9rem);
  font-weight: 650;
  letter-spacing: -0.01em;
  color: var(--text);
}

.about-body {
  color: var(--muted);
  font-size: 1.08rem;
}

/* ---------- Project cards ---------- */
.card-grid {
  display: grid;
  gap: 1px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.card {
  position: relative;
  background: var(--surface);
  border: 0;
  border-radius: 0;
  min-height: 14rem;
  padding: 1.45rem;
  overflow: hidden;
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease),
    background 0.3s var(--ease);
}

.card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(
    260px circle at var(--mx, 50%) var(--my, 0%),
    var(--spotlight),
    transparent 60%
  );
  opacity: 0;
  transition: opacity 0.3s var(--ease);
  pointer-events: none;
}

.card:hover {
  background: var(--surface-hover);
}

.card:hover::after {
  opacity: 1;
}

.card .tag {
  display: inline-block;
  margin-bottom: 0.9rem;
  padding: 0.25rem 0.55rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: uppercase;
}

.card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 0;
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.6;
}

/* ---------- Record crate (Music section) ---------- */
.crate {
  display: flex;
  gap: 1.1rem;
  margin-top: 1.75rem;
  padding: 1.1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.025), transparent);
  overflow-x: auto;
  scroll-snap-type: x proximity;
  /* match the container padding, or the first sleeve's snap point sits left of
     scrollLeft:0 and the crate springs right, clipping it */
  scroll-padding-inline: 1.1rem;
  scrollbar-width: thin;
}

.sleeve {
  position: relative;
  flex: 0 0 168px;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  padding: 0;
  border: 0;
  background: none;
  color: var(--text);
  font: inherit;
  text-align: left;
  cursor: pointer;
  scroll-snap-align: start;
}

.sleeve-art {
  position: relative;
  z-index: 1;
  width: 168px;
  height: 168px;
  border-radius: 6px;
  background:
    radial-gradient(
      120% 90% at 15% 12%,
      rgba(255, 255, 255, 0.35),
      transparent 45%
    ),
    linear-gradient(140deg, var(--c1), var(--c2) 75%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14),
    inset 0 -22px 34px rgba(0, 0, 0, 0.35);
  transition: transform 0.3s var(--ease);
}

/* the vinyl hiding behind the sleeve, peeking out on hover */
.sleeve::before {
  content: "";
  position: absolute;
  z-index: 0;
  top: 4px;
  left: 4px;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background:
    repeating-radial-gradient(
      circle,
      transparent 0 5px,
      rgba(255, 255, 255, 0.05) 5px 6px
    ),
    radial-gradient(circle, var(--c1) 0 13%, #060606 14%);
  transition: transform 0.35s var(--ease);
}

.sleeve:hover .sleeve-art,
.sleeve:focus-visible .sleeve-art {
  transform: rotate(-2deg);
}

.sleeve:hover::before,
.sleeve:focus-visible::before {
  transform: translateX(30%) rotate(120deg);
}

.sleeve.selected .sleeve-art {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.sleeve-badge {
  position: absolute;
  left: 0.6rem;
  bottom: 0.6rem;
  padding: 0.18rem 0.5rem;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.45);
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.sleeve-title {
  font-weight: 600;
  font-size: 0.93rem;
  line-height: 1.3;
}

.sleeve-meta {
  color: var(--faint);
  font-size: 0.78rem;
}

.turntable {
  margin-top: 1.6rem;
}

.turntable-caption {
  margin: 0 0 0.8rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.turntable-slot iframe {
  display: block;
  width: 100%;
  border: 0;
  border-radius: var(--radius);
}

.social-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.6rem;
}

.social-pill {
  padding: 0.35rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.85rem;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.social-pill:hover {
  color: var(--text);
  border-color: var(--text);
}

/* ---------- Now-playing ticker ---------- */
.now-playing {
  position: fixed;
  inset: auto 0 0 0;
  z-index: 75;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.55rem 4.5rem 0.55rem 1.25rem;
  border-top: 1px solid var(--line);
  background: rgba(3, 3, 3, 0.92);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  transform: translateY(110%);
  transition: transform 0.45s var(--ease);
}

body.has-ticker .now-playing {
  transform: none;
}

.np-ball {
  font-size: 1rem;
  line-height: 1;
}

.now-playing.live .np-ball {
  animation: spin 3.5s linear infinite;
}

.np-marquee {
  flex: 1;
  overflow: hidden;
  white-space: nowrap;
  -webkit-mask-image: linear-gradient(
    90deg,
    transparent,
    black 4%,
    black 96%,
    transparent
  );
  mask-image: linear-gradient(90deg, transparent, black 4%, black 96%, transparent);
}

.np-text {
  display: inline-block;
  padding-right: 3.5rem;
  color: var(--muted);
  font-size: 0.85rem;
}

/* the second copy exists only to make the marquee loop seamless */
.np-text[aria-hidden] {
  display: none;
}

.now-playing.live .np-text {
  color: var(--text);
  animation: marquee 16s linear infinite;
}

.now-playing.live .np-text[aria-hidden] {
  display: inline-block;
}

@keyframes marquee {
  to {
    transform: translateX(-100%);
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ---------- Disco mode ----------
   Three parallax depth layers (far/mid/near), each drifting + swaying on
   its own rhythm; the mid layer additionally carries two offset twinkle
   passes and faint accent-tinted facets, and the near layer breathes. */
.disco-overlay {
  position: fixed;
  inset: -12%;
  z-index: 70;
  pointer-events: none;
  opacity: 0;
  mix-blend-mode: screen;
  transition: opacity 0.9s var(--ease);
}

body.disco .disco-overlay {
  opacity: 1;
}

.disco-sway,
.disco-drift,
.disco-drift > div {
  position: absolute;
  inset: 0;
}

.disco-drift {
  will-change: transform;
}

.disco-drift > div {
  background-repeat: no-repeat;
}

body.disco .disco-drift {
  animation: disco-drift linear infinite;
}

@keyframes disco-drift {
  from {
    transform: translateX(24vw);
  }
  to {
    transform: translateX(-90vw);
  }
}

body.disco .disco-sway {
  animation: disco-sway ease-in-out infinite alternate;
}

@keyframes disco-sway {
  from {
    transform: translateY(-1vh);
  }
  to {
    transform: translateY(1vh);
  }
}

.disco-drift-far {
  animation-duration: 38s !important;
}
.disco-sway-far {
  animation-duration: 13s !important;
}
.disco-far-base {
  opacity: 0.55;
  background-image:
    radial-gradient(circle at 5% 10%, rgba(247, 247, 242, 0.3) 0 4px, transparent 6px),
    radial-gradient(circle at 22% 20%, rgba(247, 247, 242, 0.3) 0 4px, transparent 6px),
    radial-gradient(circle at 40% 8%, rgba(247, 247, 242, 0.3) 0 4px, transparent 6px),
    radial-gradient(circle at 58% 18%, rgba(247, 247, 242, 0.3) 0 4px, transparent 6px),
    radial-gradient(circle at 75% 12%, rgba(247, 247, 242, 0.3) 0 4px, transparent 6px),
    radial-gradient(circle at 92% 22%, rgba(247, 247, 242, 0.3) 0 4px, transparent 6px),
    radial-gradient(circle at 12% 45%, rgba(247, 247, 242, 0.3) 0 4px, transparent 6px),
    radial-gradient(circle at 33% 55%, rgba(247, 247, 242, 0.3) 0 4px, transparent 6px),
    radial-gradient(circle at 52% 48%, rgba(247, 247, 242, 0.3) 0 4px, transparent 6px),
    radial-gradient(circle at 70% 58%, rgba(247, 247, 242, 0.3) 0 4px, transparent 6px),
    radial-gradient(circle at 88% 46%, rgba(247, 247, 242, 0.3) 0 4px, transparent 6px),
    radial-gradient(circle at 8% 78%, rgba(247, 247, 242, 0.3) 0 4px, transparent 6px),
    radial-gradient(circle at 45% 82%, rgba(247, 247, 242, 0.3) 0 4px, transparent 6px),
    radial-gradient(circle at 80% 86%, rgba(247, 247, 242, 0.3) 0 4px, transparent 6px);
}

.disco-drift-mid {
  animation-duration: 22s !important;
}
.disco-sway-mid {
  animation-duration: 10s !important;
}
.disco-mid-base {
  opacity: 0.75;
  background-image:
    radial-gradient(circle at 8% 30%, rgba(247, 247, 242, 0.28) 0 8px, transparent 11px),
    radial-gradient(circle at 28% 14%, rgba(247, 247, 242, 0.28) 0 8px, transparent 11px),
    radial-gradient(circle at 48% 26%, rgba(247, 247, 242, 0.28) 0 8px, transparent 11px),
    radial-gradient(circle at 68% 10%, rgba(247, 247, 242, 0.28) 0 8px, transparent 11px),
    radial-gradient(circle at 88% 30%, rgba(247, 247, 242, 0.28) 0 8px, transparent 11px),
    radial-gradient(circle at 16% 62%, rgba(247, 247, 242, 0.28) 0 8px, transparent 11px),
    radial-gradient(circle at 38% 72%, rgba(247, 247, 242, 0.28) 0 8px, transparent 11px),
    radial-gradient(circle at 60% 60%, rgba(247, 247, 242, 0.28) 0 8px, transparent 11px),
    radial-gradient(circle at 80% 74%, rgba(247, 247, 242, 0.28) 0 8px, transparent 11px),
    radial-gradient(circle at 95% 55%, rgba(247, 247, 242, 0.28) 0 8px, transparent 11px);
}
.disco-mid-twinkle-a {
  opacity: 0;
  background-image:
    radial-gradient(circle at 28% 14%, rgba(247, 247, 242, 0.5) 0 9px, transparent 13px),
    radial-gradient(circle at 60% 60%, rgba(247, 247, 242, 0.5) 0 9px, transparent 13px),
    radial-gradient(circle at 88% 30%, rgba(247, 247, 242, 0.5) 0 9px, transparent 13px),
    radial-gradient(circle at 16% 62%, rgba(247, 247, 242, 0.5) 0 9px, transparent 13px);
}
body.disco .disco-mid-twinkle-a {
  animation: disco-twinkle 3.6s ease-in-out infinite alternate;
}
.disco-mid-twinkle-b {
  opacity: 0;
  background-image:
    radial-gradient(circle at 48% 26%, rgba(247, 247, 242, 0.5) 0 9px, transparent 13px),
    radial-gradient(circle at 80% 74%, rgba(247, 247, 242, 0.5) 0 9px, transparent 13px),
    radial-gradient(circle at 8% 30%, rgba(247, 247, 242, 0.5) 0 9px, transparent 13px),
    radial-gradient(circle at 38% 72%, rgba(247, 247, 242, 0.5) 0 9px, transparent 13px);
}
body.disco .disco-mid-twinkle-b {
  animation: disco-twinkle 5.4s ease-in-out -2.2s infinite alternate;
}
@keyframes disco-twinkle {
  from {
    opacity: 0;
  }
  to {
    opacity: 0.55;
  }
}
.disco-mid-tint {
  opacity: 0.35;
  background-image:
    radial-gradient(circle at 20% 25%, rgba(215, 255, 95, 0.24) 0 8px, transparent 12px),
    radial-gradient(circle at 74% 28%, rgba(255, 143, 216, 0.2) 0 8px, transparent 12px),
    radial-gradient(circle at 48% 50%, rgba(215, 255, 95, 0.2) 0 8px, transparent 12px),
    radial-gradient(circle at 12% 84%, rgba(255, 143, 216, 0.18) 0 8px, transparent 12px),
    radial-gradient(circle at 86% 88%, rgba(215, 255, 95, 0.22) 0 8px, transparent 12px),
    radial-gradient(circle at 55% 90%, rgba(255, 143, 216, 0.18) 0 8px, transparent 12px);
}
body.disco .disco-mid-tint {
  animation: disco-tint-breathe 8s ease-in-out infinite alternate;
}
@keyframes disco-tint-breathe {
  from {
    opacity: 0.2;
  }
  to {
    opacity: 0.6;
  }
}

.disco-drift-near {
  animation-duration: 14s !important;
}
.disco-sway-near {
  animation-duration: 8s !important;
}
.disco-near-base {
  opacity: 0.85;
  background-image:
    radial-gradient(circle at 15% 22%, rgba(247, 247, 242, 0.26) 0 13px, transparent 19px),
    radial-gradient(circle at 45% 40%, rgba(247, 247, 242, 0.26) 0 13px, transparent 19px),
    radial-gradient(circle at 78% 18%, rgba(247, 247, 242, 0.26) 0 13px, transparent 19px),
    radial-gradient(circle at 25% 75%, rgba(247, 247, 242, 0.26) 0 13px, transparent 19px),
    radial-gradient(circle at 60% 85%, rgba(247, 247, 242, 0.26) 0 13px, transparent 19px),
    radial-gradient(circle at 90% 65%, rgba(247, 247, 242, 0.26) 0 13px, transparent 19px);
}
body.disco .disco-near-base {
  animation: disco-near-breathe 7s ease-in-out infinite alternate;
}
@keyframes disco-near-breathe {
  from {
    opacity: 0.6;
  }
  to {
    opacity: 1;
  }
}

body.disco .brand-logo {
  animation: spin 6s linear infinite;
}

body.disco .track-eq {
  opacity: 1;
}

/* ---------- Hero disco sweep (project pages) ---------- */
.project-hero {
  position: relative;
}

.project-hero::before {
  content: "";
  position: absolute;
  inset: -1.5rem;
  z-index: -1;
  pointer-events: none;
  opacity: 0;
  mix-blend-mode: screen;
  background:
    radial-gradient(2px 2px at 18% 28%, rgba(247, 247, 242, 0.9), transparent 60%),
    radial-gradient(2px 2px at 44% 64%, var(--spotlight), transparent 55%),
    radial-gradient(3px 3px at 66% 22%, rgba(247, 247, 242, 0.55), transparent 60%),
    radial-gradient(2px 2px at 84% 58%, var(--spotlight), transparent 55%),
    radial-gradient(2px 2px at 30% 86%, rgba(247, 247, 242, 0.45), transparent 60%);
  background-size: 260px 260px, 320px 320px, 300px 300px, 280px 280px, 340px 340px;
  transition: opacity 0.7s var(--ease);
  animation: disco-drift 30s linear infinite;
  animation-play-state: paused;
}

.project-hero:hover::before,
body.disco .project-hero::before {
  opacity: 0.6;
  animation-play-state: running;
}

/* ---------- Tracklist ---------- */
.tracklist {
  list-style: none;
  margin: 0;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
}

.track {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1.1rem;
  padding: 1.05rem 1.3rem;
  border-top: 1px solid var(--line);
  transition: background 0.25s var(--ease);
}

.track:first-child {
  border-top: 0;
}

.track:hover {
  background: var(--surface-hover);
}

.track-body {
  flex: 1;
  min-width: 0;
}

.track-body h3 {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0 0 0.2rem;
  font-size: 1.02rem;
  font-weight: 600;
}

.track-link::after {
  content: "";
  position: absolute;
  inset: 0;
}

.track-body p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.track-eq {
  display: inline-flex;
  align-items: flex-end;
  gap: 2px;
  height: 12px;
  opacity: 0;
  transition: opacity 0.25s var(--ease);
}

.track:hover .track-eq {
  opacity: 1;
}

.track-eq i {
  width: 3px;
  height: 100%;
  background: var(--accent);
  border-radius: 1px;
  transform-origin: bottom;
  animation: eq 0.9s ease-in-out infinite alternate;
}

.track-eq i:nth-child(2) {
  animation-duration: 0.7s;
  animation-delay: 0.1s;
}

.track-eq i:nth-child(3) {
  animation-duration: 1.1s;
  animation-delay: 0.2s;
}

@keyframes eq {
  from {
    transform: scaleY(0.25);
  }
  to {
    transform: scaleY(1);
  }
}

.track-tag {
  color: var(--faint);
  font-size: 0.78rem;
  white-space: nowrap;
}

.track-gh {
  position: relative;
  z-index: 1;
  padding: 0.3rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.82rem;
  white-space: nowrap;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.track-gh:hover {
  color: var(--text);
  border-color: var(--text);
}

p.projects-more {
  margin: 0.9rem 0 0;
  color: var(--faint);
  font-size: 0.85rem;
}

/* ---------- Project pages ---------- */
.crumb {
  display: inline-block;
  margin-bottom: 2rem;
  color: var(--faint);
  font-size: 0.85rem;
  transition: color 0.2s var(--ease);
}

.crumb:hover {
  color: var(--text);
}

.project-hero h1 {
  margin: 0.2rem 0 1rem;
  font-size: clamp(2.4rem, 6vw, 3.6rem);
  line-height: 1.05;
  font-weight: 600;
}

.project-hero .lede {
  margin: 0;
  color: var(--muted);
  max-width: 62ch;
  font-size: 1.12rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  margin-top: 1.7rem;
}

.repo-note {
  color: var(--faint);
  font-size: 0.85rem;
}

.repo-note a,
p.projects-more a {
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s var(--ease);
}

.repo-note a:hover,
p.projects-more a:hover {
  color: var(--text);
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.chip {
  padding: 0.28rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
}

.fact-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.fact-list li {
  padding: 0.85rem 1.2rem;
  background: var(--surface);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.92rem;
}

.fact-list li:first-child {
  border-top: 0;
}

.fact-list strong {
  color: var(--text);
  font-weight: 600;
}

.project-pagination {
  position: relative;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 4rem;
  padding-top: 1.8rem;
  border-top: 1px solid var(--line);
}

.project-pagination a {
  color: var(--muted);
  font-size: 0.95rem;
  transition: color 0.2s var(--ease);
}

.project-pagination a:hover {
  color: var(--text);
}

.project-pagination .dir {
  display: block;
  margin-bottom: 0.25rem;
  color: var(--faint);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.project-pagination .next {
  text-align: right;
}

.project-pagination .gh {
  position: absolute;
  left: 50%;
  top: 1.8rem;
  bottom: 0;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  color: var(--faint);
  font-size: 0.85rem;
}

/* ---------- Contact ---------- */
.contact {
  padding: 4rem 0 0;
  border-top: 1px solid var(--line);
}

.contact h2 {
  max-width: 11ch;
  font-size: 3.3rem;
  line-height: 1;
  font-weight: 600;
  letter-spacing: 0;
  margin: 0 0 1.1rem;
}

.contact p {
  color: var(--muted);
  max-width: 44ch;
  margin: 0 0 1.8rem;
}

.contact .button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 2.25rem 1.5rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  align-items: center;
  max-width: var(--maxw);
  margin: 0 auto;
  color: var(--faint);
  font-size: 0.85rem;
}

.footer-links {
  display: flex;
  gap: 1.4rem;
}

.footer-links a {
  color: var(--muted);
  transition: color 0.2s var(--ease);
}

.footer-links a:hover {
  color: var(--text);
}

/* ---------- Scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  * {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .card-grid {
    grid-template-columns: 1fr;
  }

  .card {
    min-height: auto;
  }
}

@media (max-width: 720px) {
  .nav {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.85rem;
  }

  .nav-links {
    width: 100%;
    gap: 0.9rem;
    justify-content: space-between;
    overflow-x: auto;
    padding-bottom: 0.1rem;
  }

  .card-section > p {
    font-size: 1rem;
  }

  .track-tag {
    display: none;
  }

  .contact h2 {
    font-size: 2.55rem;
  }
}

@media (max-width: 560px) {
  main {
    padding: 2.5rem 1rem 5rem;
  }

  .nav {
    padding-inline: 1rem;
  }

  .nav-links {
    justify-content: flex-start;
  }

  .nav-links a {
    font-size: 0.85rem;
  }

  .button {
    width: 100%;
    justify-content: center;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .sleeve {
    flex-basis: 138px;
  }

  .sleeve-art {
    width: 138px;
    height: 138px;
  }

  .sleeve::before {
    width: 130px;
    height: 130px;
  }

  .now-playing {
    padding-right: 3.9rem;
  }

  .site-footer {
    padding-bottom: 4.5rem;
  }
}
