@font-face { font-family: "Silkscreen"; font-weight: 400; font-display: swap; src: url("../assets/fonts/silkscreen-400.woff2") format("woff2"); }
@font-face { font-family: "Silkscreen"; font-weight: 700; font-display: swap; src: url("../assets/fonts/silkscreen-700.woff2") format("woff2"); }

/* Pixel fonts distort at fractional sizes, so type uses whole-pixel steps
   per breakpoint while the layout itself stays fluid. */
:root {
  --fx: #ff0000;
  --muted: rgba(255,255,255,.55);
  --card: rgba(23,22,23,.2);
  --card-border: rgba(0,0,0,.3);
  --blur: 21px;
  --radius: 20px;
  --pill-radius: 12px;
  --wrap: min(1700px, calc(100vw - 32px));
  --gap: 14px;

  /* measured from the original profile */
  --fs-body: 16px;  --fs-small: 13px; --fs-tiny: 11px;
  --fs-h3: 28px;    --fs-title: 36px; --fs-name: 64px; --fs-proj: 30px;
  --ls: 0px;
}
@media (min-width: 1700px) { :root { --fs-name: 80px; --fs-proj: 34px; --gap: 18px; } }
@media (max-width: 1400px) { :root { --fs-proj: 26px; } }
@media (max-width: 1100px) { :root { --fs-body: 14px; --fs-small: 12px; --fs-tiny: 10px; --fs-h3: 24px; --fs-title: 30px; --fs-name: 52px; --fs-proj: 24px; } }
@media (max-width: 760px)  { :root { --fs-body: 12px; --fs-small: 11px; --fs-tiny: 9px; --fs-h3: 20px; --fs-title: 24px; --fs-name: 36px; --fs-proj: 20px; --gap: 12px; --radius: 16px; --wrap: calc(100vw - 24px); } }

*, *::before, *::after { box-sizing: border-box; }
html { background: #0b090a; }
body {
  margin: 0; color: #fff;
  font: 400 var(--fs-body)/1.6 "Silkscreen", ui-monospace, monospace;
  letter-spacing: var(--ls);
  font-synthesis: none;
  overflow-x: hidden;
  cursor: none;
}
body.locked { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button { font: inherit; letter-spacing: inherit; color: inherit; cursor: none; }
img { display: block; }
@media (hover: none), (pointer: coarse) { body, button, a { cursor: auto; } #cursor-dot { display: none; } }

/* ---------- background ---------- */
#bg {
  position: fixed; inset: 0; z-index: -1; overflow: hidden;
  transform: scale(1.22); filter: blur(10px) brightness(.35) saturate(1.3);
  transition: transform 2.8s cubic-bezier(.16,1,.3,1) .15s, filter 2.2s ease .15s;
}
body.entered #bg { transform: none; filter: none; }
#bg-img {
  position: absolute; inset: -4%;
  background: center / cover no-repeat;
  transform: translate3d(var(--px,0), var(--py,0), 0) scale(1.02);
  transition: transform .25s ease-out; will-change: transform;
}
#bg-shade { position: absolute; inset: 0; background: radial-gradient(ellipse at center, transparent 40%, rgba(0,0,0,.55) 100%); }

/* ---------- cursor ---------- */
#cursor-dot {
  position: fixed; left: 0; top: 0; z-index: 9999; pointer-events: none;
  width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%;
  background: var(--fx); box-shadow: 0 0 10px var(--fx), 0 0 22px var(--fx);
  transform: translate3d(-100px,-100px,0);
  transition: width .15s, height .15s, margin .15s;
}
#cursor-dot.hover { width: 26px; height: 26px; margin: -13px 0 0 -13px; background: transparent; border: 2px solid var(--fx); }

/* ---------- glass entrance ---------- */
#glass { position: fixed; inset: 0; z-index: 1000; outline: none; }
#glass canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
#glass.gone { display: none; }

