.assembly-overlay { --assembly-pointer: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white' stroke='white' stroke-width='1'%3E%3Cpath d='M4.037 4.688a.495.495 0 0 1 .651-.651l16 6.5a.5.5 0 0 1-.063.947l-6.124 1.58a2 2 0 0 0-1.438 1.435l-1.579 6.126a.5.5 0 0 1-.947.063z'/%3E%3C/svg%3E"); }
.assembly-overlay { position: fixed; inset: 0; z-index: 35; pointer-events: none; overflow: hidden; }
.assembly-frames { position: absolute; inset: 0; width: 100%; height: 100%; overflow: hidden; }
.assembly-frame { opacity: 0; }
.assembly-click { fill: none; stroke: #b9eaff; stroke-width: 1.5; opacity: 0; }
.assembly-typing-caret { fill: #ffd39a; opacity: 0; }
.assembly-frame > rect:first-child { stroke: #86c3ff; stroke-width: 1.25; }
.assembly-handle { fill: #cbe7ff; stroke: #3f88d7; stroke-width: 1; }
.assembly-dimension { fill: #b6d8ff; font: 11px -apple-system, BlinkMacSystemFont, sans-serif; paint-order: stroke; stroke: #101624; stroke-width: 5px; stroke-linejoin: round; }
.assembly-cursor { position: absolute; left: 0; top: 0; width: 24px; height: 24px; margin: -3px 0 0 -3px; background: currentColor; mask: var(--assembly-pointer) center / contain no-repeat; -webkit-mask: var(--assembly-pointer) center / contain no-repeat; opacity: 0; transform-origin: 3px 3px; }
.assembly-cursor:not(.is-echo) { filter: drop-shadow(0 0 1.5px currentColor); }
.assembly-overlay.is-building .assembly-cursor { will-change: transform, opacity; }
.assembly-trail { fill: none; stroke-linecap: round; stroke-linejoin: round; mix-blend-mode: screen; opacity: 0; }
.assembly-veil { position: absolute; inset: 0; background: #090c13; z-index: 1; pointer-events: none; opacity: 1; transition: opacity .6s ease; }
.assembly-mark { position: absolute; z-index: 2; left: 50%; top: 43%; transform: translate(-50%,-50%); color: #dfedff; font-family: Georgia, 'Songti SC', serif; font-style: italic; font-size: 48px; line-height: 1; text-align: center; opacity: 0; pointer-events: none; }
.assembly-mark span { display: block; font: 12px/1.4 -apple-system, BlinkMacSystemFont, sans-serif; margin-top: 10px; }
.assembly-sculpture { position: absolute; top: 32%; left: 25%; width: 50%; height: 40%; pointer-events: none; }
.sky-hero .hero-title, .hero-copy > p { width: fit-content; max-width: 100%; }
.hero-copy #hero-title, .hero-copy > p { pointer-events: auto; }
.assembly-code { position: absolute; z-index: 3; top: 22%; left: 28%; width: min(900px,66%); display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 24px; opacity: 0; pointer-events: none; }
.assembly-code-pane { position: relative; min-width: 0; }
.assembly-code-window { overflow: hidden; border: 1px solid #3c4655; border-radius: 6px; background: #0c121bef; box-shadow: 0 12px 32px #0004; opacity: 0; clip-path: inset(0 0 100% 0); pointer-events: auto; }
.assembly-window-header { height: 32px; padding: 0 9px; display: flex; align-items: center; gap: 14px; background: #252c36; border-bottom: 1px solid #343d4b; }
.assembly-window-controls { display: flex; gap: 0; flex-shrink: 0; }
.assembly-window-controls button { position: relative; display: grid; place-items: center; width: 22px; height: 28px; padding: 0; }
.assembly-window-controls button::before { content: ''; position: absolute; width: 12px; height: 12px; border-radius: 50%; background: #ff6259; }
.assembly-window-controls .assembly-window-minimize::before { background: #febd2e; }
.assembly-window-controls .assembly-window-maximize::before { background: #28c840; }
.assembly-window-controls img { position: relative; width: 9px; height: 9px; opacity: 0; }
.assembly-window-controls:hover img, .assembly-window-controls button:focus-visible img { opacity: .75; }
.assembly-code-file { color: #bac6d5; font: 11px/1.5 -apple-system,BlinkMacSystemFont,sans-serif; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.assembly-code-launch { position: absolute; top: 0; left: 0; display: inline-flex; gap: 8px; align-items: center; padding: 10px 12px; color: #c5dcf2; background: #182333; border-radius: 4px; font: 12px/1.5 -apple-system,BlinkMacSystemFont,sans-serif; pointer-events: auto; }
.assembly-code-launch img { width: 18px; height: 18px; filter: invert(1); opacity: .8; }
.assembly-code-launch:hover { background: #2c3c52; }
.assembly-code :focus-visible { outline: 2px solid #b9dbff; outline-offset: 2px; }
.assembly-code-pane.is-maximized { position: absolute; top: 0; left: 0; width: min(740px,100%); z-index: 5; }
.assembly-code pre { margin: 0; padding: 12px; overflow: hidden; }
.assembly-code pre[hidden] { display: none; }
.assembly-code code { display: block; }
.assembly-code-line { display: block; height: 17px; white-space: pre; color: #a3bfd6; font: 12px/17px Menlo,Consolas,monospace; }
.assembly-code-line.is-writing { color: #e1f2ff; }
.assembly-code-line.is-writing::after { content: ''; display: inline-block; vertical-align: -2px; width: 4px; height: 12px; margin-left: 2px; background: #ffca86; }
@media(max-width:1000px) {
 .assembly-code { grid-template-columns: minmax(0,1fr); }
 .assembly-code-pane:nth-child(2) { display: none; }
}
.cursor-companion { --assembly-pointer: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white' stroke='white' stroke-width='1'%3E%3Cpath d='M4.037 4.688a.495.495 0 0 1 .651-.651l16 6.5a.5.5 0 0 1-.063.947l-6.124 1.58a2 2 0 0 0-1.438 1.435l-1.579 6.126a.5.5 0 0 1-.947.063z'/%3E%3C/svg%3E"); position: fixed; inset: 0; z-index: 70; pointer-events: none; overflow: hidden; opacity: 0; transition: opacity .25s ease; }
.cursor-companion.is-visible { opacity: 1; }
.cursor-companion .assembly-cursor { opacity: 0; filter: none; will-change: transform, opacity; }
.companion-frames { position: absolute; top: 0; left: 0; width: 100%; max-width: none; height: 1px; overflow: visible; z-index: 70; pointer-events: none; }
.companion-frame { fill: none; stroke: #9ecbff; stroke-width: 1.15; vector-effect: non-scaling-stroke; opacity: .95; }
.companion-build-ui { pointer-events: none; transition: opacity .14s ease-out; }
.companion-guide { fill: none; stroke: currentColor; stroke-width: .65; stroke-dasharray: 3 5; opacity: .28; }
.companion-build-handle { fill: #101820; stroke: currentColor; stroke-width: 1; }
.companion-measure rect { fill: #121a22; stroke: currentColor; stroke-width: .7; }
.companion-measure text { fill: currentColor; font: 10px/1 Menlo,Consolas,monospace; }
/* Inline the bundled Lucide plus so file:// previews can mask it too. */
.cursor-companion .assembly-cursor.is-drawing {
 --crosshair: url('data:image/svg+xml;base64,PCEtLSBAbGljZW5zZSBsdWNpZGUtc3RhdGljIHYwLjQ2OC4wIC0gSVNDIC0tPgo8c3ZnCiAgY2xhc3M9Imx1Y2lkZSBsdWNpZGUtcGx1cyIKICB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciCiAgd2lkdGg9IjI0IgogIGhlaWdodD0iMjQiCiAgdmlld0JveD0iMCAwIDI0IDI0IgogIGZpbGw9Im5vbmUiCiAgc3Ryb2tlPSJjdXJyZW50Q29sb3IiCiAgc3Ryb2tlLXdpZHRoPSIyIgogIHN0cm9rZS1saW5lY2FwPSJyb3VuZCIKICBzdHJva2UtbGluZWpvaW49InJvdW5kIgo+CiAgPHBhdGggZD0iTTUgMTJoMTQiIC8+CiAgPHBhdGggZD0iTTEyIDV2MTQiIC8+Cjwvc3ZnPgo=');
 width: 24px; height: 24px; margin: -12px 0 0 -12px; transform-origin: 12px 12px;
 mask: var(--crosshair) center / contain no-repeat; -webkit-mask: var(--crosshair) center / contain no-repeat;
}
.companion-type-caret { fill: #c4dcf5; pointer-events: none; animation: heading-caret-blink .8s steps(1) infinite; }
html.cursor-pending #about-heading,
html.cursor-pending #about .about-text > p:not(.about-statement),
html.cursor-pending #about .portrait,
html.cursor-pending #about .background,
html.cursor-pending [data-design-track],
html.cursor-pending #apps .app-project-copy,
html.cursor-pending #apps .phone-device,
html.cursor-pending #huawei .collaboration,
html.cursor-pending #campus .section-heading p,
html.cursor-pending #work > .section-heading p,
html.cursor-pending #graphic-design .section-heading p,
html.cursor-pending #films .section-heading p,
html.cursor-pending #photography .section-heading p,
html.cursor-pending #internships .internship-entry,
html.cursor-pending #internships .feiniao,
html.cursor-pending #campus .campus-roles,
html.cursor-pending #work .case,
html.cursor-pending #work .archive,
html.cursor-pending #graphic-design .poster-work,
html.cursor-pending #films .film-work,
html.cursor-pending #photography .photo-heading-row,
html.cursor-pending #photography .photo-stage { opacity: 0 !important; visibility: hidden !important; }
[data-cursor-hidden] { opacity: 0 !important; visibility: hidden !important; }
[data-cursor-drawn] { opacity: 1 !important; visibility: visible !important; }
.cursor-media-pending { opacity: 0 !important; visibility: hidden !important; }
.heading-type { position: relative; }
.heading-type-text { display: block; }
.heading-caret { position: absolute; left: 0; top: 0; width: 2px; height: 1em; background: currentColor; opacity: 0; pointer-events: none; }
.heading-caret.is-typing { opacity: 1; animation: heading-caret-blink .8s steps(1) infinite; }
@keyframes heading-caret-blink { 0%, 49% { opacity: 1; } 50%, 100% { opacity: .12; } }
@media(max-width:700px) {
 .assembly-code { top: 230px; left: 20px; width: calc(100% - 40px); }
 .assembly-code pre { padding: 10px; }
 .assembly-code-line { font-size: 11.5px; line-height: 16px; height: 16px; }
 .assembly-sculpture { left: 6%; top: 32%; width: 87%; height: 28%; }
 .assembly-cursor { width: 21px; height: 21px; }
}
@media(prefers-reduced-motion:reduce) {
 .assembly-overlay, .assembly-mark, .assembly-veil, .assembly-code, .heading-caret, .companion-type-caret { display: none; }
}
@media(max-height:450px) { .assembly-code { display: none; } }
