/* Functional timeline reconstruction: https://ydcpodcast.org/ .
   The original article, personal records and artwork are not reproduced. */
body.exact-reference{--paper:#ebe4e0;--ink:#504842;--line:#8e8176;background:var(--paper);color:var(--ink);font-family:Arial,"Malgun Gothic",sans-serif}
.exact-reference .site-header{display:none}
.exact-reference .skip{z-index:2001}
.reference-scroll{position:relative;margin-top:80svh;pointer-events:none}
.reference-step{height:100svh}
.reference-stage{position:fixed;inset:0;width:100%;height:100svh;margin:0;overflow:clip;background:var(--paper);z-index:1000}
.reference-plane{position:absolute;top:0;left:0;height:100%;will-change:transform}
.reference-axis{position:absolute;inset:0;pointer-events:none}
.reference-year{position:absolute;bottom:16px;transform:translateX(-50%);margin:0;padding:0;font:500 16px/1.2 ui-monospace,monospace;color:#8e8176}
.reference-decade{position:absolute;top:5%;transform:translateX(-50%);margin:0;padding:0;font:clamp(48px,20vw,196px)/1 ui-monospace,monospace;opacity:.1;color:#8e8176}
.reference-people{position:absolute;left:0;top:0;height:calc(100% - 32px);width:100%}
.reference-person{position:absolute;overflow:visible;transform:translateX(calc(var(--bump-x,0px) - 50%));transition:transform .45s var(--bump-delay,0ms) cubic-bezier(.445,.05,.55,.95)}
.reference-person canvas{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;object-position:center bottom;image-rendering:auto;pointer-events:none}
.reference-person .person-color{opacity:0;transition:opacity .5s}
.reference-person.is-active .person-color{opacity:1}
.reference-inview{position:absolute;inset:0;visibility:hidden;pointer-events:none}
.reference-popup{position:absolute;left:50%;bottom:100%;width:90vw;max-width:672px;transform:translate(-50%,-96px);font-family:"Iowan Old Style","Batang","Times New Roman",serif;font-size:16px;line-height:1.375;pointer-events:auto;z-index:1001}
.reference-popup p{margin:8px 0;line-height:1.375;font-size:inherit;text-shadow:1px 1px var(--paper),-1px -1px var(--paper),1px -1px var(--paper),-1px 1px var(--paper)}
.reference-popup .reference-info{font:16px/1.375 "Courier New",monospace}
.reference-info mark{background:#8eb7a4;color:inherit;padding:0 3px;margin-right:4px;text-shadow:none}
.reference-popup small{font-size:.85em}
.reference-mobile-popup{display:none}
.reference-reader{position:fixed;z-index:2000;right:16px;top:12px;font:12px/1.4 ui-monospace,monospace;padding:4px 0;text-decoration:underline;opacity:.6}
.reference-loading{position:fixed;top:45%;left:50%;transform:translateX(-50%);font-size:14px;color:#8e8176;z-index:1001}
@media(max-width:959px){
 .reference-person>.reference-popup{display:none}
 .reference-mobile-popup{display:block;position:fixed;top:48px;left:50%;bottom:auto;min-width:300px;width:80vw;max-width:540px;transform:translateX(-50%);font-size:16px;z-index:1002}
 .reference-mobile-popup .reference-info{font-size:16px;margin:0}
 .reference-mobile-popup .reference-text{margin:8px 0 0}
}
@media(max-width:959px) and (min-height:700px){.reference-mobile-popup{top:64px}}
@media(max-width:959px) and (min-height:760px){.reference-mobile-popup{top:96px}}

.reference-intro{position:absolute;top:50%;width:calc(100vw - 64px);max-width:480px;height:auto;transform:translate(-50%,-50%);opacity:0;transition:opacity .5s;z-index:1001}
.reference-intro p{margin:0;transform:translateY(-50%);padding:16px;border:1px solid currentColor;line-height:1.2;font:13.6px/1.2 "Batang",serif}
.reference-intro-trigger{position:absolute;top:0;left:50%;width:32px;height:32px;opacity:0}
@media(min-width:960px){.reference-intro.is-active{opacity:1}}
.reference-mobile-popup.is-intro .reference-text{padding:16px;border:1px solid currentColor}

.reference-reader{opacity:0;pointer-events:none}.reference-reader:focus{opacity:1;pointer-events:auto}

/* Required annual flow; reference drawing scale and depth remain unchanged. */
.annual-reference .reference-scroll{margin-top:0}
.annual-reference .reference-axis{pointer-events:auto}
.annual-reference .reference-year{background:transparent;border:0;border-radius:0;min-height:0;line-height:1;padding:0;cursor:pointer}
.annual-reference .reference-year.is-active{font-weight:500;color:var(--ink)}
.annual-reference .reference-year:focus-visible{outline:2px solid var(--ink);outline-offset:5px}
.annual-reference .reference-stage:focus-visible{outline:2px solid var(--ink);outline-offset:-5px}
.reference-mobile-popup[hidden]{display:none!important}
.reference-popup .reference-keywords{font:12px/1.5 "Malgun Gothic",sans-serif;color:#6f645b;margin-top:12px}

/* Guides are solid, persistent members of the street, physically occluded. */
.reference-person.is-guide canvas{opacity:1;transition:none}
body.exact-reference{--paper:#f4efe6}

/* First frame waits for actual crowd pixels, rather than showing empty ticks. */
.reference-plane{opacity:0}
.reference-stage[data-scene-ready="true"] .reference-plane{opacity:1}

/* Pale editorial pen/watercolor art direction; geometry remains the reference flow. */
body.exact-reference{--paper:#f5f2ec;--ink:#43494d;--line:#aaa39a}
.reference-info mark{background:#c1c9c2}
.reference-year{color:#8d8982}
.reference-popup .reference-keywords{color:#747875}

/* Fixed reference backdrop only. The crowd plane and its timing stay untouched. */
/* Fade only the backdrop into the same paper exposed below the stable 100svh stage. */
html:has(body.annual-reference){--scene-page-paper:#f5f2ec;background:var(--scene-page-paper)}
body.annual-reference{background:var(--scene-page-paper)}
.annual-reference .reference-stage{
 background-image:linear-gradient(to bottom,rgba(245,242,236,0) 78%,var(--scene-page-paper) 98%),linear-gradient(rgba(255,255,255,.55),rgba(255,255,255,.55)),url('/assets/backgrounds/seoul-pen-watercolor-v2.webp');
 background-image:linear-gradient(to bottom,rgba(245,242,236,0) 78%,var(--scene-page-paper) 98%),linear-gradient(rgba(255,255,255,.55),rgba(255,255,255,.55)),image-set(url('/assets/backgrounds/seoul-pen-watercolor-v2.avif') type('image/avif'),url('/assets/backgrounds/seoul-pen-watercolor-v2.webp') type('image/webp'));
 background-repeat:no-repeat;
 background-position:center bottom;
 background-size:cover;
}
@media(max-width:959px){
 .annual-reference .reference-stage{background-position:75% bottom}
}
/* Without an explicit motion preview, respect the OS preference before JavaScript loads. */
@media(prefers-reduced-motion:reduce){
 .annual-reference:not(.motion-preview-on) .reference-person,.annual-reference:not(.motion-preview-on) .reference-person .person-color,.annual-reference:not(.motion-preview-on) .reference-intro{transition:none!important;animation:none!important}
 .annual-reference:not(.motion-preview-on) .reference-mobile-popup{transition:none!important;animation:none!important}
}
