:root{color-scheme:dark;--background:#000000;--focus:#ffe565}
*{box-sizing:border-box}html,body{margin:0;width:100%;height:100%;overflow:hidden;background:var(--background)}
body{display:grid;place-items:center;height:100dvh}
.panel{position:relative;width:min(100vw,177.777778dvh);aspect-ratio:16/9;overflow:hidden;touch-action:pan-y;user-select:none;-webkit-user-select:none;cursor:grab;outline:none}
.panel:focus-visible{outline:1px solid var(--focus);outline-offset:-2px}.panel.dragging{cursor:grabbing}
#poster,#panorama{display:block;position:absolute;inset:0;width:100%;height:100%;object-fit:contain;pointer-events:none}
#panorama{opacity:0}.panel.ready #panorama{opacity:1}.panel.ready #poster{visibility:hidden}
#floating-title{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;opacity:0;will-change:transform}
.panel.ready #floating-title{opacity:1;animation:title-float 11s ease-in-out infinite}
@keyframes title-float{0%,100%{transform:translateY(0)}50%{transform:translateY(-8px)}}
@media(prefers-reduced-motion:reduce){.panel.ready #floating-title{animation:none}}
body{display:block}.pages{width:100%;height:100dvh;overflow-x:hidden;overflow-y:auto;scroll-snap-type:y mandatory;scroll-behavior:smooth;scrollbar-width:none;outline:none}.pages::-webkit-scrollbar{display:none}
.page{height:100dvh;min-height:100dvh;width:100%;scroll-snap-align:start;scroll-snap-stop:always;display:flex;align-items:center;justify-content:center;overflow:hidden}
.panel{cursor:default}.panel.dragging{cursor:grabbing}
.background-panel{position:relative;width:min(100vw,177.777778dvh);aspect-ratio:16/9;overflow:hidden}
.background-image,.person-white{position:absolute;inset:0;width:100%;height:100%;display:block;pointer-events:none}
.bar-mask{position:absolute;background:#242424;transform-origin:center top;transform:scaleY(1)}
.bar-2019{left:20.52%;top:59.7222%;width:7.61%;height:18.8889%}.bar-2025{left:30.10%;top:56.0185%;width:7.66%;height:22.5926%}
.person-white{filter:grayscale(1) brightness(1.16);opacity:1}
.background-panel.is-visible .bar-mask{animation:bar-uncover 1.65s cubic-bezier(.22,.68,.25,1) .18s both}.background-panel.is-visible .bar-2025{animation-delay:.37s}
.background-panel.is-visible .person-white{animation:none;transition:none}
@keyframes bar-uncover{from{transform:scaleY(1)}to{transform:scaleY(0)}}
@keyframes person-reveal{from{opacity:1}to{opacity:0}}
@media(prefers-reduced-motion:reduce){.pages{scroll-behavior:auto}.background-panel.is-visible .bar-mask{animation:none;transform:scaleY(0)}.background-panel.is-visible .person-white{animation:none;opacity:0}}

.background-panel{container-type:inline-size}
.support-percentage{position:absolute;left:67.7%;top:56.75%;width:7.5%;height:5.5%;display:flex;align-items:center;justify-content:center;background:#242424;color:#fff;font-family:Arial,sans-serif;font-size:2.083333cqw;font-weight:400;line-height:1;pointer-events:none;font-variant-numeric:tabular-nums}
.problem-panel{position:relative;width:min(100vw,177.777778dvh);aspect-ratio:16/9;overflow:hidden}
.problem-image{display:block;position:absolute;inset:0;width:100%;height:100%;pointer-events:none}
.problem-cover{position:absolute;background:var(--background);pointer-events:none}
.problem-heading-mask{left:6.9%;top:14%;width:86%;height:12%;transform-origin:bottom}
.problem-card-mask{left:var(--left);top:31.8%;width:27.65%;height:59%;transform-origin:bottom}
.problem-panel.is-visible .problem-heading-mask{animation:problem-unveil 1s cubic-bezier(.22,.65,.25,1) .08s both}
.problem-panel.is-visible .problem-card-mask{animation:problem-unveil 1.35s cubic-bezier(.22,.65,.25,1) var(--delay) both}
@keyframes problem-unveil{0%{opacity:1;transform:translateY(0)}100%{opacity:0;transform:translateY(16px)}}
@media(prefers-reduced-motion:reduce){.problem-panel.is-visible .problem-cover{animation:none;opacity:0}}

.problem-panel.is-visible .problem-cover{animation:none;opacity:1;transform:none}
.problem-slice{position:absolute;inset:0;width:100%;height:100%;opacity:0;pointer-events:none}
.problem-panel.is-visible .problem-slice{animation:problem-arrive 1.2s cubic-bezier(.22,.65,.25,1) var(--delay) both}
@keyframes problem-arrive{from{opacity:0;transform:translateY(14px)}to{opacity:1;transform:translateY(0)}}
@media(prefers-reduced-motion:reduce){.problem-panel.is-visible .problem-slice{animation:none;opacity:1;transform:none}}
.support-percentage.rolling{animation:percentage-rumble .11s ease-in-out infinite alternate}
.support-percentage.landed{animation:percentage-stop .4s ease-out both}
@keyframes percentage-rumble{from{transform:translateY(-.6px)}to{transform:translateY(.6px)}}
@keyframes percentage-stop{0%{transform:scale(1.12)}55%{transform:scale(.98)}100%{transform:scale(1)}}
.problem-zoom{position:absolute;top:31.8%;width:27.65%;height:59%;border:0;background:transparent;border-radius:3cqw;cursor:zoom-in;padding:0}
.problem-zoom:before{content:'';position:absolute;inset:0 0 23%;border-radius:9%;border:1px solid transparent;transition:border-color .25s,box-shadow .25s}
.problem-zoom:hover:before{border-color:#ffffff55;box-shadow:0 0 28px #ffffff0a}.problem-zoom:focus-visible{outline:2px solid var(--focus);outline-offset:5px}
@media(prefers-reduced-motion:reduce){.support-percentage.rolling,.support-percentage.landed,.problem-dialog[open],.problem-dialog::backdrop{animation:none}.problem-zoom:before{transition:none}}

.problem-zoom{cursor:pointer;border-radius:2%;transition:background .3s,box-shadow .3s}
.problem-zoom.is-highlighted{background:#ffffff05;box-shadow:0 0 30px #ffffff08}
.problem-zoom.is-highlighted:before{border-color:#ffffff70;box-shadow:0 0 22px #ffffff12;transition:border-color .25s,box-shadow .25s}
@media(prefers-reduced-motion:reduce){.problem-zoom,.problem-zoom:before{transition:none}}

/* Independent scale composes with the entry animation's translation. */
.problem-slice{scale:1;transition:scale .42s cubic-bezier(.2,.7,.25,1);will-change:scale}
.problem-slice.is-hovered{scale:1.025}
@media(prefers-reduced-motion:reduce){.problem-slice{transition:none}.problem-slice.is-hovered{scale:1}}
.solution-panel{position:relative;width:min(100vw,177.777778dvh);aspect-ratio:16/9;overflow:hidden}
.solution-base,.solution-layer{display:block;position:absolute;inset:0;width:100%;height:100%;pointer-events:none}
.solution-layer{opacity:0}.solution-panel.is-visible .solution-layer{animation:solution-reveal 1.15s cubic-bezier(.2,.65,.25,1) var(--delay) both}
.solution-panel.is-visible .solution-device{animation:solution-device-arrive 1.65s cubic-bezier(.2,.65,.25,1) var(--delay) both}
@keyframes solution-reveal{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:translateY(0)}}
@keyframes solution-device-arrive{from{opacity:0;transform:translateY(20px)}to{opacity:1;transform:translateY(0)}}
@media(prefers-reduced-motion:reduce){.solution-panel.is-visible .solution-layer{animation:none;opacity:1;transform:none}}
.solution-window{position:relative;width:min(100vw,177.777778dvh);aspect-ratio:16/9;overflow:hidden;touch-action:pan-x}
.solution-track{position:absolute;inset:0 0 auto;height:200%;width:100%;transform:translateY(0);will-change:transform}
.solution-track .solution-panel,.benefits-panel{position:relative;width:100%;height:50%;aspect-ratio:16/9;overflow:hidden}
.benefits-panel img{display:block;width:100%;height:100%;object-fit:contain}
.journey-line{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;z-index:2}
#journey-head{filter:drop-shadow(0 0 5px #ffffffb3)}
@media(prefers-reduced-motion:reduce){.solution-track{will-change:auto}}
/* One continuous background and one uninterrupted dot grid across BOTH scenes. */
.solution-track{isolation:isolate;background:url('assets/journey-background.png') center/100% 100% no-repeat}
.solution-track:before{content:'';position:absolute;inset:0;z-index:-1;background-image:radial-gradient(circle,#ffffff24 0 1px,transparent 1.3px);background-size:1.25cqw 1.25cqw;mask-image:linear-gradient(130deg,transparent 16%,#000 100%);pointer-events:none}
.solution-window{container-type:inline-size}
.solution-panel,.benefits-panel{font-family:Arial,'Apple SD Gothic Neo','Malgun Gothic',sans-serif;color:#f4f4f2;background:transparent}
.solution-page-label,.solution-page-number{position:absolute;top:7.85%;font-size:1.04167cqw;color:#888}.solution-page-label{left:5.36%}.solution-page-number{right:5.36%}
.solution-intro{position:absolute;left:7.4%;top:21.9%;width:86%}.solution-intro h2{font-size:1.66667cqw;line-height:1.3;margin:0;font-weight:500}.solution-intro p{font-size:1.04167cqw;line-height:1.6;color:#888;margin:.6cqw 0 0}
.solution-features{position:absolute;left:7.6%;top:38.8%;width:38.5%;height:40.5%;display:grid;grid-template-rows:repeat(4,1fr);gap:1.2cqw}
.solution-feature{display:grid;grid-template-columns:9.5cqw 4.2cqw 7.4cqw 1fr;align-items:center;min-height:0}
.feature-tag{display:flex;align-items:center;justify-content:center;border:1px solid #888;border-radius:2cqw;padding:.65cqw .5cqw;font-size:1.04167cqw;color:#888;white-space:nowrap}
.feature-link{position:relative;border-top:1px dotted #888;width:100%}.feature-link:after{content:'';position:absolute;right:0;top:-2px;width:3px;height:3px;border-radius:50%;background:#999}
.solution-feature svg{width:2.85cqw;height:2.95cqw;justify-self:center;fill:#888;color:#888}
.feature-copy h3{font-size:1.04167cqw;font-weight:400;margin:0 0 .15cqw;white-space:nowrap}.feature-copy p{font-size:.833333cqw;line-height:1.4;color:#888;margin:0;white-space:nowrap}
.solution-laptop{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;clip-path:polygon(62.5% 51.6%,90.8% 44.8%,91.7% 45.3%,91.8% 47%,90.6% 84.9%,100% 84.9%,100% 100%,59.35% 100%,59.35% 89.2%,48% 87.7%,45.8% 86.5%,45.8% 84.6%,60.7% 82.3%);pointer-events:none}
.solution-benefit{position:absolute;top:35%;width:27%;text-align:center}.solution-benefit:nth-child(1){left:5.5%}.solution-benefit:nth-child(2){left:36.5%}.solution-benefit:nth-child(3){left:70%}
.solution-benefit>span{font-size:1.25cqw}.solution-benefit h2{font-size:1.666667cqw;line-height:1.4;font-weight:400;margin:2cqw 0 4.6cqw}.solution-benefit p{font-size:1.16cqw;line-height:1.55;color:#888;text-align:left;margin:0;white-space:nowrap}
.solution-panel.is-visible .solution-intro{animation:solution-reveal 1.1s ease-out both}.solution-panel.is-visible .solution-feature{animation:solution-reveal 1.1s ease-out var(--delay) both}.solution-panel.is-visible .solution-laptop{animation:solution-device-arrive 1.6s ease-out .3s both}
@media(prefers-reduced-motion:reduce){.solution-panel.is-visible .solution-intro,.solution-panel.is-visible .solution-feature,.solution-panel.is-visible .solution-laptop{animation:none}}
.solution-benefit p{text-align:center;white-space:normal;word-break:keep-all}
/* Click-driven emotion gallery. No autoplay; the original card art stays intact. */
.gallery-stage{position:relative;width:100%;height:100%;background:#000 url('assets/card-gallery-background.png') center/contain no-repeat;overflow:hidden;outline:none;isolation:isolate}
.gallery-lane{position:absolute;left:50%;top:20%;transform:translateX(-50%);width:min(940px,94vw);height:65%;overflow:hidden;perspective:1200px;touch-action:pan-y;user-select:none;-webkit-user-select:none}
.emotion-card{position:absolute;left:50%;top:50%;width:var(--card-width,240px);padding:0;margin:0;border:0;background:none;color:inherit;cursor:pointer;transform-origin:50% 50%;will-change:transform;outline:none}
.is-ready .emotion-card{transition:transform var(--gallery-time) var(--gallery-easing),opacity var(--gallery-time) var(--gallery-easing)}
.emotion-card-inner{display:block;transition:transform .2s ease-out;filter:drop-shadow(0 16px 20px #0008)}
.emotion-card img{display:block;width:100%;height:auto;max-width:100%;object-fit:contain;pointer-events:none}
@media(hover:hover){.emotion-card:hover .emotion-card-inner{transform:translateY(var(--hover-lift,-4px))}}
.emotion-card:focus-visible .emotion-card-inner{outline:1px solid #ffe565;outline-offset:5px;border-radius:10%}
.gallery-lane.is-dragging,.gallery-lane.is-dragging .emotion-card{cursor:grabbing}
.gallery-controls{position:absolute;left:50%;bottom:7%;transform:translateX(-50%);display:flex;align-items:center;gap:25px;font-family:Arial,sans-serif;font-size:11px;color:#999}
.gallery-controls button{width:36px;height:36px;border:1px solid #ffffff30;border-radius:50%;background:#000;color:#ddd;font:inherit;font-size:18px;cursor:pointer;transition:border-color .2s,background .2s}
.gallery-controls button:hover{border-color:#ffffff80;background:#171717}.gallery-controls button:focus-visible{outline:2px solid var(--focus);outline-offset:4px}
#gallery-position{min-width:53px;text-align:center;font-variant-numeric:tabular-nums;letter-spacing:2px}
@media(max-width:650px){.gallery-lane{top:20%;height:62%;width:100%}.gallery-controls{bottom:12%;gap:23px}}
@media(prefers-reduced-motion:reduce){.is-ready .emotion-card{transition-duration:100ms}.emotion-card-inner{transition:none}.emotion-card:hover .emotion-card-inner{transform:none}}
@media(min-width:651px){.gallery-lane{width:min(94vw,calc(var(--card-width,240px)*2.35))}}
.gallery-mobile-heading{display:none}
@media(max-width:650px){.gallery-mobile-heading{position:absolute;left:7%;right:7%;top:9%;display:flex;justify-content:space-between;font:11px Arial,sans-serif;color:#888}}
/* Full-width ticket fan, matching the reference's small, overlapping 3D cards. */
.gallery-lane{left:0;top:17%;transform:none;width:100%!important;height:67%;overflow:hidden;perspective-origin:50% 50%;transform-style:preserve-3d}
.emotion-card,.is-ready .emotion-card{transition:none!important;backface-visibility:hidden;transform-style:preserve-3d}
.emotion-card-inner{filter:drop-shadow(0 10px 15px #0006)}
.gallery-controls{bottom:10%;gap:24px}
@media(max-width:650px){.gallery-lane{top:19%;height:61%}.gallery-controls{bottom:12%}}
@media(max-width:650px){.gallery-stage{background-image:none}}

/* Keep supplied card pixels crisp without an extra filtered raster layer. */
.emotion-card-inner{filter:none}

/* Inline card explanation: leaders draw first, then the associated text. */
.gallery-lane,.gallery-controls{transition:opacity .4s ease,visibility .4s}
.is-detail .gallery-lane,.is-detail .gallery-controls{opacity:0;visibility:hidden;pointer-events:none}
.emotion-detail{position:absolute;inset:0;z-index:5;background:#000;opacity:0;transition:opacity .4s ease;font-family:Arial,'Apple SD Gothic Neo',sans-serif}
.emotion-detail[hidden]{display:none}
.emotion-detail.is-shown{opacity:1}
.detail-layout{position:absolute;left:50%;top:50%;width:min(100vw,177.777778dvh);aspect-ratio:16/9;transform:translate(-50%,-50%);container-type:inline-size;color:#eee}
.detail-intro{position:absolute;left:10%;top:33%;width:26%;opacity:0;transform:translateY(12px);transition:opacity .65s .2s,transform .8s .2s}
.detail-intro>span{font-size:1.25cqw}.detail-intro h2{font-size:1.67cqw;font-weight:400;margin:.4cqw 0 1.3cqw}.detail-intro p{color:#999;font-size:1.05cqw;line-height:1.55;margin:0;word-break:keep-all}
.detail-card{position:absolute;left:41%;top:28%;width:17%;padding:0;border:0;background:transparent;cursor:pointer;opacity:0;transform:translateY(10px) scale(.96);transition:opacity .5s,transform .75s cubic-bezier(.2,.7,.2,1)}
.detail-card img{display:block;width:100%;height:auto}.detail-card:focus-visible{outline:1px solid #aaa;outline-offset:7px;border-radius:12px}
.detail-note{position:absolute;left:63.2%;width:27%;font-size:.8cqw;line-height:1.5}.detail-note-top{top:36%}.detail-note-bottom{top:61%}
.detail-note p{margin:0;opacity:0;transform:translateX(-6px);transition:opacity .55s var(--text-delay),transform .55s var(--text-delay)}
.detail-note-top{--line-delay:.4s;--text-delay:1.1s}.detail-note-bottom{--line-delay:.65s;--text-delay:1.35s}
.detail-leader{position:absolute;right:calc(100% + 2cqw);top:1cqw;width:8.8cqw;border-top:1px dashed #888;transform:scaleX(0);transform-origin:left;transition:transform .7s cubic-bezier(.22,.65,.3,1) var(--line-delay)}
.detail-leader:after{content:'';position:absolute;right:-2px;top:-3px;width:5px;height:5px;border-radius:50%;background:#888}
.is-shown .detail-intro,.is-shown .detail-card,.is-shown .detail-note p{opacity:1;transform:none}.is-shown .detail-leader{transform:scaleX(1)}
@media(max-width:650px){
 .detail-layout{width:100%;height:100%;aspect-ratio:auto}
 .detail-intro{left:8%;top:10%;width:84%}.detail-intro>span{font-size:12px}.detail-intro h2{font-size:22px;margin:6px 0 12px}.detail-intro p{font-size:12px;max-width:360px}
 .detail-card{left:9%;top:37%;width:36%;max-width:190px}
 .detail-note{left:57%;width:37%;font-size:11px;word-break:keep-all}.detail-note-top{top:42%}.detail-note-bottom{top:62%}.detail-note br{display:none}
 .detail-leader{width:13cqw;right:calc(100% + 2cqw);top:8px}
}
@media(prefers-reduced-motion:reduce){.emotion-detail,.detail-card,.detail-intro,.detail-leader,.detail-note p,.gallery-lane,.gallery-controls{transition:none}}

.detail-page-label,.detail-page-number{position:absolute;top:8%;font-size:1.05cqw;color:#888}.detail-page-label{left:5.3%}.detail-page-number{right:5.8%}
@media(max-width:650px){.detail-page-label,.detail-page-number{top:6%;font-size:11px}}
/* A working journal inside a complete phone frame. */
.analysis-page{position:relative;background:#000;font-family:Arial,'Apple SD Gothic Neo',sans-serif;color:#eee;flex-direction:column;padding:5vh 8vw 3vh;justify-content:flex-start;gap:3vh}
.analysis-heading{width:100%;max-width:1600px}.analysis-heading>span{font-size:15px}.analysis-heading h2{font-size:clamp(20px,2vw,32px);font-weight:400;margin:7px 0 16px}.analysis-heading p{color:#888;font-size:clamp(11px,1.1vw,18px);line-height:1.5;margin:0}.analysis-number{position:absolute;right:6%;top:7%;font-size:14px;color:#888}
.emotion-phone{position:relative;width:min(350px,78vw);height:min(620px,70dvh);min-height:350px;border:3px solid #555;border-radius:44px;background:linear-gradient(155deg,#121212,#030303 60%);padding:17px 22px 24px;display:flex;flex-direction:column;box-shadow:inset 0 0 0 3px #111;flex-shrink:0}
.phone-status{display:flex;justify-content:space-between;align-items:center;height:22px;font-size:10px;font-weight:600;position:relative;padding:0 4px}.phone-island{position:absolute;left:50%;transform:translateX(-50%);width:85px;height:22px;border-radius:20px;background:#000}.phone-status>span:last-child{font-size:9px;letter-spacing:1px}
.phone-app-header{display:flex;align-items:center;justify-content:space-between;color:#999;font-size:9px;letter-spacing:1.5px;margin:20px 0 14px}.phone-app-header>span:first-child,.phone-app-header>span:last-child{font-size:20px}
.emotion-visual{display:flex;gap:20px;align-items:center;justify-content:center;min-height:115px;flex:1}.emotion-orb{position:relative;isolation:isolate;width:145px;aspect-ratio:1;flex-shrink:0;border-radius:50%;overflow:hidden;background:var(--emotion-0);opacity:.6;transition:opacity 1s;box-shadow:0 0 35px #ffffff06}.emotion-orb.has-result{opacity:1}
.emotion-orb span{position:absolute;inset:-30%;border-radius:48%;filter:blur(22px);animation:emotion-drift 16s ease-in-out infinite alternate;background:var(--emotion-0);transform:translate(-20%,-15%)}
.emotion-orb span:nth-child(2){background:var(--emotion-1);inset:-5% -60% -25% 35%;animation-duration:19s;animation-delay:-7s}.emotion-orb span:nth-child(3){background:var(--emotion-2);inset:40% 10% -45% -45%;animation-duration:23s;animation-delay:-12s}
@keyframes emotion-drift{0%{transform:translate(-12%,-8%) rotate(0deg) scale(.9)}50%{transform:translate(10%,12%) rotate(65deg) scale(1.12)}100%{transform:translate(-2%,18%) rotate(130deg) scale(.95)}}
#emotion-legend{list-style:none;padding:0;margin:0;display:grid;gap:13px}#emotion-legend li{display:flex;align-items:center;gap:8px;font-size:9px;letter-spacing:.3px}#emotion-legend i{display:block;width:16px;height:16px;border-radius:50%;flex-shrink:0}
#emotion-form{margin-top:18px}#emotion-form label{display:block;font-size:12px;margin-bottom:10px;color:#bbb}#emotion-entry{display:block;width:100%;height:125px;resize:none;border:1px solid #ffffff22;border-radius:19px;background:radial-gradient(circle,#ffffff0b 1px,transparent 1px) 0 0/13px 13px,linear-gradient(145deg,#343434,#151515);color:#eee;padding:15px;font:12px/1.7 Arial,'Apple SD Gothic Neo',sans-serif;outline:none;scrollbar-width:thin}#emotion-entry::placeholder{color:#858585}#emotion-entry:focus{border-color:#ffffff70}
.entry-footer{display:flex;align-items:center;justify-content:space-between;margin-top:11px;gap:5px}#entry-count{font-size:9px;color:#777}.entry-footer button{border:1px solid #ffffff35;border-radius:20px;padding:9px 12px;background:#eee;color:#151515;font-size:10px;cursor:pointer}.entry-footer button:hover{background:#fff}.entry-footer button:focus-visible{outline:2px solid #5bd5f5;outline-offset:3px}
#emotion-status{font-size:10px;line-height:1.5;color:#888;min-height:30px;margin:14px 0 0}.phone-home{position:absolute;width:90px;height:4px;border-radius:4px;background:#ccc;bottom:9px;left:50%;transform:translateX(-50%)}
.is-analyzing{opacity:.5!important}
@media(max-height:720px){.analysis-page{padding-top:3vh;gap:2vh}.analysis-heading h2{margin:4px 0 6px}.emotion-phone{height:70dvh;padding-top:10px;padding-bottom:20px}.phone-app-header{margin:10px 0 5px}.emotion-orb{width:110px}#emotion-form{margin-top:8px}#emotion-entry{height:90px}#emotion-status{margin-top:8px;font-size:9px}}
@media(max-width:650px){.analysis-page{padding:4vh 6vw 2vh;gap:2vh}.analysis-heading{padding-right:12px}.analysis-number{top:3%;font-size:10px}.analysis-heading>span{font-size:12px}.analysis-heading h2{font-size:20px;max-width:290px}.analysis-heading p{font-size:11px}.emotion-phone{height:min(590px,70dvh);width:min(340px,88vw)}.emotion-orb{width:135px}}
@media(prefers-reduced-motion:reduce){.emotion-orb span{animation:none}.emotion-orb{transition:none}}
/* Taller handset proportions, with a slightly wider, unhurried color drift. */
.emotion-phone{width:auto!important;height:min(640px,70dvh);aspect-ratio:9/19.5;min-height:0;padding:14px 18px 23px;border-radius:39px}
.emotion-visual{gap:13px}.emotion-orb{width:47%;max-width:145px}#emotion-legend{gap:11px}#emotion-legend li{font-size:8px;gap:6px}#emotion-legend i{width:14px;height:14px}
.emotion-orb span{animation-duration:14s}.emotion-orb span:nth-child(2){animation-duration:17s}.emotion-orb span:nth-child(3){animation-duration:20s}
@keyframes emotion-drift{0%{transform:translate(-18%,-13%) rotate(0deg) scale(.88)}50%{transform:translate(16%,18%) rotate(78deg) scale(1.17)}100%{transform:translate(-7%,24%) rotate(145deg) scale(.96)}}
@media(max-height:720px){.emotion-phone{height:70dvh;padding:10px 14px 20px;border-radius:32px}.phone-app-header{margin:8px 0 4px}#emotion-entry{height:80px;font-size:11px;padding:11px}.entry-footer button{font-size:9px;padding:8px}.emotion-visual{min-height:88px}.phone-island{width:70px;height:19px}}
@media(max-width:650px){.emotion-phone{height:min(640px,70dvh)}.emotion-visual{gap:12px}}

/* Give the writing area the space previously used by the result caption. */
#emotion-status{display:none}
#emotion-entry{height:170px}
@media(max-height:720px){#emotion-entry{height:120px}}
/* More breathing room between the introduction and the handset. */
.analysis-page{gap:5vh}
.emotion-phone{height:min(610px,66dvh)}
@media(max-height:720px){.analysis-page{gap:4vh}.emotion-phone{height:66dvh}}
@media(max-width:650px){.analysis-page{gap:4vh}.emotion-phone{height:min(610px,66dvh)}}

.emotion-orb:not(.has-result):not(.is-analyzing){opacity:1}
/* The color becomes a measured, animated three-ring portrait. */
.emotion-phone{transition:transform .8s cubic-bezier(.22,.7,.2,1)}
.show-metrics .emotion-phone{transform:translateX(23vw)}
.emotion-metrics{position:absolute;left:12%;top:36%;width:min(32vw,380px);opacity:0;transform:translateY(12px);transition:opacity .5s,transform .7s;pointer-events:none;z-index:2}
.emotion-metrics>svg{width:100%;display:block;overflow:visible}.metric-ring{stroke-dashoffset:100;transition:stroke-dashoffset 1.5s cubic-bezier(.2,.65,.25,1) var(--ring-delay)}
.fill-metrics .emotion-metrics{opacity:1;transform:none}.fill-metrics .metric-ring{stroke-dashoffset:0}
.metric-labels{display:grid;gap:10px;margin:7px auto 0;width:82%;font-size:10px}.metric-labels>span{display:flex;align-items:center;gap:8px}.metric-labels i{width:9px;height:9px;border-radius:50%}.metric-labels b{margin-left:auto;font-weight:400;font-variant-numeric:tabular-nums}.emotion-metrics small{display:block;text-align:center;color:#777;font-size:9px;margin-top:16px}
.emotion-link{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;z-index:3;opacity:0}.draw-link .emotion-link{opacity:1}.link-reveal{stroke-dasharray:1;stroke-dashoffset:1}.draw-link .link-reveal{animation:emotion-link-draw .75s ease-out forwards}@keyframes emotion-link-draw{to{stroke-dashoffset:0}}
@media(max-width:650px){.show-metrics .emotion-phone{transform:translate(20vw,5vh) scale(.72);transform-origin:center center}.emotion-metrics{left:3%;top:34%;width:42vw}.metric-labels{width:100%;font-size:8px;gap:8px}.emotion-metrics small{font-size:8px}.metric-labels>span{gap:4px}}
@media(prefers-reduced-motion:reduce){.emotion-phone,.emotion-metrics,.metric-ring{transition:none}.draw-link .link-reveal{animation:none;stroke-dashoffset:0}}
/* Reference dial: peripheral ticks, radial guides, labels and the three source cards. */
.emotion-metrics{left:20%;width:min(29vw,350px)}
.metric-cards{position:absolute;right:calc(100% + 3vw);top:-9%;height:120%;display:flex;flex-direction:column;justify-content:space-between;align-items:center}
.metric-cards img{width:auto;height:29%;object-fit:contain;max-width:80px}
.metric-caption{display:flex;align-items:center;justify-content:center;gap:5px;color:#bbb;font-size:9px;margin-top:5px;white-space:nowrap}.metric-caption i{width:9px;height:9px;border-radius:50%;background:linear-gradient(90deg,var(--emotion-0,#5bd5f5),#ff1730,#fff)}
.metric-labels{margin-top:15px}
@media(max-width:650px){.emotion-metrics{left:11%;width:34vw}.metric-cards{right:calc(100% + 2vw);height:115%;top:-7%}.metric-cards img{max-width:9vw}.metric-caption{font-size:6px;gap:3px}.metric-caption i{width:6px;height:6px}.metric-labels{font-size:7px}}

/* Reveal the dashed route while a small arrow travels from the color to the dial. */
.draw-link .link-reveal{animation:none}
/* Lower the caption and legend to the source-card column's bottom edge. */
.metric-caption{margin-top:18px}
.metric-labels{margin-top:20px}
/* Center the compact card stack on the dial itself, excluding its legend. */
.metric-cards{top:0;height:auto;gap:10px;justify-content:center;transform:translateY(-50%);margin-top:50%;width:70px}
.metric-cards img{height:auto;width:52px;max-width:100%}
@media(max-width:650px){.metric-cards{width:9vw;gap:6px}.metric-cards img{width:100%;height:auto}}
/* A continuous collection of personal color portraits. */
.spectrum-page{background:#000;font-family:Arial,'Apple SD Gothic Neo',sans-serif;color:#eee}
.spectrum-panel{position:relative;width:min(100vw,177.777778dvh);aspect-ratio:16/9;container-type:inline-size;overflow:hidden}
.spectrum-heading{position:absolute;left:8.6%;top:10%;width:65%;z-index:2}.spectrum-heading>span{font-size:1cqw}.spectrum-heading h2{font-size:1.85cqw;font-weight:400;margin:1.7cqw 0 1.5cqw}.spectrum-heading p{font-size:1cqw;line-height:1.6;color:#888;margin:0;word-break:keep-all}.spectrum-number{position:absolute;right:6%;top:7.5%;font-size:1cqw;color:#888;z-index:3}
.spectrum-phones{position:absolute;left:12%;top:35%;width:49%;height:57%;display:flex;align-items:flex-start;gap:4cqw}
.sample-phone{position:relative;flex-shrink:0;width:18cqw;aspect-ratio:9/19.5;border:2px solid #777;border-radius:2.8cqw;padding:1.1cqw 1.05cqw 1.6cqw;background:linear-gradient(155deg,#1b1b1b,#060606 35%,#101219);box-shadow:inset 0 0 0 2px #242424,0 15px 40px #000;overflow:hidden}
.sample-phone:nth-child(2){margin-top:3.3cqw;border-color:#555;background:linear-gradient(155deg,#1b1b1b,#060606 35%,#1b0c17)}
.sample-status{position:relative;display:flex;align-items:center;justify-content:space-between;font-size:.55cqw;font-weight:600;padding:0 .2cqw;height:1.3cqw}.sample-status>i{position:absolute;width:4.8cqw;height:1.2cqw;left:50%;top:0;transform:translateX(-50%);border-radius:2cqw;background:#000}.sample-status>span:last-child{font-size:.48cqw}
.sample-app-title{display:flex;justify-content:space-between;align-items:center;color:#aaa;letter-spacing:.1cqw;font-size:.46cqw;margin:1.1cqw 0 1cqw}.sample-app-title>span{font-size:1cqw}
.sample-visual{display:flex;align-items:center;gap:.8cqw;padding:.6cqw 0 1.5cqw}.sample-orb{isolation:isolate;position:relative;width:8.5cqw;aspect-ratio:1;border-radius:50%;overflow:hidden;background:var(--a);flex-shrink:0}
.sample-orb i{position:absolute;inset:-30%;background:var(--a);filter:blur(1.2cqw);border-radius:48%;animation:emotion-drift 16s ease-in-out infinite alternate;animation-play-state:paused}.sample-orb i:nth-child(2){background:var(--b);inset:-20% -35% 10% 35%;animation-delay:-6s;animation-duration:19s}.sample-orb i:nth-child(3){background:var(--c);inset:40% -10% -40% -20%;animation-delay:-11s;animation-duration:22s}
.sample-chips{display:grid;gap:.7cqw}.sample-chips span{display:flex;align-items:center;gap:.4cqw;font-size:.44cqw;letter-spacing:.02cqw}.sample-chips i{width:.8cqw;height:.8cqw;border-radius:50%;flex-shrink:0}
.sample-journal{border:1px solid #ffffff1c;border-radius:1.25cqw;background:linear-gradient(145deg,#303034,#18181c);padding:1cqw;min-height:12.3cqw}.sample-journal>span{font-size:.42cqw;letter-spacing:.08cqw;color:#999}.sample-journal p{font-size:.8cqw;line-height:1.75;color:#ddd;margin:.8cqw 0 0;word-break:keep-all}.sample-saved{display:flex;align-items:center;justify-content:center;gap:.4cqw;font-size:.5cqw;color:#999;margin-top:1cqw}.sample-saved i{width:.3cqw;height:.3cqw;border-radius:50%;background:#8cbaab}.sample-home{position:absolute;bottom:.65cqw;left:35%;width:30%;height:.19cqw;border-radius:1cqw;background:#bbb}
.spectrum-case-controls{position:absolute;left:12%;bottom:3%;width:40%;display:flex;justify-content:space-between;align-items:center;color:#777;font-size:.5cqw;letter-spacing:.08cqw}.spectrum-case-controls>div{display:flex;align-items:center;gap:1cqw}.spectrum-case-controls button{background:none;border:1px solid #ffffff30;border-radius:50%;width:2cqw;height:2cqw;color:#bbb;cursor:pointer;font-size:.8cqw}.spectrum-case-controls button:hover{border-color:#fff}.spectrum-case-controls output{font-variant-numeric:tabular-nums}
.spectrum-river{position:absolute;right:5%;top:0;width:24%;height:100%;overflow:hidden;mask-image:linear-gradient(transparent,#000 9%,#000 91%,transparent);transform:rotate(12deg)}
.spectrum-river-track{display:flex;flex-direction:column;animation:spectrum-flow 55s linear infinite;animation-play-state:paused}.spectrum-mixture{display:flex;justify-content:space-between;align-items:center;flex-shrink:0;width:100%;height:9cqw;padding:0 1cqw;background:none;border:0;cursor:pointer;transform:rotate(-12deg)}
.mixture-chips{display:flex;gap:1.1cqw}.mixture-chips i{width:.9cqw;height:.9cqw;display:block;border-radius:50%}.spectrum-mixture .sample-orb{width:5.8cqw;transition:transform .4s}.spectrum-mixture:hover .sample-orb{transform:scale(1.1)}.spectrum-mixture:focus-visible{outline:1px solid #aaa;outline-offset:-4px;border-radius:3cqw}
.spectrum-page.is-active .spectrum-river-track,.spectrum-page.is-active .sample-orb i{animation-play-state:running}.spectrum-river:hover .spectrum-river-track,.spectrum-river:focus-within .spectrum-river-track{animation-play-state:paused}
@keyframes spectrum-flow{to{transform:translateY(-50%)}}
@media(max-width:650px){
 .spectrum-panel{width:100%;height:100%;aspect-ratio:auto}.spectrum-heading{left:7%;top:7%;width:86%}.spectrum-heading>span{font-size:12px}.spectrum-heading h2{font-size:24px;margin:16px 0}.spectrum-heading p{font-size:11px;max-width:90%}.spectrum-heading br{display:none}.spectrum-number{font-size:11px;right:7%;top:5%}
 .spectrum-phones{left:6%;top:34%;width:68%;height:55%;gap:3cqw}.sample-phone{width:30cqw;border-radius:4.5cqw;padding:1.8cqw 1.7cqw 2.5cqw}.sample-phone:nth-child(2){margin-top:9cqw}.sample-status{height:2.2cqw;font-size:.9cqw}.sample-status>i{width:8cqw;height:2cqw}.sample-status>span:last-child{font-size:.75cqw}.sample-app-title{font-size:.7cqw;margin:2cqw 0}.sample-app-title>span{font-size:1.6cqw}.sample-visual{gap:1.2cqw;padding:1cqw 0 3cqw}.sample-phone .sample-orb{width:14cqw}.sample-chips{gap:1cqw}.sample-chips span{font-size:.65cqw;gap:.6cqw}.sample-chips i{width:1.3cqw;height:1.3cqw}.sample-journal{min-height:25cqw;border-radius:2cqw;padding:1.6cqw}.sample-journal>span{font-size:.65cqw}.sample-journal p{font-size:1.5cqw;line-height:1.7}.sample-saved{font-size:.8cqw;margin-top:2cqw}.sample-home{bottom:1cqw;height:.35cqw}
 .spectrum-river{width:24%;right:0;top:27%;height:70%;transform:rotate(6deg)}.spectrum-mixture{height:20cqw;padding:0 2cqw;transform:rotate(-6deg)}.spectrum-mixture .sample-orb{width:10cqw}.mixture-chips{gap:.7cqw;flex-direction:column}.mixture-chips i{width:1.5cqw;height:1.5cqw}.spectrum-case-controls{left:6%;width:63%;bottom:12%;font-size:1cqw;flex-direction:column;gap:14px;align-items:flex-start}.spectrum-case-controls button{width:26px;height:26px;font-size:13px}.spectrum-case-controls>div{gap:12px;font-size:10px}
}
@media(prefers-reduced-motion:reduce){.spectrum-river-track,.sample-orb i{animation:none}.spectrum-mixture .sample-orb{transition:none}}
@media(min-width:651px){
 .spectrum-phones{left:14%;top:33%;gap:5cqw}.sample-phone{width:14.5cqw;padding:.9cqw .85cqw 1.4cqw;border-radius:2.25cqw}.sample-phone:nth-child(2){margin-top:2.6cqw}.sample-phone .sample-orb{width:7cqw}.sample-visual{gap:.6cqw;padding:.4cqw 0 1.1cqw}.sample-chips span{font-size:.38cqw}.sample-chips i{width:.65cqw;height:.65cqw}.sample-journal{padding:.8cqw;min-height:11cqw}.sample-journal p{font-size:.7cqw;line-height:1.65}.sample-saved{margin-top:.8cqw}.spectrum-case-controls{left:14%;width:34%;bottom:2%}
}
/* Enlarge the journal details and let visitors browse the color collection. */
.spectrum-river{right:5%;width:27%;transform:none;overflow-y:auto;overflow-x:hidden;scrollbar-width:none;overscroll-behavior-y:contain;touch-action:pan-y;mask-image:linear-gradient(transparent,#000 8%,#000 92%,transparent)}
.spectrum-river::-webkit-scrollbar{display:none}.spectrum-river:focus-visible{outline:1px solid #ffffff40;outline-offset:-2px;border-radius:12px}
.spectrum-river-track{animation:none!important;padding:4cqw 0}
.spectrum-mixture{height:11cqw;padding:0;transform:none;justify-content:center;gap:1.8cqw}
.mixture-chips{gap:.85cqw}.mixture-chips i{width:1.3cqw;height:1.3cqw}.spectrum-mixture .sample-orb{width:8cqw}
@media(min-width:651px){
 .spectrum-phones{left:11%;top:36%;gap:3.7cqw}.sample-phone{width:23cqw;padding:1.3cqw 1.2cqw 2cqw;border-radius:3.1cqw}.sample-phone:nth-child(2){margin-top:5cqw}
 .sample-status{height:1.6cqw;font-size:.65cqw}.sample-status>i{width:6cqw;height:1.5cqw}.sample-status>span:last-child{font-size:.56cqw}.sample-app-title{font-size:.6cqw;margin:1.4cqw 0}.sample-app-title>span{font-size:1.25cqw}
 .sample-phone .sample-orb{width:10.8cqw}.sample-visual{gap:1cqw;padding:.6cqw 0 1.8cqw}.sample-chips{gap:.9cqw}.sample-chips span{font-size:.58cqw;gap:.5cqw}.sample-chips i{width:1cqw;height:1cqw}
 .sample-journal{padding:1.25cqw;min-height:15cqw;border-radius:1.6cqw}.sample-journal>span{font-size:.58cqw}.sample-journal p{font-size:1.05cqw;line-height:1.65;margin-top:1cqw}.sample-saved{font-size:.65cqw}
 .spectrum-case-controls{left:11%;width:49%;bottom:1.4%;z-index:4;background:linear-gradient(transparent,#000e);padding:.9cqw .6cqw .4cqw;font-size:.6cqw}
}
@media(max-width:650px){
 .spectrum-phones{left:4%;top:34%;gap:3cqw}.sample-phone{width:34cqw}.sample-phone:nth-child(2){margin-top:14cqw}.sample-phone .sample-orb{width:16cqw}.sample-chips span{font-size:.75cqw}.sample-journal p{font-size:1.8cqw}.sample-journal{min-height:29cqw}
 .spectrum-river{right:0;width:23%;top:27%;height:70%}.spectrum-river-track{padding:10cqw 0}.spectrum-mixture{height:25cqw;gap:1.5cqw}.spectrum-mixture .sample-orb{width:13cqw}.mixture-chips{flex-direction:column;gap:1.2cqw}.mixture-chips i{width:2cqw;height:2cqw}
}
@media(min-width:651px){.sample-phone:nth-child(2){margin-top:1.7cqw}.spectrum-case-controls{top:29%;bottom:auto;background:none;padding:0}}
/* A seamless manual loop; journal frames end on a shared clean baseline. */
.spectrum-case-controls{display:none}
.spectrum-river{scroll-behavior:auto;overflow-anchor:none}
.spectrum-phones{align-items:flex-start}
.sample-phone{aspect-ratio:auto;height:auto;padding-bottom:1cqw;border-bottom:0;border-radius:2.8cqw 2.8cqw 0 0}
.sample-phone:nth-child(2){margin-top:0}
.sample-saved,.sample-home{display:none}
@media(min-width:651px){.spectrum-phones{top:34%;gap:3.7cqw}.sample-phone{width:23cqw;padding-bottom:1cqw;border-radius:3.1cqw 3.1cqw 0 0}.sample-phone:nth-child(2){margin-top:0}.sample-journal{min-height:14cqw}.sample-visual{padding-bottom:1.3cqw}}
@media(max-width:650px){.sample-phone{padding-bottom:1.5cqw;border-radius:4.5cqw 4.5cqw 0 0}.sample-phone:nth-child(2){margin-top:0}.sample-journal{min-height:34cqw}}
/* Two clear next steps once the emotion portrait has formed. */
.mind-actions{position:absolute;left:12%;bottom:5%;display:flex;align-items:center;gap:12px;z-index:5;opacity:0;visibility:hidden;transform:translateY(8px);transition:opacity .5s,transform .5s,visibility .5s}
.fill-metrics .mind-actions{opacity:1;visibility:visible;transform:none}
.mind-actions button{display:flex;align-items:center;justify-content:center;gap:18px;min-height:43px;padding:11px 18px;border:1px solid #ffffff45;border-radius:30px;background:#101010;color:#bbb;font:11px Arial,'Apple SD Gothic Neo',sans-serif;cursor:pointer;transition:background .2s,transform .2s,border-color .2s}
.mind-actions button:hover{background:#202020;border-color:#ffffff90;transform:translateY(-2px)}
.mind-actions #enter-emotion-city{background:#e9fbf7;border-color:#e9fbf7;color:#09231e;font-weight:600;box-shadow:0 0 24px #7be7cf20}
.mind-actions #enter-emotion-city:hover{background:#fff;box-shadow:0 0 30px #7be7cf35}
.mind-actions button:focus-visible{outline:2px solid #5bd5f5;outline-offset:4px}
@media(max-width:650px){.mind-actions{left:5%;right:5%;bottom:4%;gap:8px;justify-content:center}.mind-actions button{font-size:10px;padding:10px 13px;gap:10px;min-height:40px}}
@media(prefers-reduced-motion:reduce){.mind-actions,.mind-actions button{transition:none}}

/* The other-minds destination opens as its own page in the current tab. */
html[data-view="other-minds"] .pages{overflow:hidden;scroll-behavior:auto}
html[data-view="other-minds"] .page:not(#spectrum-page){display:none}

/* One focused journal handset for the selected color combination. */
@media(min-width:651px){.spectrum-phones{left:23%;width:23cqw}}
@media(max-width:650px){.spectrum-phones{left:19%;width:34cqw}}
/* Keep both live screens in memory while softly crossing between destinations. */
::view-transition-old(root){animation:mind-screen-out .4s ease both}
::view-transition-new(root){animation:mind-screen-in .6s cubic-bezier(.2,.65,.3,1) both}
@keyframes mind-screen-out{to{opacity:0;transform:translateY(-9px)}}
@keyframes mind-screen-in{from{opacity:0;transform:translateY(12px)}to{opacity:1;transform:none}}
.back-to-analysis{position:absolute;left:8.6%;top:3%;z-index:6;padding:7px 12px;border:1px solid #ffffff35;border-radius:25px;background:#0c0c0c;color:#bbb;font:10px Arial,sans-serif;cursor:pointer;transition:background .2s,border-color .2s}
.back-to-analysis:hover{background:#222;border-color:#ffffff80}.back-to-analysis:focus-visible{outline:2px solid #5bd5f5;outline-offset:3px}
@media(max-width:650px){.back-to-analysis{left:7%;top:2%;font-size:9px;padding:6px 10px}.spectrum-heading{top:9%}}
@media(prefers-reduced-motion:reduce){::view-transition-old(root),::view-transition-new(root){animation:none}}
/* The city is an independent destination, drawn exclusively from the supplied art. */
.emotion-city-page{display:none;position:relative;background:#000}
html[data-view="city"] .pages{overflow:hidden;scroll-behavior:auto}
html[data-view="city"] .page:not(#emotion-city-page){display:none}
html[data-view="city"] #emotion-city-page{display:flex}
.emotion-city-panel{position:relative;width:min(100vw,177.777778dvh);aspect-ratio:16/9;touch-action:none;outline:none}
.emotion-city-reference{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;pointer-events:none}
#emotion-city-canvas{position:absolute;left:0;top:53%;width:100%;height:47%;display:block}
.city-back{position:absolute;top:4%;left:8%;border:1px solid #ffffff30;border-radius:25px;background:#111;color:#aaa;font:10px Arial,sans-serif;padding:8px 12px;z-index:3}
#emotion-city-cursor{position:fixed;left:50%;top:50%;width:46px;height:46px;transform:translate(-50%,-50%);z-index:100;pointer-events:none;opacity:0;--emotion-0:#fff;--emotion-1:#fff;--emotion-2:#fff}
#emotion-city-cursor .emotion-orb{width:100%;height:100%;max-width:none;box-shadow:0 0 18px #ffffff20}#emotion-city-cursor .emotion-orb span{filter:blur(7px)}
@media(hover:hover) and (pointer:fine){html[data-view="city"] .emotion-city-page,html[data-view="city"] .emotion-city-page *{cursor:none}.cursor-visible #emotion-city-cursor{opacity:1}}

#emotion-city-cursor{width:30px;height:30px}
#emotion-city-cursor .emotion-orb span{filter:blur(5px)}
html[data-view="city"] .emotion-city-page.emotion-placed,html[data-view="city"] .emotion-city-page.emotion-placed *{cursor:auto}
.emotion-placed #emotion-city-cursor{opacity:0!important}
.emotion-city-page.is-depositing{pointer-events:none}

/* The flash fades; its final small emotion circle stays in the city. */
.city-placed-emotion{position:absolute;z-index:2;width:5.4px;height:5.4px;border-radius:50%;transform:translate(-50%,-50%);pointer-events:none;opacity:1;box-shadow:0 0 5px #ffffff35}
.city-placed-emotion[hidden]{display:none}
/* Other minds is a button-only destination, never part of the main scroll. */
#spectrum-page{display:none}
html[data-view="other-minds"] #spectrum-page{display:flex}

/* Each source chip focuses and replays its corresponding emotion ring. */
.metric-chip{display:block;padding:0;border:0;background:none;cursor:pointer;pointer-events:auto;line-height:0;border-radius:7px;transition:opacity .25s,transform .25s}
.metric-chip:hover{transform:translateY(-2px)}.metric-chip:focus-visible{outline:1px solid #fff;outline-offset:4px}
.metric-chip img{display:block}
.has-selected-chip .metric-chip[aria-pressed="false"]{opacity:.4}
.has-selected-chip .metric-ring{opacity:.15;transition:opacity .3s}
.has-selected-chip .metric-ring.is-selected{opacity:1}
@media(prefers-reduced-motion:reduce){.metric-chip,.has-selected-chip .metric-ring{transition:none}}

/* A private note attached to the small light, with a forgiving hit area. */
.city-placed-emotion{border:0;padding:0;pointer-events:auto;cursor:pointer!important}
.city-placed-emotion:before{content:'';position:absolute;inset:-10px;border-radius:50%}
.city-placed-emotion:focus-visible{outline:1px solid white;outline-offset:6px}
.city-memory-popup{position:fixed;z-index:110;width:min(290px,calc(100vw - 24px));padding:20px;border:1px solid #ffffff30;border-radius:17px;background:#17191af5;color:#eee;box-shadow:0 15px 50px #0008;font-family:Arial,'Apple SD Gothic Neo',sans-serif;backdrop-filter:blur(14px);animation:memory-appear .25s ease-out}
.city-memory-popup[hidden]{display:none}.city-memory-popup>span{display:block;color:#969c9b;font-size:9px;letter-spacing:1.5px;padding-right:20px}
.city-memory-popup>p{font-size:13px;line-height:1.8;white-space:pre-wrap;overflow-wrap:anywhere;margin:14px 0 0;max-height:210px;overflow-y:auto;scrollbar-width:thin}
.city-memory-popup>button{position:absolute;right:10px;top:8px;border:0;background:none;color:#bbb;font-size:22px;padding:3px 7px;cursor:pointer!important}
.city-memory-popup>button:focus-visible{outline:1px solid #aaa;border-radius:5px}
@keyframes memory-appear{from{opacity:0;transform:translateY(5px)}to{opacity:1;transform:none}}
@media(prefers-reduced-motion:reduce){.city-memory-popup{animation:none}}

/* Once the graph is visible, keep its entire connector visible through resizes. */
.fill-metrics .emotion-link{opacity:1}
.fill-metrics .emotion-connector-route{clip-path:none}

/* Introduce the emotion palette before opening an individual card. */
.gallery-intro-frame{position:absolute;left:50%;top:50%;width:min(100vw,177.777778dvh);aspect-ratio:16/9;transform:translate(-50%,-50%);pointer-events:none;container-type:inline-size;transition:opacity .35s}
.gallery-intro{position:absolute;left:8%;top:19%;width:80%;font-family:Arial,'Apple SD Gothic Neo',sans-serif;color:#eee}
.gallery-intro>span{font-size:1cqw}.gallery-intro h2{font-size:1.85cqw;font-weight:400;margin:.6cqw 0 1.3cqw}.gallery-intro p{font-size:1.05cqw;line-height:1.6;color:#999;margin:0;word-break:keep-all}
.gallery-lane{top:29%;height:64%}
.is-detail .gallery-intro-frame{opacity:0}
@media(max-width:650px){.gallery-intro-frame{width:100%;height:100%;aspect-ratio:auto}.gallery-intro{left:7%;top:17%;width:86%}.gallery-intro>span{font-size:12px}.gallery-intro h2{font-size:23px;margin:6px 0 13px}.gallery-intro p{font-size:12px}.gallery-lane{top:34%;height:55%}}
@media(prefers-reduced-motion:reduce){.gallery-intro-frame{transition:none}}

/* A visual key for the two dimensions encoded by every card. */
.emotion-encoding{position:absolute;left:9%;top:32%;width:26%;color:#eee;opacity:0;transform:translateY(10px);transition:opacity .65s .2s,transform .8s .2s}
.is-shown .emotion-encoding{opacity:1;transform:none}
.encoding-heading>span{font-size:.5cqw;letter-spacing:.13cqw;color:#777}.encoding-heading h2{font-size:1.65cqw;font-weight:400;margin:.65cqw 0 2.4cqw}
.encoding-label{display:flex;justify-content:space-between;align-items:center;margin-bottom:1cqw}.encoding-label h3{font-size:1cqw;font-weight:400;margin:0}.encoding-label>span{font-size:.67cqw;color:#888}
.depth-spectrum{height:.85cqw;background:#171717;overflow:hidden;border-radius:2px;border:1px solid #ffffff12}.depth-spectrum>i{display:block;width:100%;height:100%;background:linear-gradient(90deg,#1a1a1a,var(--selected-emotion));transform:scaleX(0);transform-origin:left;transition:transform 1.2s cubic-bezier(.2,.65,.3,1) .45s}
.is-shown .depth-spectrum>i{transform:scaleX(1)}
.encoding-range{display:flex;justify-content:space-between;color:#777;font-size:.57cqw;margin-top:.6cqw}.encoding-intensity{margin-top:2.5cqw}
.intensity-dots{display:flex;align-items:center;justify-content:space-between;height:3.3cqw;padding:0 .3cqw;border-bottom:1px solid #ffffff1c;padding-bottom:.4cqw}
.intensity-dots i{display:block;width:calc(var(--size)*.07cqw);height:calc(var(--size)*.07cqw);border-radius:50%;background:var(--selected-emotion);transform:scale(0);transition:transform .65s cubic-bezier(.2,.65,.25,1) calc(.6s + var(--step)*.12s)}
.is-shown .intensity-dots i{transform:scale(1)}
@media(max-width:650px){.emotion-encoding{left:8%;top:12%;width:84%;display:grid;grid-template-columns:1fr 1fr;gap:18px}.encoding-heading{grid-column:1/-1}.encoding-heading>span{font-size:8px}.encoding-heading h2{font-size:21px;margin:5px 0 0}.encoding-label{display:block;margin-bottom:12px}.encoding-label h3{font-size:13px;margin-bottom:5px}.encoding-label>span{font-size:9px}.encoding-intensity{margin-top:0}.depth-spectrum{height:10px;margin-top:24px}.encoding-range{font-size:8px;margin-top:9px}.intensity-dots{height:34px;padding-bottom:4px}.intensity-dots i{width:calc(var(--size)*.6px);height:calc(var(--size)*.6px)}.detail-card{top:43%}.detail-note-top{top:48%}.detail-note-bottom{top:68%}}
@media(prefers-reduced-motion:reduce){.emotion-encoding,.depth-spectrum>i,.intensity-dots i{transition:none}}
/* More readable callouts beside the emotion card. */
.detail-note{font-size:1cqw;line-height:1.6}
@media(max-width:650px){.detail-note{font-size:12px;line-height:1.6}}
/* Retain the palette title while a card's explanation is open. */
.is-detail .gallery-intro-frame{opacity:1;z-index:6}
.is-detail .gallery-intro p,.is-detail .gallery-intro>span{visibility:hidden}
/* Keep the introduction fixed and give the detail composition more space below it. */
.is-detail .gallery-intro p,.is-detail .gallery-intro>span{visibility:visible}
.emotion-encoding{top:36%}
.detail-card{top:32%}
.detail-note-top{top:40%}
.detail-note-bottom{top:65%}
@media(max-width:650px){
 .emotion-encoding{top:31%}
 .detail-card{top:59%;width:30%}
 .detail-note-top{top:62%}
 .detail-note-bottom{top:79%}
}
/* Increase separation below the palette introduction. */
.emotion-encoding{top:42%}
.detail-card{top:38%}
.detail-note-top{top:46%}
.detail-note-bottom{top:71%}
@media(max-width:650px){
 .emotion-encoding{top:35%}
 .detail-card{top:63%;width:28%}
 .detail-note-top{top:66%}
 .detail-note-bottom{top:82%}
}
/* Closing scene: a quiet title remains after the city lights fade. */
.city-finale-trigger{position:absolute;right:4%;top:3%;width:70px;height:60px;z-index:5;border:0;background:transparent;cursor:pointer!important}
.city-finale-trigger:after{content:'';position:absolute;right:14px;top:18px;width:9px;height:9px;border-radius:50%;background:#ffffff70;box-shadow:0 0 14px #ffffff25}
.city-finale-trigger:focus-visible{outline:1px solid #aaa;border-radius:15px}
.city-finale-title{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;z-index:4;pointer-events:none;color:#eee;font-family:Arial,sans-serif;font-size:clamp(34px,7.2vw,140px);font-weight:400;letter-spacing:.035em;opacity:0;filter:blur(16px);transform:translateY(9px)}
.city-finale-art{position:absolute;left:0;top:0;width:100%;height:53%;background:#000;z-index:1;opacity:0;pointer-events:none}
.is-finale .city-finale-art{opacity:1;transition:opacity .85s ease}
.is-finale .city-back,.is-finale .city-finale-trigger,.is-finale .city-memory-popup,.is-finale #emotion-city-cursor{opacity:0!important;pointer-events:none;transition:opacity .7s}
.is-finale .city-finale-title{animation:city-title-arrive 3.5s cubic-bezier(.2,.5,.3,1) .6s forwards}
.is-finale #emotion-city-canvas,.is-finale .city-placed-emotion{opacity:0;transition:opacity 3s ease 4.1s}
@keyframes city-title-arrive{0%{opacity:0;filter:blur(16px);transform:translateY(9px)}55%{opacity:.45;filter:blur(3px)}100%{opacity:1;filter:blur(0);transform:none}}
html[data-view="city"] .emotion-city-page.is-finale,html[data-view="city"] .emotion-city-page.is-finale *{cursor:default!important}
@media(prefers-reduced-motion:reduce){.is-finale .city-finale-title{animation:none;opacity:1;filter:none;transform:none}.is-finale #emotion-city-canvas,.is-finale .city-placed-emotion{transition:opacity .3s}.is-finale .city-finale-art{transition:none}}
.is-finale .emotion-city-reference{opacity:0;transition:opacity .85s ease}

.city-finale-title>canvas{display:block;width:100%;height:auto;flex-shrink:0}
/* Solution and its continuation share one uninterrupted native scroll. */
.pages{scroll-snap-type:none}
#solution-page{display:block;height:200dvh;min-height:200dvh;overflow:visible;position:relative}
.solution-sticky{position:sticky;top:0;height:100dvh;width:100%;display:flex;align-items:center;justify-content:center;overflow:hidden}
.solution-window{touch-action:pan-y}
.solution-track{backface-visibility:hidden}
/* A quiet threshold between the solution and its working emotion palette. */
.mind-entry-page{position:relative;background:#000;color:#eee;font-family:Arial,'Apple SD Gothic Neo',sans-serif}
.mind-entry-stage{position:relative;width:100%;height:100%;overflow:hidden;isolation:isolate;display:flex;align-items:center;justify-content:center}
.entry-city-haze{position:absolute;left:-5%;right:-5%;bottom:-4%;height:29%;background:url('assets/emotion-city-original.png') center bottom/100% auto no-repeat;opacity:.22;mask-image:linear-gradient(transparent,#000);filter:blur(1px);z-index:-1}
.entry-heart{position:absolute;top:19%;left:50%;transform:translateX(-50%);width:clamp(70px,9vw,135px);aspect-ratio:1;border-radius:50%;overflow:hidden;background:#5bd5f5;box-shadow:0 0 75px #68c4d416}
.entry-heart i{position:absolute;inset:-35%;border-radius:45%;background:#5bd5f5;filter:blur(17px);animation:emotion-drift 19s ease-in-out infinite alternate}.entry-heart i:nth-child(2){background:#ff2086;inset:-10% -45% 10% 35%;animation-delay:-8s}.entry-heart i:nth-child(3){background:#fff0a8;inset:45% 0 -45% -30%;animation-delay:-13s}
.entry-orbit{position:absolute;left:50%;top:calc(19% + clamp(35px,4.5vw,67.5px));width:clamp(220px,30vw,450px);height:clamp(90px,10vw,160px);border:1px solid #ffffff12;border-radius:50%;transform:translate(-50%,-50%) rotate(-18deg)}.entry-orbit-two{transform:translate(-50%,-50%) rotate(22deg);width:clamp(270px,37vw,560px);height:clamp(110px,15vw,220px);border-color:#ffffff0b}
.entry-orbit:after{content:'';position:absolute;left:14%;top:12%;width:4px;height:4px;background:#a4d8df;border-radius:50%;box-shadow:0 0 12px #a4d8df88}
.mind-entry-copy{text-align:center;margin-top:16vh;z-index:2;padding:0 22px}.mind-entry-copy>span{font-size:9px;letter-spacing:3px;color:#858c8f}.mind-entry-copy h2{font-weight:400;font-size:clamp(38px,5vw,82px);letter-spacing:-.03em;margin:18px 0}.mind-entry-copy p{font-size:clamp(12px,1vw,16px);color:#929496;line-height:1.9;margin:0}
.mind-entry-copy button{margin-top:30px;min-height:44px;display:inline-flex;align-items:center;gap:36px;padding:12px 23px;border:1px solid #ffffff50;border-radius:40px;background:#ffffff08;color:#eee;font:11px Arial,sans-serif;cursor:pointer;transition:background .3s,transform .3s,border-color .3s}.mind-entry-copy button:hover{background:#ffffff15;border-color:#ffffffa0;transform:translateY(-2px)}.mind-entry-copy button:focus-visible{outline:2px solid #5bd5f5;outline-offset:5px}
.entry-bottom-note{position:absolute;bottom:7%;left:50%;transform:translateX(-50%);display:flex;align-items:center;gap:16px;font-size:8px;letter-spacing:1.5px;color:#626668;white-space:nowrap}.entry-bottom-note i{width:45px;border-top:1px solid #ffffff25}
@media(max-width:650px){.entry-heart{top:23%}.entry-orbit{top:calc(23% + 35px)}.mind-entry-copy{margin-top:14vh}.mind-entry-copy>span{font-size:8px;letter-spacing:2px}.entry-city-haze{background-size:auto 100%;height:22%}}
@media(prefers-reduced-motion:reduce){.entry-heart i{animation:none}.mind-entry-copy button{transition:none}}

/* Intro ends at the entrance; the interactive experience has its own URL. */
html:not([data-view]) #gallery-page,html:not([data-view]) #analysis-page{display:none}
html[data-view="experience"] .page:not(#gallery-page):not(#analysis-page){display:none}
html[data-view="experience"] .pages{overflow-y:auto}
/* Carry the entrance's city lights into the top of the experience. */
html[data-view="experience"] .gallery-stage:before{content:'';position:absolute;left:-5%;right:-5%;top:0;height:24%;background:url('assets/emotion-city-original.png') center bottom/100% auto no-repeat;opacity:.18;filter:blur(1px);mask-image:linear-gradient(#000,transparent);pointer-events:none;z-index:-1}
@media(max-width:650px){html[data-view="experience"] .gallery-stage:before{height:20%;background-size:auto 100%;opacity:.15}}

.experience-site-title{display:none;position:fixed;left:50%;top:28px;transform:translateX(-50%);z-index:20;color:#e5e5e5;font:500 13px Arial,sans-serif;letter-spacing:3px;white-space:nowrap;pointer-events:none}
html[data-view="experience"] .experience-site-title{display:block}
@media(max-width:650px){.experience-site-title{top:23px;font-size:11px;letter-spacing:2px}}

.experience-site-title{pointer-events:auto;border:0;background:none;padding:7px 10px;cursor:pointer;transition:color .2s}
.experience-site-title:hover{color:#fff}.experience-site-title:focus-visible{outline:1px solid #888;outline-offset:3px;border-radius:5px}

/* Gentle alignment near panel boundaries, while keeping continuous scrolling. */
.pages{scroll-snap-type:y proximity;scroll-padding-block:0}
.page{scroll-snap-stop:normal}
.solution-snap-end{position:absolute;top:100dvh;left:0;width:100%;height:100dvh;scroll-snap-align:start;scroll-snap-stop:normal;pointer-events:none}

.experience-back{display:none;position:fixed;left:28px;top:28px;z-index:21;border:1px solid #ffffff35;border-radius:24px;padding:8px 14px;background:#090909b3;color:#bbb;font:11px Arial,sans-serif;cursor:pointer;backdrop-filter:blur(10px)}
html[data-view="experience"] .experience-back{display:block}
.experience-back:hover{color:#fff;border-color:#ffffff80}.experience-back:focus-visible{outline:2px solid #5bd5f5;outline-offset:3px}
@media(max-width:650px){.experience-back{left:16px;top:22px;padding:7px 10px;font-size:10px}}

/* Distant stars brighten at independent, unhurried rhythms. */
.entry-starfield{position:absolute;inset:0;pointer-events:none;z-index:0;mask-image:linear-gradient(#000 65%,transparent 98%)}
.entry-starfield i{position:absolute;left:var(--x);top:var(--y);width:var(--size);height:var(--size);border-radius:50%;background:#dceef2;opacity:.12;box-shadow:0 0 5px #b6d9e660;animation:entry-star-breathe var(--duration) ease-in-out var(--delay) infinite}
.entry-starfield .entry-star-cross{background:#f6eac9;box-shadow:0 0 10px #f6eac966}
.entry-star-cross:before,.entry-star-cross:after{content:'';position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);background:linear-gradient(transparent,#e9f2f3bb,transparent);width:1px;height:9px}
.entry-star-cross:after{transform:translate(-50%,-50%) rotate(90deg);height:7px}
@keyframes entry-star-breathe{0%,100%{opacity:.09;scale:.85}35%{opacity:.22}55%{opacity:.65;scale:1.12}80%{opacity:.17;scale:.95}}
@media(max-width:650px){.entry-starfield i:nth-child(3n){display:none}}
@media(prefers-reduced-motion:reduce){.entry-starfield i{animation:none;opacity:.28}}

/* Remove the two prominent orbit dots around the entrance orb. */
.entry-orbit:after{display:none}

/* A slightly clearer starfield, retaining its slow, soft twinkle. */
.entry-starfield i{width:calc(var(--size)*1.2);height:calc(var(--size)*1.2);box-shadow:0 0 7px #c4e3ec80}
.entry-starfield .entry-star-cross{box-shadow:0 0 12px #f6eac980}
.entry-star-cross:before{height:11px}.entry-star-cross:after{height:9px}
@keyframes entry-star-breathe{0%,100%{opacity:.14;scale:.9}35%{opacity:.3}55%{opacity:.78;scale:1.15}80%{opacity:.23;scale:1}}
@media(prefers-reduced-motion:reduce){.entry-starfield i{opacity:.36}}

.city-finale-title>img{display:block;width:100%;height:auto;flex-shrink:0}

/* Bring the entrance city lights forward a little without changing the composition. */
.entry-city-haze{opacity:.34}

/* Align the emblem and typography as a single centered composition. */
.entry-composition{position:relative;z-index:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:clamp(32px,6vh,64px);width:100%;transform:translateY(-2vh)}
.entry-emblem{position:relative;width:clamp(70px,9vw,135px);aspect-ratio:1;flex-shrink:0}
.entry-emblem .entry-heart{position:relative;left:auto;top:auto;transform:none;width:100%;height:100%}
.entry-emblem .entry-orbit{top:50%;left:50%}
.entry-composition .mind-entry-copy{margin-top:0;width:100%;text-align:center;display:flex;flex-direction:column;align-items:center}
.entry-city-haze{opacity:.5;filter:blur(.5px);mask-image:linear-gradient(transparent 0%,#000 70%)}
@media(max-width:650px){.entry-composition{gap:36px;transform:translateY(-1vh)}.entry-emblem .entry-orbit{top:50%}.entry-city-haze{opacity:.46}}

/* Original presentation route: all project panels share one scroll, with no entry gate. */
html[data-panel-mode="original"] #gallery-page,html[data-panel-mode="original"] #analysis-page,html[data-panel-mode="original"] #spectrum-page,html[data-panel-mode="original"] #emotion-city-page{display:flex}
html[data-panel-mode="original"] .experience-back,html[data-panel-mode="original"] .experience-site-title,html[data-panel-mode="original"] .mind-actions,html[data-panel-mode="original"] .back-to-analysis{display:none}
html[data-panel-mode="original"] .gallery-stage:before{content:'';position:absolute;left:-5%;right:-5%;top:0;height:24%;background:url('assets/emotion-city-original.png') center bottom/100% auto no-repeat;opacity:.18;mask-image:linear-gradient(#000,transparent);pointer-events:none;z-index:-1}
@media(hover:hover) and (pointer:fine){html[data-panel-mode="original"] .is-city-active,html[data-panel-mode="original"] .is-city-active *{cursor:none}html[data-panel-mode="original"] .is-city-active.emotion-placed,html[data-panel-mode="original"] .is-city-active.emotion-placed *,html[data-panel-mode="original"] .is-city-active.is-finale,html[data-panel-mode="original"] .is-city-active.is-finale *{cursor:auto}}
