/* ═════════ Musionic — the studio music folder, shared by every page (moved from Services, 2026-10-06) ═════════
   One player for the whole site. Once music plays, page changes happen inside a full-screen frame (see music.js) so the
   song never stops or restarts; inside that frame each page hides its own copy of the folder. */
.mf, .mf * { box-sizing: border-box; }
.mf ul { list-style: none; margin: 0; padding: 0; }
.mf button { font: inherit; border: 0; padding: 0; cursor: pointer; }
.mf { font-family: 'Funnel Display', system-ui, sans-serif; color: #0A0A0B; }
[data-shell] .mf { display: none !important; }
html.mus-shell .mf { z-index: 9900; }
.mus-frame { position: fixed; inset: 0; width: 100%; height: 100%; border: 0; z-index: 9000; background: #000; display: block; opacity: 0; transition: opacity .38s ease; }
.mus-frame.ready { opacity: 1; }
html.mus-shell, html.mus-shell body { overflow: hidden !important; height: 100%; }
html.mus-shell body > *:not(.mf):not(.mus-frame):not(.mt):not(script):not(style) { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
/* ═════════ MUSIC FOLDER (bottom right) ═════════ */
.mf { position: fixed; right: clamp(12px, 1.6vw, 22px); bottom: clamp(12px, 1.6vw, 22px); z-index: 900; transition: opacity .7s ease .5s, transform .9s cubic-bezier(.22,1,.36,1) .5s; }
.mf-in { position: relative; width: 92px; height: 74px; transition: width .55s cubic-bezier(.22,1,.36,1), height .55s cubic-bezier(.22,1,.36,1); }
.mf.open .mf-in { width: 318px; height: 324px; }   /* +32px for the volume slider (2026-10-09) */
.mf-back { position: absolute; left: 0; right: 0; bottom: 0; height: 84%; border-radius: 18px; background: rgba(214,219,228,.96); box-shadow: 0 10px 30px rgba(20,30,60,.2); }
.mf-back::before { content: ""; position: absolute; left: 0; top: -12%; width: 46%; height: 30%; border-radius: 14px 14px 0 0; background: inherit; }
.mf-covers { position: absolute; left: 50%; bottom: 36%; width: 0; height: 0; }
.cv { position: absolute; left: -45px; bottom: 0; width: 90px; aspect-ratio: 3 / 4; border-radius: 12px; overflow: hidden; border: 4px solid #fff; box-shadow: 0 8px 20px rgba(10,20,50,.25); transform: scale(.34); transform-origin: 50% 100%; transition: transform .55s cubic-bezier(.22,1,.36,1), box-shadow .3s ease; background: #cfd6e2; }
.cv img { width: 100%; height: 100%; object-fit: cover; }
.cv span { position: absolute; left: 6px; right: 6px; top: 7px; color: #fff; font: 400 .72rem/1 'Instrument Serif', Georgia, serif; letter-spacing: .12em; text-transform: uppercase; text-shadow: 0 1px 6px rgba(0,0,0,.5); text-align: center; }
.cv1 { z-index: 1; } .cv2 { z-index: 2; } .cv3 { z-index: 1; }
.mf:not(.open) .cv1 { transform: translate(-12px, 2px) rotate(-12deg) scale(.34); }
.mf:not(.open) .cv3 { transform: translate(12px, 2px) rotate(12deg) scale(.34); }
.mf.open .cv1 { transform: translate(-92px, -6px) rotate(-12deg); }
.mf.open .cv2 { transform: translate(0, -30px); }
.mf.open .cv3 { transform: translate(92px, -6px) rotate(12deg); }
.mf.open .cv:hover { box-shadow: 0 16px 34px rgba(10,20,50,.35); }
.mf.open .cv1:hover { transform: translate(-96px, -18px) rotate(-14deg); } .mf.open .cv2:hover { transform: translate(0, -44px); } .mf.open .cv3:hover { transform: translate(96px, -18px) rotate(14deg); }
.cv.on { border-color: #C8FF2E; }
.mf-front { position: absolute; left: 0; right: 0; bottom: 0; height: 64%; border-radius: 18px; background: linear-gradient(180deg, rgba(255,255,255,.94), rgba(238,241,246,.98)); border: 1px solid rgba(255,255,255,.85); box-shadow: 0 18px 40px rgba(20,30,60,.2), inset 0 1px 0 #fff; z-index: 3; }
.mf-front::before { content: ""; position: absolute; right: -1px; top: -16%; width: 56%; height: 34%; border-radius: 16px 18px 0 0; background: rgba(255,255,255,.94); border: 1px solid rgba(255,255,255,.85); border-bottom: 0; clip-path: inset(0 0 42% 0); }
.mf-list { position: absolute; left: 18px; top: 16px; right: 86px; display: grid; gap: 6px; opacity: 0; transform: translateY(6px); transition: opacity .25s ease, transform .35s cubic-bezier(.22,1,.36,1); pointer-events: none; }
.mf-list li { display: grid; cursor: pointer; }
.mf-list b { font-size: .86rem; font-weight: 700; line-height: 1.1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mf-list span { font-size: .72rem; color: rgba(10,10,11,.5); }
.mf-list li.on b { color: #0066FF; }
.mf-ctl { position: absolute; left: 14px; bottom: 12px; display: flex; gap: 6px; opacity: 0; transition: opacity .25s ease; pointer-events: none; }
.mf.open .mf-list, .mf.open .mf-ctl, .mf.open .mf-vol { opacity: 1; transform: none; pointer-events: auto; transition-delay: .18s; }
.mb { width: 32px; height: 32px; border-radius: 50%; background: #0A0A0B; color: #fff; display: grid; place-items: center; transition: background-color .2s ease, transform .2s ease; }
.mb:hover { background: #0066FF; transform: translateY(-2px); }
.mb svg { width: 15px; height: 15px; fill: currentColor; stroke: currentColor; stroke-width: 0; }
.mb svg .w { stroke-width: 1.8; fill: none; }
.mb .off { display: none; } .mb[aria-pressed="true"] .on { display: none; } .mb[aria-pressed="true"] .off { display: block; }
.mf.playing .mb[data-a="play"] { background: #0066FF; }
.mf-note { position: absolute; right: 9px; bottom: 9px; width: 34px; height: 34px; border-radius: 50%; background: #0A0A0B; color: #fff; display: grid; place-items: center; transition: width .5s cubic-bezier(.22,1,.36,1), height .5s cubic-bezier(.22,1,.36,1), right .5s cubic-bezier(.22,1,.36,1), bottom .5s cubic-bezier(.22,1,.36,1), background-color .2s ease; }
.mf.open .mf-note { width: 58px; height: 58px; right: 14px; bottom: 14px; }
.mf-note svg { width: 48%; height: 48%; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.mf-note svg circle { fill: currentColor; }
.eq { position: absolute; right: -3px; top: -3px; display: none; gap: 2px; align-items: flex-end; height: 14px; padding: 3px; border-radius: 6px; background: #C8FF2E; }
.eq b { width: 2.5px; height: 100%; background: #0A0A0B; animation: eq .8s ease-in-out infinite; transform-origin: bottom; }
.eq b:nth-child(2) { animation-delay: -.3s; } .eq b:nth-child(3) { animation-delay: -.55s; }
@keyframes eq { 50% { transform: scaleY(.3); } }
.mf.playing .eq { display: flex; }
.mf.nudge .mf-note { animation: nudge 1.4s ease-in-out 3; }
@keyframes nudge { 50% { box-shadow: 0 0 0 10px rgba(0,102,255,.25); transform: scale(1.08); } }

/* volume (2026-10-09): a slider above the buttons */
.mf-vol { position: absolute; left: 16px; right: 86px; bottom: 52px; display: flex; align-items: center; gap: 7px; opacity: 0; transition: opacity .25s ease; pointer-events: none; }
.mf.open .mf-vol { pointer-events: auto; }
.mf-vol svg { width: 14px; height: 14px; flex: none; fill: #0A0A0B; }
.mf-vol input { -webkit-appearance: none; appearance: none; flex: 1; min-width: 0; height: 18px; background: none; cursor: pointer; --v: 70%; }
.mf-vol input::-webkit-slider-runnable-track { height: 3px; border-radius: 3px; background: linear-gradient(90deg, #0066FF var(--v), rgba(10,10,11,.18) var(--v)); }
.mf-vol input::-moz-range-track { height: 3px; border-radius: 3px; background: rgba(10,10,11,.18); }
.mf-vol input::-moz-range-progress { height: 3px; background: #0066FF; }
.mf-vol input::-webkit-slider-thumb { -webkit-appearance: none; width: 12px; height: 12px; margin-top: -4.5px; border-radius: 50%; background: #0A0A0B; border: 0; }
.mf-vol input::-moz-range-thumb { width: 12px; height: 12px; border-radius: 50%; background: #0A0A0B; border: 0; }
.mf-vol input:focus-visible { outline: 2px solid #0066FF; outline-offset: 2px; border-radius: 4px; }
@media (max-width: 760px) {
  .mf.open .mf-in { width: min(318px, calc(100vw - 24px)); }
  .mf-in { width: 74px; height: 60px; }
  .mf-note { width: 30px; height: 30px; right: 7px; bottom: 7px; }
}
@media (prefers-reduced-motion: reduce) { .mf .eq b { animation: none; } }

/* the "sound" hint (2026-10-29): browsers keep a site silent until the first click or tap, so a small pill above the
   folder says so; it goes the moment the music starts (or after 12 s) */
.mf-hint { position: fixed; z-index: 901; right: calc(clamp(12px, 1.6vw, 22px) + 102px); bottom: calc(clamp(12px, 1.6vw, 22px) + 10px); display: inline-flex; white-space: nowrap; align-items: center; gap: .5rem;
  padding: .55rem .9rem; border: 0; border-radius: 999px; background: #0A0A0B; color: #fff; font: 600 .78rem/1 'Funnel Display', system-ui, sans-serif; letter-spacing: .01em;
  box-shadow: 0 10px 28px rgba(0,0,0,.28), 0 0 0 1px rgba(255,255,255,.08); cursor: pointer; opacity: 0; transform: translateX(10px); pointer-events: none;
  transition: opacity .45s ease, transform .55s cubic-bezier(.22,1,.36,1); }
.mf-hint.on { opacity: 1; transform: none; pointer-events: auto; }
.mf-hint i { width: 8px; height: 8px; border-radius: 50%; background: #C8FF2E; box-shadow: 0 0 0 0 rgba(200,255,46,.6); animation: mfHint 1.6s ease-out infinite; }
@keyframes mfHint { 70% { box-shadow: 0 0 0 8px rgba(200,255,46,0); } 100% { box-shadow: 0 0 0 0 rgba(200,255,46,0); } }
html.mus-shell .mf-hint { display: none; }
@media (prefers-reduced-motion: reduce) { .mf-hint i { animation: none; } }