/* ---------- fixed chrome ---------- */
.chrome-btn {
  position: fixed; z-index: 50; top: 16px; left: 16px; width: 48px; height: 48px;
  display: grid; place-items: center; border: 0; border-radius: 14px;
  background: rgba(40,36,40,.45); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  opacity: 0; transition: opacity .6s, transform .2s;
}
.chrome-btn:hover { transform: scale(1.06); }
.chrome-btn svg { width: 24px; height: 24px; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.chrome-btn .ic-off, .chrome-btn.muted .ic-on { display: none; }
.chrome-btn.muted .ic-off { display: block; }
.chrome-panel {
  position: fixed; z-index: 49; top: 16px; left: 72px; height: 48px; display: flex; align-items: center; padding: 0 14px;
  border-radius: 14px; background: rgba(40,36,40,.45); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  opacity: 0; pointer-events: none; transform: translateX(-8px); transition: opacity .25s, transform .25s;
}
#mute:hover + .chrome-panel, .chrome-panel:hover { opacity: 1; pointer-events: auto; transform: none; }
#volume { width: 130px; accent-color: #fff; cursor: none; }
#location {
  position: fixed; z-index: 50; left: 20px; bottom: 16px; display: flex; align-items: center; gap: 8px;
  font-size: var(--fs-small); opacity: 0; transition: opacity .6s; text-shadow: 0 0 8px rgba(255,255,255,.4);
}
#location svg { width: 14px; fill: #fff; }
#dots { position: fixed; z-index: 50; right: 14px; top: 50%; transform: translateY(-50%); display: flex; flex-direction: column; gap: 12px; opacity: 0; transition: opacity .6s; }
#dots button { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 50%; background: rgba(255,255,255,.35); transition: transform .25s, background .25s, box-shadow .25s; }
#dots button.active { background: #fff; transform: scale(1.5); box-shadow: 0 0 8px #fff; }
body.entered .chrome-btn, body.entered #location, body.entered #dots { opacity: 1; }

/* ---------- sections ---------- */
#profile { visibility: hidden; overflow-x: clip; }
body.entered #profile { visibility: visible; }
.section {
  min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center; gap: var(--gap);
  width: var(--wrap); margin: 0 auto; padding: 20px 0 8px;
}
.section.fixed { height: 100vh; height: 100svh; min-height: 0; padding-bottom: 44px; }
.section > * { flex: none; }
.section-head { margin: 0 0 4px; }
.section-title { margin: 0 0 0 0; font-size: var(--fs-title); font-weight: 700; line-height: 1.3; text-shadow: 0 0 14px rgba(255,255,255,.55); }
.section-sub { margin: 2px 0 0; color: var(--muted); font-size: var(--fs-small); }

