
:root{font-family:system-ui,-apple-system,sans-serif;color:#e8e8ef;background:#101116;color-scheme:dark}*{box-sizing:border-box}body{margin:0}header{padding:28px 4vw;border-bottom:1px solid #30313b;display:flex;justify-content:space-between;align-items:center;gap:20px;flex-wrap:wrap}h1{font-size:25px;margin:0;letter-spacing:-1px}header p{margin:5px 0 0;color:#9b9cae;font-size:13px}a{color:#d0c6ff}.header-nav{display:flex;gap:8px}.header-nav a,.cta{display:inline-block;padding:9px 15px;border:1px solid #41424d;border-radius:8px;background:#242630;color:#eee;text-decoration:none;font-size:13px;font-weight:550}.header-nav a:hover{background:#353743}.header-nav a[aria-current=page],.cta{background:#b9acff;border-color:#b9acff;color:#171124}a:focus-visible,input:focus-visible{outline:2px solid #e0d9ff;outline-offset:4px}main{max-width:1280px;padding:36px 4vw 60px;margin:auto}h2{font-size:28px;letter-spacing:-.7px;margin:0 0 14px}h3{font-size:20px;margin:0 0 12px}p{font-size:14px;line-height:1.8;color:#bfc0ce;margin:0 0 16px}.intro{max-width:720px;margin-bottom:28px}section{margin-top:36px}figure{margin:0}.comparison{--split:50%;position:relative;max-width:680px;aspect-ratio:1;margin:auto;overflow:hidden;border-radius:14px;border:1px solid #41424d;background:#000;touch-action:pan-y;cursor:ew-resize;user-select:none;-webkit-user-select:none}.comparison img{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;pointer-events:none;-webkit-user-drag:none}.comparison .mosaic{clip-path:inset(0 0 0 var(--split));image-rendering:pixelated}.divider{position:absolute;top:0;bottom:0;left:var(--split);width:2px;background:#fff;transform:translateX(-50%);pointer-events:none}.divider:after{content:'↔';position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);width:42px;height:42px;border-radius:50%;display:grid;place-items:center;background:#eee;color:#171124;box-shadow:0 2px 14px #0008;font-size:23px}.compare-tag{position:absolute;top:14px;padding:5px 9px;border-radius:6px;background:#101116cc;color:#fff;font-size:12px;pointer-events:none}.tag-original{left:14px}.tag-mosaic{right:14px}.compare-controls{max-width:680px;margin:14px auto 0}.compare-controls label{display:block;color:#bfc0ce;font-size:13px;margin-bottom:8px}.compare-controls input{width:100%;accent-color:#b9acff;cursor:ew-resize}.caption{font-size:12px;color:#9b9cae;line-height:1.7;margin:10px 0 0}.algorithms{margin:56px 0 0}.algorithms>h3{font-size:28px;letter-spacing:-.7px}.algorithm-intro{max-width:none;text-wrap:pretty}.samples{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:32px 20px;margin-top:26px;align-items:start}.sample{margin:0;min-width:0;background:#191a22;border:1px solid #30313b;border-radius:14px;overflow:hidden}.sample img{display:block;width:100%;height:auto;aspect-ratio:4/3;object-fit:cover;image-rendering:pixelated;background:#101116}.sample.original img{image-rendering:auto}.sample figcaption{padding:20px 22px 22px}.sample h4{font-size:21px;letter-spacing:-.4px;margin:7px 0 12px}.sample p{margin:0;font-size:13px;line-height:1.75}.algorithm-label{font-size:11px;color:#b9acff;letter-spacing:.3px}.sample .sample-settings{margin-top:14px;color:#9b9cae;font-size:11px}.sample .swatches{margin-top:10px}.swatches{display:flex;gap:3px;margin-top:9px}.swatches i{width:10px;height:10px;border:1px solid #ffffff40;border-radius:2px}.how{background:#191a22;border:1px solid #30313b;border-radius:14px;padding:24px}.how p:last-child{margin-bottom:0}@media(max-width:600px){header{padding:20px}main{padding:28px 20px 40px}.samples{grid-template-columns:1fr}.compare-tag{font-size:10px}.comparison .tag-mosaic{right:8px}h2{font-size:25px}}

/* Animated pixel signature: three rows, five columns. */
.pixel-signature{display:inline-grid;grid-template-columns:repeat(3,6px);grid-template-rows:repeat(3,6px);gap:2px;margin-left:8px;vertical-align:middle;line-height:0;animation:pixel-hues 8s linear infinite;animation-delay:1s}
.pixel-signature i{display:block;width:6px;height:6px;background:hsl(var(--hue) 82% 73%);border-radius:1px;}
@keyframes pixel-hues{0%{filter:hue-rotate(0deg)}100%{filter:hue-rotate(360deg)}}
@media(prefers-reduced-motion:reduce){.pixel-signature,.pixel-signature i{animation:none}.pixel-signature i{opacity:1;transform:none}}

.intro{max-width:700px;margin:12px auto 30px;text-align:center}.intro h2{font-size:36px}.intro p{font-size:16px}.hero-comparison{margin-top:0}.hero-comparison>figure{max-width:680px;margin:auto}.drag-hint{text-align:center;font-size:12px;margin:0}.compare-controls .swatches{justify-content:center;margin:12px 0}.algorithms,.walkthrough{margin-top:72px;padding-top:36px;border-top:1px solid #30313b}.sample{height:100%;overflow-wrap:anywhere}.samples{align-items:stretch}.sample figcaption{padding:22px}.sample p{line-height:1.8}.walkthrough h3{font-size:28px}.tour{display:grid;grid-template-columns:minmax(250px,.8fr) minmax(0,1.2fr);border:1px solid #353642;border-radius:18px;overflow:hidden;background:#191a22}.tour-controls{padding:28px;min-width:0}.tour-steps{display:grid;gap:7px;margin-bottom:28px}.tour button{font:inherit;cursor:pointer;color:#c4c2d5;background:#242630;border:1px solid #41424d;border-radius:8px;padding:11px 13px;font-size:13px;text-align:left}.tour-steps button{background:transparent;border-color:transparent;color:#8f90a3}.tour-steps span{margin-left:12px}.tour button[aria-current=step],.tour button[aria-pressed=true]{background:#b9acff;color:#171124;border-color:#b9acff}.tour h4{font-size:20px;margin:0 0 12px}.tour p{font-size:13px}.tour-stage{padding:28px;display:flex;flex-direction:column;justify-content:center;background:#121319;min-width:0}.tour-stage canvas{width:100%;height:auto;aspect-ratio:4/3;border-radius:10px;image-rendering:pixelated}.tour-stage p{margin:12px 0 0;text-align:center;color:#9b9cae}.tour-badge{font-size:11px;color:#b9acff;margin-bottom:14px}.tour-file{padding:16px 12px;border:1px dashed #626174;border-radius:9px;font-size:12px}.tour-file span{float:right;color:#b9acff}.tour .tour-next{margin-top:20px}.tour label{font-size:13px;display:flex;justify-content:space-between}.tour input[type=range]{width:100%;accent-color:#b9acff;margin:18px 0}.finish-options{display:flex;gap:8px;flex-wrap:wrap}.tour-cta{margin-top:24px}.tour button:focus-visible,.comparison:focus-visible{outline:2px solid #d0c6ff;outline-offset:3px}@media(max-width:760px){.tour{grid-template-columns:1fr}.tour-controls,.tour-stage{padding:20px}.intro h2{font-size:30px}}@media(prefers-reduced-motion:no-preference){.tour-stage canvas{animation:tour-in .3s ease-out}@keyframes tour-in{from{opacity:.5}to{opacity:1}}}
.tour select{width:100%;padding:10px;margin:8px 0 16px;background:#242630;color:#eee;border:1px solid #41424d;border-radius:8px}.tour label{margin-top:12px}
.tour-choices{border:0;padding:0;margin:18px 0;min-width:0}.tour-choices legend{font-size:12px;color:#bfc0ce;margin-bottom:10px}.choice-grid{display:grid;gap:7px}.tour .choice-grid button{width:100%}.choice-grid small{display:block;font-size:11px;opacity:.75;margin-top:4px}.choice-grid .swatches{margin-top:8px}.choice-grid .swatches i{width:13px;height:13px}
.tour .choice-grid button{display:flex;align-items:center;justify-content:space-between;gap:14px}.choice-grid button>span{min-width:0}.choice-grid button>.swatches{margin:0;flex:none}
.site-footer{background:#181a23;padding:26px 4vw;margin-top:36px;border-top:1px solid #30313b;color:#9b9cae;font-size:12px;text-align:center}
.choice-palette{display:flex;flex-direction:column;align-items:flex-end;gap:6px;flex-shrink:0}.choice-palette .palette-caption{font-size:10px;opacity:.8}.choice-palette .swatches{margin:0}.choice-palette .swatches i{width:10px;height:10px}

.printable-guides{margin-top:72px;padding-top:36px;border-top:1px solid #30313b}.printable-guides h3{font-size:28px}.printable-guides .section-heading>p{max-width:760px}.guide-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;margin-top:26px}.guide-card{overflow:hidden;border:1px solid #353642;border-radius:14px;background:#191a22}.guide-preview{position:relative;overflow:hidden;width:100%;background:#f5f5f5;aspect-ratio:595/842}.guide-preview object{position:absolute;inset:0;display:block;width:100%;height:100%;border:0;background:#fff}.guide-copy{padding:20px 22px 22px}.guide-copy h4{margin:6px 0 10px;font-size:20px;letter-spacing:-.3px}.guide-copy p{font-size:13px;line-height:1.75}.guide-copy p:last-of-type{margin-bottom:15px}.guide-copy>a{font-size:13px;font-weight:650;text-underline-offset:3px}.guide-label{margin:0;color:#b9acff;font-size:11px!important;letter-spacing:.3px;text-transform:uppercase}@media(max-width:760px){.guide-grid{grid-template-columns:1fr}.guide-preview{height:min(135vw,720px);aspect-ratio:auto}}

/* Final visual rhythm and elevation. */
main{padding:clamp(28px,4vw,48px) 4vw clamp(48px,6vw,76px)}
.comparison,.tour{box-shadow:var(--shadow)}
.sample{transition:transform .18s ease,border-color .18s ease,box-shadow .18s ease}
.tour{border-color:#3b3c4b}
.intro p{color:#c9cad6;text-wrap:pretty}
.caption a{text-underline-offset:3px}

.sample img.zoomable{cursor:zoom-in;transition:transform .2s ease}.sample img.zoomable:hover{transform:scale(1.025)}.sample img.zoomable:focus-visible{outline:2px solid #e0d9ff;outline-offset:-4px}.image-lightbox{width:min(1100px,calc(100vw - 32px));max-width:none;max-height:calc(100dvh - 32px);padding:0;border:1px solid #4d4f62;border-radius:16px;background:#171821;color:#e8e8ef;box-shadow:0 24px 80px #000b}.image-lightbox::backdrop{background:#08090ee8}.lightbox-frame{position:relative;padding:60px 20px 20px}.lightbox-frame img{display:block;width:100%;height:calc(100dvh - 152px);margin:auto;border-radius:8px;object-fit:contain}.lightbox-frame img[data-pixelated=true]{image-rendering:pixelated}.lightbox-frame p{margin:13px 0 0;font-size:12px;color:#c9cad6}.lightbox-close{position:absolute;top:14px;right:14px;z-index:1;width:36px;height:36px;border:1px solid #626477;border-radius:50%;background:#30323e;color:#fff;font-size:25px;line-height:1;cursor:pointer;box-shadow:0 3px 10px #0006}.lightbox-close:hover{background:#454856}.lightbox-close:focus-visible{outline:2px solid #e0d9ff;outline-offset:3px}@media(max-width:560px){.image-lightbox{width:calc(100vw - 24px);max-height:calc(100dvh - 24px);border-radius:12px}.lightbox-frame{padding:58px 12px 12px}.lightbox-frame img{height:calc(100dvh - 140px)}.lightbox-close{top:11px;right:11px;width:40px;height:40px;font-size:27px}.lightbox-frame p{margin-top:10px}}

