/* Lost in Cosmos: the main-page music story, separate from the studio world. */
.sound-section{--music-ink:1;--setup-ink:1;position:relative;isolation:isolate;padding:100px max(5vw,24px) 65px;background:radial-gradient(ellipse at 78% 33%,#c4dfee77,transparent 55%),linear-gradient(170deg,#dceefa,#e2edf4 65%,#d8eaf4);border-top:1px solid #8cacc629;scroll-margin-top:20px}.sound-hero,.sound-stories{max-width:1280px;margin:auto;display:grid;grid-template-columns:.9fr 1.25fr;gap:7vw;position:relative;z-index:2}.sound-eyebrow{font:8px/1.9 'SFMono-Regular',Consolas,monospace;letter-spacing:1.4px;color:#6c8da5}.sound-intro{padding-top:18px}.sound-intro h2{font-weight:400;font-size:clamp(65px,7.5vw,112px);line-height:.98;letter-spacing:-4px;margin:28px 0}.sound-intro h2 em{font-style:normal;color:#739fba}.sound-lead{font-size:21px;line-height:1.5;color:#557a94;margin:30px 0 21px;letter-spacing:-.5px}.sound-story{font-size:14px;line-height:1.9;max-width:370px;color:#618399;margin-bottom:17px}.sound-room-link{display:inline-flex;align-items:center;gap:24px;border-bottom:1px solid #8cacc670;padding:10px 0;margin-top:10px;font-size:12px;color:#456d87}.sound-room-link span{font-size:18px}
.sound-player{position:relative;min-width:0;padding:124px 38px 54px}.sound-frame{position:absolute;inset:0;width:100%;height:100%;overflow:visible;pointer-events:none}.sound-drawn{fill:none;stroke:#6997b4;stroke-width:1.15;stroke-linecap:round}.sound-drawn path{stroke-dasharray:1;stroke-dashoffset:calc(1 - clamp(0,(var(--music-ink) - .18) / .82,1))}.sound-drawn .sound-wave{stroke:#527f9d;stroke-width:1.6;stroke-dashoffset:calc(1 - clamp(0,(var(--music-ink) - .28) / .72,1))}.sound-drawn .sound-rule{stroke:#8db0c5;stroke-width:.7}.sound-player-points{fill:#729bb6;opacity:var(--music-ink)}.sound-player-heading{display:flex;justify-content:space-between;gap:15px;position:relative;margin-bottom:17px;align-items:center;font:8px/1.8 'SFMono-Regular',Consolas,monospace;letter-spacing:1px;color:#6c8da5}.sound-player-heading a{font:10px Avenir,sans-serif;letter-spacing:0}.sound-player iframe{position:relative;display:block;width:100%;height:352px;border:0;border-radius:10px;background:#54758a;box-shadow:0 12px 35px #50748d17}.sound-player-note{position:relative;line-height:1.6;font-size:10px;color:#7898ac;margin-top:17px}
.sound-stories{grid-template-columns:1.25fr .75fr;gap:9vw;margin-top:85px}.sound-stories h3{font-size:clamp(28px,3vw,40px);font-weight:400;letter-spacing:-1.1px;line-height:1.2;margin:16px 0 20px}.sound-loop-art{display:block;width:100%;max-width:620px;margin:6px 0 16px}.sound-loop-drawn{stroke:#85a9bf;stroke-width:1.4}.sound-loop-drawn path{stroke-dasharray:1;stroke-dashoffset:calc(1 - var(--setup-ink))}.setup-cable{stroke:#a2bbc8;stroke-width:1}.sound-setup[data-gear=strings] .setup-strings,.sound-setup[data-gear=looping] .setup-looper,.sound-setup[data-gear=synthesizer] .setup-synthesizer{stroke:#4e7b99;stroke-width:1.9}.sound-gear-controls{display:flex;flex-wrap:wrap;gap:9px;margin-bottom:21px}.sound-gear-controls button{border:1px solid #8cacc655;border-radius:25px;background:transparent;padding:10px 15px;font-size:10px;min-height:40px;color:#64849a}.sound-gear-controls button[aria-pressed=true]{background:#527990;border-color:#527990;color:#edf6fc}.sound-gear-copy{max-width:480px;min-height:110px}.sound-gear-copy h4{font-size:16px;font-weight:400;letter-spacing:-.2px;margin:0 0 10px}.sound-gear-copy p{font-size:12px;line-height:1.9;color:#65859a}.sound-gear-copy a{display:inline-block;font-size:11px;color:#50728a;border-bottom:1px solid #92afc450;padding:5px 0;margin-top:12px}.sound-live{padding-left:30px;border-left:1px solid #8cacc63d}.sound-gig{border-top:1px solid #8cacc63d;padding-top:22px;margin-top:25px}.sound-gig-label{font:8px 'SFMono-Regular',Consolas,monospace;letter-spacing:1px;color:#7897ac}.sound-gig-date{font-size:27px;line-height:1.2;letter-spacing:-.6px;color:#648ca6;margin:17px 0}.sound-gig-date>span{font-size:70px;font-weight:300;letter-spacing:-3px;margin-right:9px}.sound-gig-date small{font-size:16px;letter-spacing:0}.sound-gig h4{font-size:23px;font-weight:400;letter-spacing:-.5px;margin:18px 0 7px}.sound-gig>p:not(.sound-gig-date):not(.sound-gig-label){font-size:12px;color:#7897ac}.sound-gig>a{display:inline-flex;gap:28px;font-size:11px;color:#527a95;padding:10px 0;margin-top:12px;border-bottom:1px solid #8cacc670}.sound-live-note{font-size:11px;line-height:1.9;color:#7897ac;max-width:260px;margin-top:25px}
@media(max-width:1050px){.sound-hero{gap:4vw;grid-template-columns:.9fr 1.2fr}.sound-intro h2{font-size:76px}.sound-player{padding-left:27px;padding-right:27px}.sound-stories{gap:5vw}.portfolio-nav{gap:20px}}
@media(max-width:760px){.sound-section{padding-top:70px;padding-bottom:45px}.sound-hero,.sound-stories{grid-template-columns:1fr;gap:32px}.sound-intro h2{font-size:clamp(64px,15vw,95px)}.sound-intro{padding-top:0}.sound-story{max-width:460px;font-size:13px}.sound-lead{font-size:20px}.sound-player{padding-top:108px;max-width:580px;width:100%}.sound-stories{margin-top:55px;gap:43px}.sound-live{padding-left:0;border-left:0;border-top:1px solid #8cacc63d;padding-top:30px}.sound-live h3 br{display:none}.sound-gig-date>span{font-size:62px}.sound-gear-copy{min-height:100px}.portfolio-nav{gap:14px;font-size:10px}}
@media(max-width:390px){.portfolio-nav{gap:10px;font-size:9px}.sound-player{padding-left:22px;padding-right:22px}.sound-player-heading{font-size:7px;letter-spacing:.5px}.sound-gear-controls{gap:6px}.sound-gear-controls button{padding:9px 12px}}

/* Smooth wave curves and quieter, geometric musical linework. */
.sound-record-art{display:block;width:270px;max-width:85%;height:auto;margin:25px 0 0;color:#82a6be}.sound-record-art g{stroke:currentColor;stroke-width:.9}.sound-record-art g circle,.sound-record-art path{stroke-dasharray:1;stroke-dashoffset:calc(1 - clamp(0,(var(--music-ink) - .25) / .75,1))}.sound-record-art .record-orbit{stroke:#a2bdcd;stroke-width:.7;opacity:.6}.sound-record-art .record-centre{fill:#6b97b2;opacity:var(--music-ink)}.sound-setup-guides{stroke:#92b2c6;stroke-width:.7;opacity:.35}.sound-setup-guides path{stroke-dasharray:1;stroke-dashoffset:calc(1 - var(--setup-ink))}.sound-stage-art{display:block;width:100%;max-width:290px;height:auto;margin:8px 0 0;stroke:#89aabe;stroke-width:1}.sound-stage-art path{stroke-dasharray:1;stroke-dashoffset:calc(1 - var(--setup-ink))}.sound-stage-art+.sound-gig{margin-top:12px}.sound-loop-drawn .setup-cable{stroke-dashoffset:calc(1 - clamp(0, var(--setup-ink) / .65, 1))}.sound-loop-drawn .setup-looper{stroke-dashoffset:calc(1 - clamp(0, (var(--setup-ink) - .15) / .75, 1))}.sound-loop-drawn .setup-synthesizer{stroke-dashoffset:calc(1 - clamp(0, (var(--setup-ink) - .3) / .7, 1))}
@media(max-width:760px){.sound-record-art{width:235px;margin-top:20px}}
/* Three travelling strings coil into a CD, then emit a visible wave. */
.sound-player{align-self:start;padding-top:28px}.sound-formation{--disc-form:1;position:relative;display:block;width:100%;padding:0;margin:0 0 12px;background:none;border:0;line-height:0}.sound-formation>svg{display:block;width:100%;height:auto;overflow:visible}.sound-cd-spin{transform-origin:110px 85px;animation:disc-turn 20s linear infinite;animation-play-state:paused}.sound-cd-spin>path{stroke-dasharray:1;stroke-dashoffset:calc(1 - clamp(0,var(--disc-form) / .24,1))}.sound-formation:not(.sound-cd-formed) .sound-cd-spin{animation:none}.sound-cd-live .sound-cd-spin{animation-play-state:running}.cd-finish{opacity:clamp(0,(var(--disc-form) - .8) / .2,1)}.cd-glint{stroke:#a0c1d6;stroke-width:3;opacity:.65}.sound-band-wave path{stroke-dasharray:1;stroke-dashoffset:calc(1 - clamp(0,(var(--record-ink,1) - .68) / .32,1))}.sound-band-wave{transform-origin:400px 85px;animation:wave-breathe 2.8s ease-in-out infinite alternate;animation-play-state:paused}.sound-cd-live .sound-band-wave{animation-play-state:running}.sound-player-heading{display:flex;justify-content:space-between;gap:15px;min-height:0;margin-bottom:17px;font:8px/1.8 'SFMono-Regular',Consolas,monospace;letter-spacing:1px}.sound-player-heading>a{margin-left:0}.sound-player-heading>span{white-space:normal}
@keyframes disc-turn{to{transform:rotate(360deg)}}@keyframes wave-breathe{from{transform:scaleY(.9);opacity:.78}to{transform:scaleY(1.08);opacity:1}}
@media(max-width:760px){.sound-player{padding-top:25px}.sound-player-heading{font-size:8px;gap:12px}.sound-formation{margin-bottom:16px}}
@media(max-width:390px){.sound-player-heading{font-size:7px;letter-spacing:.5px}}
@media(prefers-reduced-motion:reduce){.sound-cd-spin,.sound-band-wave{animation:none!important}}

.sound-formation{margin-bottom:5px;pointer-events:none}.sound-formation>svg{height:110px;max-height:110px;width:100%;object-fit:contain}.sound-player{padding-top:22px}
@media(max-width:760px){.sound-formation>svg{height:90px;max-height:90px}.sound-formation{margin-bottom:6px}.sound-player{padding-top:20px}}

.sound-formation>svg{aspect-ratio:640/170;object-position:left center;overflow:visible}.sound-band-wave{transform-origin:375px 85px}

.sound-gear-copy p+p{margin-top:14px}

.sound-gear-copy p.sound-instrument-note{font-size:10px;color:#7c98ad;margin-top:18px}

/* The setup is built in stages: strings, connections, panel, then controls. */
.sound-loop-art{max-width:650px;margin:12px 0 22px}
.sound-loop-drawn .setup-strings path{stroke-dashoffset:calc(1 - clamp(0,(var(--setup-ink) - .04) / .58,1))}
.sound-loop-drawn .setup-detail path{stroke-width:.9;stroke-dashoffset:calc(1 - clamp(0,(var(--setup-ink) - .24) / .66,1))}
.sound-loop-drawn .setup-pads path{stroke-dashoffset:calc(1 - clamp(0,(var(--setup-ink) - .35 - var(--pad) * .055) / .42,1))}
.sound-loop-drawn .setup-outlet{stroke-width:1;stroke-dashoffset:calc(1 - clamp(0,(var(--setup-ink) - .78) / .22,1))}
.setup-junctions{opacity:clamp(0,(var(--setup-ink) - .45) / .35,1)}

/* Fine strings sit inside deliberate single/double-cut instrument outlines. */
.sound-loop-drawn .setup-detail .instrument-wire{stroke-width:.45;opacity:.7}

/* The document-space cable starts at the junction dot; this path is only its geometry anchor. */
.sound-loop-drawn .setup-outlet{opacity:0}

/* From the microphone, looking into the room. Each contour owns a measured stroke. */
.sound-stage-art{display:block;width:100%;max-width:520px;margin:22px 0 24px;color:#648ea7}
.sound-stage-art [data-crowd-phase]{stroke:currentColor;stroke-width:1.4;stroke-dasharray:none;stroke-dashoffset:0}
.sound-stage-art .crowd-stage{opacity:.46;stroke-width:1.1}
.sound-stage-art .crowd-microphone{stroke-width:1.7}
.sound-stage-art .crowd-grille{opacity:.65;stroke-width:.85}
.sound-stage-art .crowd-cable{opacity:.64;stroke-width:1.1}
.sound-stage-art .crowd-back{opacity:.24;stroke-width:.9}
.sound-stage-art .crowd-middle{opacity:.46;stroke-width:1.1}
.sound-stage-art .crowd-near{opacity:.76;stroke-width:1.35}
/* A growing collection of small sleeves. Opening a card never moves the artwork. */
.sound-gig-archive{margin-top:28px;color:#557b94;border-top:1px solid #8cacc65c;padding-bottom:12px}
.gig-archive-header{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:20px 0 22px}
.gig-archive-eyebrow,.gig-archive-count{font:8px/1.5 'SFMono-Regular',Consolas,monospace;letter-spacing:1.1px;opacity:.6}
.gig-archive-eyebrow{margin:0 0 6px}.gig-archive-header h4{font-size:18px;font-weight:400;letter-spacing:-.4px;margin:0}.gig-archive-count{letter-spacing:0}
/* Concert tickets live behind a fixed catalogue pocket. Only the ticket moves. */
.sound-gig-archive{--gig-paper:#cfdee6;--gig-pocket:#b5cad7;--gig-tray:#a4bfce18;--gig-seam:#6c91a044;--gig-shadow:#243f5226}
.gig-memory-stage{position:relative;min-height:260px;align-content:start;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:24px 12px;padding:16px 10px 12px;border:1px solid var(--gig-seam);border-radius:4px;background:var(--gig-tray);isolation:isolate}
.gig-memory{position:relative;min-width:0}.gig-memory[hidden]{display:none}
.gig-sleeve{position:relative;isolation:isolate;width:100%;aspect-ratio:.88;display:block;text-align:left;padding:0;border:0;border-radius:2px;background:none;color:inherit;cursor:pointer;overflow:visible}
.gig-sleeve::before{content:'';position:absolute;inset:2px -2px 0;border:1px solid var(--gig-seam);border-radius:3px;background:var(--gig-pocket);opacity:.65;box-shadow:0 3px 5px -3px var(--gig-shadow);pointer-events:none}
.gig-sleeve::after{display:none}
.gig-memory-number{position:absolute;z-index:1;inset:6px 5px 9px;display:block;padding:7px;background:var(--gig-paper);border:1px solid var(--gig-seam);border-radius:2px;font-size:clamp(20px,2vw,28px);font-weight:300;line-height:1;letter-spacing:-1px;box-shadow:0 2px 4px var(--gig-shadow);transform:translateY(0) rotate(-1deg);transform-origin:50% 90%;transition:transform .42s cubic-bezier(.2,.75,.2,1),box-shadow .35s}
.gig-memory:nth-child(even) .gig-memory-number{transform:rotate(1.5deg)}
.gig-memory-number::before{content:'';position:absolute;left:7px;right:7px;top:55%;border-top:1px dashed var(--gig-seam)}
.gig-memory-number::after{content:'';position:absolute;right:6px;top:8px;width:3px;height:23px;background:repeating-linear-gradient(to bottom,currentColor 0 1px,transparent 1px 3px);opacity:.3}
.gig-memory-number[data-month]::after{content:attr(data-month);position:static;display:block;width:auto;height:auto;background:none;font:6px/1.4 'SFMono-Regular',Consolas,monospace;letter-spacing:1.2px;margin-top:2px;opacity:.65}
.gig-sleeve:hover .gig-memory-number,.gig-sleeve:focus-visible .gig-memory-number{transform:translateY(-13px) rotate(-3deg);box-shadow:1px 7px 10px -4px var(--gig-shadow)}
.gig-memory:nth-child(even) .gig-sleeve:hover .gig-memory-number,.gig-memory:nth-child(even) .gig-sleeve:focus-visible .gig-memory-number{transform:translateY(-13px) rotate(2deg)}
.gig-sleeve:focus-visible{outline:1px solid currentColor;outline-offset:5px}.gig-sleeve:active .gig-memory-number{transform:translateY(-8px) rotate(0)}
/* Captions stay on the pocket; no extra text is layered over them on hover. */
.gig-sleeve>div{position:absolute;z-index:3;left:-2px;right:-2px;bottom:0;height:auto;min-height:46px;padding:12px 7px 8px;min-width:0;display:flex;flex-direction:column;justify-content:center;background:var(--gig-pocket);border:1px solid var(--gig-seam);border-radius:2px 2px 3px 3px;clip-path:polygon(0 0,40% 0,44% 5px,56% 5px,60% 0,100% 0,100% 100%,0 100%)}
.gig-memory h5{flex-shrink:0;font-size:10px;font-weight:500;line-height:1.4;margin:0;white-space:normal;overflow:visible;overflow-wrap:anywhere}.gig-memory p{display:none}
.gig-memory-placeholder{font:7px/1.4 'SFMono-Regular',Consolas,monospace;opacity:.5;display:block;margin-top:2px}
.gig-memory{transition:opacity .32s ease,transform .42s cubic-bezier(.22,.7,.2,1)}
.gig-card-open .gig-memory{opacity:0;pointer-events:none;transform:translateY(7px)}
.gig-detail{position:absolute;inset:0;z-index:5;display:grid;grid-template-columns:minmax(0,.8fr) minmax(0,1.2fr);gap:0;min-width:0;margin:0;padding:0;border:1px solid #7c9bad50;border-radius:3px;color:#385c73;background:#d1dfe6;box-shadow:0 8px 24px #091b3318;overflow:hidden;animation:gig-card-in .5s cubic-bezier(.2,.7,.2,1) both}
.gig-detail[hidden]{display:none}.gig-detail:focus{outline:none}.gig-detail:focus-visible{outline:1px solid currentColor;outline-offset:4px}
.gig-detail-close{position:absolute;right:7px;top:7px;z-index:2;width:28px;height:28px;border:0;border-radius:50%;background:#d1dfe6eb;color:inherit;font-size:19px;line-height:1;display:grid;place-items:center;padding:0}
.gig-detail-photo{position:relative;min-width:0;display:grid;place-items:center;background:linear-gradient(145deg,#9eb5c6,#b8cad7);border-right:1px solid #7e9db530;overflow:hidden}.gig-detail-photo::before{content:'';position:absolute;inset:14px;border:1px solid #6588a030;pointer-events:none}.gig-detail-photo span{font:8px 'SFMono-Regular',Consolas,monospace;letter-spacing:.5px;opacity:.6}.gig-detail-photo img{position:absolute;width:100%;height:100%;object-fit:cover}
.gig-detail-body{min-width:0;align-self:center;padding:30px 16px 22px}.gig-detail-label{font:7px 'SFMono-Regular',Consolas,monospace;letter-spacing:1px;opacity:.5;margin:0 0 13px}.gig-detail h4{font-size:clamp(17px,1.6vw,24px);font-weight:400;line-height:1.2;letter-spacing:-.5px;margin:0 0 10px;overflow-wrap:anywhere}.gig-detail-location{font-size:11px;line-height:1.6;margin:0}.gig-detail-date{font:9px/1.8 'SFMono-Regular',Consolas,monospace;opacity:.75;margin:12px 0 0}.gig-detail-placeholder{font-size:9px;line-height:1.6;opacity:.5;margin:14px 0 0}
html[data-theme=dark] .sound-stage-art{color:#9bc3dc}html[data-theme=dark] .sound-gig-archive{color:#a7c6d9}
html[data-theme=dark] .sound-gig-archive{--gig-paper:#354f65;--gig-pocket:#21374b;--gig-tray:#0b192632;--gig-seam:#85adc13b;--gig-shadow:#040c2166}
html[data-theme=dark] .gig-detail{background:#1c3044;color:#c2d9e9}html[data-theme=dark] .gig-detail-close{background:#1c3044eb}html[data-theme=dark] .gig-detail-photo{background:linear-gradient(145deg,#17283b,#2b4359)}
@keyframes gig-card-in{from{opacity:0;transform:translateY(12px) scale(.97)}to{opacity:1;transform:none}}
@media(max-width:760px){.sound-stage-art{max-width:480px;margin:20px auto 18px}.gig-memory-number{font-size:28px}}
@media(max-width:390px){.gig-memory-stage{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(prefers-reduced-motion:reduce){.gig-memory-number{transition:none}.gig-sleeve:hover .gig-memory-number,.gig-sleeve:focus-visible .gig-memory-number,.gig-memory:nth-child(even) .gig-sleeve:hover .gig-memory-number,.gig-memory:nth-child(even) .gig-sleeve:focus-visible .gig-memory-number{transform:none}.gig-detail{animation:none}}

/* Actual flyer inserts inside the existing fixed-caption catalogue pockets. */
.gig-has-flyer .gig-memory-number{padding:0;overflow:hidden;background:#172b3b}
.gig-has-flyer .gig-memory-number::before,.gig-has-flyer .gig-memory-number::after{display:none}
.gig-memory-number>img{display:block;width:100%;height:100%;object-fit:cover;object-position:top}
.gig-memory-year{flex-shrink:0;display:block;font:7px/1.5 'SFMono-Regular',Consolas,monospace;letter-spacing:1px;opacity:.55;margin-top:3px}
.gig-detail-has-flyer{grid-template-columns:minmax(0,1fr) minmax(0,1.12fr)}
.gig-detail-photo img{object-fit:contain;padding:8px;background:#122334}
.gig-detail-has-flyer .gig-detail-photo::before{display:none}
.gig-detail-note{font-size:9px;line-height:1.6;opacity:.65;margin:10px 0 0}

.gig-detail.is-closing{pointer-events:none;animation:gig-card-out .32s cubic-bezier(.4,0,.3,1) both}
@keyframes gig-card-out{from{opacity:1;transform:none}to{opacity:0;transform:translateY(8px) scale(.985)}}
@media(prefers-reduced-motion:reduce){.gig-memory{transition:none}.gig-detail.is-closing{animation:none}}

/* Give the dense Grind panel time to be drawn before its patch leads finish. */
.sound-loop-drawn .setup-synthesizer>path:not(.synth-patch-cords){stroke-dashoffset:calc(1 - clamp(0,(var(--setup-ink) - .05) / .95,1))}
.sound-loop-drawn .setup-synthesizer .setup-detail path{stroke-dashoffset:calc(1 - clamp(0,(var(--setup-ink) - .18) / .82,1))}
.sound-loop-drawn .setup-synthesizer .synth-patch-cords{stroke-width:1;stroke-dashoffset:calc(1 - clamp(0,(var(--setup-ink) - .36) / .64,1))}

/* Reserve the player space in Spotify's dark palette while its document loads.
   No spinner or white iframe surface is shown during provider startup. */
.sound-embed{position:relative;min-width:0;height:352px;border-radius:10px;background:#121212;overflow:hidden}
.sound-player .sound-embed iframe{height:100%;background:#121212;color-scheme:dark;opacity:1;visibility:visible;transition:opacity .18s ease .1s}
.sound-player .spotify-pending iframe{opacity:0;visibility:hidden;pointer-events:none}
@media(prefers-reduced-motion:reduce){.sound-player .sound-embed iframe{transition:none}}
