.cv-nav { position:relative; width:auto; margin:28px 32px; display:flex; justify-content:space-between; font-size:14px; color:var(--muted); }
.cv-nav > a:last-child { position:absolute; top:0; right:0; white-space:nowrap; }
.cv-pages { width:min(850px,calc(100% - 48px),calc((100svh - 140px) * 595 / 842)); max-width:none; margin:40px auto 80px; padding:0; display:grid; gap:32px; }
.cv-sheet { position:relative; margin:0; aspect-ratio:595/842; isolation:isolate; }
.paper-edge { display:none; position:absolute; inset:0; width:100%; height:100%; z-index:2; pointer-events:none; }
.paper-edge path { stroke:var(--ink); stroke-width:1; fill:none;  stroke-linecap:butt; stroke-linejoin:miter; }
.paper-fill { position:absolute; inset:0; background:white; z-index:0; }
.cv-sheet .cv-art { position:relative; display:block; width:100%; height:auto; z-index:1; }
@media (max-width:640px) {
 .cv-nav { width:auto; margin:20px 16px; }
 .cv-pages { width:min(calc(100% - 24px),calc((100svh - 112px) * 595 / 842)); margin-top:28px; gap:20px; }
}
.cv-pages { width:calc(min(850px,calc(100vw - 48px),calc((100svh - 140px) * 595 / 842)) * var(--zoom,1)); }
.cv-role { position:absolute; inset:0; width:100%; height:100%; pointer-events:none; z-index:1; }
.cv-zoom { position:fixed; right:24px; bottom:max(24px,env(safe-area-inset-bottom)); display:flex; gap:10px; z-index:5; }
.cv-zoom button { display:grid; place-items:center; width:44px; height:44px; padding:0; border:1px solid #555; border-radius:50%; background:var(--paper); color:var(--ink); font:300 25px/1 var(--sans); cursor:pointer; }
.cv-zoom button:hover { background:#303030; }
.cv-zoom button:disabled { opacity:.35; cursor:default; }
.cv-zoom button:focus-visible { outline:2px solid var(--ink); outline-offset:4px; }

@media (max-width:640px) { .cv-pages { width:calc(min(calc(100vw - 24px),calc((100svh - 112px) * 595 / 842)) * var(--zoom,1)); } .cv-zoom { right:16px; } }

.cv-zoom { flex-direction:column; align-items:center; }
.cv-zoom button svg { display:block; width:20px; height:20px; fill:none; stroke:currentColor; stroke-width:1.4; stroke-linecap:round; stroke-linejoin:round; }

.cv-art { font-family:Pretendard,sans-serif; fill:#1a1a1a; }
.cv-art text { user-select:text; }
.cv-art a { fill:#1a1a1a; text-decoration:underline; cursor:pointer; }
.cv-art a:hover { fill:#444; }
.cv-art a:focus-visible { outline:1px solid #1a1a1a; }

/* Entry is one sequenced timeline, started after the CV font is ready. */
.cv-enter .paper-edge { display:block; }
.cv-enter .paper-edge path { stroke-dasharray:3000; stroke-dashoffset:3000; }
.cv-enter .paper-fill, .cv-enter .cv-sheet .cv-art { opacity:0; }
.cv-art a { color:#1a1a1a; }
.cv-art a:hover { color:#444; }
.cv-zoom button { flex:none; box-sizing:border-box; }
.cv-zoom button[hidden] { display:none; }
@media (prefers-reduced-motion:reduce) {
 .cv-enter .paper-edge { display:none; }
 .cv-enter .paper-fill, .cv-enter .cv-sheet .cv-art { opacity:1; }
}