.card {
  background: var(--card); border: 2px solid var(--card-border); border-radius: var(--radius);
  backdrop-filter: blur(var(--blur)) saturate(1.15); -webkit-backdrop-filter: blur(var(--blur)) saturate(1.15);
  box-shadow: 0 12px 40px rgba(0,0,0,.3);
}
/* scroll areas inside cards */
.scroll { overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.25) transparent; }
.scroll::-webkit-scrollbar { width: 6px; }
.scroll::-webkit-scrollbar-thumb { background: rgba(255,255,255,.25); border-radius: 6px; }
.scroll.more { -webkit-mask-image: linear-gradient(#000 calc(100% - 48px), transparent); mask-image: linear-gradient(#000 calc(100% - 48px), transparent); }

/* ---------- puzzle-piece entrance: pieces drop and snap into place ---------- */
.piece { opacity: 0; transform: translate3d(var(--fx-x, 0), var(--fx-y, -80px), 0) rotate(var(--fx-r, 0deg)) scale(.94); }
.piece.in {
  opacity: 1; transform: none;
  transition: transform .8s cubic-bezier(.2, 1.45, .4, 1) var(--d, 0ms), opacity .3s ease var(--d, 0ms);
}

/* ---------- pills ---------- */
.pill {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: var(--pill-radius);
  background: rgba(30,28,30,.55); border: 1px solid rgba(255,255,255,.09);
  font-size: var(--fs-small); font-weight: 700; white-space: nowrap;
  transition: background .2s, transform .2s, border-color .2s;
}
.pill:hover { background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.2); }
.pill .ti { width: 14px; height: 14px; filter: brightness(0) invert(1); }
.pill .dot, .dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #fff; box-shadow: 0 0 6px #fff; }
.pills { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---------- hero ---------- */
.hero { align-items: center; text-align: center; position: relative; }
.hero .name {
  margin: 0; font-size: var(--fs-name); font-weight: 700; line-height: 1.1;
  background: linear-gradient(90deg, #e6edf7, #858181, #e6edf7); background-size: 200% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 10px rgba(255,255,255,.65)) drop-shadow(0 0 22px rgba(255,255,255,.25));
  animation: sheen 6s linear infinite;
}
@keyframes sheen { to { background-position: -200% 0; } }
.typewriter { min-height: 1.7em; font-size: calc(var(--fs-body) + 4px); text-shadow: 0 0 10px rgba(255,255,255,.5); }
.typewriter .caret { animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.socials { display: flex; gap: 26px; justify-content: center; margin-top: 18px; }
.socials a { width: 40px; height: 40px; display: grid; place-items: center; }
.socials a > span { display: block; width: 100%; height: 100%; transition: transform .25s; }
.socials a:hover > span { transform: translateY(-4px) scale(1.12); }
.socials svg { width: 100%; height: 100%; fill: #fff; filter: drop-shadow(0 0 6px rgba(255,255,255,.85)); }
.scroll-hint { position: absolute; bottom: 40px; left: 50%; transform: translateX(-50%); font-size: var(--fs-tiny); text-align: center; border: 0; background: none; padding: 0; }
.scroll-hint span { display: block; margin-top: 4px; font-size: 16px; animation: bob 1.6s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(6px); } }

/* ---------- markdown text ---------- */
.md { line-height: 1.6; }
.md h3 { margin: 0 0 1em; font-size: var(--fs-h3); font-weight: 700; line-height: 1.6; text-shadow: 0 0 10px rgba(255,255,255,.45); }
.md h3:not(:first-child) { margin-top: 1.4em; }
.md p { margin: 0 0 .5em; }
.md .gap { height: 1.1em; }
.md strong { font-weight: 700; text-shadow: 0 0 8px rgba(255,255,255,.55); }

/* ---------- whoami ---------- */
.skills-card, .ach { flex: 0 1 auto; min-height: 0; display: flex; }
.about-text { padding: 28px; }
.about-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: var(--gap); }
.pcard { position: relative; display: flex; align-items: center; gap: 14px; padding: 10px; border-radius: 16px; transition: transform .25s; }
.pcard:hover { transform: translateY(-3px); }
.pcard .av { width: 70px; height: 70px; border-radius: 14px; object-fit: cover; flex: none; background: #111; }
.pcard .who { min-width: 0; }
.pcard .nm { font-size: calc(var(--fs-body) + 2px); font-weight: 700; line-height: 1.3; }
.pcard .stats { display: flex; flex-wrap: wrap; gap: 4px 14px; margin: 2px 0 6px; color: var(--muted); font-size: var(--fs-tiny); }
.pcard .stats span { display: inline-flex; align-items: center; gap: 5px; }
.pcard .stats svg { width: 13px; fill: currentColor; }
.pcard .stats b { font-weight: 400; font-variant-numeric: tabular-nums; }
.pcard.live .stats span:first-child::before { content: ""; width: 6px; height: 6px; margin-right: 2px; border-radius: 50%; background: #2bd46a; box-shadow: 0 0 6px #2bd46a; animation: livepulse 2s ease-in-out infinite; }
@keyframes livepulse { 50% { opacity: .35; } }
.pcard .stats .newvid {
  padding: 0 7px; border-radius: 6px; background: #ff1a3c; color: #fff; font-weight: 700; line-height: 1.6;
  box-shadow: 0 0 10px rgba(255,26,60,.75); animation: newvid 1.6s ease-in-out infinite;
}
.pcard .stats .newvid[hidden] { display: none; }
.pcard .stats .newvid:hover { background: #ff3d5a; }
@keyframes newvid { 50% { box-shadow: 0 0 2px rgba(255,26,60,.3); } }
.pcard .btn { display: inline-block; padding: 2px 10px; border-radius: 6px; font-size: var(--fs-tiny); font-weight: 700; line-height: 1.6; }
.pcard .btn.gh { background: #1e9e4f; }
.pcard .btn.yt { background: #ff1a3c; }
.pcard .corner { position: absolute; top: 9px; right: 14px; display: flex; align-items: center; gap: 5px; color: rgba(255,255,255,.35); font-size: var(--fs-tiny); }
.pcard .corner svg { width: 12px; fill: currentColor; }

/* ---------- skills ---------- */
.skills { flex: 1; min-height: 0; padding: 26px 30px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 30px 36px; align-content: start; }
.skills h4 { margin: 0 0 12px; font-size: var(--fs-body); font-weight: 700; color: rgba(255,255,255,.5); }
.skills .pill { background: rgba(255,255,255,.13); border-color: rgba(255,255,255,.12); border-radius: 14px; }

/* ---------- projects: automatic puzzle grid ---------- */
.proj-wrap { flex: 1 1 auto; min-height: 0; position: relative; }
.rows { height: 100%; display: flex; flex-direction: column; gap: var(--gap); }
.row { flex: 1 1 0; min-height: 0; display: grid; grid-template-columns: repeat(var(--cols, 1), minmax(0, 1fr)); gap: var(--gap); }
.rows.rolodex { overflow-y: auto; scroll-snap-type: y mandatory; scrollbar-width: none; perspective: 1600px; padding: 2px 0; }
.rows.rolodex::-webkit-scrollbar { display: none; }
.rows.rolodex .row { flex: none; height: calc((100% - var(--gap)) / 2); scroll-snap-align: start; transform-origin: center center; will-change: transform; }
.rolo-hint { position: absolute; right: 0; bottom: -26px; font-size: var(--fs-tiny); color: var(--muted); transition: opacity .3s; }
.project {
  position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end;
  min-height: 150px; padding: 26px 32px; border-radius: 16px; border: 1px solid rgba(255,255,255,.14); isolation: isolate;
  background: #0d0b0c; box-shadow: 0 10px 30px rgba(0,0,0,.35);
}
.project img.cover { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .9s cubic-bezier(.2,.8,.2,1), filter .5s; }
.project::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(0,0,0,.05) 25%, rgba(0,0,0,.55) 70%, rgba(0,0,0,.8)); transition: opacity .4s; }
.project:hover img.cover { transform: scale(1.05); filter: brightness(1.1); }
.project:hover::after { opacity: .8; }
.project .ptags { position: absolute; top: 12px; left: 12px; display: flex; gap: 6px; }
.project .ptags .pill { background: rgba(22,20,22,.78); border-color: rgba(255,255,255,.12); font-size: var(--fs-tiny); padding: 4px 10px; gap: 6px; }
.project .ptags .ti { width: 12px; height: 12px; }
.project h3 { margin: 0; font-size: var(--fs-proj); font-weight: 700; line-height: 1.3; text-shadow: 0 2px 10px rgba(0,0,0,.9), 0 0 16px rgba(255,255,255,.35); }
.project p { margin: 8px 0 0; font-size: var(--fs-small); color: rgba(255,255,255,.72); line-height: 1.7; text-shadow: 0 1px 6px rgba(0,0,0,.9); max-width: 60ch; }

/* ---------- achievements ---------- */
.ach .scroll { padding: 30px 30px 26px; flex: 1; min-height: 0; }
.ach ul { margin: 0 0 6px; padding-left: 1.4em; }
.ach li { margin: 2px 0; font-size: var(--fs-small); }
.ach li::marker { color: rgba(255,255,255,.8); }

/* ---------- player + lyrics ---------- */
.player { flex: 1 1 auto; min-height: 0; max-height: 640px; display: grid; grid-template-columns: minmax(240px, 34%) 1fr; overflow: hidden; }
.deck { display: flex; flex-direction: column; justify-content: center; gap: 18px; padding: 32px; border-right: 1px solid rgba(255,255,255,.07); }
.cover-art {
  position: relative; width: 100%; max-width: 280px; aspect-ratio: 1; margin: 0 auto; border-radius: 18px; overflow: hidden;
  background: radial-gradient(circle at 30% 25%, #5a1d22, #1a1214 70%); display: grid; place-items: center;
  box-shadow: 0 18px 50px rgba(0,0,0,.5), 0 0 40px color-mix(in srgb, var(--fx) 25%, transparent);
  transition: transform .5s cubic-bezier(.2,.8,.2,1);
}
.playing-now .cover-art { transform: scale(1.02); }
.cover-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cover-art > svg { width: 38%; fill: rgba(255,255,255,.9); filter: drop-shadow(0 0 12px rgba(255,255,255,.4)); }
.eq { position: absolute; right: 12px; bottom: 12px; display: flex; align-items: flex-end; gap: 3px; height: 18px; opacity: 0; transition: opacity .3s; }
.eq i { width: 4px; height: 30%; background: #fff; border-radius: 2px; animation: eq 1s ease-in-out infinite; }
.eq i:nth-child(2) { animation-delay: -.3s; } .eq i:nth-child(3) { animation-delay: -.6s; } .eq i:nth-child(4) { animation-delay: -.15s; }
@keyframes eq { 50% { height: 100%; } }
.playing-now .eq { opacity: 1; }
/* YouTube songs: the video plays in the cover square (YouTube requires the player to stay visible, min 200px) */
.yt-slot { display: none; position: absolute; inset: 0; background: #000; }
.yt-slot iframe, .yt-slot > div { width: 100%; height: 100%; border: 0; display: block; }
.cover-art.yt { min-width: 200px; background: #000; }
.cover-art.yt .yt-slot { display: block; }
.cover-art.yt > svg, .cover-art.yt .eq { display: none; }

/* shuffle + playlist buttons */
.deck-extra { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; }
.chip {
  display: inline-flex; align-items: center; gap: 7px; padding: 5px 12px; border-radius: 10px;
  border: 1px solid rgba(255,255,255,.12); background: rgba(255,255,255,.06);
  font-size: var(--fs-tiny); color: rgba(255,255,255,.7); transition: background .2s, color .2s, border-color .2s;
}
.chip svg { width: 14px; height: 14px; fill: currentColor; }
.chip:hover { background: rgba(255,255,255,.14); color: #fff; }
.chip.on { color: #fff; border-color: color-mix(in srgb, var(--fx) 70%, transparent); box-shadow: 0 0 10px color-mix(in srgb, var(--fx) 40%, transparent); }

/* slide-out playlist over the lyrics */
.player { position: relative; overflow: clip; }   /* clip = can't be scrolled sideways by focus/scrolling, so the closed playlist stays hidden */
.playlist {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(440px, 64%); z-index: 3;
  display: flex; flex-direction: column;
  background: rgba(14,12,14,.82); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  border-left: 1px solid rgba(255,255,255,.08);
  transform: translateX(102%); transition: transform .45s cubic-bezier(.2,.9,.25,1);
}
.playlist.open { transform: none; box-shadow: -20px 0 40px rgba(0,0,0,.35); }
.pl-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 22px 10px; font-size: var(--fs-small); color: var(--muted); }
.pl-head button { border: 0; background: none; font-size: 22px; line-height: 1; color: rgba(255,255,255,.6); }
.pl-head button:hover { color: #fff; }
.pl-items { list-style: none; margin: 0; padding: 4px 12px 16px; flex: 1; min-height: 0; }
.pl-item {
  width: 100%; display: grid; grid-template-columns: 26px 1fr auto; align-items: center; gap: 12px;
  padding: 10px 12px; border: 0; border-radius: 12px; background: none; text-align: left; transition: background .2s;
}
.pl-item:hover { background: rgba(255,255,255,.07); }
.pl-item.current { background: rgba(255,255,255,.1); }
.pl-num { grid-column: 1; grid-row: 1; text-align: center; color: var(--muted); font-size: var(--fs-small); }
.pl-eq { grid-column: 1; grid-row: 1; display: none; justify-content: center; align-items: flex-end; gap: 2px; height: 14px; }
.pl-eq i { width: 3px; height: 30%; background: var(--fx); border-radius: 2px; animation: eq 1s ease-in-out infinite; }
.pl-eq i:nth-child(2) { animation-delay: -.35s; } .pl-eq i:nth-child(3) { animation-delay: -.7s; }
.pl-item.current .pl-num { display: none; }
.pl-item.current .pl-eq { display: flex; }
.player:not(.playing-now) .pl-eq i { animation-play-state: paused; }
.pl-txt { min-width: 0; }
.pl-txt b { display: block; font-size: var(--fs-small); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pl-item.current .pl-txt b { text-shadow: 0 0 8px rgba(255,255,255,.6); }
.pl-txt small { display: block; color: var(--muted); font-size: var(--fs-tiny); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pl-loading { padding: 14px 12px; color: var(--muted); font-size: var(--fs-small); }
.pl-src svg { width: 16px; height: 16px; fill: rgba(255,255,255,.45); }
.track-info { text-align: center; }
.track-info b { display: block; font-size: calc(var(--fs-body) + 6px); line-height: 1.3; text-shadow: 0 0 10px rgba(255,255,255,.5); }
.track-info small { display: block; margin-top: 4px; color: var(--muted); font-size: var(--fs-small); }
.timeline { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; font-size: var(--fs-tiny); color: var(--muted); }
.bar { position: relative; height: 16px; display: flex; align-items: center; cursor: none; }
.bar::before { content: ""; position: absolute; left: 0; right: 0; height: 5px; border-radius: 5px; background: rgba(255,255,255,.18); }
.bar .fill { position: absolute; left: 0; height: 5px; width: 0; border-radius: 5px; background: #fff; box-shadow: 0 0 10px rgba(255,255,255,.6); }
.bar .knob { position: absolute; left: 0; width: 13px; height: 13px; margin-left: -6px; border-radius: 50%; background: #fff; box-shadow: 0 0 10px rgba(255,255,255,.8); transform: scale(0); transition: transform .15s; }
.bar:hover .knob { transform: scale(1); }
.controls { display: flex; align-items: center; justify-content: center; gap: 18px; }
.controls button { border: 0; background: none; display: grid; place-items: center; border-radius: 50%; transition: transform .15s, background .2s; }
.controls button:active { transform: scale(.92); }
.controls .sm { width: 40px; height: 40px; }
.controls .sm:hover { background: rgba(255,255,255,.1); }
.controls .sm svg { width: 20px; fill: #fff; }
.controls .big { width: 58px; height: 58px; background: #fff; box-shadow: 0 0 24px rgba(255,255,255,.35); }
.controls .big:hover { transform: scale(1.06); }
.controls .big svg { width: 24px; fill: #111; }
.controls .ic-pause, .controls .playing .ic-play { display: none; }
.controls .playing .ic-pause { display: block; }

.lyrics { position: relative; min-height: 0; overflow: hidden;
  -webkit-mask-image: linear-gradient(transparent, #000 22%, #000 78%, transparent); mask-image: linear-gradient(transparent, #000 22%, #000 78%, transparent); }
.lyrics-inner { position: absolute; left: 0; right: 0; top: 0; padding: 0 48px; transition: transform .7s cubic-bezier(.2,.8,.2,1); }
.lyrics .line {
  margin: 0; padding: 10px 0; font-size: calc(var(--fs-body) + 4px); font-weight: 700; line-height: 1.5;
  color: rgba(255,255,255,.22); transform-origin: left center; cursor: none;
  transition: color .4s, transform .4s cubic-bezier(.2,.8,.2,1), filter .4s, opacity .4s; filter: blur(1px);
}
.lyrics .line:hover { color: rgba(255,255,255,.5); }
.lyrics .line.near { color: rgba(255,255,255,.45); filter: none; }
.lyrics .line.active {
  filter: none; transform: scale(1.08);
  background: linear-gradient(90deg, #fff calc(var(--p, 0) * 100%), rgba(255,255,255,.45) calc(var(--p, 0) * 100% + 6%));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  text-shadow: none; filter: drop-shadow(0 0 10px rgba(255,255,255,.45));
}
.lyrics .note { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 2rem; color: var(--muted); font-size: var(--fs-small); line-height: 1.9; }

/* ---------- small screens: natural scrolling, single column ---------- */
@media (max-width: 760px), (pointer: coarse) {
  .section, .section.fixed { height: auto; min-height: 100svh; padding: 76px 0 48px; }
  html { scroll-snap-type: y proximity; }
  .section { scroll-snap-align: start; }
  .rows, .rows.rolodex { height: auto; overflow: visible; perspective: none; }
  .row, .rows.rolodex .row { display: flex; flex-direction: column; height: auto; flex: none; transform: none !important; }
  .project { aspect-ratio: 16 / 10; min-height: 0; padding: 18px; }
  .rolo-hint { display: none; }
  .ach .scroll { max-height: 70svh; }
  .player { grid-template-columns: 1fr; max-height: none; }
  .deck { border-right: 0; border-bottom: 1px solid rgba(255,255,255,.07); padding: 22px; }
  .cover-art { max-width: 160px; }
  .lyrics { height: 46svh; }
  .lyrics-inner { padding: 0 22px; }
  .playlist { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .piece, .piece.in { opacity: 1; transform: none; transition: none; }
  .hero .name { animation: none; }
}

/* pictures can't be dragged out or text-selected */
img { -webkit-user-drag: none; user-select: none; -webkit-touch-callout: none; }
