/* Edition four: continuous vertical depth, with a separate right-hand index. */
html:is([data-variant="4"],[data-variant="5"]) body[data-view="directory"]>.home-motion{opacity:.12!important}
html:is([data-variant="4"],[data-variant="5"]) #directory:not([hidden]){inset:var(--edition-header,88px) 20px 62px!important}
html:is([data-variant="4"],[data-variant="5"]) .archive-deck{display:grid;grid-template-columns:minmax(0,1fr) clamp(190px,19vw,310px);height:100%;gap:clamp(24px,4vw,72px);padding:0;align-items:stretch}
html:is([data-variant="4"],[data-variant="5"]) .archive-deck .gallery-stage{width:100%;height:100%;min-height:0;touch-action:none;isolation:isolate;overflow:clip}
html:is([data-variant="4"],[data-variant="5"]) .archive-deck .gallery-track{width:min(88%,calc((100dvh - 240px)*1.2));aspect-ratio:16/9}
html:is([data-variant="4"],[data-variant="5"]) .archive-deck .gallery-card,
html:is([data-variant="4"],[data-variant="5"]) .archive-deck .gallery-card.is-selected{opacity:1;transition:none;transform-origin:center;will-change:transform}
html:is([data-variant="4"],[data-variant="5"]) .archive-deck .gallery-art{border-radius:2px;box-shadow:0 10px 36px #0005;outline:1px solid #ffffff12}
html:is([data-variant="4"],[data-variant="5"]) .archive-deck .gallery-art:after,
html:is([data-variant="4"],[data-variant="5"]) .archive-deck .gallery-card.is-selected .gallery-art:after{background:#111;opacity:var(--deck-dim,.08);transition:none}
html:is([data-variant="4"],[data-variant="5"]) .archive-deck .gallery-card.is-selected:has(.gallery-title:hover,.gallery-title:focus-visible) .gallery-art:after{opacity:.7}
html:is([data-variant="4"],[data-variant="5"]) .archive-deck .gallery-title{font-size:clamp(17px,1.65vw,30px);letter-spacing:.025em;transition:color .2s}
html:is([data-variant="4"],[data-variant="5"]) .archive-deck .gallery-description{padding-bottom:24px}
html:is([data-variant="4"],[data-variant="5"]) .archive-deck .gallery-thumbs{display:block;width:100%;max-width:none;height:100%;min-height:0;box-sizing:border-box;padding:20px 0 28px;overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:none;touch-action:pan-y;mask-image:linear-gradient(transparent,black 16px,black calc(100% - 20px),transparent)}
html:is([data-variant="4"],[data-variant="5"]) .archive-deck .gallery-thumb-group{display:block;margin:0 0 30px;width:100%}
html:is([data-variant="4"],[data-variant="5"]) .archive-deck .gallery-group-label{position:static;width:100%;margin:0 0 14px;padding:0;border:0;text-align:left;font-size:clamp(11px,.825vw,16px);line-height:1.2;min-height:24px;letter-spacing:.05em}
html:is([data-variant="4"],[data-variant="5"]) .archive-deck .gallery-thumb-row{display:flex;flex-direction:column;gap:8px;align-items:stretch}
html:is([data-variant="4"],[data-variant="5"]) .archive-deck .gallery-thumb{display:grid;grid-template-columns:72px minmax(0,1fr);align-items:center;gap:12px;flex:none;width:100%;height:auto;min-height:42px;aspect-ratio:auto;border:0;padding:0 0 0 10px;opacity:.58;overflow:hidden;text-align:left;position:relative;color:var(--ink);background:transparent}
html:is([data-variant="4"],[data-variant="5"]) .archive-deck .gallery-thumb[aria-current=true],html:is([data-variant="4"],[data-variant="5"]) .archive-deck .gallery-thumb:hover{opacity:1}
html:is([data-variant="4"],[data-variant="5"]) .archive-deck .gallery-thumb:before{content:'';position:absolute;left:0;top:9px;bottom:9px;width:2px;background:var(--accent);opacity:0;transition:opacity .2s}
html:is([data-variant="4"],[data-variant="5"]) .archive-deck .gallery-thumb[aria-current=true]:before{opacity:1}
html:is([data-variant="4"],[data-variant="5"]) .deck-rail-cover{display:block;aspect-ratio:16/9;overflow:hidden;background:#252629}
html:is([data-variant="4"],[data-variant="5"]) .deck-rail-title{font-size:clamp(10px,.72vw,13px);line-height:1.35;letter-spacing:.02em;text-wrap:balance}
html:is([data-variant="4"],[data-variant="5"]) .deck-rail-title.locked-title{filter:blur(4px);letter-spacing:.15em;mask-image:repeating-linear-gradient(transparent 0px,black 1px,black 2px,transparent 3px);user-select:none}
html:is([data-variant="4"],[data-variant="5"]) body[data-view="directory"] .cursor.is-nav .cursor-symbol{transform:rotate(90deg)}
html:is([data-variant="4"],[data-variant="5"])[data-theme="light"] .archive-deck .gallery-art{outline-color:#00000012;box-shadow:0 12px 32px #0002}
@media(max-width:900px){
 html:is([data-variant="4"],[data-variant="5"]) .archive-deck{grid-template-columns:minmax(0,1fr) 164px;gap:18px}
 html:is([data-variant="4"],[data-variant="5"]) .archive-deck .gallery-thumb{grid-template-columns:54px minmax(0,1fr);gap:8px;min-height:34px}
}
@media(max-width:600px){
 html:is([data-variant="4"],[data-variant="5"]) #directory:not([hidden]){inset:calc(72px + env(safe-area-inset-top)) 12px calc(60px + env(safe-area-inset-bottom))!important}
 html:is([data-variant="4"],[data-variant="5"]) .archive-deck{grid-template-columns:minmax(0,1fr) 76px;gap:12px}
 html:is([data-variant="4"],[data-variant="5"]) .archive-deck .gallery-track{width:100%}
 html:is([data-variant="4"],[data-variant="5"]) .archive-deck .gallery-thumb{display:block;padding-left:6px;width:100%;min-height:0}
 html:is([data-variant="4"],[data-variant="5"]) .deck-rail-title{display:none}
 html:is([data-variant="4"],[data-variant="5"]) .archive-deck .gallery-group-label{font-size:9px;letter-spacing:0}
 html:is([data-variant="4"],[data-variant="5"]) .archive-deck .gallery-title{font-size:clamp(12px,3.2vw,18px);padding:10px}
 html:is([data-variant="4"],[data-variant="5"]) .archive-deck .gallery-thumbs{padding-top:16px}
}
@media(prefers-reduced-motion:reduce){html:is([data-variant="4"],[data-variant="5"]) .archive-deck *{scroll-behavior:auto;transition:none!important}}


/* A symmetric frame keeps the deck on the page axis, independently of either rail. */
html:is([data-variant="4"],[data-variant="5"]) .archive-deck{grid-template-columns:clamp(140px,15vw,240px) minmax(0,1fr) clamp(140px,15vw,240px);gap:clamp(18px,2.5vw,44px)}
html:is([data-variant="4"],[data-variant="5"]) .archive-deck .gallery-track{width:min(108%,calc((100dvh - 240px)*1.296))}
html:is([data-variant="4"],[data-variant="5"]) .deck-caption{display:flex;align-items:center;justify-content:center;min-width:0;height:100%;position:relative;z-index:2}
html:is([data-variant="4"],[data-variant="5"]) .deck-current-title{display:block;width:100%;padding:12px 0;border:0;background:none;color:var(--ink);text-align:left;font-family:inherit;font-size:clamp(14px,1.1vw,21px);font-weight:500;line-height:1.35;letter-spacing:.025em;text-wrap:balance;transition:color .2s}
html:is([data-variant="4"],[data-variant="5"]) .deck-current-title:hover,html:is([data-variant="4"],[data-variant="5"]) .deck-current-title:focus-visible{color:var(--accent)}
html:is([data-variant="4"],[data-variant="5"]) .deck-current-title:focus-visible{outline:1px solid var(--accent);outline-offset:5px}
html:is([data-variant="4"],[data-variant="5"]) .deck-current-title .locked-title{display:block;filter:blur(5px);letter-spacing:.24em;text-shadow:-5px 0 currentColor,5px 0 currentColor;mask-image:repeating-linear-gradient(transparent 0px,black 1px,black 2px,transparent 4px);user-select:none}
html:is([data-variant="4"],[data-variant="5"]) .archive-deck .gallery-card .gallery-title{display:none!important}
html:is([data-variant="4"],[data-variant="5"]) .archive-deck.caption-hover .gallery-card.is-selected .gallery-alternate{opacity:1}
html:is([data-variant="4"],[data-variant="5"]) .archive-deck.caption-hover .gallery-card.is-selected .gallery-art:after{opacity:.7}
html:is([data-variant="4"],[data-variant="5"]) .archive-deck.caption-hover .gallery-card.is-selected .gallery-description{opacity:1}
html:is([data-variant="4"],[data-variant="5"]) .archive-deck .gallery-thumbs{width:100px;justify-self:end}
html:is([data-variant="4"],[data-variant="5"]) .archive-deck .gallery-thumb{display:block;width:100%;padding:0 0 0 10px;min-height:0}
html:is([data-variant="4"],[data-variant="5"]) .deck-rail-title{display:none!important}
html:is([data-variant="4"],[data-variant="5"]) .archive-deck .gallery-group-label{text-align:right;font-size:clamp(10px,.8vw,14px)}
@media(max-width:900px){
 html:is([data-variant="4"],[data-variant="5"]) .archive-deck{grid-template-columns:120px minmax(0,1fr) 120px;gap:16px}
 html:is([data-variant="4"],[data-variant="5"]) .archive-deck .gallery-thumbs{width:80px}
 html:is([data-variant="4"],[data-variant="5"]) .deck-current-title{font-size:12px}
}
@media(max-width:600px){
 html:is([data-variant="4"],[data-variant="5"]) .archive-deck{grid-template-columns:68px minmax(0,1fr) 68px;gap:9px}
 html:is([data-variant="4"],[data-variant="5"]) .archive-deck .gallery-thumbs{width:64px}
 html:is([data-variant="4"],[data-variant="5"]) .deck-current-title{font-size:10px;line-height:1.4;overflow-wrap:anywhere}
 html:is([data-variant="4"],[data-variant="5"]) .archive-deck .gallery-group-label{font-size:8px}
}
/* Balance the caption against the real cover bounds, not a narrow page-edge column. */
html:is([data-variant="4"],[data-variant="5"]) .archive-deck{position:relative}
html:is([data-variant="4"],[data-variant="5"]) .archive-deck .gallery-stage{grid-column:2;grid-row:1}
html:is([data-variant="4"],[data-variant="5"]) .archive-deck .gallery-thumbs{grid-column:3;grid-row:1;width:76px;padding-top:20px}
html:is([data-variant="4"],[data-variant="5"]) .deck-caption{position:absolute;left:0;top:0;width:var(--caption-space,15%);height:100%;justify-content:center}
html:is([data-variant="4"],[data-variant="5"]) .deck-current-title{width:fit-content;max-width:min(240px,calc(100% - 32px));text-align:left}
html:is([data-variant="4"],[data-variant="5"]) .archive-deck .gallery-thumb{padding-left:6px;opacity:.48;transition:opacity .2s}
html:is([data-variant="4"],[data-variant="5"]) .archive-deck .gallery-thumb:before{width:1px;top:7px;bottom:7px}
html:is([data-variant="4"],[data-variant="5"]) .archive-deck .gallery-thumb-row{gap:6px}
html:is([data-variant="4"],[data-variant="5"]) .archive-deck .gallery-thumb-group{margin-bottom:22px}
html:is([data-variant="4"],[data-variant="5"]) .archive-deck .gallery-group-label{font-size:clamp(9px,.65vw,11px);font-weight:400;letter-spacing:.045em;min-height:18px;margin-bottom:9px}
@media(max-width:900px){html:is([data-variant="4"],[data-variant="5"]) .archive-deck .gallery-thumbs{width:66px}}
@media(max-width:600px){
 html:is([data-variant="4"],[data-variant="5"]) .archive-deck .gallery-thumbs{width:56px}
 html:is([data-variant="4"],[data-variant="5"]) .deck-current-title{max-width:calc(100% - 12px)}
 html:is([data-variant="4"],[data-variant="5"]) .archive-deck .gallery-group-label{font-size:8px;letter-spacing:0}
}
@media(hover:hover) and (pointer:fine){
 html:is([data-variant="4"],[data-variant="5"]) .archive-deck:not(.is-scrolling) .gallery-card.is-selected:hover .gallery-alternate{opacity:1}
 html:is([data-variant="4"],[data-variant="5"]) .archive-deck .gallery-alternate{transition:opacity .38s cubic-bezier(.22,.61,.36,1)}
}

html:is([data-variant="4"],[data-variant="5"]) .deck-current-title{margin:0;pointer-events:none}
html:is([data-variant="4"],[data-variant="5"]) .deck-year-caption{position:absolute;right:0;top:0;width:var(--caption-space,15%);height:100%;display:flex;align-items:center;justify-content:center;z-index:2;pointer-events:none}
html:is([data-variant="4"],[data-variant="5"]) .deck-current-year{display:block;width:fit-content;max-width:calc(100% - 32px);font-family:inherit;font-size:clamp(11px,.8vw,14px);font-weight:500;line-height:1.35;letter-spacing:.14em;color:var(--ink);text-align:center;white-space:nowrap}
html[data-variant="4"] .deck-current-year{font-size:clamp(11px,.8vw,14px);font-weight:500;letter-spacing:.14em}
/* Compact layouts keep the cover readable instead of squeezing three columns. */
@media(max-width:1100px){
 html:is([data-variant="4"],[data-variant="5"]) .archive-deck{grid-template-columns:86px minmax(0,1fr) 86px;gap:16px}
 html:is([data-variant="4"],[data-variant="5"]) .deck-caption{display:none}
 html:is([data-variant="4"],[data-variant="5"]) .deck-year-caption{display:none}
 html:is([data-variant="4"],[data-variant="5"]) .archive-deck .gallery-track{width:min(100%,calc((100dvh - 180px)*1.12))}
 html:is([data-variant="4"],[data-variant="5"]) .archive-deck .gallery-card.is-selected .gallery-title{display:block!important;left:50%;top:50%;bottom:auto;transform:translate(-50%,-50%);width:max-content;max-width:88%;margin:0;padding:12px;text-align:center;font-size:clamp(17px,2.3vw,24px);line-height:1.18;color:#fff;text-shadow:0 2px 16px #0009;pointer-events:none;white-space:normal}
 /* Darken for the overlaid title continuously, so selection changes cause no step. */
 html:is([data-variant="4"],[data-variant="5"]) .archive-deck .gallery-card .gallery-art:after,html:is([data-variant="4"],[data-variant="5"]) .archive-deck .gallery-card.is-selected .gallery-art:after{opacity:calc(var(--deck-dim,.08) + .14)}
 html:is([data-variant="4"],[data-variant="5"]) .archive-deck .gallery-description{display:none!important}
}
@media(max-width:700px),(max-width:1000px) and (pointer:coarse){
 html:is([data-variant="4"],[data-variant="5"]) #directory:not([hidden]){inset:calc(72px + env(safe-area-inset-top)) 12px calc(52px + env(safe-area-inset-bottom))!important}
 html:is([data-variant="4"],[data-variant="5"]) .archive-deck{display:block;padding:0}
 html:is([data-variant="4"],[data-variant="5"]) .archive-deck .gallery-thumbs{display:none!important}
 html:is([data-variant="4"],[data-variant="5"]) .archive-deck .gallery-stage{width:100%;height:100%;touch-action:none}
 html:is([data-variant="4"],[data-variant="5"]) .archive-deck .gallery-track{width:min(100%,calc((100dvh - 150px)*1.12));aspect-ratio:16/9}
 html:is([data-variant="4"],[data-variant="5"]) .archive-deck .gallery-card.is-selected .gallery-title{font-size:clamp(16px,4.4vw,24px);max-width:88%;padding:10px}
 html:is([data-variant="4"],[data-variant="5"]) .archive-deck .gallery-art{box-shadow:0 6px 22px #0003}
}
@media(max-height:540px) and (orientation:landscape){
 html:is([data-variant="4"],[data-variant="5"]) #directory:not([hidden]){inset:56px 14px 24px!important}
 html:is([data-variant="4"],[data-variant="5"]) .archive-deck .gallery-track{width:min(100%,calc((100dvh - 104px)*1.12))}
 html:is([data-variant="4"],[data-variant="5"]) .archive-deck .gallery-thumbs{padding-top:0}
}
@media(max-width:700px){
 html:is([data-variant="4"],[data-variant="5"]){--v3-media-width:min(calc(100vw - 24px),calc((100dvh - 260px)*16/9))}
 html:is([data-variant="4"],[data-variant="5"]) #workspace.project-detail:not([hidden]){grid-template-rows:calc(var(--v3-media-width)*9/16) 104px!important;align-content:center!important;gap:24px!important}
}
@media(max-height:540px) and (orientation:landscape){
 html:is([data-variant="4"],[data-variant="5"]){--v3-media-width:min(76vw,calc((100dvh - 164px)*16/9))}
 html:is([data-variant="4"],[data-variant="5"]) #workspace.project-detail:not([hidden]){grid-template-rows:minmax(0,1fr) 60px!important;gap:12px!important}
}
/* A single phone typography scale, independent of desktop's half-size composition. */
@media(max-width:700px){
 html:is([data-variant="4"],[data-variant="5"]){-webkit-text-size-adjust:100%;text-size-adjust:100%}
 html:is([data-variant="4"],[data-variant="5"]) .intro-composition{--home-link-size:16px;gap:24px!important}
 html:is([data-variant="4"],[data-variant="5"]) .intro-composition .intro-identity #intro-title{font-size:clamp(28px,8vw,40px)!important;line-height:.96!important;letter-spacing:.005em;text-align:left}
 html:is([data-variant="4"],[data-variant="5"]) .intro-entries{gap:8px!important;font-size:16px}
 html:is([data-variant="4"],[data-variant="5"]) .intro-entry{min-height:44px;height:44px;align-items:center;gap:.3em!important;font-size:16px}
 html:is([data-variant="4"],[data-variant="5"]) .intro-composition .entry-label>.entry-name{font-size:16px!important;line-height:1.1;font-weight:500}
 html:is([data-variant="4"],[data-variant="5"]) .intro-composition .entry-plus{font-size:16px!important;line-height:1}
 /* Scroll the resume below the fixed masthead, never behind it. */
 html:is([data-variant="4"],[data-variant="5"]):has(body[data-view="experience"]){overflow:hidden!important}
 html:is([data-variant="4"],[data-variant="5"]) body[data-view="experience"]{height:100dvh!important;min-height:0!important;overflow:hidden!important}
 html:is([data-variant="4"],[data-variant="5"]) #experience:not([hidden]){position:fixed!important;inset:calc(72px + env(safe-area-inset-top)) 0 0!important;height:auto!important;min-height:0!important;overflow-y:auto!important;overflow-x:hidden!important;overscroll-behavior-y:contain;padding:24px 24px calc(84px + env(safe-area-inset-bottom))!important;scrollbar-width:none!important;-webkit-overflow-scrolling:touch}
 html:is([data-variant="4"],[data-variant="5"]) #experience::-webkit-scrollbar{display:none}
}
/* One cursor language for the archive: a neutral dot, purple on actionable items. */
html:is([data-variant="4"],[data-variant="5"]) body[data-view="directory"] .cursor.is-label{width:20px;height:20px;border-radius:50%;background:var(--accent);mix-blend-mode:normal}
html:is([data-variant="4"],[data-variant="5"]) body[data-view="directory"] .cursor:not(.is-text) :is(.cursor-word,.cursor-symbol){display:none}
html:is([data-variant="4"],[data-variant="5"]) .archive-deck.is-scrolling .gallery-alternate{opacity:0!important;transition-duration:.12s}
/* An overlaid title replaces both side rails in compact layouts. */
@media(max-width:1100px){
 html:is([data-variant="4"],[data-variant="5"]) .archive-deck{display:block}
 html:is([data-variant="4"],[data-variant="5"]) .archive-deck .gallery-thumbs{display:none!important}
}

/* Flatten the cover contents once, then project the entire textured card. */
html:is([data-variant="4"],[data-variant="5"]) .archive-deck .gallery-card{transform-style:flat;backface-visibility:hidden}
html:is([data-variant="4"],[data-variant="5"]) .archive-deck .gallery-art{transform-style:flat;backface-visibility:hidden}

/* Leave room for the blurred ink, then feather both ends of every scan line. */
html:is([data-variant="4"],[data-variant="5"]) :is(.deck-current-title,.gallery-title) .locked-title{
 display:block;padding:12px 24px;margin:-12px -24px;
 -webkit-mask-image:linear-gradient(to right,transparent 0%,#000 20%,#000 80%,transparent 100%),repeating-linear-gradient(to bottom,transparent 0px,#000 1px,#000 2px,transparent 4px);
 mask-image:linear-gradient(to right,transparent 0%,#000 20%,#000 80%,transparent 100%),repeating-linear-gradient(to bottom,transparent 0px,#000 1px,#000 2px,transparent 4px);
 -webkit-mask-composite:source-in;mask-composite:intersect;
}

/* Edition five: face-on covers along a receding depth axis. */
html[data-variant="5"] .archive-deck .gallery-stage{mask-image:linear-gradient(to bottom,transparent 0%,#000 7%,#000 100%)}
html[data-variant="5"] .archive-deck .gallery-track{width:min(96%,calc((100dvh - 210px)*1.20))}
html[data-variant="5"] .archive-deck .gallery-art{border-radius:0;box-shadow:0 8px 24px #0003}
@media(max-width:1100px){html[data-variant="5"] .archive-deck .gallery-track{width:min(80%,calc((100dvh - 160px)*1.05))}}
/* Edition four: no side title; hovering a cover shows its title and description centred on the hover cover. */
.deck-hover-info{display:none}
@media all{
 html[data-variant="4"] .archive-deck .deck-caption{visibility:hidden}
 html[data-variant="4"] .archive-deck .deck-hover-info{display:flex;position:absolute;inset:0;z-index:2;flex-direction:column;align-items:center;justify-content:center;gap:14px;padding:0 12%;text-align:center;color:#fff;pointer-events:none;opacity:0;transform:translateY(6px);transition:opacity .35s ease,transform .35s ease}
 html[data-variant="4"] .archive-deck .deck-hover-info h3{margin:0;font-size:clamp(17px,1.5vw,28px);font-weight:500;letter-spacing:.025em;line-height:1.2;text-shadow:0 2px 16px #0008}
 html[data-variant="4"] .archive-deck .deck-hover-info p{margin:0;max-width:62ch;font-size:clamp(12px,.85vw,15px);line-height:1.55;letter-spacing:.01em;color:#fffd;text-wrap:pretty;text-shadow:0 1px 10px #0009}
 html[data-variant="4"] .archive-deck .deck-hover-info .locked-title{display:block;filter:blur(5px);letter-spacing:.24em}
}
@media all{
 html[data-variant="4"] .archive-deck:not(.is-scrolling) .gallery-card.is-selected.is-revealed .deck-hover-info{opacity:1;transform:none}
 html[data-variant="4"] .archive-deck:not(.is-scrolling) .gallery-card.is-selected.is-revealed .gallery-art:after{opacity:.5}
}
@media(prefers-reduced-motion:reduce){html[data-variant="4"] .archive-deck .deck-hover-info{transition:none;transform:none}}
/* Edition four: main and hover covers crossfade both ways, slowly enough to see each. */
@media all{
 html[data-variant="4"] .archive-deck .gallery-card:not(.is-private) .gallery-alternate{transform:scale(1.025);transition:opacity .65s cubic-bezier(.4,0,.2,1),transform 1.1s cubic-bezier(.22,.61,.36,1)}
 html[data-variant="4"] .archive-deck:not(.is-scrolling) .gallery-card.is-selected.is-revealed:not(.is-private) .gallery-alternate{transform:none}
 html[data-variant="4"] .archive-deck:not(.is-scrolling) .gallery-card.is-selected .gallery-art:after{transition:opacity .65s cubic-bezier(.4,0,.2,1)}
 html[data-variant="4"] .archive-deck:not(.is-scrolling) .gallery-card.is-selected.is-revealed .deck-hover-info{transition:opacity .55s ease .12s,transform .55s cubic-bezier(.22,.61,.36,1) .12s}
 html[data-variant="4"] .archive-deck.is-scrolling .gallery-alternate{transition-duration:.3s}
}
@media(prefers-reduced-motion:reduce){html[data-variant="4"] .archive-deck .gallery-alternate{transform:none!important}}
/* Edition four: aerial perspective. Covers further back dissolve into the page colour (both themes). */
.deck-fog{display:none}
html[data-variant="4"] .archive-deck .deck-fog{display:block;position:absolute;inset:0;z-index:1;background:var(--paper);opacity:var(--deck-fog,0);pointer-events:none}
/* Edition four: title and description appear only on the revealed hover cover (see the reveal block below). */
@media all{
 html[data-variant="4"] .archive-deck .deck-hover-info{gap:0;transform:none;transition:opacity .25s ease}
 html[data-variant="4"] .archive-deck .deck-hover-info h3{transform:translateY(calc(var(--desc-shift,0px) + 4px));transition:transform .7s cubic-bezier(.22,.61,.36,1)}
}
@media all{
 html[data-variant="4"] .archive-deck:not(.is-scrolling) .gallery-card.is-selected.is-revealed .gallery-art:after{opacity:.5}
}
@media(prefers-reduced-motion:reduce){html[data-variant="4"] .archive-deck :is(.deck-hover-info,.deck-hover-info h3,.deck-hover-desc){transition:none!important;transform:none!important}}
/* Edition four, light theme: the archive background lines were nearly invisible at .12. */
html[data-variant="4"][data-theme="light"] body[data-view="directory"]>.home-motion{opacity:.32!important}
/* Locked covers: the same title and description reveal, blurred until unlocked. */
html[data-variant="4"] .archive-deck .deck-hover-desc>p.locked-desc{filter:blur(4px);letter-spacing:.18em;user-select:none;word-break:break-all;mask-image:repeating-linear-gradient(transparent 0px,black 1px,black 2px,transparent 3px)}
/* Edition four: the hover cover and description wait for the pointer to rest on the settled cover
   (.is-revealed, set by archive-deck.js). The description keeps its space, so nothing is clipped:
   at rest the title is shifted down by half that space, and on reveal it rises while the text fades
   up out of a soft blur. */
@media all{
 html[data-variant="4"] .archive-deck .deck-hover-desc{display:block;opacity:0;transform:translateY(12px);filter:blur(6px);transition:opacity .35s ease,transform .5s ease,filter .35s ease}
 html[data-variant="4"] .archive-deck .deck-hover-desc>p{padding-top:14px}
 html[data-variant="4"] .archive-deck.archive-gallery .gallery-card.is-selected:not(.is-revealed) .gallery-alternate{opacity:0}
 html[data-variant="4"] .archive-deck.archive-gallery .gallery-card.is-selected.is-revealed .gallery-alternate{opacity:1}
 html[data-variant="4"] .archive-deck.archive-gallery .gallery-card.is-selected.is-revealed .deck-hover-info h3{transform:none}
 html[data-variant="4"] .archive-deck.archive-gallery .gallery-card.is-selected.is-revealed .deck-hover-desc{opacity:1;transform:none;filter:none;transition:opacity .7s ease .18s,transform .9s cubic-bezier(.22,.61,.36,1) .18s,filter .7s ease .18s}
}
@media(prefers-reduced-motion:reduce){html[data-variant="4"] .archive-deck .deck-hover-desc{filter:none!important}}
/* Edition four reveal choreography: (1) cover crossfades; (2) at 0.1s the title fades in at the
   centre; (3) at about 0.4s the title rises while the description rises and sharpens. On leave,
   both fade together and their positions reset only once invisible. */
@media all{
 html[data-variant="4"] .archive-deck.archive-gallery .gallery-card .deck-hover-info{transition:opacity .22s ease}
 html[data-variant="4"] .archive-deck.archive-gallery .gallery-card .deck-hover-info h3{transition:transform 0s linear .25s}
 html[data-variant="4"] .archive-deck.archive-gallery .gallery-card .deck-hover-desc{transition:opacity .2s ease,transform 0s linear .25s,filter 0s linear .25s}
 html[data-variant="4"] .archive-deck.archive-gallery .gallery-card.is-selected.is-revealed .deck-hover-info{transition:opacity .35s ease .1s}
 html[data-variant="4"] .archive-deck.archive-gallery .gallery-card.is-selected.is-revealed .deck-hover-info h3{transition:transform .6s cubic-bezier(.22,.61,.36,1) .4s}
 html[data-variant="4"] .archive-deck.archive-gallery .gallery-card.is-selected.is-revealed .deck-hover-desc{transition:opacity .5s ease .45s,transform .6s cubic-bezier(.22,.61,.36,1) .4s,filter .5s ease .45s}
}
/* Edition four rail: centred on the main cover (safe centring falls back to scrolling when it
   is taller than the page; the script then keeps the current item centred). The purple marker
   matches the thumbnail height. */
html[data-variant="4"] .archive-deck .gallery-thumbs{display:flex;flex-direction:column;justify-content:safe center;padding:8px 0}
html[data-variant="4"] .archive-deck .gallery-thumb-group{flex:none;margin-bottom:14px}
html[data-variant="4"] .archive-deck .gallery-thumb-group:last-child{margin-bottom:0}
html[data-variant="4"] .archive-deck .gallery-group-label{margin-bottom:8px;font-size:9px;letter-spacing:.02em;white-space:nowrap;overflow:visible;direction:rtl;text-align:right}
html[data-variant="4"] .archive-deck .gallery-thumb-row{gap:6px}
html[data-variant="4"] .archive-deck .gallery-thumb:before{top:0;bottom:0}
/* Edition four reveal: no hover cover. The main cover stays and dims gently so the text reads. */
@media all{
 html[data-variant="4"] .archive-deck.archive-gallery .gallery-card.is-selected.is-revealed .gallery-alternate{opacity:0}
 html[data-variant="4"] .archive-deck.archive-gallery:not(.is-scrolling) .gallery-card.is-selected.is-revealed .gallery-art:after{opacity:.38}
}
/* Edition four, compact layouts: same rule as desktop. No title on the main cover; reveal by
   pointer (narrow desktop windows) or by a first tap (touch); the description is line-clamped. */
@media(max-width:1100px){
 html[data-variant="4"] .archive-deck.archive-gallery .gallery-card .gallery-title{display:none!important}
 html[data-variant="4"] .archive-deck .gallery-card .gallery-art:after,html[data-variant="4"] .archive-deck .gallery-card.is-selected .gallery-art:after{opacity:var(--deck-dim,.08)}
 html[data-variant="4"] .archive-deck .deck-hover-info{padding:0 8%}
 html[data-variant="4"] .archive-deck .deck-hover-desc>p{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:4;overflow:hidden;padding-top:0;margin-top:10px}
}
@media(max-width:700px){
 html[data-variant="4"] .archive-deck .deck-hover-info h3{font-size:clamp(14px,4.2vw,18px)}
 html[data-variant="4"] .archive-deck .deck-hover-desc>p{-webkit-line-clamp:3;font-size:11px;line-height:1.45;margin-top:8px}
}
/* Edition four: no INFO in the top-right nav (Info is reached from home via the logo). While
   home can return to the previous page, the logo is purple; it crossfades back to the ink colour.
   The logo's existing signal flicker still runs on .logo-placeholder. */
html[data-variant="4"] .edition-route-nav{display:none!important} /* v4: no top-right ARCHIVE / INFO; the logo toggle and the BACK button cover navigation */
html[data-variant="4"] .masthead .brand .logo-placeholder{position:relative}
html[data-variant="4"] .masthead .brand .logo-placeholder::after{content:"";position:absolute;inset:0;background:var(--accent,#9d8cf0);-webkit-mask:url(/assets/songlin-logo.svg) center/contain no-repeat;mask:url(/assets/songlin-logo.svg) center/contain no-repeat;opacity:0;transition:opacity .45s ease}
html[data-variant="4"] .masthead .brand .brand-logo{transition:opacity .45s ease}
html[data-variant="4"] body.home-return .masthead .brand .logo-placeholder::after{opacity:1}
html[data-variant="4"] body.home-return .masthead .brand .brand-logo{opacity:0}
/* Edition four: the year sits under the description and rises with it. */
.deck-hover-year{display:none}
html[data-variant="4"] .archive-deck .deck-hover-desc>.deck-hover-year{display:block;margin-top:12px;font-size:clamp(10px,.72vw,12px);letter-spacing:.14em;color:#fffa;text-shadow:0 1px 10px #0009}
html[data-variant="4"] .archive-deck .deck-hover-desc>.deck-hover-year.locked-desc{filter:blur(4px);user-select:none}
@media(max-width:700px){html[data-variant="4"] .archive-deck .deck-hover-desc>.deck-hover-year{margin-top:8px;font-size:10px}}
/* Edition four: the left caption shows the current category (ACADEMIC / SKYRYSE / EXPLORATIONS),
   crossfading only when the category changes. */
html[data-variant="4"] .archive-deck .deck-caption{visibility:visible!important}
html[data-variant="4"] .deck-current-title{text-align:center;font-size:clamp(11px,.8vw,14px);font-weight:500;letter-spacing:.14em;color:var(--ink);opacity:1}
html[data-variant="4"] .deck-current-title.is-switching{animation:deck-category-in .6s cubic-bezier(.22,.61,.36,1) both}
@keyframes deck-category-in{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}
@media(prefers-reduced-motion:reduce){html[data-variant="4"] .deck-current-title.is-switching{animation:none}}
/* ===== Edition four design tokens (2026-11-01). Loaded last, so these settle the type scale,
   uppercase tracking and motion timing site-wide.
   Type scale: 10 caps labels, dates, year | 12 buttons, nav, secondary | 15 body, descriptions |
   21 project names, record titles | 44 Info title | about 110 home title.
   Caps tracking: 0.08em. Motion: fast .2s, base .45s, slow .7s on one easing curve. ===== */
html[data-variant="4"]{--fs-label:10px;--fs-ui:12px;--fs-body:15px;--fs-title:21px;--fs-page:44px;--track-caps:.08em;--track-text:.01em;--t-fast:.2s;--t-base:.45s;--t-slow:.7s;--ease:cubic-bezier(.22,.61,.36,1)}
/* 10: caps labels, dates, years */
html[data-variant="4"] .deck-current-title,html[data-variant="4"] .deck-current-year,html[data-variant="4"] .archive-deck .deck-hover-desc>.deck-hover-year,html[data-variant="4"] #experience .resume-record>time,html[data-variant="4"] #experience .resume-section>h2,html[data-variant="4"] #experience .resume-title,html[data-variant="4"] #experience .resume-software span{font-size:var(--fs-label)!important;letter-spacing:var(--track-caps)!important}
/* Right rail labels are the one exception: 9px/.04em keeps EXPLORATIONS within the 70px thumbnail. */
html[data-variant="4"] .archive-deck .gallery-group-label{font-size:9px!important;letter-spacing:.04em!important}
/* 12: buttons and navigation (caps), secondary text */
html[data-variant="4"] #workspace .project-panel-tools button,html[data-variant="4"] #workspace .project-panel-tools .image-tools button{font-size:var(--fs-ui)!important;letter-spacing:var(--track-caps)!important}
html[data-variant="4"] #experience #copy-email,html[data-variant="4"] #experience #copy-phone,html[data-variant="4"] #experience .resume-location{font-size:var(--fs-ui)!important;letter-spacing:var(--track-text)!important}
/* 15: body and descriptions */
html[data-variant="4"] #experience .resume-role,html[data-variant="4"] #experience .resume-software p,html[data-variant="4"] #experience .resume-skills span{font-size:var(--fs-body)!important;letter-spacing:var(--track-text)!important}
@media(min-width:1101px){html[data-variant="4"] .archive-deck .deck-hover-desc>p{font-size:var(--fs-body);letter-spacing:var(--track-text);line-height:1.55}}
/* 21: project names, record titles, home entrances, Info lead */
html[data-variant="4"] .archive-deck .deck-hover-info h3,html[data-variant="4"] #experience .resume-record h3,html[data-variant="4"] #experience .resume-link{font-size:var(--fs-title)!important;letter-spacing:var(--track-text)!important}
@media(min-width:701px){html[data-variant="4"] .intro-composition .entry-label>.entry-name,html[data-variant="4"] .intro-composition .entry-plus{font-size:var(--fs-title)!important}html[data-variant="4"] #experience .resume-profile p{font-size:var(--fs-title)!important;line-height:1.5!important}}
/* 44: Info title */
@media(min-width:701px){html[data-variant="4"] #experience #experience-title{font-size:var(--fs-page)!important;line-height:1!important}}
/* Phone keeps the same steps, one notch smaller where space is tight. */
@media(max-width:700px){html[data-variant="4"] .archive-deck .deck-hover-info h3{font-size:18px!important}html[data-variant="4"] .archive-deck .deck-hover-desc>p{font-size:var(--fs-ui)!important}html[data-variant="4"] #experience #experience-title{font-size:36px!important}}
/* Motion: the reveal choreography and archive transitions on the shared tokens. */
html[data-variant="4"] .archive-deck.archive-gallery .gallery-card .deck-hover-info{transition:opacity var(--t-fast) var(--ease)}
html[data-variant="4"] .archive-deck.archive-gallery .gallery-card .deck-hover-desc{transition:opacity var(--t-fast) var(--ease),transform 0s linear .25s,filter 0s linear .25s}
html[data-variant="4"] .archive-deck.archive-gallery .gallery-card.is-selected.is-revealed .deck-hover-info{transition:opacity var(--t-base) var(--ease) .1s}
html[data-variant="4"] .archive-deck.archive-gallery .gallery-card.is-selected.is-revealed .deck-hover-info h3{transition:transform var(--t-slow) var(--ease) .4s}
html[data-variant="4"] .archive-deck.archive-gallery .gallery-card.is-selected.is-revealed .deck-hover-desc{transition:opacity var(--t-slow) var(--ease) .45s,transform var(--t-slow) var(--ease) .4s,filter var(--t-slow) var(--ease) .45s}
html[data-variant="4"] .archive-deck.archive-gallery:not(.is-scrolling) .gallery-card.is-selected .gallery-art:after{transition:opacity var(--t-base) var(--ease)}
html[data-variant="4"] .deck-current-title.is-switching{animation-duration:var(--t-base);animation-timing-function:var(--ease)}
html[data-variant="4"] .masthead .brand .logo-placeholder::after,html[data-variant="4"] .masthead .brand .brand-logo{transition-duration:var(--t-base);transition-timing-function:var(--ease)}
html[data-variant="4"] .archive-deck .gallery-thumb,html[data-variant="4"] .archive-deck .gallery-thumb:before{transition-duration:var(--t-fast);transition-timing-function:var(--ease)}
@media(prefers-reduced-motion:reduce){html[data-variant="4"]{--t-fast:0s;--t-base:0s;--t-slow:0s}}
/* The old in-card description is superseded by the reveal (.deck-hover-info). */
html[data-variant="4"] .archive-deck .gallery-description{display:none!important}
/* Edition four, desktop: the project index is a horizontal strip centred at the bottom; the cover
   area above it is shorter, so the cover sits higher. The category (left) and year (right) captions
   stay centred on the cover, not on the whole page. */
@media(min-width:1101px),(min-width:760px) and (min-height:600px){
 html[data-variant="4"] .archive-deck{--rail-h:86px;grid-template-columns:minmax(0,1fr)!important;grid-template-rows:minmax(0,1fr) var(--rail-h);row-gap:12px;gap:12px 0}
 html[data-variant="4"] .archive-deck .gallery-stage{grid-column:1;grid-row:1}
 html[data-variant="4"] .archive-deck .gallery-thumbs{grid-column:1!important;grid-row:2!important;justify-self:stretch!important;align-self:stretch;margin:0!important;width:100%!important;max-width:100%;box-sizing:border-box;height:var(--rail-h)!important;display:flex;flex-direction:row;justify-content:safe center;align-items:flex-end;gap:30px;overflow-x:auto;overflow-y:hidden;padding:0 28px 6px!important;mask-image:linear-gradient(to right,transparent,#000 28px,#000 calc(100% - 28px),transparent)}
 html[data-variant="4"] .archive-deck .gallery-thumb-group{display:flex;flex-direction:column;align-items:flex-start;flex:none;width:auto;margin:0!important}
 html[data-variant="4"] .archive-deck .gallery-group-label{direction:ltr;text-align:left;width:auto;margin:0 0 8px!important;min-height:0}
 html[data-variant="4"] .archive-deck .gallery-thumb-row{flex-direction:row!important;gap:6px!important;align-items:flex-end}
 html[data-variant="4"] .archive-deck .gallery-thumb{width:var(--thumb-w,56px)!important;min-height:0!important;grid-template-columns:var(--thumb-w,56px)!important;padding:0 0 8px!important;gap:0!important}
 html[data-variant="4"] .archive-deck .deck-rail-cover{width:56px;height:31.5px;display:block}
 html[data-variant="4"] .archive-deck .deck-rail-title{display:none!important}
 html[data-variant="4"] .archive-deck .gallery-thumb:before{top:auto!important;bottom:0!important;left:0;right:0;width:auto;height:2px}
 html[data-variant="4"] .archive-deck :is(.deck-caption,.deck-year-caption){top:0;bottom:calc(var(--rail-h) + 12px);height:auto!important}
}
/* Edition four: home as a frosted-glass layer over the current page (logo toggle). */
html[data-variant="4"] #intro.home-glass{position:fixed!important;inset:0!important;z-index:40;display:grid!important;background:color-mix(in srgb,var(--paper) 30%,transparent)!important;-webkit-backdrop-filter:blur(14px) saturate(1.05)!important;backdrop-filter:blur(14px) saturate(1.05)!important;opacity:0;transition:opacity var(--t-base,.45s) var(--ease,ease)}
html[data-variant="4"] body.glass-open #intro.home-glass{opacity:1}
html[data-variant="4"][data-theme="light"] #intro.home-glass{background:color-mix(in srgb,var(--paper) 42%,transparent)!important}
html[data-variant="4"] body[data-overlay=intro] .masthead{z-index:60}
html[data-variant="4"] body[data-overlay=intro] .site-footer{z-index:60}
@media(prefers-reduced-motion:reduce){html[data-variant="4"] #intro.home-glass{transition:none}}
/* Edition four, desktop bottom strip, v2: pinned to the bottom edge with the thumbnails level with the
   theme toggle. One continuous faint baseline runs under every thumbnail; each thumbnail owns its segment,
   which turns purple on hover or when current. Category names are centred under their group. */
@media(min-width:1101px),(min-width:760px) and (min-height:600px){
 html[data-variant="4"] #directory:not([hidden]){bottom:0!important}
 html[data-variant="4"] .archive-deck{--rail-h:76px;row-gap:14px}
 html[data-variant="4"] .archive-deck .gallery-thumbs{gap:0!important;align-items:flex-end;padding:0 76px 0!important;mask-image:linear-gradient(to right,transparent,#000 76px,#000 calc(100% - 76px),transparent)}
 html[data-variant="4"] .archive-deck .gallery-thumb-group{align-items:stretch;padding:0 14px}
 html[data-variant="4"] .archive-deck .gallery-thumb-row{position:relative;gap:6px!important;padding-bottom:7px}
 html[data-variant="4"] .archive-deck .gallery-thumb-row::after{content:"";position:absolute;left:-14px;right:-14px;bottom:0;height:1px;background:var(--ink);opacity:.16;pointer-events:none}
 html[data-variant="4"] .archive-deck .gallery-thumb{padding:0!important;overflow:visible!important}
 html[data-variant="4"] .archive-deck .gallery-thumb:before{top:auto!important;bottom:-7px!important;left:0!important;right:0!important;width:auto!important;height:2px!important;background:var(--accent)!important;opacity:0;transform:scaleX(.4);transition:opacity var(--t-fast) var(--ease),transform var(--t-base) var(--ease)!important;z-index:1}
 html[data-variant="4"] .archive-deck .gallery-thumb:hover:before,html[data-variant="4"] .archive-deck .gallery-thumb[aria-current=true]:before{opacity:1;transform:none}
 html[data-variant="4"] .archive-deck .gallery-group-label{order:2;align-self:center;text-align:center!important;direction:ltr;margin:6px 0 0!important;line-height:11px;width:auto}
 html[data-variant="4"] .archive-deck .gallery-thumb-group.is-active .gallery-group-label{color:var(--accent)}
}
/* Bottom strip v3: category names sit above their group (clear of the page edge); each group has its own
   baseline segment, broken between groups. Thumbnails stay level with the theme toggle. */
@media(min-width:1101px),(min-width:760px) and (min-height:600px){
 html[data-variant="4"] .archive-deck{--rail-h:84px}
 html[data-variant="4"] .archive-deck .gallery-thumb-group{padding:0 22px}
 html[data-variant="4"] .archive-deck .gallery-thumb-row::after{left:0!important;right:0!important}
 html[data-variant="4"] .archive-deck .gallery-group-label{order:0!important;margin:0 0 9px!important}
 html[data-variant="4"] .archive-deck .gallery-thumbs{padding-bottom:17px!important}
}
/* Optical balance (desktop): the cover area starts higher, into the empty middle of the header band
   (the logo sits only at the far left), so the stack is not bottom-heavy above the index strip. */
@media(min-width:1101px){html[data-variant="4"] #directory:not([hidden]){top:var(--deck-top,44px)!important}}
/* TEMPORARY while covers are placeholders: show every cover and thumbnail in greyscale so colour does
   not distract from judging the layout. Remove this block when real covers arrive. */
html[data-variant="4"] .archive-deck .gallery-art img,html[data-variant="4"] .archive-deck .deck-rail-cover img,html[data-variant="4"] .project-cover-bridge img{filter:grayscale(1)!important}
html[data-variant="4"] .archive-deck .gallery-card.is-private .gallery-art img,html[data-variant="4"] .archive-deck .gallery-thumb.is-private .deck-rail-cover img{filter:grayscale(1) blur(24px)!important}
/* Footer icons scaled up to sit with the logo (about 30px) and the index thumbnails (32px tall). */
html[data-variant="4"] .site-footer .theme-icon{width:16px!important;height:16px!important}
/* Home entry hover labels live on <body>; lift them above the frosted-glass home layer (z 40). */
body[data-overlay=intro] .home-hover-label{z-index:46}
/* Light theme: the footer inherits white on home/glass/Info (inversion group); match the theme toggle. */
/* Copy feedback on Info: plain caps label in the page's text colour, riding beside the pointer.
   Soft fade in and out, no flicker, no marker. */
.copy-tip{position:fixed;left:0;top:0;z-index:120;pointer-events:none;padding:0 0 0 16px;margin-top:-22px;font-size:var(--fs-label,10px);line-height:1;letter-spacing:var(--track-caps,.08em);text-transform:uppercase;white-space:nowrap;color:var(--ink);opacity:0;transition:opacity var(--t-base,.45s) var(--ease,ease)}
.copy-tip.show{opacity:1;transition-duration:var(--t-fast,.2s)}
.copy-tip.is-error{white-space:normal;max-width:260px;line-height:1.4}
/* Bottom index: no transparency. Unselected thumbnails are tinted toward the page colour by a solid
   wash over their opaque cover (nothing behind shows through); the baseline is a solid mixed colour. */
html[data-variant="4"] .archive-deck .gallery-thumb{opacity:1!important}
html[data-variant="4"] .archive-deck .deck-rail-cover{position:relative}
html[data-variant="4"] .archive-deck .deck-rail-cover::after{content:"";position:absolute;inset:0;background:color-mix(in srgb,var(--paper) 55%,transparent);transition:background-color var(--t-fast) var(--ease);pointer-events:none}
html[data-variant="4"] .archive-deck .gallery-thumb:hover .deck-rail-cover::after,html[data-variant="4"] .archive-deck .gallery-thumb[aria-current=true] .deck-rail-cover::after,html[data-variant="4"] .archive-deck .gallery-thumb:focus-visible .deck-rail-cover::after{background:transparent}
html[data-variant="4"] .archive-deck .gallery-thumb-row::after{opacity:1!important;background:color-mix(in srgb,var(--ink) 16%,var(--paper))!important}
/* Revealed cover: a deeper solid-tone scrim so the white title and description read over bright artwork. */
html[data-variant="4"] .archive-deck.archive-gallery:not(.is-scrolling) .gallery-card.is-selected.is-revealed .gallery-art:after{opacity:.52!important}
/* Locked projects keep the original scan-line blur, with room around the text so the mask no longer
   cuts the blur into a straight edge (padding widens the mask box; negative margin keeps layout). */
html[data-variant="4"] .archive-deck .deck-hover-desc>p.locked-desc{padding-left:24px!important;padding-right:24px!important;margin-left:-24px!important;margin-right:-24px!important;text-transform:uppercase}
html[data-variant="4"] .archive-deck .deck-hover-info .locked-title{padding:6px 24px;margin:-6px -24px}
/* Inline password (edition four): lives inside the locked cover. The blurred text recedes, a
   single line rises in its place; wrong password nudges the line, success fills it with accent. */
html[data-variant="4"] .archive-deck .access-inline{position:absolute;inset:0;z-index:4;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:16px;color:#fff;pointer-events:none;opacity:0;transform:translateY(8px);transition:opacity var(--t-base) var(--ease),transform var(--t-slow) var(--ease)}
html[data-variant="4"] .archive-deck .gallery-card.is-unlocking .access-inline:not(.is-leaving){opacity:1;transform:none;pointer-events:auto;transition-delay:.12s}
html[data-variant="4"] .archive-deck .access-inline.is-leaving{opacity:0;transform:translateY(-4px);transition-duration:var(--t-fast),var(--t-base)}
html[data-variant="4"] .archive-deck .gallery-card.is-unlocking .deck-hover-info{opacity:.18!important;filter:blur(6px);transform:scale(.985);transition:opacity var(--t-base) var(--ease),filter var(--t-base) var(--ease),transform var(--t-slow) var(--ease)!important}
html[data-variant="4"] .archive-deck .gallery-card.is-unlocking .gallery-art:after{opacity:.68!important;transition:opacity var(--t-base) var(--ease)!important}
.access-inline-kicker{font-size:var(--fs-label);letter-spacing:var(--track-caps);text-transform:uppercase;line-height:1;transition:color var(--t-fast) var(--ease)}
.access-inline-field{position:relative;display:flex;align-items:center;width:min(300px,62%);padding:0 0 9px;cursor:text}
.access-inline-field input{flex:1;min-width:0;border:0;outline:0;background:none;color:inherit;font:inherit;font-size:var(--fs-ui);letter-spacing:.18em;text-align:center;padding:0 26px;caret-color:var(--accent)}
.access-inline-field input::placeholder{color:color-mix(in srgb,#fff 46%,#2a2a2a);letter-spacing:var(--track-caps)}
.access-inline-go{position:absolute;right:0;bottom:7px;width:22px;height:22px;display:grid;place-items:center;border:0;padding:0;background:none;color:inherit;cursor:pointer;transition:color var(--t-fast) var(--ease),transform var(--t-fast) var(--ease)}
.access-inline-go svg{width:14px;height:14px;fill:none;stroke:currentColor;stroke-width:1.1;stroke-linecap:round;stroke-linejoin:round}
.access-inline-go:hover,.access-inline-go:focus-visible{color:var(--accent);transform:translateX(2px);outline:0}
.access-inline-line{position:absolute;left:0;right:0;bottom:0;height:1px;background:color-mix(in srgb,#fff 38%,#222);transform-origin:center;transform:scaleX(.3);transition:transform var(--t-slow) var(--ease) .15s,background-color var(--t-fast) var(--ease)}
.gallery-card.is-unlocking .access-inline:not(.is-leaving) .access-inline-line{transform:none}
.access-inline-line::after{content:"";position:absolute;inset:0;background:var(--accent);transform:scaleX(0);transform-origin:left center;transition:transform var(--t-slow) var(--ease)}
.access-inline-field:focus-within .access-inline-line{background:color-mix(in srgb,#fff 70%,#222)}
.access-inline.is-busy .access-inline-line::after{transform:scaleX(.35);transition-duration:1.2s}
.access-inline.is-success .access-inline-line::after{transform:none}
.access-inline.is-success .access-inline-kicker{color:var(--accent)}
.access-inline-msg{min-height:1em;margin:0;font-size:var(--fs-label);letter-spacing:var(--track-caps);line-height:1;color:var(--accent);opacity:0;transition:opacity var(--t-fast) var(--ease)}
.access-inline.is-error .access-inline-msg{opacity:1}
.access-inline.is-error .access-inline-field{animation:access-nudge .36s var(--ease)}
@keyframes access-nudge{0%,100%{transform:none}20%{transform:translateX(-6px)}45%{transform:translateX(5px)}70%{transform:translateX(-3px)}88%{transform:translateX(1px)}}
@media(prefers-reduced-motion:reduce){.access-inline.is-error .access-inline-field{animation:none}}
/* Smooth exits for the revealed cover. One fade on the info block (the description no longer fades
   on top of it, which doubled the drop), and the same soft exit when the deck starts moving instead
   of a hard cut. */
html[data-variant="4"] .archive-deck.archive-gallery .gallery-card:not(.is-revealed) .deck-hover-info{transition:opacity .32s cubic-bezier(.4,0,.2,1)!important}
html[data-variant="4"] .archive-deck.archive-gallery .gallery-card:not(.is-revealed) .deck-hover-desc{transition:opacity 0s linear .34s,transform 0s linear .34s,filter 0s linear .34s!important}
html[data-variant="4"] .archive-deck.archive-gallery .gallery-card:not(.is-revealed) .deck-hover-info h3{transition:transform 0s linear .34s!important}
html[data-variant="4"] .archive-deck.archive-gallery.is-scrolling .gallery-card .deck-hover-info{transition:opacity .18s cubic-bezier(.4,0,.2,1)!important}
html[data-variant="4"] .archive-deck.archive-gallery.is-scrolling .gallery-card.is-selected .gallery-art:after{transition:opacity .18s linear}
/* ===== Responsive pass (edition four) =====
   Home: size the title and links from the tighter of width and height (calibrated so 16:9 is
   unchanged: 1920x1080 -> title 145.9px, links 31.7px before the composition's .5 scale).
   Portrait tablets get a larger factor; the 610-700px minimum height is dropped so short
   landscape screens centre properly. Phones (<=700px) keep their own stacked layout. */
@media (min-width:701px){
 html[data-variant="4"] #intro{min-height:0!important;height:100svh!important}
 html[data-variant="4"] .intro-composition{--fit:min(1vw,2vh);--home-link-size:clamp(26px,calc(1.65 * var(--fit)),34px)!important}
 html[data-variant="4"] .intro-composition .intro-identity #intro-title{font-size:clamp(80px,calc(7.6 * var(--fit)),190px)!important}
 html[data-variant="4"] .intro-composition .intro-entries{display:flex!important;flex-direction:column!important;gap:1em!important;height:auto!important}
}
@media (min-width:701px) and (orientation:portrait){
 html[data-variant="4"] .intro-composition{--fit:1.5vw;--home-link-size:clamp(28px,calc(1.55 * var(--fit)),34px)!important}
}
/* Info, all sizes: sections never shrink inside the scrolling column (they were squashed on phones and
   spilled under the contact block); the contact block is plain lines, no tinted panel. */
html[data-variant="4"] #experience>*{flex-shrink:0!important}
html[data-variant="4"] #experience .resume-contact{background:transparent!important;box-shadow:none!important;padding-left:0!important;padding-right:0!important}
@media (min-width:701px) and (max-width:1100px){html[data-variant="4"] #experience #experience-title{font-size:36px!important;line-height:1!important}}
/* Archive index strip on mid-size screens (tablets, square and smaller desktop windows): keep the
   bottom strip whenever there is room, with thumbnails that shrink so the strip never runs off. */
html[data-variant="4"] .archive-deck .deck-rail-cover{width:var(--thumb-w,56px)!important;height:calc(var(--thumb-w,56px) * .5625)!important}
/* Thumbnail size follows the number of projects (--rail-n) and groups (--rail-g, set by archive-deck.js) so the
   strip always fits and stays centred: 40px frame + 152px fade padding + 44px per group + 6px gaps. */
html[data-variant="4"] .archive-deck{--thumb-w:clamp(18px,calc((100vw - 204px - var(--rail-g,3) * 44px - (var(--rail-n,17) - var(--rail-g,3)) * 6px) / var(--rail-n,17)),56px)}
@media (max-width:1360px){html[data-variant="4"] .archive-deck .gallery-thumb-row{gap:clamp(3px,.5vw,6px)!important}}
@media (min-width:760px) and (max-width:1100px) and (min-height:600px){
 html[data-variant="4"] .archive-deck{display:grid!important;grid-template-columns:minmax(0,1fr)!important;grid-template-rows:minmax(0,1fr) var(--rail-h)!important;row-gap:12px}
 html[data-variant="4"] .archive-deck .gallery-thumbs{display:flex!important}
}
/* Locked title: a crisp blur. Smaller radius, scan lines that dim instead of cut (so the letters keep
   their brightness), and a faint glow; the description follows a little more softly. */
html[data-variant="4"] .archive-deck .deck-hover-info .locked-title{filter:blur(2.6px)!important;color:#fff;text-shadow:0 0 10px rgba(255,255,255,.35)!important;-webkit-mask-image:repeating-linear-gradient(#000 0 2px,rgba(0,0,0,.62) 2px 3px)!important;mask-image:repeating-linear-gradient(#000 0 2px,rgba(0,0,0,.62) 2px 3px)!important}
html[data-variant="4"] .archive-deck .deck-hover-desc>p.locked-desc{filter:blur(3px)!important;color:rgba(255,255,255,.9);-webkit-mask-image:repeating-linear-gradient(#000 0 2px,rgba(0,0,0,.55) 2px 3px)!important;mask-image:repeating-linear-gradient(#000 0 2px,rgba(0,0,0,.55) 2px 3px)!important}
@media (min-width:701px) and (max-aspect-ratio:13/10){
 html[data-variant="4"] .intro-composition{grid-template-columns:max-content max-content!important;justify-content:center!important;column-gap:72px!important}
}
/* Locked title, final: bright but unreadable. Stronger blur with a soft glow for luminance. */
html[data-variant="4"] .archive-deck .deck-hover-info .locked-title{filter:blur(7px)!important;text-shadow:0 0 16px rgba(255,255,255,.5),0 0 3px #fff!important}
html[data-variant="4"] .archive-deck .deck-hover-desc>p.locked-desc{filter:blur(5.5px)!important;text-shadow:0 0 10px rgba(255,255,255,.3)!important}
/* The left category caption lets clicks through to the deck (as the year caption does), so clicking
   above/below the cover pages the deck on both sides. */
html[data-variant="4"] .archive-deck .deck-caption{pointer-events:none!important}
html[data-variant="4"] .archive-deck :is(.deck-caption,.deck-year-caption){transition:opacity var(--t-base) var(--ease),visibility 0s linear 0s}
html[data-variant="4"] .archive-deck.captions-off :is(.deck-caption,.deck-year-caption){opacity:0!important;visibility:hidden;transition:opacity var(--t-fast) var(--ease),visibility 0s linear var(--t-fast)}
/* The cover never runs past the page edges (tall, mid-width windows let it grow to 108%). */
html[data-variant="4"] .archive-deck .gallery-track{max-width:calc(100vw - 2 * clamp(12px,3vw,40px))!important}
/* A mouse keeps the custom cursor in narrow windows too (phones and touch never get it). */
@media(max-width:700px) and (pointer:fine){html[data-variant="4"].custom-cursor .cursor.visible{display:flex!important}}
/* Sliding current-marker for the index strip (archive-deck.js moveRailBar). Thumbnails keep their own
   short line only as a hover hint; the current one is shown by the sliding bar alone. */
html[data-variant="4"] .archive-deck .gallery-thumbs{position:relative}
html[data-variant="4"] .archive-deck .deck-rail-bar{position:absolute;left:0;top:0;height:2px;background:var(--accent);pointer-events:none;z-index:2;opacity:0;transition:opacity var(--t-fast) var(--ease);will-change:transform,width}
html[data-variant="4"] .archive-deck .gallery-thumb[aria-current=true]:before{opacity:0!important}
html[data-variant="4"] .archive-deck .gallery-thumb:not([aria-current=true]):hover:before{opacity:.45}
/* Larger home links and archive side captions (feedback: too small). Scoped to these elements only.
   Home links are set before the composition's .5 scale: 1920 -> ~14px on screen, never under 12px. */
@media (min-width:701px){
 html[data-variant="4"] .intro-composition .intro-entry :is(.entry-name,.entry-plus){font-size:clamp(24px,calc(1.45 * var(--fit,1vw)),32px)!important}
}
html[data-variant="4"] .archive-deck :is(.deck-current-title,.deck-current-year){font-size:clamp(12px,.72vw,14px)!important;letter-spacing:.1em!important}
/* The lit (unwashed) thumbnail is the one under the sliding bar (.is-lit), not the deck's nearest cover,
   so a straight bar run across the strip lights the thumbnails it passes. */
html[data-variant="4"] .archive-deck .gallery-thumb[aria-current=true]:not(.is-lit):not(:hover):not(:focus-visible) .deck-rail-cover::after{background:color-mix(in srgb,var(--paper) 55%,transparent)!important}
html[data-variant="4"] .archive-deck .gallery-thumb.is-lit .deck-rail-cover::after{background:transparent!important}
html[data-variant="4"] .archive-deck .gallery-thumb.is-lit:before{opacity:0!important}
html[data-variant="4"] .archive-deck .gallery-thumb[aria-current=true]:not(.is-lit):hover:before{opacity:.45!important}
/* Performance: every cover is its own compositor layer, so moving/scaling/fading it is a GPU transform
   instead of a repaint of its blur, fog and image each frame. */
html[data-variant="4"] .archive-deck .gallery-card{will-change:transform,opacity}
/* Mobile fullscreen: no rotate button (fullscreen turns to landscape by itself); a single close X sits in
   the top-right corner of the landscape view (physical bottom-right while the picture is turned). */
html[data-variant="4"] .fullscreen-viewer[open] .viewer-rotate,html[data-variant="4"] .fullscreen-viewer .viewer-rotate{display:none!important}
html[data-variant="4"] .fullscreen-viewer[open] .viewer-close{left:auto!important;right:max(8px,env(safe-area-inset-right))!important;top:max(8px,env(safe-area-inset-top))!important;bottom:auto!important;color:var(--ink)}
html[data-variant="4"] .fullscreen-viewer.is-rotated[open] .viewer-close{top:auto!important;bottom:max(8px,env(safe-area-inset-bottom))!important;transform:rotate(90deg)}
@media (max-width:700px),(pointer:coarse){
 html[data-variant="4"] .fullscreen-viewer[open]:not(.is-rotated) .stage-wrap{width:min(calc(100dvw - 112px),calc((100dvh - 36px) * 16 / 9))!important}
 html[data-variant="4"] .fullscreen-viewer.is-rotated[open] .stage-wrap{width:min(calc(100dvh - 72px),calc((100dvw - 20px) * 16 / 9))!important}
}
/* Project page (desktop): the control row sits on the bottom line with the theme toggle (both centred
   40px above the bottom edge), and the presentation grows into the space it frees. The page reserves
   86px at the bottom for that row; the work stays clear of the logo/toggle column on the left. */
@media (min-width:701px) and (pointer:fine){
 html[data-variant="4"]{--v3-media-width:min(calc(100vw - 192px),calc((100dvh - 198px) * 16 / 9))}
 html[data-variant="4"] #workspace{padding-bottom:86px!important;box-sizing:border-box}
 html[data-variant="4"] #workspace .project-panel-tools{position:fixed!important;left:50%!important;bottom:18px!important;top:auto!important;transform:translateX(-50%);width:var(--v3-media-width)!important;height:44px!important;padding:0!important;margin:0!important;z-index:30}
}
html[data-variant="4"] .archive-deck .gallery-card:not([hidden]) .deck-fog{will-change:opacity}
/* Glass -> home: the frost and tint dissolve (the title stays put) before the router switches view. */
html[data-variant="4"] #intro.home-glass.glass-settling{background:transparent!important;-webkit-backdrop-filter:blur(0px)!important;backdrop-filter:blur(0px)!important;transition:background-color .45s cubic-bezier(.22,.61,.36,1),backdrop-filter .45s cubic-bezier(.22,.61,.36,1),-webkit-backdrop-filter .45s cubic-bezier(.22,.61,.36,1)!important}

/* Accent presets (long-press the theme toggle). Each preset is a pair: a lighter shade for the dark theme
   and a deeper one for the light theme, at the same lightness/chroma as the original violet (OKLCH),
   plus the matching signal violet (the colour the big title flashes to). The flicker's two edge colours are --edge-a/--edge-b: for the original violet they are the original cyan/violet; other presets use a cool/warm pair 90 degrees either side of the accent, as saturated as the screen allows (light theme avoids the muddy yellow range), so the flicker stays as visible as the original. 'violet' is the original and needs no override. */
:root[data-accent="blue"][data-theme="dark"]{--accent:#83bdff;--violet:#a7b3fe;--edge-a:#61eeb2;--edge-b:#fe8dd5}
:root[data-accent="blue"][data-theme="light"]{--accent:#0373ba;--violet:#6758d1;--edge-a:#009063;--edge-b:#ad3c89}
:root[data-accent="teal"][data-theme="dark"]{--accent:#46cfd3;--violet:#10cdfb;--edge-a:#dad755;--edge-b:#b5aefe}
:root[data-accent="teal"][data-theme="light"]{--accent:#047f7d;--violet:#0579a1;--edge-a:#1a9146;--edge-b:#6d58ca}
:root[data-accent="green"][data-theme="dark"]{--accent:#81ce91;--violet:#0ed7b2;--edge-a:#fec291;--edge-b:#6ac3fe}
:root[data-accent="green"][data-theme="light"]{--accent:#1a8528;--violet:#068073;--edge-a:#1a9146;--edge-b:#0476ae}
:root[data-accent="amber"][data-theme="dark"]{--accent:#e6ad60;--violet:#d5b929;--edge-a:#ffb6e1;--edge-b:#2dd89b}
:root[data-accent="amber"][data-theme="light"]{--accent:#9b5f03;--violet:#b64703;--edge-a:#b45091;--edge-b:#03835b}
:root[data-accent="coral"][data-theme="dark"]{--accent:#f99e82;--violet:#fda143;--edge-a:#e0c1fe;--edge-b:#9ccc52}
:root[data-accent="coral"][data-theme="light"]{--accent:#b9412a;--violet:#be3059;--edge-a:#925dbd;--edge-b:#03853c}
:root[data-accent="rose"][data-theme="dark"]{--accent:#ef9ac9;--violet:#fe96a7;--edge-a:#b2d3fe;--edge-b:#f3a91b}
:root[data-accent="rose"][data-theme="light"]{--accent:#a8418a;--violet:#c13144;--edge-a:#3579d0;--edge-b:#03853c}
/* Picker: just the colours - a row of dots that rises above the theme toggle, no frame or text.
   The current colour carries a thin ring; the dots arrive one after another. */
.accent-picker{position:fixed;z-index:160;display:flex;gap:12px;padding:6px 0;opacity:0;pointer-events:none;transition:opacity var(--t-fast,.2s) var(--ease,ease)}
.accent-picker.is-open{opacity:1;pointer-events:auto}
.accent-swatch{width:18px;height:18px;padding:0;border:0;border-radius:50%;background:var(--sw);position:relative;opacity:0;transform:translateY(8px) scale(.6);transition:opacity .28s var(--ease,ease),transform .45s var(--ease,ease);transition-delay:calc(var(--i,0) * 28ms)}
.accent-picker.is-open .accent-swatch{opacity:1;transform:none}
.accent-swatch::after{content:"";position:absolute;inset:-5px;border-radius:50%;border:1px solid var(--ink);opacity:0;transform:scale(.7);transition:opacity var(--t-fast,.2s) var(--ease,ease),transform var(--t-fast,.2s) var(--ease,ease)}
.accent-picker.is-open .accent-swatch:hover{transform:scale(1.15);transition-delay:0s}
.accent-swatch[aria-checked="true"]::after,.accent-swatch:focus-visible::after{opacity:1;transform:none}
.accent-swatch:focus-visible{outline:0}
#theme-toggle.is-holding .theme-icon{transform:scale(.86);transition:transform .45s var(--ease,ease)}
@media (prefers-reduced-motion:reduce){.accent-picker{transition:none}}
#theme-toggle{-webkit-touch-callout:none;-webkit-user-select:none;user-select:none}
/* The site's own cursor is the only cursor: no system pointer/text cursor anywhere while it is active, and it
   always sits above every layer (picker, glass, dialogs). */
html.custom-cursor body *{cursor:none!important}
#cursor{z-index:2147483000!important}
:root{--edge-a:var(--cyan);--edge-b:var(--violet)}
/* Flicker keyframes re-declared with the edge pair (same timing and offsets as the originals). */
@keyframes signal-edge{0%,100%{filter:none;text-shadow:none}20%,60%{filter:none;text-shadow:2px 0 var(--edge-a),-2px 0 var(--edge-b)}40%,80%{filter:none;text-shadow:-1px 0 var(--edge-a),1px 0 var(--edge-b)}}
@keyframes signal-icon-edge{0%,100%{filter:none}20%,60%{filter:drop-shadow(2px 0 var(--edge-a)) drop-shadow(-2px 0 var(--edge-b))}40%,80%{filter:drop-shadow(-1px 0 var(--edge-a))}}
@keyframes title-purple-signal{0%,100%{color:var(--ink);text-shadow:none}20%,60%{color:var(--violet);text-shadow:2px 0 var(--edge-a),-2px 0 var(--edge-b)}40%,80%{color:var(--ink);text-shadow:-1px 0 var(--edge-a),1px 0 var(--edge-b)}}
@keyframes viewer-signal{0%,100%{transform:none;filter:none}20%,60%{color:var(--accent);transform:translateX(1px);filter:drop-shadow(2px 0 var(--edge-a)) drop-shadow(-2px 0 var(--edge-b))}40%,80%{color:var(--accent);transform:translateX(-1px);filter:drop-shadow(-1px 0 var(--edge-a)) drop-shadow(1px 0 var(--edge-b))}}
/* Narrow Info: contact links (moved below the resume) match the 15px list text instead of the sidebar's 12px. */
html[data-variant="4"] #experience>.resume-contact a,html[data-variant="4"] #experience>.resume-contact :is(#copy-email,#copy-phone){font-size:15px!important}
/* Phone project controls: the buttons already carry 44px tap height, so no extra gap between the two rows. */
@media (max-width:700px){html[data-variant="4"] #workspace .project-panel-tools{row-gap:0!important}}
/* Keyboard focus on the home/glass entries: the ring hugs the label instead of the wide link box. */
html[data-variant="4"] .intro-entry:focus-visible{outline:none!important;box-shadow:none!important}
html[data-variant="4"] .intro-entry:focus-visible .entry-name{outline:1px solid var(--accent);outline-offset:5px}
/* After pointer input, script-moved focus shows no ring (keyboard input brings rings back). */
html[data-input="pointer"] :focus-visible,html[data-input="pointer"] .intro-entry:focus-visible .entry-name{outline:none!important}
/* Accent picker closes with the same motion it opens with, reversed: the dots sink and fade one after
   another (last in, first out) instead of the whole row vanishing at once. */
.accent-picker{opacity:1!important;transition:none!important}
.accent-picker:not(.is-open) .accent-swatch{transition:opacity .42s cubic-bezier(.5,0,.75,0),transform .5s cubic-bezier(.5,0,.75,0);transition-delay:calc((6 - var(--i,0)) * 40ms)}
@media (prefers-reduced-motion:reduce){.accent-picker:not(.is-open) .accent-swatch,.accent-picker .accent-swatch{transition:opacity .15s linear!important;transition-delay:0s!important}}
/* Fullscreen viewer opened as a plain fixed layer (page fullscreen): above everything on the page. */
.fullscreen-viewer.is-page-fs[open]{position:fixed!important;inset:0!important;z-index:2147482000!important}
/* Cover text reveal, quicker (owner: visitors slid past before noticing it): same sequence and easing,
   shorter delays - the text is readable ~0.7s after the pointer rests instead of ~1.3s. */
html[data-variant="4"] .archive-deck.archive-gallery .gallery-card.is-selected.is-revealed .deck-hover-info{transition:opacity .34s var(--ease) .04s}
html[data-variant="4"] .archive-deck.archive-gallery .gallery-card.is-selected.is-revealed .deck-hover-info h3{transition:transform .55s var(--ease) .16s}
html[data-variant="4"] .archive-deck.archive-gallery .gallery-card.is-selected.is-revealed .deck-hover-desc{transition:opacity .5s var(--ease) .22s,transform .55s var(--ease) .18s,filter .5s var(--ease) .22s}
@media (prefers-reduced-motion:reduce){html[data-variant="4"] .archive-deck.archive-gallery .gallery-card.is-selected.is-revealed :is(.deck-hover-info,.deck-hover-info h3,.deck-hover-desc){transition-duration:0s!important;transition-delay:0s!important}}
/* Project note: the year and a short description sit between the presentation and the control row,
   aligned to the work's left edge - year in the small caps label style, description as a quiet
   reading paragraph (max 4 lines). The presentation gives up a little height to make room. */
.project-note{display:flex;flex-direction:column;align-items:flex-start;gap:8px;width:var(--v3-media-width);box-sizing:border-box;text-align:left;pointer-events:none}
.project-note[hidden]{display:none!important}
.project-note .note-year{font-size:var(--fs-label,10px);letter-spacing:var(--track-caps,.08em);text-transform:uppercase;color:var(--muted,var(--ink));font-variant-numeric:tabular-nums;line-height:1.7}
.project-note .note-desc{margin:0;max-width:96ch;text-align:left;font-size:13px;line-height:1.62;color:var(--ink);opacity:.78;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:4;overflow:hidden;text-wrap:pretty}
html[data-variant="4"] body:not([data-view="project"]) .project-note{display:none!important}
@media (min-width:701px) and (pointer:fine){
 html[data-variant="4"]{--v3-media-width:min(calc(100vw - 192px),calc((100dvh - 252px) * 16 / 9))}
 /* the work hangs from the top line (level with the logo) instead of floating in the middle, leaving the
    space above the controls to the year and description */
 html[data-variant="4"] body[data-view="project"] #workspace .stage-wrap{align-self:start!important;margin-top:-14px!important}
 html[data-variant="4"] body[data-view="project"] .project-note{position:fixed;left:50%;top:calc(100dvh - 160px);transform:translateX(-50%);z-index:29;-webkit-line-clamp:3}
 html[data-variant="4"] body[data-view="project"] .project-note .note-desc{-webkit-line-clamp:3}
}
@media (max-width:700px),(pointer:coarse){
 html[data-variant="4"] #workspace .project-panel-tools .project-note{flex:0 0 100%;width:100%;margin:0 0 14px}
 html[data-variant="4"] #workspace .project-panel-tools .project-note .note-desc{-webkit-line-clamp:6;font-size:13px}
}

/* Owner: the bottom row is now  COMPLETED 2023 · FULLSCREEN ......... BACK. The DESIGN PROCESS / EXPLORE IN 3D
   switch is hidden but kept (3D also off via ENABLE_3D in hierarchy.js); the year moved out of the note,
   which is now the description alone, flush left. */
html[data-variant="4"] #workspace .mode-switch{display:none!important}
html[data-variant="4"] .project-note .note-year{display:none!important}
html[data-variant="4"] #workspace .project-completed{display:inline-flex;align-items:center;min-height:32px;margin-right:0;font-size:var(--fs-ui,12px);letter-spacing:var(--track-caps,.08em);text-transform:uppercase;color:var(--accent);white-space:nowrap;font-variant-numeric:tabular-nums;pointer-events:none}
html[data-variant="4"] #workspace .project-completed[hidden]{display:none!important}
html[data-variant="4"] .fullscreen-viewer .project-completed{display:none!important}

/* Photo covers (raster files, e.g. Tesla Vision 40) show in their own colours on the cover, the index
   thumbnail and the cover that flies into the project. The drawn placeholder covers keep the grayscale
   filter (owner). */
html[data-variant="4"] .archive-deck .gallery-card:not(.is-private) .gallery-art img:is([src$=".webp"],[src$=".jpg"],[src$=".jpeg"],[src$=".png"],[src$=".avif"]),html[data-variant="4"] .archive-deck .gallery-thumb:not(.is-private) .deck-rail-cover img:is([src$=".webp"],[src$=".jpg"],[src$=".jpeg"],[src$=".png"],[src$=".avif"]),html[data-variant="4"] .project-cover-bridge img:is([src$=".webp"],[src$=".jpg"],[src$=".jpeg"],[src$=".png"],[src$=".avif"]){filter:none!important}
/* Cover text reveal, faster again (owner): readable about 0.35s after the pointer rests on the cover. */
html[data-variant="4"] .archive-deck.archive-gallery .gallery-card.is-selected.is-revealed .deck-hover-info{transition:opacity .24s var(--ease) 0s}
html[data-variant="4"] .archive-deck.archive-gallery .gallery-card.is-selected.is-revealed .deck-hover-info h3{transition:transform .4s var(--ease) .04s}
html[data-variant="4"] .archive-deck.archive-gallery .gallery-card.is-selected.is-revealed .deck-hover-desc{transition:opacity .34s var(--ease) .08s,transform .4s var(--ease) .06s,filter .34s var(--ease) .08s}
@media (prefers-reduced-motion:reduce){html[data-variant="4"] .archive-deck.archive-gallery .gallery-card.is-selected.is-revealed :is(.deck-hover-info,.deck-hover-info h3,.deck-hover-desc){transition-duration:0s!important;transition-delay:0s!important}}
/* Storyboard cursor: the play / stop mark replaces the page arrow, with a small caption under it. */
.cursor.is-nav.is-story .cursor-word{display:block!important;position:absolute;top:30px;left:50%;transform:translateX(-50%);white-space:nowrap;font-size:var(--fs-label,10px);letter-spacing:var(--track-caps,.08em);text-transform:uppercase;color:inherit}
.cursor.is-nav.is-story .ui-arrow{stroke-linejoin:round}

/* Cursor over pictures: INVERTED (difference blend, set in navigation.css) - owner 2026-11-07 wants it back.
   A white-with-dark-halo version (2026-11-06) was tried and rejected: looked bad, especially on white pages. */
.cursor.on-image.is-nav .cursor-word{color:#fff}

/* Archive arrival hint (hierarchy.js startArchiveHint): a down mark with SCROLL FOR MORE under it. */
html .cursor.is-hint{width:70px;height:40px;border:0;border-radius:0;background:transparent!important;mix-blend-mode:normal!important;color:var(--ink);flex-direction:column}
html .cursor.is-hint .cursor-symbol{display:block!important;font-size:22px;line-height:1;transform:none!important}
html .cursor.is-hint .cursor-word{display:block!important;position:absolute;top:34px;left:50%;transform:translateX(-50%);white-space:nowrap;font-size:var(--fs-label,10px);letter-spacing:var(--track-caps,.08em);text-transform:uppercase;color:inherit}
html .cursor.is-hint.on-image{color:#fff;mix-blend-mode:difference!important}
@media(prefers-reduced-motion:no-preference){html .cursor.is-hint .ui-arrow{animation:hint-nudge 1.1s ease-in-out infinite}}
@keyframes hint-nudge{0%,100%{transform:translateY(-2px)}50%{transform:translateY(3px)}}
/* Compare film (one stacked video drawn into a canvas, split by a draggable line) */
.compare-layer{position:absolute;inset:0;pointer-events:none;--cut:50%}
.compare-layer[hidden]{display:none}
.image-host .compare-canvas{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;display:block}
.image-host.is-comparing #project-video{opacity:0}
.compare-line,.compare-tag{animation:compare-in .45s ease backwards;transition:opacity .5s ease}
.compare-line{position:absolute;top:0;bottom:0;left:var(--cut);width:48px;margin-left:-24px;pointer-events:auto;touch-action:none;z-index:4;cursor:ew-resize;outline:none}
.compare-line:before{content:'';position:absolute;top:0;bottom:0;left:50%;width:1px;margin-left:-.5px;background:#fff;box-shadow:0 0 0 .5px rgba(0,0,0,.18),0 0 8px rgba(0,0,0,.35)}
/* Handle (2026-11-07, Songlin: the round knob with triangles looked silly): just a slim white bar on the line,
   same language as the film bar's tick - a little longer when hovered or dragged. */
.compare-knob{position:absolute;top:50%;left:50%;width:3px;height:44px;margin:-22px 0 0 -1.5px;border-radius:2px;background:#fff;box-shadow:0 0 0 .5px rgba(0,0,0,.2),0 0 8px rgba(0,0,0,.35);transition:height .3s cubic-bezier(.2,.7,.3,1),margin .3s cubic-bezier(.2,.7,.3,1)}
.compare-line:hover .compare-knob,.compare-layer.is-dragging .compare-knob,.compare-line:focus-visible .compare-knob{height:64px;margin-top:-32px}
/* thin line chevrons either side of the bar (Songlin: without arrows nobody can tell it slides) */
.compare-knob:before,.compare-knob:after{content:'';position:absolute;top:50%;width:7px;height:7px;margin-top:-4.5px;border:solid #fff;border-width:0 0 1.5px 1.5px;filter:drop-shadow(0 0 2px rgba(0,0,0,.55));transition:transform .3s cubic-bezier(.2,.7,.3,1)}
.compare-knob:before{right:12px;transform:rotate(45deg)}
.compare-knob:after{left:12px;transform:rotate(-135deg)}
.compare-line:hover .compare-knob:before,.compare-layer.is-dragging .compare-knob:before{transform:translateX(-3px) rotate(45deg)}
.compare-line:hover .compare-knob:after,.compare-layer.is-dragging .compare-knob:after{transform:translateX(3px) rotate(-135deg)}
.compare-tag{position:absolute;top:18px;font-size:9px;line-height:1;letter-spacing:.14em;color:#fff;text-shadow:0 1px 5px rgba(0,0,0,.6);pointer-events:none}
.compare-tag.left{left:28px}.compare-tag.right{right:28px}
.compare-layer.is-solo .compare-line,.compare-layer.is-solo .compare-tag.left{opacity:0;pointer-events:none}
@keyframes compare-in{from{opacity:0}to{opacity:1}}
/* Before/after image page (hierarchy.js revealLayer): the AFTER image sits over the page, shown left of the line. */
.image-host .reveal-layer{z-index:3}
.image-host .reveal-layer .reveal-img{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;display:block;transform:none!important;transition:none;clip-path:inset(0 calc(100% - var(--cut)) 0 0);pointer-events:none}
.reveal-layer .compare-tag{color:#fff;mix-blend-mode:difference;text-shadow:none}
@media (prefers-reduced-motion:reduce){.compare-line,.compare-tag{animation:none}}
/* Film ending fade to black (driven by the film's time), then lifts onto the next page */
.image-host .film-fade{position:absolute;inset:0;background:#000;opacity:0;pointer-events:none;z-index:2}
.image-host .film-fade.is-clearing{transition:opacity .7s ease}

/* Owner: each film's own progress bar (hierarchy.js filmBar) - centred low in the frame, plain white with a soft shadow (inverting was tried: lost on grey pictures), faint track, brighter fill,
   a short vertical tick to drag. Fades out while playing when the mouse rests; stays while paused or dragging. */
.film-bar{position:absolute;left:50%;bottom:3.5%;transform:translateX(-50%);width:min(36%,440px);min-width:160px;height:22px;z-index:5;display:flex;align-items:center;opacity:0;transition:opacity .45s ease;touch-action:none}
.film-bar[hidden]{display:none}
.film-bar.is-awake,.film-bar.is-paused,.film-bar.is-dragging{opacity:1}
.film-bar-track{position:relative;flex:1;height:2px;background:rgba(255,255,255,.35);box-shadow:0 0 0 .5px rgba(0,0,0,.18),0 0 6px rgba(0,0,0,.35)}
.film-bar-fill{position:absolute;left:0;top:0;bottom:0;width:var(--p,0%);background:rgba(255,255,255,.9)}
.film-bar-tick{position:absolute;left:var(--p,0%);top:50%;width:2px;height:12px;background:#fff;transform:translate(-50%,-50%);box-shadow:0 0 0 .5px rgba(0,0,0,.25),0 0 5px rgba(0,0,0,.45)}
@media (pointer:coarse){.film-bar{height:40px;width:min(60%,440px)}}
@media (prefers-reduced-motion:reduce){.film-bar{transition:none}}


/* Owner (2026-11-07): the project frame has no fill of its own - transparent parts of a page (gaps in collage pages,
   e.g. Fine Art p6, Simulator p2/p3) show the page background itself, not a lighter box behind the image. */
.stage{background:transparent!important}

/* Owner (2026-11-07): no frame decoration anywhere - the project frame has no corner marks and no 1 px border ring
   (Songlin: the corners looked odd; removed site-wide). */
.stage .corner{display:none!important}
.stage::after{display:none!important}

/* Silent looping clip inside an image page (|clip= option, hierarchy.js clipSync). Shown once it is playing;
   the page image underneath already holds its first frame. Clicks pass through to the page. */
.image-host .clip-layer{position:absolute;z-index:2;pointer-events:none}
.image-host .clip-layer video{position:absolute;object-fit:cover;opacity:0;transition:opacity .25s ease}
.image-host .clip-layer.is-on video{opacity:1}

/* Archive rail (2026-11-07, Songlin): a group whose label is wider than its pictures (one-picture group) used to stretch
   its row to the label width - the picture sat left and the row's thin line stuck out past it on the right. The row now
   hugs its pictures and sits centred under the label, so the line is exactly as wide as the pictures. */
html[data-variant="4"] .archive-deck .gallery-thumb-group{align-items:center}

/* Archive rail (2026-11-07, Songlin): gaps between the three groups tightened from 44 px to 30 px (group padding
   22 -> 15); the thumbnail-size formula uses the same 30 px per group. */
@media(min-width:1101px),(min-width:760px) and (min-height:600px){
 html[data-variant="4"] .archive-deck .gallery-thumb-group{padding:0 15px}
}
html[data-variant="4"] .archive-deck{--thumb-w:clamp(18px,calc((100vw - 204px - var(--rail-g,3) * 30px - (var(--rail-n,17) - var(--rail-g,3)) * 6px) / var(--rail-n,17)),56px)}
