/* Copyright (C) 2026 Sesini Bul. SPDX-License-Identifier: AGPL-3.0-or-later */
.page{--ink:#252923;--muted:#5c6258;--sage:#dde5d6;--lilac:#e5e0ec;color:var(--ink);background:#f4f2ea;font-family:var(--font-machine-display),Arial,sans-serif;min-height:100svh;padding:0 clamp(20px,5vw,80px);isolation:isolate;font-size:18px;line-height:1.6;color-scheme:light;display:flex;flex-direction:column}
.page *{box-sizing:border-box}.page a{color:inherit;text-decoration:none}.page button{font-family:inherit}.page :is(a,button,summary):focus-visible{outline:3px solid #625087;outline-offset:5px}.page h1,.page h2,.page p{margin:0}.page ::selection{background:#c7badb;color:var(--ink)}
.header{width:100%;max-width:1440px;margin:0 auto;min-height:100px;display:flex;align-items:center;justify-content:space-between;gap:20px;border-bottom:1px solid #25292320}.brand{display:inline-flex;align-items:center;gap:9px;font-weight:700;font-size:29px;letter-spacing:-1.7px;white-space:nowrap}.matchLink{display:flex;gap:12px;align-items:center;border:1px solid #25292355;border-radius:999px;padding:12px 20px;font-size:17px}.matchLink:hover{background:var(--sage)}
.hero{width:100%;max-width:800px;margin:0 auto;padding:48px 0 24px}.hero h1{font-size:clamp(44px,5vw,64px);line-height:1.15;font-weight:500;letter-spacing:-2.5px}
.tool{width:100%;max-width:800px;margin:0 auto 48px;scroll-margin-top:24px}.toolHeading{display:flex;justify-content:space-between;font-size:16px;color:var(--muted);margin-bottom:14px}.fileInput{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.dropzone{background:#e5eadd;border:1px solid #bdc6b5;border-radius:16px;text-align:center;padding:52px 20px 40px;transition:background .15s}.dragging{background:#d3dfc8;border-color:#394931}.dropzone h2{font-size:28px;line-height:1.3;font-weight:500}.dropzone>p{font-size:18px;margin-top:12px;color:var(--muted)}.primary{display:inline-flex;justify-content:center;align-items:center;gap:14px;background:var(--ink);border:0;border-radius:10px;color:#fffdf8;font-size:23px;font-weight:500;min-height:66px;padding:16px 30px;cursor:pointer;transition:background .15s}.primary:hover{background:#48563d}.dropzone .formats{font-size:16px;margin-top:30px}.privacy{font-size:16px;color:var(--muted);padding-top:16px;text-align:center}.info{margin-top:10px;color:var(--muted);font-size:16px;text-align:center}.info summary{cursor:pointer;display:list-item;list-style-position:inside;padding:8px}.info p{max-width:650px;margin:12px auto!important;text-align:left;line-height:1.7}.demo{border:0;background:none;color:#35432e;font-size:17px;text-decoration:underline;text-underline-offset:4px;padding:12px;cursor:pointer}.status{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}.error{padding:18px!important;background:#f5ded5;color:#71341e;border-radius:10px;margin-top:20px!important;font-size:18px}.progress{display:block;width:min(100%,350px);height:10px;accent-color:#596d48;margin:24px auto}.secondary{display:inline-flex;gap:8px;align-items:center;justify-content:center;min-height:48px;padding:12px 20px;border:1px solid #25292350;background:transparent;color:var(--ink);border-radius:10px;font-size:18px;cursor:pointer}.secondary:hover{background:#e7e8df}.filename{display:flex;gap:10px;align-items:center;overflow-wrap:anywhere;font-size:19px;padding:24px 0 18px}.filename svg{flex:none}.resultGrid{display:grid;grid-template-columns:1fr 1fr;gap:16px}.tempo,.key{border-radius:12px;padding:24px;background:var(--sage)}.key{background:var(--lilac)}.resultGrid span{font-size:18px}.resultGrid strong{display:block;font-weight:500;font-size:64px;letter-spacing:-2px;line-height:1.2;padding:12px 0}.key strong{font-size:36px;letter-spacing:-1px}.resultGrid p{font-size:17px}.resultNote{font-size:17px;color:var(--muted);margin:20px 0!important}
.footer{width:100%;max-width:1440px;border-top:1px solid #25292320;margin:auto auto 0;padding:24px 0}.footer nav{display:flex;justify-content:center;flex-wrap:wrap;gap:24px;font-size:16px;color:var(--muted)}.footer a:hover{text-decoration:underline;text-underline-offset:4px}
@media(max-width:600px){.page{padding:0 20px}.header{min-height:84px;gap:12px}.brand{font-size:24px}.brand svg{width:23px}.matchLink{font-size:14px;gap:5px;padding:10px 12px}.matchLink svg{width:17px}.hero{padding:32px 0 20px}.hero h1{font-size:46px;letter-spacing:-2px}.tool{margin-bottom:32px}.dropzone{padding:38px 16px 28px}.primary{font-size:21px;padding:16px 22px;width:100%}.dropzone .formats{font-size:16px;line-height:1.7;margin-top:24px}.resultGrid{grid-template-columns:1fr}.key strong{font-size:34px}.footer nav{gap:18px;font-size:15px}}
@media(max-width:360px){.header{flex-wrap:wrap;padding:14px 0;gap:10px}.header nav{margin-left:auto}.hero{padding-top:24px}}
@media(prefers-reduced-motion:reduce){.primary,.dropzone{transition:none}}

/* Quiet typography and one tactile object; scoped away from the matching app. */
.page{font-family:var(--font-bpm),system-ui,sans-serif;background:#f2f1ed;--ink:#272c29;--muted:#626863}
.page :is(h1,h2,p,span,button,a,summary,strong){font-family:inherit}
.brand{font-size:27px;font-weight:600;letter-spacing:-1.2px}
.hero{padding:32px 0 18px}.hero h1{font-size:48px;font-weight:400;letter-spacing:-1.8px}
.header{min-height:88px}.matchLink{font-weight:400;font-size:16px}
.dropzone{position:relative;background:#e6eae2;padding:0 24px 28px;border:1px solid #d4d9ce;border-radius:20px;overflow:visible}
.primary{font-size:21px;font-weight:400;min-height:58px;border-radius:8px;padding:14px 26px}
.dropzone>p{font-size:17px}.dropzone .formats{margin-top:18px;font-size:15px}
.tool{max-width:800px;margin-bottom:24px}.privacy{padding-top:12px}
.sculpture{height:225px;position:relative;display:grid;place-items:center;perspective:850px;touch-action:pan-y;--tilt-x:0deg;--tilt-y:0deg}
.tilt{transform:rotateX(var(--tilt-x)) rotateY(var(--tilt-y));transition:transform .3s ease-out;transform-style:preserve-3d;pointer-events:none}
.float{transform-style:preserve-3d;animation:sculptureFloat 7s ease-in-out infinite}
.ring{width:164px;height:164px;position:relative;transform-style:preserve-3d;transform:rotateX(53deg) rotateY(-18deg) rotateZ(-28deg);transition:transform 1s ease}
.ring i{position:absolute;inset:0;border:25px solid #95aaa0;border-radius:46%;background:transparent;transform:translateZ(calc(var(--slice) * 2px));box-shadow:inset 0 0 1px #708c7c;pointer-events:none}
.ring i:nth-child(n+9){border-color:#a5b9ad}.ring i:nth-child(n+14){border-color:#bacbbe}
.ring i:last-child{border-color:#c6d5c7;box-shadow:inset 0 2px 3px #9db5a2,0 1px 1px #dce7d9}
.objectShadow{position:absolute;width:146px;height:24px;border-radius:50%;background:#53645428;filter:blur(10px);bottom:28px;pointer-events:none;animation:sculptureShadow 7s ease-in-out infinite}
.sculpture:active .ring{transform:rotateX(66deg) rotateY(10deg) rotateZ(8deg)}
.sculpture[data-busy="true"] .ring{animation:sculptureAnalyze 2.6s linear infinite}
.sculpture[data-done="true"] .ring{transform:rotateX(30deg) rotateY(-12deg) rotateZ(20deg)}
.sculpture[data-done="true"] .ring i{border-color:#ada7bd}.sculpture[data-done="true"] .ring i:last-child{border-color:#d0c7e1;box-shadow:inset 0 2px 3px #afa2c3}
@keyframes sculptureFloat{0%,100%{transform:translateY(3px) rotateZ(-4deg)}50%{transform:translateY(-8px) rotateZ(5deg)}}
@keyframes sculptureShadow{0%,100%{transform:scale(1);opacity:.7}50%{transform:scale(.85);opacity:.45}}
@keyframes sculptureAnalyze{from{transform:rotateX(53deg) rotateY(-18deg) rotateZ(-28deg)}to{transform:rotateX(53deg) rotateY(-18deg) rotateZ(332deg)}}
@media(max-width:600px){.brand{font-size:23px}.matchLink{font-size:14px}.hero{padding:25px 0 16px}.hero h1{font-size:42px}.sculpture{height:195px}.ring{width:140px;height:140px}.ring i{border-width:22px}.objectShadow{width:120px;bottom:24px}.dropzone{padding:0 18px 24px}.primary{font-size:20px}.header{min-height:80px}}
@media(prefers-reduced-motion:reduce){.float,.objectShadow,.sculpture[data-busy="true"] .ring{animation:none}.tilt,.ring{transition:none}.sculpture:active .ring{transform:rotateX(53deg) rotateY(-18deg) rotateZ(-28deg)}}

/* One edge-to-edge stage, from file drop through result. */
.page{background:#e1e6dc;padding:0;min-height:100svh}
.header{position:relative;z-index:2;max-width:none;padding:0 clamp(20px,4vw,64px);border:0;flex-shrink:0}
.tool{max-width:none;margin:0;flex:1;display:flex;flex-direction:column}
.dropzone{flex:1;min-height:540px;border:0;border-radius:0;background:transparent;padding:0 24px;display:grid;place-items:center;isolation:isolate;transition:background .3s}
.dragging{background:#d0dcc7;outline:2px dashed #647a56;outline-offset:-18px}
.sculpture{position:absolute;inset:0;height:100%;width:100%;perspective:1300px;display:grid;place-items:center;overflow:visible}
.tilt{position:relative;top:-36px}.ring{width:clamp(290px,42vw,530px);height:clamp(290px,42vw,530px)}
.ring i{border-width:clamp(44px,6vw,76px);border-color:#9bac95;transform:translateZ(calc(var(--slice) * 3px));border-radius:44%}
.ring i:nth-child(n+9){border-color:#acbba4}.ring i:nth-child(n+14){border-color:#bdcab4}.ring i:last-child{border-color:#d0dac9;box-shadow:inset 0 2px 4px #a3b498,0 1px 1px #e0e8d9}
.objectShadow{width:250px;height:35px;bottom:9%;background:#40543525;filter:blur(18px)}
.float{animation:stageFloat 12s ease-in-out infinite}.sceneControls{position:relative;z-index:1;text-align:center;width:min(100%,800px);padding:110px 0 32px;pointer-events:none}
.sceneControls :is(button,details,a){pointer-events:auto}.sceneControls h1{font-size:clamp(38px,5.2vw,68px);line-height:1.12;letter-spacing:-2px;font-weight:400;margin:12px 0 25px;text-shadow:0 2px 20px #e1e6dc}
.sceneControls .sceneLabel{font-size:16px;letter-spacing:2px;line-height:1.4;font-weight:400;margin:0 0 12px}
.formats{margin-top:20px!important}.primary{background:#252d25;box-shadow:0 6px 22px #26362215}.secondary{background:#e1e6dcee}
.privacy{position:relative;padding-top:0}.info{position:relative;margin:0 24px 10px}.footer{border:0;padding:18px 20px;flex-shrink:0}
.dropzone[data-result="true"] .tilt{opacity:.25;transform:scale(1.35) rotateY(-20deg);transition:opacity .8s,transform 1s}
.sculpture[data-done="true"] .ring i{border-color:#a7b59f}.sculpture[data-done="true"] .ring i:last-child{border-color:#cbd7c2;box-shadow:inset 0 2px 3px #a4b69a}
.results{animation:resultReveal .7s cubic-bezier(.2,.8,.2,1) both;pointer-events:auto}.dropzone[data-result="true"] .sceneControls{padding:30px 0}
.filename{justify-content:center;font-size:18px;padding:0 0 30px}.resultGrid{gap:0}.tempo,.key{background:transparent;border-radius:0;padding:10px 24px}.key{border-left:1px solid #67796050}.resultGrid strong{font-size:clamp(65px,9vw,110px);line-height:1.1;font-weight:400}.key strong{font-size:clamp(32px,4.5vw,56px);padding-top:22px}.resultActions{display:flex;justify-content:center;gap:12px;flex-wrap:wrap;margin-top:28px}.resultNote{margin:22px 0 0!important}.resultGrid p{font-size:16px}
@keyframes stageFloat{0%,100%{transform:translateY(8px) rotateZ(-8deg)}50%{transform:translateY(-15px) rotateZ(12deg)}}
@keyframes resultReveal{from{opacity:0;transform:translateY(22px) scale(.97);filter:blur(5px)}to{opacity:1;transform:translateY(0) scale(1);filter:blur(0)}}
@media(max-width:600px){.header{padding:0 20px;min-height:80px}.dropzone{min-height:440px;padding:0 20px}.ring{width:310px;height:310px}.ring i{border-width:46px}.sceneControls{padding:90px 0 20px}.sceneControls h1{font-size:40px;letter-spacing:-1.6px}.sceneControls .sceneLabel{font-size:15px}.primary{width:auto;font-size:19px}.objectShadow{width:160px;bottom:10%}.tilt{top:-20px}.resultGrid{grid-template-columns:1fr 1fr}.tempo,.key{padding:10px}.resultGrid strong{font-size:64px}.key strong{font-size:30px;padding-top:20px}.resultGrid span,.resultGrid p{font-size:15px}.filename{font-size:16px;padding-bottom:20px}.resultActions{gap:10px}.resultActions button{font-size:17px}.resultNote{font-size:16px}.footer nav{gap:16px}.info{margin-bottom:0}}
@media(max-height:700px) and (min-width:601px){.dropzone{min-height:390px}.ring{width:350px;height:350px}.ring i{border-width:50px}.header{min-height:72px}.sceneControls{padding:75px 0 20px}}
@media(prefers-reduced-motion:reduce){.float,.results{animation:none}.dropzone[data-result="true"] .tilt{transition:none}.dragging{transition:none}}

/* Keep the upload action below the sculpture, not across it. */
.dropzone{min-height:640px}.sceneControls{padding:0;align-self:stretch;display:flex;flex-direction:column;justify-content:center}
.centerPrompt{position:absolute;top:40%;left:0;width:100%;transform:translateY(-50%)}
.sceneControls .centerPrompt h1{font-size:clamp(36px,4vw,56px);margin:6px 0;letter-spacing:-1.7px}
.uploadControls{margin-top:420px;padding-bottom:28px}.sculpture{padding-bottom:110px}.tilt{top:0}
.ring{transform:rotateX(30deg) rotateY(-12deg) rotateZ(-15deg)}.objectShadow{bottom:24%}
.dragging .ring{transform:rotateX(12deg) rotateY(0deg) rotateZ(0deg) scale(1.06)}.dragging .ring i:last-child{border-color:#bdd4ad}
.dropzone[data-result="true"] .sceneControls{display:block;align-self:center}
.guide{padding:0 24px 12px;text-align:center;font-size:16px;color:var(--muted)}.guide details{max-width:720px;margin:auto}.guide summary{cursor:pointer;padding:8px;list-style-position:inside}
.guide h2,.guide h3,.guide p{text-align:left}.guide h2{font-size:26px;margin:24px 0 10px}.guide h3{font-size:20px;margin:22px 0 8px}.guide p{line-height:1.7;margin:0 0 16px}
@media(max-width:600px){.dropzone{min-height:550px}.ring{width:330px;height:330px}.ring i{border-width:43px}.sculpture{padding-bottom:110px}.centerPrompt{top:37%}.sceneControls .centerPrompt h1{font-size:37px}.uploadControls{margin-top:355px}.objectShadow{bottom:27%}}
@media(max-height:700px) and (min-width:601px){.dropzone{min-height:500px}.ring{width:350px;height:350px}.ring i{border-width:45px}.uploadControls{margin-top:340px}}
@media(prefers-reduced-motion:reduce){.dragging .ring{transform:rotateX(30deg) rotateY(-12deg) rotateZ(-15deg)}}

/* Reserve separate desktop space for the object and upload controls.
   A fixed top margin overlapped the object on tall/wide screens. */
@media(min-width:601px){
  .dropzone:not([data-result="true"]){min-height:560px}
  .dropzone:not([data-result="true"]) .sculpture{inset:0 0 180px;height:auto;padding-bottom:0}
  .dropzone:not([data-result="true"]) .sceneControls{justify-content:flex-end}
  .dropzone:not([data-result="true"]) .centerPrompt{top:calc(50% - 90px)}
  .uploadControls{margin-top:0;min-height:180px;padding:32px 0 24px}
  .ring{width:clamp(260px,min(34vw,calc(100svh - 460px)),400px);height:clamp(260px,min(34vw,calc(100svh - 460px)),400px)}
  .objectShadow{bottom:6%}
}
@media(min-width:601px) and (max-height:700px){
  .dropzone:not([data-result="true"]){min-height:500px}
  .ring{width:260px;height:260px}
}
.guideLinks{display:flex;justify-content:center;flex-wrap:wrap;gap:8px 24px;margin-top:12px;font-size:16px}
.guideLinks a{padding:8px 0;text-decoration:underline;text-underline-offset:4px}
.article{width:100%;max-width:780px;margin:0 auto;padding:52px 24px 64px;font-size:19px;line-height:1.8}
.article h1{font-size:clamp(34px,5vw,54px);line-height:1.2;letter-spacing:-1.5px;margin:16px 0 24px}
.article h2{font-size:27px;line-height:1.35;margin:32px 0 12px}
.article p{margin:14px 0}.article a{text-decoration:underline;text-underline-offset:4px}
.article nav{display:flex;flex-wrap:wrap;gap:12px;font-size:16px}.article .primary{margin-top:24px;text-decoration:none}
.sculpture[data-paused="true"] .float,.sculpture[data-paused="true"] .objectShadow,.sculpture[data-paused="true"] .ring{animation-play-state:paused}
@font-face{font-family:Instrument Sans;src:url('fonts/InstrumentSans.ttf') format('truetype');font-weight:400 700;font-style:normal;font-display:swap}
html{overflow-x:clip}body{margin:0;overflow-x:clip}.page{font-family:Instrument Sans,system-ui,sans-serif} [hidden]{display:none!important}
.sourceLinks{margin:8px auto 0;text-align:center;color:var(--muted);font-size:13px;line-height:1.5}.sourceLinks summary{display:inline-flex;align-items:center;min-height:44px;padding:8px 12px;cursor:pointer;list-style:none}.sourceLinks summary::-webkit-details-marker{display:none}.sourceLinks summary:hover{text-decoration:underline;text-underline-offset:3px}.sourceLinks[open] summary{font-weight:500}.sourceLinks div{display:flex;justify-content:center;flex-wrap:wrap;gap:4px 18px}.sourceLinks div a{display:inline-flex;align-items:center;min-height:44px;padding:6px;text-decoration:underline;text-underline-offset:3px}
.footer nav{font-size:13px;line-height:1.5;gap:4px 14px}.footer nav a{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:6px 4px}
@media(max-width:600px){.footer{padding:12px 10px}.footer nav{flex-wrap:nowrap;gap:clamp(4px,1.5vw,9px);font-size:clamp(10px,2.9vw,12px)}.footer nav a{white-space:nowrap;padding:6px 0}.sourceLinks{margin-top:0;font-size:12px}}
/* Large particle sphere, with a clear upload action outside its silhouette. */
.dropzone:not([data-result="true"]){min-height:calc(100svh - 88px);padding:0 20px;display:flex;flex-direction:column;justify-content:flex-end}
.dropzone:not([data-result="true"]) .particleScene{inset:0 0 100px;height:auto;padding:0;pointer-events:none}
.particleScene canvas{display:block;width:100%;height:100%;pointer-events:none}
.dropzone:not([data-result="true"]) .sceneControls{width:100%;align-self:auto;padding:0;display:block}
.uploadControls{margin:0;min-height:100px;padding:12px 0 28px}
.uploadControls .primary{font-size:17px;min-height:48px;padding:12px 24px;box-shadow:none;background:#e1e6dc;border:1px solid #78857180;color:#272c29;border-radius:999px}
.uploadControls .primary:hover{background:#d2dbcc}
.privacy{font-size:13px;line-height:1.6;margin:6px 0!important}.info,.guide,.guideLinks{font-size:13px}.info{margin-top:6px}.guideLinks{gap:8px 18px}
.dropzone[data-result="true"]{min-height:calc(100svh - 180px)}
.dropzone[data-result="true"] .particleScene{inset:0;height:100%;padding:0;pointer-events:none}
.dragging{outline:none;background:#d8e2d1}.dragging canvas{filter:saturate(1.3);transform:scale(1.025)}
@media(max-width:600px){.dropzone:not([data-result="true"]){min-height:calc(100svh - 80px)}.dropzone:not([data-result="true"]) .particleScene{inset:0 0 90px}.uploadControls{min-height:90px;padding:10px 0 24px}.dropzone[data-result="true"]{min-height:540px}}
@media(prefers-reduced-motion:reduce){.dragging canvas{transform:none}}
/* Black stage: luminous particles, quiet controls, legible secondary text. */
.page{background:#000;--ink:#f0f0ed;--muted:#a5a5a1;--sage:#171917;--lilac:#18171b;color-scheme:dark}
.page ::selection{background:#635885;color:#fff}.matchLink{border-color:#ffffff38}.matchLink:hover{background:#ffffff0c}
.uploadControls .primary{background:#111112;border-color:#ffffff45;color:#f0f0ed}.uploadControls .primary:hover{background:#202022;border-color:#ffffff80}
.primary{background:#ededeb;color:#111}.primary:hover{background:#fff}.secondary{background:#111112;color:#efefec;border-color:#ffffff35}.secondary:hover{background:#252526}
.key{border-color:#ffffff25}.sceneControls h1{text-shadow:none}.dragging{background:#0b0b0e}.error{background:#351b20;color:#ffc8cd}.guideLinks a,.footer a,.sourceLinks{color:var(--muted)}
/* Result particles occupy the stage; actions stay beneath their silhouette. */
.dropzone[data-result="true"]{min-height:calc(100svh - 88px);display:flex;flex-direction:column;justify-content:flex-end}
.dropzone[data-result="true"] .particleScene{inset:0 0 175px;height:auto}
.dropzone[data-result="true"] .sceneControls{padding:0;width:100%;max-width:none;align-self:auto}
.results{animation:none;padding:0 0 20px}.results .sceneLabel{display:none}.filename{padding:0 0 4px;font-size:13px;color:var(--muted)}
.resultNote{font-size:12px;margin:4px 0 0!important}.resultActions{margin-top:12px;gap:10px}.resultActions button{min-height:44px;padding:10px 18px;font-size:15px;border-radius:999px}
.particle-result-ready .resultGrid{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
@media(max-width:600px){.dropzone[data-result="true"]{min-height:calc(100svh - 80px)}.dropzone[data-result="true"] .particleScene{inset:0 0 185px}.filename{font-size:12px}.resultActions button{font-size:14px;padding:10px 14px}}
/* Canvas intrinsic size must never stretch the grid beyond its reserved stage. */
.particleScene{display:block;min-width:0;min-height:0;overflow:hidden}
.particleScene canvas{position:absolute;inset:0;width:100%;height:100%;min-width:0;min-height:0}
@media(min-width:601px){.header{min-height:72px}.dropzone:not([data-result="true"]),.dropzone[data-result="true"]{min-height:calc(100svh - 72px)}}
