/* Off the clock: Luvo Laska's tracks as a 3D disc carousel with one custom player
   (js/about-music.js). Stacked: title, full-width discs, then the player and track list
   centred below. Light and quiet; cobalt only marks what is playing and keyboard focus.
   Without WebGL the carousel hides and the player + list remain. */

.mu { background: var(--paper); padding: clamp(80px, 9vw, 150px) var(--pad) clamp(64px, 7vw, 120px); overflow-x: clip; }
.mu-head { text-align: center; max-width: 1100px; margin: 0 auto; }
.mu-eyebrow { font-size: var(--t-meta); font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 18px; }
.mu h2 { font-weight: 300; font-size: clamp(34px, 4.6vw, 68px); line-height: 1.04; letter-spacing: -.035em; text-wrap: balance; }

.mu-stage { display: none; position: relative; width: 100%; height: clamp(300px, 34vw, 520px); margin-top: clamp(-44px, -3vw, -14px); }
.mu.is-3d .mu-stage { display: block; }
.mu-stage:focus, .mu-stage:focus-visible { outline: none; }
/* Keyboard only (.kb is set on keydown, cleared on pointerdown): a soft rounded ring around the discs,
   inset so it never crosses the title (the stage's top blank is pulled up under it). */
.mu-stage.kb:focus-visible::after { content: ""; position: absolute; inset: clamp(14px, 3vw, 44px) 6px 6px; border: 2px solid var(--cobalt); border-radius: 28px; pointer-events: none; }
.mu-gl { position: absolute; inset: 0; touch-action: pan-y; user-select: none; -webkit-user-select: none; -webkit-tap-highlight-color: transparent;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 7%, #000 93%, transparent); mask-image: linear-gradient(to right, transparent, #000 7%, #000 93%, transparent); }
.mu-gl canvas { display: block; width: 100%; height: 100%; }
.mu-gl.is-hot { cursor: pointer; }
.mu-gl.is-grab { cursor: grabbing; }

.mu-below { max-width: 560px; margin: 0 auto; }
.mu-steps { display: flex; justify-content: center; gap: 12px; margin: 0 0 22px; }
.mu:not(.is-3d) .mu-steps { display: none; }
.mu-step {
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  background: var(--paper); box-shadow: 0 0 0 1px var(--hair); font-size: 17px; cursor: pointer; transition: background .25s, color .25s, box-shadow .25s;
}
.mu-step:hover { background: var(--ink); color: #fff; box-shadow: none; }

.mu-player { padding-top: 22px; border-top: 1px solid var(--hair); }
.mu:not(.is-3d) .mu-player { margin-top: 36px; }
.mu-now { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: center; gap: 4px 14px; }
.mu-now-title { font-size: clamp(20px, 1.8vw, 26px); font-weight: 500; letter-spacing: -.02em; }
.mu-now-artist { font-size: var(--t-meta); font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
/* Voice-note pill: round play button, the track's real waveform, elapsed time. */
.mu-pill {
  display: flex; align-items: center; gap: 12px; height: 56px; margin-top: 18px; padding: 0 20px 0 13px; border-radius: 999px;
  background: #f5f3ef; box-shadow: 0 0 0 1px rgba(0, 0, 0, .06), 0 6px 20px rgba(20, 20, 20, .05);
}
.mu-play {
  position: relative; flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  background: var(--ink); color: #fff; cursor: pointer; transition: transform .35s var(--pop), background .25s; touch-action: manipulation;
}
.mu-play::before { content: ""; position: absolute; inset: -9px; } /* 48px touch target */
.mu-play:hover { transform: scale(1.08); background: var(--cobalt); }
.mu-play svg { width: 14px; height: 14px; grid-area: 1 / 1; }
.mu-play .i-pause { display: none; }
.mu-play.is-on .i-play { display: none; }
.mu-play.is-on .i-pause { display: block; }
.mu-wave {
  flex: 1; min-width: 0; height: 100%; display: flex; align-items: center; justify-content: space-between; cursor: pointer;
  touch-action: pan-y; user-select: none; -webkit-user-select: none; border-radius: 10px;
}
.mu-wave i { flex: none; width: 2px; min-height: 3px; border-radius: 2px; background: #a7a39d; transition: background-color .15s; will-change: transform; }
.mu-wave i.on { background: var(--ink); }
.mu-wave:focus-visible { outline: 2px solid var(--cobalt); outline-offset: 2px; }
.mu-time { flex: none; min-width: 2.6em; text-align: right; font-size: 13px; font-weight: 500; font-variant-numeric: tabular-nums; color: var(--muted); }

.mu-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 24px; margin-top: 18px; font-size: 14px; font-weight: 500; }
.mu-links a { transition: color .25s; }
.mu-links a:hover, .mu-links a:focus-visible { color: var(--cobalt); }
.mu-links a:first-child { text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--hair); }

/* Track list: a quiet centred list, hairlines between rows only. */
.mu-tracks { list-style: none; margin: clamp(26px, 3vw, 40px) auto 0; padding: 0; }
.mu-tracks li + li { border-top: 1px solid var(--hair); }
.mu-row {
  width: 100%; display: grid; grid-template-columns: 40px 1fr auto; align-items: center; gap: 14px; text-align: left;
  padding: 8px 12px; border: 0; border-radius: 14px; background: transparent; cursor: pointer; font-size: 16px; font-weight: 500; letter-spacing: -.01em;
  transition: background-color .25s;
}
.mu-row img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 1px var(--hair); }
.mu-t { color: var(--ink); }
.mu-row small { margin-left: 8px; font-size: 12px; font-weight: 500; color: var(--muted); }
.mu-d { font-size: 13px; font-weight: 500; color: var(--muted); font-variant-numeric: tabular-nums; }
.mu-row:hover { background: rgba(20, 20, 20, .035); }
.mu-row.is-active { background: rgba(20, 20, 20, .055); }
.mu-eq { display: none; align-items: flex-end; gap: 2px; width: 16px; height: 14px; }
.mu-eq i { flex: 1; height: 100%; border-radius: 1px; background: var(--ink); transform-origin: bottom; animation: mu-eq 1s ease-in-out infinite; }
.mu-eq i:nth-child(2) { animation-delay: -.35s; animation-duration: .85s; }
.mu-eq i:nth-child(3) { animation-delay: -.7s; animation-duration: 1.15s; }
.mu-row.is-playing .mu-eq { display: flex; }
.mu-row.is-playing .mu-d, .mu-row.is-playing small { display: none; }
.mu-row:focus-visible { outline: 2px solid var(--cobalt); outline-offset: -2px; }
@keyframes mu-eq { 0%, 100% { transform: scaleY(.25); } 50% { transform: scaleY(1); } }

@media (max-width: 820px) {
  .mu { padding-inline: 20px; }
  .mu-wave i:nth-child(even) { display: none; }
  .mu-stage { height: min(90vw, 340px); margin-top: -18px; }
}
@media (prefers-reduced-motion: reduce) {
  .mu-play, .mu-row, .mu-wave i { transition: none; }
  .mu-eq i { animation: none; transform: scaleY(.6); }
}

/* More about me: the portrait, the About paragraphs and the experience list (copy as on the home page). */
.ex { background: var(--paper); padding: clamp(80px, 9vw, 150px) var(--pad) 0; }
.ex-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(28px, 6vw, 110px); max-width: 1500px; margin: 0 auto; align-items: start; }
.ex-photo { position: sticky; top: 96px; display: block; overflow: hidden; border-radius: var(--radius-in); background: var(--light); }
.ex-photo img { width: 100%; height: auto; aspect-ratio: 1091 / 1442; object-fit: cover; }
.ex-eyebrow { font-size: var(--t-meta); font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 22px; }
.ex-text p { font-size: clamp(19px, 1.6vw, 24px); font-weight: 300; line-height: 1.35; letter-spacing: -.01em; max-width: 34em; }
.ex-text p + p { margin-top: 1em; }
.ex-text .ex-eyebrow { font-size: var(--t-meta); font-weight: 500; line-height: 1.35; letter-spacing: .08em; max-width: none; }
.ex-lede { font-size: clamp(24px, 2.6vw, 38px) !important; line-height: 1.18 !important; letter-spacing: -.025em !important; font-weight: 400 !important; color: #0b0b0b; }
.ex-xp-title { margin-top: clamp(48px, 6vw, 90px); margin-bottom: 8px; }
.ex-xp { border-top: 1px solid var(--hair); }
.ex-row { display: grid; grid-template-columns: 1.1fr 1.5fr auto; gap: 8px 24px; padding: 16px 0; border-bottom: 1px solid var(--hair); font-size: clamp(16px, 1.3vw, 19px); font-weight: 500; letter-spacing: -.01em; }
.ex-row .role { color: var(--muted); font-weight: 400; }
.ex-row .yrs { color: var(--muted); font-variant-numeric: tabular-nums; text-align: right; }
.ex-cta { display: flex; flex-wrap: wrap; gap: 8px 28px; margin-top: 36px; font-size: 16px !important; font-weight: 500 !important; }
.ex-cta a { transition: color .25s; text-decoration: underline; text-underline-offset: 5px; text-decoration-color: var(--hair); }
.ex-cta a:hover { color: var(--cobalt); }
@media (max-width: 820px) {
  .ex-grid { grid-template-columns: 1fr; }
  .ex-photo { position: static; max-width: 360px; }
  .ex-row { grid-template-columns: 1fr auto; }
  .ex-row .role { grid-column: 1 / -1; grid-row: 2; }
}
.mu-gl { -webkit-mask-image: linear-gradient(to right, transparent, #000 7%, #000 93%, transparent); mask-image: linear-gradient(to right, transparent, #000 7%, #000 93%, transparent); }
