/* Project reader: quick view; preserve approved scene cards. */
body:is(.home-page,.portfolio-page) .wb-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;align-items:start}
body:is(.home-page,.portfolio-page) .wb-grid>.wb-featured{grid-column:1/-1}
body:is(.home-page,.portfolio-page) details.wb-card{min-width:0;margin:0;align-self:start}
body:is(.home-page,.portfolio-page) details.wb-card>[data-detail-panel]{display:none!important}
body:is(.home-page,.portfolio-page) :is(.works-grid,.project-teaser-grid,.portfolio-secondary-grid)[hidden]{display:none!important}
body:is(.home-page,.portfolio-page) details.wb-card[open]>summary{border-radius:inherit}
body:is(.home-page,.portfolio-page) details.wb-card.wb-selected{border-color:color-mix(in srgb,var(--text) 48%,var(--line));box-shadow:inset 0 1px 0 color-mix(in srgb,var(--text) 22%,transparent)}
body:is(.home-page,.portfolio-page) details.wb-card.wb-selected .project-teaser-title svg{transform:rotate(180deg)}
.wb-header{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:22px 24px;border-bottom:1px solid var(--line);background:var(--surface)}
.wb-header h2,.wb-header h3{margin:0;color:var(--text);font:600 25px/1.2 "Segoe UI",Arial,sans-serif;letter-spacing:-.6px}
.wb-eyebrow{margin:0 0 7px;color:var(--faint);font:10px/1.5 Consolas,monospace;letter-spacing:.07em}
.wb-close{flex-shrink:0}
.wb-content{padding:22px 24px;color:var(--text)}
.wb-content>[data-detail-panel]{display:block!important;padding:0!important;border:0!important;background:none!important;animation:none!important;height:auto!important;opacity:1!important;transform:none!important}
.wb-content :is(.project-teaser-figure,.work-detail-heading,.high-gallery-note,.project-story>.eyebrow){display:none}
.wb-content .project-story h3{font:500 22px/1.3 "Segoe UI",Arial,sans-serif;letter-spacing:-.4px;margin:0 0 14px}
.wb-content :is(.project-story p,.project-teaser-copy){font:400 15px/1.7 "Segoe UI",Arial,sans-serif;color:var(--muted);margin:0 0 20px}
.wb-content .project-teaser-info{display:block}
.wb-dialog .wb-content :is(.project-teaser-install,.release-panel,.work-install-panel){margin:22px 0 0;padding:18px 20px;border:1px solid var(--wb-glass-line,var(--line));border-radius:12px;background:color-mix(in srgb,var(--text) 3%,transparent)!important;box-shadow:inset 0 1px 0 color-mix(in srgb,var(--text) 4%,transparent);display:block}
.wb-content :is(.project-teaser-install,.release-panel,.work-install-panel) p{font-size:13px;line-height:1.6;margin:0;color:var(--muted)}
.wb-content :is(.project-teaser-install,.release-panel,.work-install-panel) .eyebrow{font:10px/1.5 Consolas,monospace;margin:0 0 8px;color:var(--faint)}
.wb-content .work-install-panel h4{font-size:18px;margin:0 0 10px}
.wb-content :is(.work-install-panel,.release-panel) button{display:none}
.wb-content .project-facts{margin:20px 0;border:0;border-top:1px solid var(--line);border-bottom:1px solid var(--line);border-radius:0;padding:14px 0;background:none;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}
.wb-content .project-facts div{gap:12px}
.wb-content .project-facts strong{font-size:12px}
.wb-content .project-capabilities{margin:18px 0;display:grid;gap:9px}
.wb-content .project-capabilities div{padding:0;border:0;background:none}
.wb-content .project-capabilities p{font-size:13px}
.wb-content .high-gallery{margin:20px 0}
.wb-content .high-gallery-grid{display:grid;grid-template-columns:minmax(0,1fr);gap:24px}
.wb-content .high-gallery figure{margin:0;min-width:0}
.wb-content .high-gallery-grid figure:first-child{grid-column:auto}
.wb-content .high-gallery a{display:block}
.wb-content .high-gallery img{width:100%;height:auto;display:block;object-fit:contain;border-radius:12px;border:1px solid var(--line);background:var(--bg)}
.wb-content .high-gallery figcaption{font-size:12px;margin-top:10px;color:var(--faint)}
.wb-content .work-detail-intro>.eyebrow{display:none}
.wb-content .work-detail-intro h4{font:500 22px/1.3 "Segoe UI",Arial,sans-serif;margin:0 0 12px}
.wb-content .work-detail-intro p{font:400 15px/1.65 "Segoe UI",Arial,sans-serif;margin:0 0 14px;color:var(--muted)}
.wb-footer{display:flex;justify-content:space-between;gap:14px;align-items:center;border-top:1px solid var(--line);padding:17px 24px;background:var(--surface)}
.wb-footer p{margin:0;max-width:320px;color:var(--faint);font:11px/1.5 Consolas,monospace}
.wb-download{flex-shrink:0;color:var(--text);background:var(--surface-raised)}
.wb-download:disabled{color:var(--faint);cursor:not-allowed}
html.wb-dialog-open{overflow:hidden;scrollbar-gutter:stable}
.wb-dialog{--wb-glass-line:color-mix(in srgb,var(--text) 14%,transparent);width:min(1000px,calc(100% - 48px));max-width:none;max-height:calc(100dvh - 48px);padding:0;margin:auto;border:1px solid color-mix(in srgb,var(--text) 22%,transparent);border-radius:20px;color:var(--text);background:linear-gradient(130deg,#ffffff07,transparent 40%,#ffffff02),color-mix(in srgb,var(--bg) 78%,transparent);backdrop-filter:blur(14px) saturate(112%);-webkit-backdrop-filter:blur(14px) saturate(112%);box-shadow:inset 0 1px 0 #ffffff12,inset 0 -1px 0 #ffffff04,0 28px 90px #00000040;overflow:hidden}
.wb-dialog[open]{display:flex;flex-direction:column;}
.wb-dialog::backdrop{background:#00000052;animation:wbShadeIn .32s ease-out both}
.wb-dialog>.wb-header,.wb-dialog>.wb-footer{flex-shrink:0}
.wb-dialog-scroll{overflow:auto;overscroll-behavior:contain;min-height:0;scrollbar-width:thin;scrollbar-color:var(--wb-glass-line) transparent}
.wb-cover{height:230px;background-position:center;background-size:cover;border-bottom:1px solid var(--line)}
.wb-dialog .wb-content{padding:30px 36px}
.wb-dialog .wb-content .project-story{margin:0}
.wb-dialog .wb-content .high-gallery-grid{gap:28px}
@media(max-width:600px){body:is(.home-page,.portfolio-page) .wb-grid{grid-template-columns:minmax(0,1fr)}}
@media(max-width:420px){.wb-content .project-facts{grid-template-columns:minmax(0,1fr);gap:8px}}

.wb-close,.wb-download{border:1px solid var(--line);border-radius:9px;background:var(--surface-raised);color:var(--muted);padding:9px 14px;font:12px/1.5 Consolas,"Cascadia Code",monospace;transition:background .18s,border-color .18s,color .18s}
.wb-close:hover{color:var(--text);border-color:color-mix(in srgb,var(--text) 35%,var(--line))}
.wb-close:focus-visible{outline:2px solid var(--muted);outline-offset:3px}
.wb-dialog>.wb-header{padding:22px 36px;background:linear-gradient(110deg,#ffffff04,transparent 65%);border-color:var(--wb-glass-line);box-shadow:none}
.wb-dialog>.wb-footer{padding:17px 36px;background:color-mix(in srgb,var(--bg) 14%,transparent);border-color:var(--wb-glass-line)}
.wb-dialog :is(.wb-close,.wb-download){background:color-mix(in srgb,var(--text) 5%,transparent);border-color:var(--wb-glass-line);box-shadow:inset 0 1px 0 color-mix(in srgb,var(--text) 4%,transparent)}
.wb-dialog .wb-close:hover{background:color-mix(in srgb,var(--text) 10%,transparent);border-color:color-mix(in srgb,var(--text) 25%,transparent)}
.wb-dialog .wb-download:disabled{background:color-mix(in srgb,var(--text) 3%,transparent);color:var(--faint)}
.wb-dialog .wb-cover{border-color:var(--wb-glass-line)}
.wb-dialog .high-gallery img{border-color:var(--wb-glass-line);box-shadow:0 8px 30px #00000014}
html[data-theme="light"] .wb-dialog{background:linear-gradient(130deg,#ffffff70,transparent 50%,#ffffff15),color-mix(in srgb,var(--bg) 65%,transparent);border-color:#ffffffc0;box-shadow:inset 0 1px 0 #ffffffc0,inset 0 -1px 0 #ffffff40,0 24px 80px #16263b20}
html[data-theme="light"] .wb-dialog::backdrop{background:#1c263812}
@supports not (backdrop-filter:blur(1px)){.wb-dialog{background:color-mix(in srgb,var(--bg) 96%,var(--surface))}}
.wb-cover[hidden]{display:none}
.wb-dialog.wb-closing::backdrop{animation:wbShadeOut .24s ease-in both}
@keyframes wbShadeIn{from{opacity:0}to{opacity:1}}
@keyframes wbShadeOut{from{opacity:1}to{opacity:0}}
@media(max-width:700px){.wb-dialog{width:calc(100% - 20px);max-height:calc(100dvh - 24px);border-radius:15px}.wb-header,.wb-dialog>.wb-header{padding:18px;gap:12px}.wb-header h2{font-size:23px}.wb-content,.wb-dialog .wb-content{padding:20px 18px}.wb-footer,.wb-dialog>.wb-footer{padding:14px 18px;flex-wrap:wrap}.wb-cover{height:160px}.wb-dialog .wb-content .high-gallery-grid{gap:22px}.wb-content .high-gallery img{border-radius:8px}}
@media(pointer:coarse){.wb-close,.wb-download{min-height:44px}}
@media(prefers-reduced-motion:reduce){.wb-dialog::backdrop,.wb-dialog.wb-closing::backdrop{animation:none}.wb-close,.wb-download{transition:none}}
/* Number stays readable over every cover without dimming its artwork. */

/* Quiet metadata over a continuous veil, with no individual label plates. */
body.home-page details.wb-card>summary .project-teaser-kicker{display:flex;align-items:center;gap:14px;min-height:24px;line-height:1.4;flex:none}
body.home-page details.wb-card>summary .project-teaser-kicker>span:first-child,body.portfolio-page .wb-card>summary .case-index{padding:0;border:0;border-radius:0;background:none;color:#e6e8ee;font-weight:500;box-shadow:none;text-shadow:none}
body.home-page details.wb-card>summary .wb-card-tools{display:inline-flex;align-items:center;gap:12px;margin-left:auto;flex:none;color:#e6e8ee}
body.home-page details.wb-card>summary .project-teaser-index{margin:0;min-width:0;padding:0;background:none;border:0;border-radius:0;box-shadow:none;backdrop-filter:none;color:#e6e8ee;font:500 11px/1.4 Consolas,"Cascadia Code",monospace;letter-spacing:.06em}
body.home-page details.wb-card>summary .wb-card-chevron{position:static!important;display:inline-flex;align-items:center;justify-content:center;width:16px;height:16px;margin:0;padding:0;border:0;border-radius:0;background:none!important;box-shadow:none;color:#e6e8ee;box-sizing:border-box;transform:none!important;transition:color 180ms ease}
body.home-page details.wb-card>summary .work-card-orbit svg{width:16px;height:16px;transform:none!important}
body.home-page details.wb-card.wb-selected>summary .wb-card-chevron{color:var(--accent)}
body.home-page details.wb-card>summary :is(.card-title,.project-teaser-title){position:static}
html body:is(.home-page,.portfolio-page) details.wb-card>summary .project-card-backdrop::after{background:linear-gradient(0deg,#080a0eea 0%,#080a0ec9 20%,#080a0e83 43%,#080a0e05 76%),linear-gradient(180deg,#080a0ec7 0%,#080a0e7a 19%,transparent 47%)!important}
/* Keep one raster filter; animate only opacity and composited scale. */
html body:is(.home-page,.portfolio-page) details.wb-card>summary .project-card-backdrop img,html body:is(.home-page,.portfolio-page) details.wb-card>summary:is(:hover,:focus-visible) .project-card-backdrop img{filter:blur(.35px) saturate(1.12) contrast(1.05)!important;transition:opacity 300ms ease,transform 600ms cubic-bezier(.2,.7,.2,1);transform-origin:center;will-change:transform;backface-visibility:hidden}
html.wb-dialog-open body:is(.home-page,.portfolio-page) details.wb-card{transition:none!important;box-shadow:none!important}
html.wb-dialog-open body:is(.home-page,.portfolio-page) details.wb-card>summary .project-card-backdrop img{opacity:.88!important;transform:scale(1.025)!important;transition:none!important;will-change:auto}
html[data-theme="light"] body:is(.home-page,.portfolio-page) details.wb-card>summary .project-card-backdrop::after{background:linear-gradient(0deg,#f4f5f8f5 0%,#f4f5f8db 20%,#f4f5f8a8 43%,transparent 80%),linear-gradient(180deg,#10141bbd 0%,#10141b57 22%,transparent 48%)!important}
.wb-dialog{border-color:color-mix(in srgb,var(--text) 19%,transparent);border-radius:18px;box-shadow:inset 0 1px 0 #ffffff14,0 28px 85px #00000065}
.wb-dialog>.wb-header{background:linear-gradient(100deg,color-mix(in srgb,var(--accent) 4%,transparent),transparent 55%);padding-top:24px;padding-bottom:24px}
.wb-dialog .wb-eyebrow{display:flex;align-items:center;gap:9px;color:var(--muted);font-size:10px;letter-spacing:.1em}
.wb-dialog .wb-eyebrow::before{content:'';width:14px;height:2px;background:var(--accent);opacity:.65}
.wb-dialog .wb-header h2{font-size:28px;letter-spacing:-.75px}
.wb-dialog .wb-content :is(.project-teaser-install,.release-panel,.work-install-panel){border-radius:9px;box-shadow:inset 2px 0 0 color-mix(in srgb,var(--accent) 28%,transparent);background:color-mix(in srgb,var(--text) 2%,transparent)!important}
.wb-dialog :is(.wb-close,.wb-download){border-radius:7px;box-shadow:none}
.wb-dialog>.wb-footer{background:color-mix(in srgb,var(--bg) 28%,transparent)}
@media(max-width:700px){.wb-dialog>.wb-header{padding:18px}.wb-dialog .wb-header h2{font-size:24px}}
@media(prefers-reduced-motion:reduce){html body:is(.home-page,.portfolio-page) details.wb-card>summary .project-card-backdrop img{transition:none!important;transform:scale(1.025)!important;will-change:auto}}
body.home-page details.wb-card>summary .wb-card-tools svg{fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
body.home-page details.wb-card>summary .wb-card-tools .wb-card-chevron{width:16px!important;height:16px!important;min-width:0;min-height:0;padding:0!important;margin:0!important;box-sizing:border-box!important;border:0!important}

/* One quiet glass tone, independent of the site's cycling palette. */
.wb-dialog{--bg:#0d1015;--surface:#171b22;--surface-raised:#202630;--text:#e8eaf0;--muted:#a9b0bc;--faint:#7c8696;--line:#ffffff22;--accent:#aebccc;--palette-hue:215;--wb-glass-line:#d6dfec24;--wb-bar-tint:174,188,206;background:linear-gradient(130deg,#ffffff06,transparent 48%,#ffffff02),#0d1015d4;backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px)}
.wb-dialog>.wb-header,.wb-dialog>.wb-footer{background:linear-gradient(110deg,rgba(var(--wb-bar-tint),.065),rgba(var(--wb-bar-tint),.018) 72%);border-color:var(--wb-glass-line)}
.wb-dialog .wb-eyebrow::before{background:var(--accent);opacity:.72}
.wb-dialog .wb-download{display:inline-flex;align-items:center;gap:12px;color:var(--text);background:rgba(var(--wb-bar-tint),.075);border-color:rgba(var(--wb-bar-tint),.24);cursor:pointer}
.wb-dialog .wb-download::after{content:'↓';color:var(--muted);font-size:15px;line-height:1}
.wb-dialog .wb-download:hover{background:rgba(var(--wb-bar-tint),.13);border-color:rgba(var(--wb-bar-tint),.38)}
.wb-dialog .wb-download:focus-visible{outline:2px solid var(--accent);outline-offset:3px}
.wb-dialog .wb-download:disabled{cursor:default}
.wb-dialog .wb-content :is(.work-install-panel,.project-teaser-install,.release-panel){position:relative;scroll-margin-top:22px;transition:border-color 350ms ease,background-color 350ms ease;outline:none}
/* Installation arrival: a bright contour blooms, rests, then dissolves. */
.wb-dialog .wb-content .wb-install-target{--wb-arrival-rgb:232,240,255;--wb-arrival-gain:1}
.wb-dialog .wb-content .wb-install-target::after{content:'';position:absolute;inset:-1px;pointer-events:none;border:1px solid rgba(var(--wb-arrival-rgb),calc(.82 * var(--wb-arrival-gain)));border-radius:inherit;background:radial-gradient(ellipse at 0 0,rgba(var(--wb-arrival-rgb),calc(.09 * var(--wb-arrival-gain))),rgba(var(--wb-arrival-rgb),calc(.025 * var(--wb-arrival-gain))) 55%,transparent 85%);box-shadow:inset 2px 0 0 rgba(var(--wb-arrival-rgb),calc(.75 * var(--wb-arrival-gain))),0 0 0 1px rgba(var(--wb-arrival-rgb),calc(.06 * var(--wb-arrival-gain))),0 0 28px rgba(var(--wb-arrival-rgb),calc(.15 * var(--wb-arrival-gain))),0 0 65px rgba(var(--wb-arrival-rgb),calc(.055 * var(--wb-arrival-gain)));opacity:0;animation:wbInstallationArrival 2600ms linear both;transition:border-color 160ms ease,box-shadow 180ms ease}
/* Two click levels only; whitening and gain stay below double the initial light. */
.wb-dialog .wb-content .wb-install-target.wb-install-boosted{--wb-arrival-rgb:255,255,255;--wb-arrival-gain:1.8}
.wb-dialog .wb-content .wb-install-target.wb-install-held::after{animation:none;opacity:var(--wb-arrival-opacity,0)}
@keyframes wbInstallationArrival{0%{opacity:0;animation-timing-function:cubic-bezier(.16,1,.3,1)}9%{opacity:1}27%{opacity:.95;animation-timing-function:cubic-bezier(.4,0,.2,1)}62%{opacity:.24;animation-timing-function:ease-out}100%{opacity:0}}
html[data-theme="light"] .wb-dialog .wb-content .wb-install-target{--wb-arrival-rgb:57,79,104}
@media(prefers-reduced-motion:reduce){.wb-dialog .wb-content .wb-install-target::after{animation:none;opacity:.55;transition:none;box-shadow:inset 2px 0 0 rgba(var(--wb-arrival-rgb),calc(.75 * var(--wb-arrival-gain)))}}
html[data-theme="light"] .wb-dialog{--bg:#f4f6f8;--surface:#edf1f5;--surface-raised:#e4eaf1;--text:#26313f;--muted:#586575;--faint:#718094;--line:#22324722;--accent:#5e748e;--wb-glass-line:#22324726;--wb-bar-tint:94,116,142;background:linear-gradient(130deg,#ffffff70,transparent 50%,#ffffff15),#f4f6f8d9}
html[data-theme="light"] .wb-dialog>.wb-header,html[data-theme="light"] .wb-dialog>.wb-footer{background:linear-gradient(110deg,rgba(var(--wb-bar-tint),.065),rgba(var(--wb-bar-tint),.018) 72%);border-color:var(--wb-glass-line)}
.wb-dialog::backdrop{animation:wbShadeIn .36s ease-out both}
.wb-dialog.wb-closing::backdrop{animation:wbShadeOut .26s ease-in both}
@supports not (backdrop-filter:blur(1px)){.wb-dialog{background:#0d1015f5}html[data-theme="light"] .wb-dialog{background:#f4f6f8f5}}
@media(prefers-reduced-motion:reduce){.wb-dialog::backdrop,.wb-dialog.wb-closing::backdrop{animation:none}.wb-dialog .wb-content :is(.work-install-panel,.project-teaser-install,.release-panel){transition:none}}

/* Music Bot: a full-width text card, awaiting its cover. */
body:is(.home-page,.portfolio-page) details.teaser-musicbot>summary{background:linear-gradient(125deg,color-mix(in srgb,var(--text) 2%,transparent),transparent 70%),var(--bg);}
body.home-page details.teaser-musicbot>summary .project-featured-description{max-width:850px;}
body.portfolio-page details.teaser-musicbot>summary .portfolio-card-intro{grid-template-columns:minmax(0,1fr);}

/* High public downloads: identical EXE from the site mirror or GitHub. */
.high-downloads .high-download-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:18px}
.high-downloads .high-download-link{display:inline-flex;align-items:center;justify-content:center;gap:9px;min-height:44px;padding:10px 15px;border:1px solid var(--line);border-radius:8px;background:var(--surface-raised);color:var(--text);font:500 13px/1.4 "Segoe UI",Arial,sans-serif;text-decoration:none;transition:background .18s ease,border-color .18s ease}
.high-downloads .high-download-link:hover{background:color-mix(in srgb,var(--text) 9%,var(--surface));border-color:color-mix(in srgb,var(--text) 35%,var(--line))}
.high-downloads .high-download-copy p:last-child{margin-bottom:0}
.wb-content .high-downloads .high-download-actions{display:flex}
@media(max-width:480px){.high-downloads .high-download-actions{flex-direction:column}.high-downloads .high-download-link{width:100%}}
@media(prefers-reduced-motion:reduce){.high-downloads .high-download-link{transition:none}}

/* High platform picker */
.high-downloads [hidden]{display:none!important}
.high-downloads .high-platform-picker{display:inline-flex;gap:4px;margin:8px 0 14px;padding:4px;border:1px solid var(--line);border-radius:10px;background:rgba(0,0,0,.16)}
.high-downloads .high-platform-choice,.wb-content .high-downloads .high-platform-choice{display:inline-flex;align-items:center;justify-content:center;min-height:40px;padding:8px 18px;border:1px solid transparent;border-radius:7px;background:transparent;color:var(--muted);font:500 13px/1.4 "Segoe UI",Arial,sans-serif;cursor:pointer}
.high-downloads .high-platform-choice[aria-pressed="true"]{background:var(--surface-raised);border-color:var(--line);color:var(--text)}
.high-downloads .high-platform-choice:focus-visible{outline:2px solid var(--text);outline-offset:2px}
.high-downloads .high-download-pending{opacity:.55;cursor:default}

/* Stable High platform height: both copies reserve space, only one is exposed. */
.high-downloads{overflow-anchor:none}
.high-downloads .high-platform-details{display:grid}
.high-downloads .high-platform-details > [data-high-platform-panel]{grid-area:1 / 1;min-width:0}
.high-downloads .high-platform-details > [data-high-platform-panel][hidden]{display:block!important;visibility:hidden;pointer-events:none}
.high-downloads .high-platform-actions,.wb-content .high-downloads .high-platform-actions{display:grid;grid-template-columns:max-content max-content;justify-content:start;gap:10px}
.high-downloads .high-platform-actions > [data-high-platform-panel]{grid-area:1 / 1}
.high-downloads .high-platform-actions > [data-high-platform-panel][hidden]{display:inline-flex!important;visibility:hidden;pointer-events:none}
.high-downloads .high-platform-actions > .high-download-secondary{grid-area:1 / 2}
@media(max-width:480px){.high-downloads .high-platform-actions,.wb-content .high-downloads .high-platform-actions{grid-template-columns:minmax(0,1fr);justify-content:stretch}.high-downloads .high-platform-actions > .high-download-secondary{grid-area:2 / 1}}

/* High availability tag */
.project-tags .tag.tag-available{--tag-rgb:185,233,149;color:#b9e995;border-color:rgba(185,233,149,.5);background:rgba(185,233,149,.14)}
html[data-theme="light"] .project-tags .tag.tag-available{color:#406523;border-color:rgba(88,137,50,.5);background:rgba(185,233,149,.24)}

/* OFFSHORE lower caption */
html body:is(.home-page,.portfolio-page) details[data-offshore-layout="1"] > summary{display:flex;flex-direction:column;min-height:232px;gap:0}
html body.home-page details[data-offshore-layout="1"] > summary .project-teaser-title,html body.portfolio-page details[data-offshore-layout="1"] > summary .portfolio-card-intro{margin-top:auto;padding-top:0}
html body:is(.home-page,.portfolio-page) details[data-offshore-layout="1"] > summary .project-tags{margin-top:14px}

/* High current diode: steady status, brighter on interaction. */
html body:is(.home-page,.portfolio-page) .project-tags .tag.tag-available {
  --tag-rgb:185,233,149;
  --current-ink:#c1eda8; --current-border:#749b5e; --current-fill:#202c1e;
  --current-led:#b9e995; --current-core:#efffe5;
  --current-hover-ink:#e4ffd3; --current-hover-border:#a7d586; --current-hover-fill:#2b3a24;
  position:relative; display:inline-flex; align-items:center; gap:8px; vertical-align:middle;
  color:var(--current-ink)!important; border-color:var(--current-border)!important;
  background:var(--current-fill)!important; font-weight:700;
  box-shadow:inset 0 0 0 1px #b9e9950b,0 0 8px #a5e67d16!important;
  text-shadow:none!important; transform:none!important; animation:none!important;
  transition:color 420ms ease,background-color 420ms ease,border-color 420ms ease,box-shadow 420ms ease!important;
}
html body:is(.home-page,.portfolio-page) .project-tags .tag.tag-available::before {
  content:""!important; position:relative; inset:auto; z-index:auto;
  flex:0 0 5px; width:5px; height:5px; border-radius:50%; pointer-events:none;
  background:var(--current-led)!important; opacity:1!important; transform:none!important;
  box-shadow:0 0 3px #b9e99580,0 0 7px #b9e99526;
  animation:none!important; filter:none; mix-blend-mode:normal;
  transition:background-color 420ms ease,box-shadow 420ms ease!important;
}
html body:is(.home-page,.portfolio-page) .project-tags .tag.tag-available::after,
html body:is(.home-page,.portfolio-page) .project-tags .tag.tag-available:is(:hover,:focus-visible)::after {
  content:none!important; animation:none!important; transition:none!important;
}
html[data-theme="light"] body:is(.home-page,.portfolio-page) .project-tags .tag.tag-available {
  --tag-rgb:62,104,33;
  --current-ink:#31551d; --current-border:#91b577; --current-fill:#e6f1db;
  --current-led:#578e32; --current-core:#366919;
  --current-hover-ink:#264615; --current-hover-border:#628e45; --current-hover-fill:#d9edc7;
  box-shadow:inset 0 0 0 1px #ffffff60,0 0 6px #6d9e4610!important;
}
html[data-theme="light"] body:is(.home-page,.portfolio-page) .project-tags .tag.tag-available::before {
  box-shadow:0 0 3px #578e3240,0 0 7px #578e321a;
}
/* Keyboard focus follows the existing project summary, without adding another stop. */
html body:is(.home-page,.portfolio-page) summary:focus-visible .project-tags .tag.tag-available {
  color:var(--current-hover-ink)!important; border-color:var(--current-hover-border)!important;
  background:var(--current-hover-fill)!important;
  box-shadow:inset 0 0 9px #b9e99512,0 0 12px #a5e67d28!important;
}
html body:is(.home-page,.portfolio-page) summary:focus-visible .project-tags .tag.tag-available::before {
  background:var(--current-core)!important;
  box-shadow:0 0 4px var(--current-led),0 0 11px #b9e995a6,0 0 18px #b9e99545;
}
@media(hover:hover) and (pointer:fine) {
  html body:is(.home-page,.portfolio-page) .project-tags .tag.tag-available:hover {
    color:var(--current-hover-ink)!important; border-color:var(--current-hover-border)!important;
    background:var(--current-hover-fill)!important;
    box-shadow:inset 0 0 9px #b9e99512,0 0 12px #a5e67d28!important;
  }
  html body:is(.home-page,.portfolio-page) .project-tags .tag.tag-available:hover::before {
    background:var(--current-core)!important;
    box-shadow:0 0 4px var(--current-led),0 0 11px #b9e995a6,0 0 18px #b9e99545;
  }
}
html[data-theme="light"] body:is(.home-page,.portfolio-page) .project-tags .tag.tag-available:hover::before,
html[data-theme="light"] body:is(.home-page,.portfolio-page) summary:focus-visible .project-tags .tag.tag-available::before {
  box-shadow:0 0 4px #74af49a6,0 0 10px #74af4960,0 0 16px #74af492b;
}
@media(prefers-reduced-motion:reduce) {
  html body:is(.home-page,.portfolio-page) .project-tags .tag.tag-available,
  html body:is(.home-page,.portfolio-page) .project-tags .tag.tag-available::before {transition:none!important}
}
/* End High current diode. */

/* Unified project header and readable metadata. */
.wb-dialog>.wb-header{align-items:flex-start;padding:26px 36px 25px;gap:24px}
.wb-dialog .wb-header-main{min-width:0;flex:1}
.wb-dialog .wb-eyebrow{gap:10px;margin:0 0 11px;font:11px/1.4 Consolas,"Cascadia Code",monospace;letter-spacing:.04em;color:var(--muted)}
.wb-dialog .wb-eyebrow::before{content:none}
.wb-dialog .wb-project-number{display:inline-grid;place-items:center;min-width:26px;height:23px;padding:0 5px;border:1px solid var(--wb-glass-line);border-radius:6px;color:var(--accent);font-size:10px;letter-spacing:0;user-select:none}
.wb-dialog .wb-header h2{font:650 clamp(29px,3vw,36px)/1.12 "Segoe UI",Arial,sans-serif;letter-spacing:-1px;text-wrap:balance;overflow-wrap:anywhere}
.wb-dialog .wb-close{margin-top:5px;min-height:40px}
.wb-dialog .wb-content .wb-project-intro{margin:0 0 27px;padding:0;min-width:0}
.wb-dialog .wb-content .wb-project-intro :is(h3,h4){margin:0 0 12px;font:600 23px/1.3 "Segoe UI",Arial,sans-serif;letter-spacing:-.5px;text-wrap:balance;color:var(--text)}
.wb-dialog .wb-content .wb-project-intro p:not(.eyebrow){max-width:86ch;margin:0 0 10px;font:400 15px/1.7 "Segoe UI",Arial,sans-serif;color:var(--muted)}
.wb-dialog .wb-project-meta{display:flex;flex-wrap:wrap;align-items:center;gap:8px;list-style:none;margin:19px 0 0;padding:0}
.wb-dialog .wb-meta-chip{display:block;margin:0;padding:6px 10px;border:1px solid var(--wb-glass-line);border-radius:7px;background:rgba(var(--wb-bar-tint),.06);color:var(--muted);font:500 12px/1.4 "Segoe UI",Arial,sans-serif;white-space:normal;max-width:100%;overflow-wrap:anywhere;cursor:text}
.wb-dialog .wb-meta-chip:first-child{background:rgba(var(--wb-bar-tint),.1);color:var(--text);border-color:rgba(var(--wb-bar-tint),.3)}
.wb-dialog .wb-content .project-facts[hidden]{display:none!important}
.wb-dialog .wb-footer p{max-width:none;min-width:0;overflow-wrap:anywhere}
.wb-dialog ::selection{background:#aebccc59;color:var(--text);text-shadow:none}
@media(max-width:700px){
 .wb-dialog>.wb-header{padding:20px 18px;gap:16px}
 .wb-dialog .wb-header h2{font-size:29px;letter-spacing:-.8px}
 .wb-dialog .wb-eyebrow{font-size:10px;gap:8px;margin-bottom:9px}
 .wb-dialog .wb-close{padding:8px 11px;margin-top:1px}
 .wb-dialog .wb-content .wb-project-intro :is(h3,h4){font-size:21px}
 .wb-dialog .wb-project-meta{gap:7px;margin-top:16px}
 .wb-dialog .wb-meta-chip{padding:5px 9px}
}

/* Plain project masthead: aligned text controls, no label plates. */
.wb-dialog>.wb-header{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;column-gap:24px;row-gap:12px;padding:24px 36px}
.wb-dialog .wb-header-main{display:contents}
.wb-dialog .wb-eyebrow{grid-column:1;grid-row:1;align-self:center;margin:0;gap:12px;line-height:1.6;letter-spacing:.04em}
.wb-dialog .wb-project-number{display:inline;padding:0;min-width:0;height:auto;border:0;border-radius:0;background:none;color:var(--faint);font:inherit;line-height:inherit}
.wb-dialog .wb-header h2{grid-column:1/-1;grid-row:2;margin:0}
.wb-dialog .wb-close{grid-column:2;grid-row:1;justify-self:end;align-self:center;display:inline-flex;align-items:center;gap:9px;position:relative;min-height:24px;margin:0;padding:0!important;border:0!important;border-radius:0;background:none!important;box-shadow:none!important;color:var(--muted);font:12px/1.6 Consolas,"Cascadia Code",monospace;cursor:pointer;transform-origin:right center;transition:transform 220ms cubic-bezier(.2,.7,.2,1),color 180ms ease}
.wb-dialog .wb-close::before{content:"";position:absolute;inset:-10px -5px;background:none}
.wb-dialog .wb-close svg{width:12px;height:12px;flex:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;fill:none;transition:transform 220ms cubic-bezier(.2,.7,.2,1)}
@media(hover:hover) and (pointer:fine){
 .wb-dialog .wb-close:hover{color:var(--text);transform:scale(1.08)}
 .wb-dialog .wb-close:hover svg{transform:rotate(90deg)}
}
.wb-dialog .wb-close:focus-visible{color:var(--text);outline:2px solid var(--accent);outline-offset:6px}
.wb-dialog .wb-content .wb-project-intro p.wb-project-meta{display:block;max-width:none;margin:15px 0 0;padding:0;border:0;background:none;color:var(--muted);font:400 13px/1.7 "Segoe UI",Arial,sans-serif;text-wrap:pretty}
@media(max-width:700px){
 .wb-dialog>.wb-header{padding:20px 18px;column-gap:18px;row-gap:11px}
 .wb-dialog .wb-eyebrow{gap:9px}
 .wb-dialog .wb-close{min-height:28px;font-size:11px}
 .wb-dialog .wb-content .wb-project-intro p.wb-project-meta{font-size:12px}
}
@media(prefers-reduced-motion:reduce){.wb-dialog .wb-close,.wb-dialog .wb-close svg{transition:none!important}}

/* Compact masthead: equal text metrics keep the top row aligned. */
.wb-dialog>.wb-header{padding:14px 36px;row-gap:5px;align-items:start}
.wb-dialog .wb-eyebrow{align-self:start;align-items:baseline;font-size:11px;line-height:18px;margin:0}
.wb-dialog .wb-close{align-self:start;align-items:baseline;min-height:0;height:18px;font-size:11px;line-height:18px}
.wb-dialog .wb-close svg{align-self:center}
@media(max-width:700px){
 .wb-dialog>.wb-header{padding:14px 18px;row-gap:5px}
 .wb-dialog .wb-eyebrow,.wb-dialog .wb-close{font-size:10px;line-height:18px}
}

/* Refined masthead: a small reduction while retaining breathing room. */
.wb-dialog>.wb-header{padding:18px 36px 20px;row-gap:8px}
.wb-dialog .wb-eyebrow,.wb-dialog .wb-close{font-size:12px;line-height:22px}
.wb-dialog .wb-close{height:22px;gap:9px;color:var(--text);font-weight:500}
.wb-dialog .wb-close svg{width:14px;height:14px;stroke-width:1.6}
.wb-dialog .wb-header h2{font-size:clamp(27px,3vw,34px);letter-spacing:-.8px}
.wb-dialog .wb-high-dot{color:#ffbe3f}
@media(max-width:700px){
 .wb-dialog>.wb-header{padding:17px 18px 19px;row-gap:8px}
 .wb-dialog .wb-eyebrow,.wb-dialog .wb-close{font-size:12px;line-height:22px}
 .wb-dialog .wb-header h2{font-size:28px}
 .wb-dialog .wb-close svg{width:14px;height:14px}
}

/* Readable cover labels: defined tag surfaces over a neutral shadow. */
html:not([data-theme="light"]) body:is(.home-page,.portfolio-page) details.wb-card>summary .project-card-backdrop::after{
 background:linear-gradient(0deg,#030405f5 0%,#030405cf 18%,#03040570 42%,#03040505 76%),linear-gradient(180deg,#080a0ec7 0%,#080a0e7a 19%,transparent 47%)!important;
}
html body:is(.home-page,.portfolio-page) details[data-offshore-layout="1"]>summary .project-card-backdrop img{object-position:50% 100%}

/* On narrow cards the cover ends above the wrapped labels. */
@media(max-width:600px){
 html body:is(.home-page,.portfolio-page) details[data-offshore-layout="1"]>summary .project-card-backdrop img{height:calc(100% - 104px);bottom:auto;object-position:50% 100%;mask-image:linear-gradient(#000 0%,#000 70%,transparent 100%)}
}

/* Deep cover base: black transition, original translucent tag colors. */
html:not([data-theme="light"]) body:is(.home-page,.portfolio-page) details.wb-card>summary .project-card-backdrop::after{
 background:linear-gradient(0deg,#030405fa 0%,#030405b8 22%,#0304053d 55%,transparent 82%),linear-gradient(180deg,#080a0ec7 0%,#080a0e7a 19%,transparent 47%)!important;
}
html:not([data-theme="light"]) body:is(.home-page,.portfolio-page) details.wb-card.wb-tags-wrapped>summary .project-card-backdrop::after{
 background:linear-gradient(0deg,#030405fa 0%,#030405e5 30%,#03040594 48%,#03040525 74%,transparent 91%),linear-gradient(180deg,#080a0ec7 0%,#080a0e7a 19%,transparent 47%)!important;
}
html:not([data-theme="light"]) body:is(.home-page,.portfolio-page) details.wb-card:is(#home-music-bot,#music-bot)>summary{
 background:linear-gradient(0deg,#040506 0%,#0c0f14e6 38%,transparent 88%),linear-gradient(120deg,#1b1e24,#101318 75%);
}

/* Compact project overviews, using the existing card typography. */
html body:is(.home-page,.portfolio-page) details.wb-card>summary .wb-card-description{display:block;margin:8px 0 0;max-width:none;color:var(--text);font:400 13px/1.55 "Segoe UI",Arial,sans-serif;text-wrap:pretty}
html body:is(.home-page,.portfolio-page) details.wb-card>summary .wb-project-full-name{color:var(--text);font-size:.68em;font-weight:400;letter-spacing:0}

@media(min-width:601px){
 html body:is(.home-page,.portfolio-page) details[data-offshore-layout="1"]>summary[data-card-overview="1"] .project-card-backdrop img{height:calc(100% - 28px);bottom:auto;mask-image:linear-gradient(#000 0%,#000 80%,transparent 100%)}
}

/* Equal compact cards: measure content once, share its natural height. */
html body:is(.home-page,.portfolio-page) details.wb-card:has(>summary[data-card-overview="1"]){align-self:stretch}
html body:is(.home-page,.portfolio-page) details.wb-card>summary[data-card-overview="1"]{min-height:var(--wb-overview-height,232px)!important;height:100%;box-sizing:border-box}

/* Phasmo bottom caption: title, description and labels stay together. */
html body:is(.home-page,.portfolio-page) details:is(#home-phasmophobia,#phasmophobia)>summary{display:flex;flex-direction:column;gap:0;min-height:232px}
html body:is(.home-page,.portfolio-page) details:is(#home-phasmophobia,#phasmophobia)>summary :is(.project-teaser-title,.portfolio-card-intro){margin-top:auto!important;padding-top:0!important}
html body:is(.home-page,.portfolio-page) details:is(#home-phasmophobia,#phasmophobia)>summary .project-tags{margin-top:14px!important;padding-top:0!important;flex-shrink:0}
html body:is(.home-page,.portfolio-page) details:is(#home-phasmophobia,#phasmophobia)>summary .project-card-backdrop img{height:calc(100% - 56px);bottom:auto;object-position:50% 100%;mask-image:linear-gradient(#000 0%,#000 80%,transparent 100%)}
html body.portfolio-page details#phasmophobia>summary .project-card-backdrop img{height:calc(100% - 72px)}
@media(max-width:600px){
 html body.home-page details#home-phasmophobia>summary .project-card-backdrop img{height:calc(100% - 104px)}
 html body.portfolio-page details#phasmophobia>summary .project-card-backdrop img{height:calc(100% - 128px)}
 html body:is(.home-page,.portfolio-page) details:is(#home-phasmophobia,#phasmophobia)>summary .project-tags{gap:5px}
 html body:is(.home-page,.portfolio-page) details:is(#home-phasmophobia,#phasmophobia)>summary .project-tags .tag{font-size:10px;padding:3px 6px}
}
/* A little more of each border's color, preserving translucent colored labels. */
html body:is(.home-page,.portfolio-page) .project-tags .tag:is(.tag-gold,.tag-blue,.tag-green,.tag-red):not(.is-text-selected){background:rgba(var(--tag-rgb),.09)!important}
html body:is(.home-page,.portfolio-page) .project-tags .tag.tag-green:not(.is-text-selected){background:rgba(var(--tag-rgb),.11)!important}
html body:is(.home-page,.portfolio-page) .project-tags .tag:is(.tag-gold,.tag-blue,.tag-green,.tag-red):not(.is-text-selected):is(:hover,:focus-visible){background:rgba(var(--tag-rgb),.16)!important}
html body:is(.home-page,.portfolio-page) .project-tags .tag.tag-green:not(.is-text-selected):is(:hover,:focus-visible){background:rgba(var(--tag-rgb),.18)!important}
html[data-theme="light"] body:is(.home-page,.portfolio-page) .project-tags .tag:is(.tag-gold,.tag-blue,.tag-green,.tag-red):not(.is-text-selected){background:rgba(var(--tag-rgb),.12)!important}
html[data-theme="light"] body:is(.home-page,.portfolio-page) .project-tags .tag.tag-green:not(.is-text-selected){background:rgba(var(--tag-rgb),.14)!important}
html[data-theme="light"] body:is(.home-page,.portfolio-page) .project-tags .tag:is(.tag-gold,.tag-blue,.tag-green,.tag-red):not(.is-text-selected):is(:hover,:focus-visible){background:rgba(var(--tag-rgb),.18)!important}

/* Centered tinted tag glass: stable line boxes, soft backdrop, original hues. */
html body:is(.home-page,.portfolio-page) .project-tags{transform:none!important}
html body:is(.home-page,.portfolio-page) .project-tags .tag{
 display:inline-flex!important;align-items:center;justify-content:center;box-sizing:border-box;
 min-height:28px;line-height:1.2!important;vertical-align:middle;white-space:nowrap;transform-origin:center!important;
 backdrop-filter:blur(10px) saturate(.55);-webkit-backdrop-filter:blur(10px) saturate(.55);
}
html body:is(.home-page,.portfolio-page) .project-tags .tag:not(.tag-available):not(.is-text-selected){
 background-image:linear-gradient(145deg,#ffffff08,transparent 55%,#ffffff02)!important;
}
@media(max-width:600px){
 html body:is(.home-page,.portfolio-page) details:is(#home-phasmophobia,#phasmophobia)>summary .project-tags .tag{min-height:24px}
}

/* Resting/offscreen covers do not reserve compositor layers in advance. */
html body:is(.home-page,.portfolio-page) details.wb-card>summary .project-card-backdrop img{will-change:auto}

/* Mecha workflow gallery: one overview, counter selection and in-game placement. */
.wb-card>summary .tag.tag-wip{text-transform:lowercase}
.wb-dialog .wb-content .mecha-gallery-grid{grid-template-columns:minmax(0,.6fr) minmax(0,1fr);align-items:start;gap:24px}
.wb-dialog .wb-content .mecha-gallery-grid>figure.mecha-gallery-main{grid-column:1/-1}
.wb-dialog .wb-content .mecha-gallery img{aspect-ratio:auto}
.wb-dialog .wb-content .mecha-gallery-portrait img{max-height:460px;object-fit:contain}
@media(max-width:700px){.wb-dialog .wb-content .mecha-gallery-grid{grid-template-columns:minmax(0,1fr)}.wb-dialog .wb-content .mecha-gallery-grid>figure.mecha-gallery-main{grid-column:auto}.wb-dialog .wb-content .mecha-gallery-portrait img{max-height:520px}}

/* Grouped project metadata: stack, platform and capabilities. */
.wb-dialog .wb-content .wb-project-intro .wb-project-meta.wb-meta-grouped{display:flex;flex-direction:column;align-items:stretch;gap:9px;margin:19px 0 0;padding:0}
.wb-meta-group{display:flex;align-items:baseline;gap:14px;min-width:0}
.wb-meta-label{flex:0 0 80px;color:var(--faint);font:400 11px/1.5 Consolas,"Cascadia Code",monospace}
.wb-meta-items{display:flex;flex-wrap:wrap;gap:7px;min-width:0;margin:0;padding:0;list-style:none}
.wb-dialog .wb-meta-group .wb-meta-chip{--meta-ink:#b29bee;padding:6px 9px;border:0;border-radius:4px;background:color-mix(in srgb,var(--surface-raised) 80%,var(--bg));color:var(--meta-ink);font:400 12px/1.4 Consolas,"Cascadia Code",monospace;box-shadow:none}
.wb-dialog .wb-meta-group .wb-meta-chip[data-meta-tone="platform"]{--meta-ink:#79cbea}
.wb-dialog .wb-meta-group .wb-meta-chip[data-meta-tone="feature"]{--meta-ink:#8ed5a2}
.wb-dialog .wb-meta-group .wb-meta-chip[data-meta-tone="private"]{--meta-ink:#e991a3}
html[data-theme="light"] .wb-dialog .wb-meta-group .wb-meta-chip{--meta-ink:#655099}
html[data-theme="light"] .wb-dialog .wb-meta-group .wb-meta-chip[data-meta-tone="platform"]{--meta-ink:#27667e}
html[data-theme="light"] .wb-dialog .wb-meta-group .wb-meta-chip[data-meta-tone="feature"]{--meta-ink:#386f4b}
html[data-theme="light"] .wb-dialog .wb-meta-group .wb-meta-chip[data-meta-tone="private"]{--meta-ink:#995465}
@media(max-width:450px){.wb-meta-group{flex-direction:column;align-items:stretch;gap:4px}.wb-meta-label{flex-basis:auto}.wb-dialog .wb-meta-group .wb-meta-chip{padding:5px 8px}}

/* Project reader polish: translucent edges, compact facts and natural image ratios. */
.wb-dialog{background:radial-gradient(ellipse at 0 0,#cfd9e610,transparent 38%),linear-gradient(135deg,#ffffff04,transparent 34%,#c8d7ea03 85%),#0d1015b8;backdrop-filter:blur(14px) saturate(112%);-webkit-backdrop-filter:blur(14px) saturate(112%);border-color:#d6dfec35;box-shadow:inset 0 1px 0 #f3f7ff20,inset 1px 0 0 #dbe7ff09,inset 0 -1px 0 #dbe7ff0a,0 28px 85px #00000058}
.wb-dialog::backdrop{background:#0000003d}
.wb-dialog>.wb-header,.wb-dialog>.wb-footer{background:linear-gradient(110deg,rgba(var(--wb-bar-tint),.07),rgba(var(--wb-bar-tint),.012) 72%)}
.wb-dialog .wb-content .wb-project-intro{margin-bottom:24px}
.wb-dialog .wb-content .wb-project-meta.wb-meta-grouped{gap:10px}
.wb-dialog .wb-meta-group{gap:12px;align-items:start}
.wb-dialog .wb-meta-label{flex:0 0 auto;padding-top:6px;white-space:nowrap}
.wb-dialog .wb-meta-items{gap:6px}
.wb-dialog .wb-meta-group .wb-meta-chip{padding:5px 9px;border:1px solid color-mix(in srgb,var(--meta-ink) 18%,transparent);border-radius:5px;background:color-mix(in srgb,var(--meta-ink) 7%,transparent);line-height:1.45}
.wb-dialog .wb-content .high-gallery-grid{gap:30px}
.wb-dialog .wb-content .high-gallery a[data-image-preview]{height:auto;padding:0;overflow:hidden;border:1px solid var(--wb-glass-line);border-radius:11px;background:transparent;box-shadow:0 8px 25px #00000012}
.wb-dialog .wb-content .high-gallery img{aspect-ratio:auto;height:auto;border:0;border-radius:0;background:transparent;box-shadow:none;object-fit:contain}
.wb-dialog .wb-content .high-gallery figcaption.wb-gallery-caption{display:flex;justify-content:flex-start;align-items:baseline;gap:12px;margin:12px 0 0;padding:0;color:var(--muted)}
.wb-dialog .wb-caption-index{flex:none;color:var(--faint);font:11px/1.6 Consolas,monospace;letter-spacing:.06em}
.wb-dialog .wb-caption-copy{display:grid;flex:1;gap:3px;min-width:0}
.wb-dialog .wb-caption-copy strong{color:var(--text);font:500 14px/1.45 "Segoe UI",Arial,sans-serif;letter-spacing:-.1px}
.wb-dialog .wb-caption-copy>span{max-width:78ch;color:var(--muted);font:400 13px/1.6 "Segoe UI",Arial,sans-serif}
html[data-theme="light"] .wb-dialog{background:radial-gradient(ellipse at 0 0,#ffffff80,transparent 38%),linear-gradient(135deg,#ffffff18,transparent 45%),#f4f6f8c7;border-color:#ffffffbb;box-shadow:inset 0 1px 0 #ffffffb0,0 24px 70px #1a2a3f24}
html[data-theme="light"] .wb-dialog::backdrop{background:#1c263814}
@media(max-width:700px){.wb-dialog .wb-content .high-gallery-grid{gap:24px}.wb-dialog .wb-caption-copy strong{font-size:13px}.wb-dialog .wb-caption-copy>span{font-size:12px}.wb-dialog{backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px)}}
@media(max-width:450px){.wb-dialog .wb-meta-group{gap:5px}.wb-dialog .wb-meta-label{padding-top:0}.wb-dialog .wb-meta-group .wb-meta-chip{padding:5px 8px}.wb-dialog .wb-content .high-gallery figcaption.wb-gallery-caption{gap:9px}}
@supports not (backdrop-filter:blur(1px)){.wb-dialog{background:#0d1015f5}html[data-theme="light"] .wb-dialog{background:#f4f6f8f5}}

/* Align each project's facts on a shared, intrinsic tag column. */
.wb-dialog .wb-content .wb-project-intro .wb-project-meta.wb-meta-grouped{display:grid;grid-template-columns:max-content minmax(0,1fr);column-gap:10px;row-gap:9px}
.wb-dialog .wb-meta-group{display:contents}
.wb-dialog .wb-meta-label{padding-top:6px}
/* Mobile facts keep the same label / tag columns as desktop. */
@media(max-width:450px){.wb-dialog .wb-meta-chip[data-meta-tone="feature"] .wb-meta-copy{min-width:0;white-space:normal;overflow-wrap:anywhere}}

/* Reserve the image's own proportions through a failed or pending request. */
.wb-dialog .wb-content .high-gallery img[data-project-image-state="loading"],.wb-dialog .wb-content .high-gallery img[data-project-image-state="error"]{aspect-ratio:var(--wb-image-ratio,auto)}
.wb-dialog .wb-content .high-gallery img[data-project-image-state="error"]{visibility:hidden}
.wb-image-retry{margin:10px 0 0;padding:4px 0;border:0;background:transparent;color:var(--muted);font:11px/1.6 Consolas,monospace;cursor:pointer;text-decoration:underline;text-underline-offset:3px}
.wb-image-retry:hover,.wb-image-retry:focus-visible{color:var(--text)}
.wb-image-retry[hidden]{display:none}

/* Project-detail tag motion. Only chips explicitly enabled by the reader use it. */
.wb-dialog .wb-meta-label[data-meta-trigger]{margin:0;border:0;border-radius:3px;background:none;text-align:left;appearance:none;cursor:pointer;align-self:start}
.wb-dialog .wb-meta-label[data-meta-trigger]:is(:hover,:focus-visible){color:var(--muted)}
@property --wb-meta-angle{syntax:"<angle>";inherits:false;initial-value:0deg}
.wb-dialog .wb-meta-items{align-items:center}
.wb-dialog .wb-meta-entry{display:flex;align-items:center;max-width:100%;min-width:0;margin:0;padding:0;list-style:none}
.wb-dialog .wb-meta-chip[data-meta-motion]{
  position:relative;isolation:isolate;display:inline-flex;align-items:center;
  max-width:100%;box-sizing:border-box;margin:0;padding:5px 9px;
  border:1px solid color-mix(in srgb,var(--meta-ink) 23%,transparent);border-radius:5px;
  background:color-mix(in srgb,var(--meta-ink) 7%,transparent);color:var(--meta-ink);
  font:400 12px/1.45 Consolas,"Cascadia Code",monospace;white-space:pre;
  overflow:visible;overflow-wrap:normal;cursor:pointer;appearance:none;
  transition:background .22s,border-color .22s;
  --wb-meta-px:50%;--wb-meta-py:50%;--wb-meta-diameter:240px;--wb-meta-shine:#ffffff70;
}
.wb-dialog .wb-meta-chip[data-meta-motion][data-meta-weight="primary"]{font-size:12px;padding:6px 10px}
.wb-dialog .wb-meta-chip[data-meta-motion][data-meta-weight="secondary"]{font-size:11px;padding:4px 8px}
.wb-dialog .wb-meta-chip[data-meta-motion]:is(:hover,:focus-visible){
  background:color-mix(in srgb,var(--meta-ink) 12%,transparent);
  border-color:color-mix(in srgb,var(--meta-ink) 44%,transparent);
}
.wb-dialog .wb-meta-chip[data-meta-motion] .wb-meta-copy{position:relative;z-index:3;white-space:pre}
.wb-dialog .wb-meta-chip[data-meta-motion] .wb-meta-glyph{display:inline-block;white-space:pre;text-align:center}
.wb-dialog .wb-meta-chip[data-meta-motion] .wb-meta-field{position:absolute;inset:0;overflow:hidden;border-radius:inherit;pointer-events:none;z-index:1}
.wb-dialog .wb-meta-chip[data-meta-motion] :is(.wb-meta-fx,.wb-meta-wave,.wb-meta-corners,.wb-meta-edge){position:absolute;inset:0;pointer-events:none}
.wb-dialog .wb-meta-chip[data-meta-motion] .wb-meta-corners{inset:-4px;opacity:0;z-index:2}
.wb-dialog .wb-meta-chip[data-meta-motion] .wb-meta-corners i{position:absolute;width:6px;height:6px;border:solid currentColor;border-width:1px 0 0 1px}
.wb-dialog .wb-meta-chip[data-meta-motion] .wb-meta-corners i:nth-child(1){top:0;left:0}
.wb-dialog .wb-meta-chip[data-meta-motion] .wb-meta-corners i:nth-child(2){top:0;right:0;transform:rotate(90deg)}
.wb-dialog .wb-meta-chip[data-meta-motion] .wb-meta-corners i:nth-child(3){bottom:0;right:0;transform:rotate(180deg)}
.wb-dialog .wb-meta-chip[data-meta-motion] .wb-meta-corners i:nth-child(4){bottom:0;left:0;transform:rotate(270deg)}
.wb-dialog .wb-meta-chip[data-meta-motion] .wb-meta-edge{inset:-1px;border-radius:inherit;opacity:0;z-index:2}

/* P1: signal assembly, with the accepted 920 ms rails and 600 ms glyph settling. */
.wb-dialog .wb-meta-chip[data-meta-motion][data-meta-effect="P1"] .wb-meta-field::before,
.wb-dialog .wb-meta-chip[data-meta-motion][data-meta-effect="P1"] .wb-meta-field::after{content:'';position:absolute;height:1px;width:36%;background:currentColor;opacity:0;transform:scaleX(0)}
.wb-dialog .wb-meta-chip[data-meta-motion][data-meta-effect="P1"] .wb-meta-field::before{top:3px;left:3px;transform-origin:left}
.wb-dialog .wb-meta-chip[data-meta-motion][data-meta-effect="P1"] .wb-meta-field::after{bottom:3px;right:3px;transform-origin:right}
.wb-dialog .wb-meta-chip[data-meta-motion][data-meta-effect="P1"].wb-meta-running .wb-meta-field::before,
.wb-dialog .wb-meta-chip[data-meta-motion][data-meta-effect="P1"].wb-meta-running .wb-meta-field::after{animation:wb-meta-rails 920ms ease both}
.wb-dialog .wb-meta-chip[data-meta-motion][data-meta-effect="P1"] .wb-meta-fx::before,
.wb-dialog .wb-meta-chip[data-meta-motion][data-meta-effect="P1"] .wb-meta-fx::after{content:'';position:absolute;width:3px;height:3px;background:currentColor;opacity:0;top:2px;left:3px}
.wb-dialog .wb-meta-chip[data-meta-motion][data-meta-effect="P1"] .wb-meta-fx::after{top:auto;bottom:2px;left:auto;right:3px}
.wb-dialog .wb-meta-chip[data-meta-motion][data-meta-effect="P1"].wb-meta-running .wb-meta-fx::before{animation:wb-meta-node 920ms ease both}
.wb-dialog .wb-meta-chip[data-meta-motion][data-meta-effect="P1"].wb-meta-running .wb-meta-fx::after{animation:wb-meta-node-back 920ms ease both}
.wb-dialog .wb-meta-chip[data-meta-motion][data-meta-effect="P1"].wb-meta-running .wb-meta-glyph{--wb-meta-dy:-1.5px;animation:wb-meta-assemble 600ms calc(90ms + var(--wb-meta-index)*20ms) cubic-bezier(.15,.8,.25,1) both}
.wb-dialog .wb-meta-chip[data-meta-motion][data-meta-effect="P1"].wb-meta-running .wb-meta-glyph:nth-child(even){--wb-meta-dy:1.5px}

/* P2: decoding. Glyph replacement is controlled by the reader, without fading text. */
.wb-dialog .wb-meta-chip[data-meta-motion][data-meta-effect="P2"] .wb-meta-fx{width:17px;background:linear-gradient(90deg,transparent,color-mix(in srgb,var(--meta-ink) 17%,transparent),transparent);opacity:0}
.wb-dialog .wb-meta-chip[data-meta-motion][data-meta-effect="P2"].wb-meta-running .wb-meta-fx{animation:wb-meta-decode-front 680ms linear both}
.wb-dialog .wb-meta-chip[data-meta-motion][data-meta-effect="P2"].wb-meta-running .wb-meta-copy{animation:wb-meta-decode-light 680ms ease both}

/* B1: two diffuse waves contained in the tag; the shared origin follows the pointer. */
.wb-dialog .wb-meta-chip[data-meta-motion][data-meta-effect="B1"] .wb-meta-wave{z-index:2;overflow:hidden;border-radius:inherit;clip-path:inset(0 round 4px)}
.wb-dialog .wb-meta-chip[data-meta-motion][data-meta-effect="B1"] .wb-meta-wave::before,
.wb-dialog .wb-meta-chip[data-meta-motion][data-meta-effect="B1"] .wb-meta-wave::after{content:'';position:absolute;width:var(--wb-meta-diameter);height:var(--wb-meta-diameter);left:var(--wb-meta-px);top:var(--wb-meta-py);border:0;border-radius:50%;background:radial-gradient(circle,color-mix(in srgb,var(--meta-ink) 9%,transparent) 0%,color-mix(in srgb,var(--meta-ink) 8%,transparent) 29%,color-mix(in srgb,var(--meta-ink) 17%,transparent) 41%,color-mix(in srgb,var(--meta-ink) 65%,transparent) 50%,color-mix(in srgb,var(--meta-ink) 26%,transparent) 59%,transparent 73%);transform:translate(-50%,-50%) scale(.025);filter:blur(1px);opacity:0;--wb-meta-wave-strength:1}
.wb-dialog .wb-meta-chip[data-meta-motion][data-meta-effect="B1"] .wb-meta-wave::after{--wb-meta-wave-strength:.65}
.wb-dialog .wb-meta-chip[data-meta-motion][data-meta-effect="B1"].wb-meta-running .wb-meta-wave::before{animation:wb-meta-wave 1280ms cubic-bezier(.16,.42,.36,1) both}
.wb-dialog .wb-meta-chip[data-meta-motion][data-meta-effect="B1"].wb-meta-running .wb-meta-wave::after{animation:wb-meta-wave 1280ms 240ms cubic-bezier(.16,.42,.36,1) both}
.wb-dialog .wb-meta-chip[data-meta-motion][data-meta-effect="B1"] .wb-meta-fx{background:linear-gradient(110deg,transparent 30%,color-mix(in srgb,var(--meta-ink) 8%,transparent) 40%,var(--wb-meta-shine) 48%,color-mix(in srgb,var(--meta-ink) 12%,transparent) 53%,transparent 67%);transform:translateX(-130%);opacity:0}
.wb-dialog .wb-meta-chip[data-meta-motion][data-meta-effect="B1"].wb-meta-running .wb-meta-fx{animation:wb-meta-glass 900ms 400ms cubic-bezier(.2,.5,.2,1) both}

/* B2: target corners settle before the slow scanner completes. */
.wb-dialog .wb-meta-chip[data-meta-motion][data-meta-effect="B2"].wb-meta-running .wb-meta-corners{animation:wb-meta-target 1400ms cubic-bezier(.18,.8,.25,1) both}
.wb-dialog .wb-meta-chip[data-meta-motion][data-meta-effect="B2"] .wb-meta-fx{background:linear-gradient(90deg,transparent 40%,color-mix(in srgb,var(--meta-ink) 30%,transparent) 49%,var(--wb-meta-shine) 50%,transparent 55%);transform:translateX(-120%);opacity:0}
.wb-dialog .wb-meta-chip[data-meta-motion][data-meta-effect="B2"].wb-meta-running .wb-meta-fx{animation:wb-meta-scan 1100ms 120ms ease-out both}
.wb-dialog .wb-meta-chip[data-meta-motion][data-meta-effect="B2"].wb-meta-running{animation:wb-meta-edge-light 1400ms ease both}

/* G1: edge droplet plus opposing shutters; G2: restrained matte hatch. */
.wb-dialog .wb-meta-chip[data-meta-motion][data-meta-effect="G1"] .wb-meta-edge{padding:1px;background:conic-gradient(from var(--wb-meta-angle),transparent 0deg 255deg,color-mix(in srgb,var(--meta-ink) 12%,transparent) 285deg,var(--meta-ink) 320deg,transparent 345deg);-webkit-mask:linear-gradient(#fff 0 0) content-box,linear-gradient(#fff 0 0);mask:linear-gradient(#fff 0 0) content-box,linear-gradient(#fff 0 0);-webkit-mask-composite:xor;mask-composite:exclude}
.wb-dialog .wb-meta-chip[data-meta-motion][data-meta-effect="G1"].wb-meta-running .wb-meta-edge{animation:wb-meta-drop 1050ms cubic-bezier(.2,.5,.3,1) both}
.wb-dialog .wb-meta-chip[data-meta-motion][data-meta-effect="G1"] .wb-meta-fx::before,
.wb-dialog .wb-meta-chip[data-meta-motion][data-meta-effect="G1"] .wb-meta-fx::after{content:'';position:absolute;inset:0 50% 0 0;background:linear-gradient(90deg,color-mix(in srgb,var(--meta-ink) 5%,transparent),color-mix(in srgb,var(--meta-ink) 22%,transparent));transform:translateX(-110%);opacity:0}
.wb-dialog .wb-meta-chip[data-meta-motion][data-meta-effect="G1"] .wb-meta-fx::after{inset:0 0 0 50%;transform:translateX(110%);background:linear-gradient(270deg,color-mix(in srgb,var(--meta-ink) 5%,transparent),color-mix(in srgb,var(--meta-ink) 22%,transparent))}
.wb-dialog .wb-meta-chip[data-meta-motion][data-meta-effect="G1"].wb-meta-running .wb-meta-fx::before{animation:wb-meta-shutter 900ms 120ms ease-out both}
.wb-dialog .wb-meta-chip[data-meta-motion][data-meta-effect="G1"].wb-meta-running .wb-meta-fx::after{animation:wb-meta-shutter-back 900ms 120ms ease-out both}
.wb-dialog .wb-meta-chip[data-meta-motion][data-meta-effect="G2"] .wb-meta-fx{inset:-6px;background:repeating-linear-gradient(130deg,color-mix(in srgb,var(--meta-ink) 22%,transparent) 0 1px,transparent 1px 5px);opacity:0;transform:translateX(-6px)}
.wb-dialog .wb-meta-chip[data-meta-motion][data-meta-effect="G2"].wb-meta-running .wb-meta-fx{animation:wb-meta-grain 800ms cubic-bezier(.2,.7,.3,1) both}

@keyframes wb-meta-rails{0%{opacity:0;transform:scaleX(.1)}20%,58%{opacity:.38;transform:scaleX(1)}100%{opacity:0;transform:scaleX(1)}}
@keyframes wb-meta-node{0%{opacity:0;left:3px}20%,55%{opacity:.8}80%,100%{opacity:0;left:37%}}
@keyframes wb-meta-node-back{0%{opacity:0;right:3px}20%,55%{opacity:.8}80%,100%{opacity:0;right:37%}}
@keyframes wb-meta-assemble{0%,100%{transform:translateY(0)}28%{transform:translateY(var(--wb-meta-dy))}72%{transform:translateY(calc(var(--wb-meta-dy)*-.2))}}
@keyframes wb-meta-decode-front{0%{opacity:0;left:-17px}15%,80%{opacity:1}100%{opacity:0;left:100%}}
@keyframes wb-meta-decode-light{0%,100%{text-shadow:none}35%,60%{text-shadow:0 0 9px color-mix(in srgb,var(--meta-ink) 55%,transparent)}}
@keyframes wb-meta-wave{0%{opacity:0;transform:translate(-50%,-50%) scale(.025);filter:blur(1px)}12%{opacity:var(--wb-meta-wave-strength)}44%{opacity:var(--wb-meta-wave-strength);filter:blur(2px)}76%{opacity:calc(var(--wb-meta-wave-strength)*.45)}100%{opacity:0;transform:translate(-50%,-50%) scale(1);filter:blur(7px)}}
@keyframes wb-meta-glass{0%{opacity:0;transform:translateX(-130%)}16%{opacity:.23}70%{opacity:.18}100%{opacity:0;transform:translateX(130%)}}
@keyframes wb-meta-edge-light{0%,100%{box-shadow:0 0 0 transparent}35%,75%{box-shadow:inset 0 1px color-mix(in srgb,var(--meta-ink) 42%,transparent),0 0 15px color-mix(in srgb,var(--meta-ink) 16%,transparent)}}
@keyframes wb-meta-target{0%{opacity:0;transform:scale(1.2,1.55)}23%{opacity:.95;transform:scale(.985,.96)}33%,83%{opacity:.85;transform:scale(1)}100%{opacity:0;transform:scale(1.02)}}
@keyframes wb-meta-scan{0%,8%{opacity:0;transform:translateX(-120%)}20%,75%{opacity:.7}100%{opacity:0;transform:translateX(120%)}}
@keyframes wb-meta-drop{0%{--wb-meta-angle:-80deg;opacity:0}15%{opacity:.9}80%{opacity:.85}100%{--wb-meta-angle:280deg;opacity:0}}
@keyframes wb-meta-shutter{0%{opacity:0;transform:translateX(-110%)}32%,56%{opacity:.9;transform:translateX(0)}100%{opacity:0;transform:translateX(0)}}
@keyframes wb-meta-shutter-back{0%{opacity:0;transform:translateX(110%)}32%,56%{opacity:.9;transform:translateX(0)}100%{opacity:0;transform:translateX(0)}}
@keyframes wb-meta-grain{0%{opacity:0;transform:translateX(-6px)}28%{opacity:.9}55%{opacity:.8}100%{opacity:0;transform:translateX(0)}}

.wb-dialog .wb-meta-chip[data-meta-motion].wb-meta-reduced{box-shadow:0 0 0 1px color-mix(in srgb,var(--meta-ink) 35%,transparent)}
@media(pointer:coarse){.wb-dialog .wb-meta-chip[data-meta-motion]{min-height:44px}}
@media(prefers-reduced-motion:reduce){
  .wb-dialog .wb-meta-chip[data-meta-motion],
  .wb-dialog .wb-meta-chip[data-meta-motion] *,
  .wb-dialog .wb-meta-chip[data-meta-motion] *::before,
  .wb-dialog .wb-meta-chip[data-meta-motion] *::after{animation:none!important;transition:none!important}
}


/* High tag hierarchy: primary tags lead, secondary frames share their bottom edge. */
.wb-dialog .wb-project-meta[data-meta-project="high"] .wb-meta-items{align-items:flex-end}
.wb-dialog .wb-project-meta[data-meta-project="high"] .wb-meta-chip[data-meta-weight="secondary"]{font-size:10.5px;padding:3px 7px}
.wb-dialog .wb-project-meta[data-meta-project="high"] .wb-meta-chip[data-meta-weight="secondary"][data-meta-tone="language"]{--meta-ink:#d99ac4}
.wb-dialog .wb-project-meta[data-meta-project="high"] .wb-meta-chip[data-meta-weight="secondary"][data-meta-tone="feature"]{--meta-ink:#b9dc8c}
html[data-theme="light"] .wb-dialog .wb-project-meta[data-meta-project="high"] .wb-meta-chip[data-meta-weight="secondary"][data-meta-tone="language"]{--meta-ink:#8b436f}
html[data-theme="light"] .wb-dialog .wb-project-meta[data-meta-project="high"] .wb-meta-chip[data-meta-weight="secondary"][data-meta-tone="feature"]{--meta-ink:#5d732d}
@media(pointer:coarse){
  .wb-dialog .wb-project-meta[data-meta-project="high"] .wb-meta-entry{min-height:44px;align-items:flex-end}
  .wb-dialog .wb-project-meta[data-meta-project="high"] .wb-meta-chip[data-meta-motion]{min-height:0}
  .wb-dialog .wb-project-meta[data-meta-project="high"] .wb-meta-chip[data-meta-motion]::after{content:"";position:absolute;left:50%;bottom:0;width:max(100%,44px);height:44px;transform:translateX(-50%)}
}

/* Shared hierarchy: readable secondary tags at 87.5% of primary, aligned at the bottom. */
.wb-dialog .wb-project-meta[data-meta-project] .wb-meta-items{align-items:flex-end}
.wb-dialog .wb-project-meta[data-meta-project] .wb-meta-chip[data-meta-weight="secondary"]{font-size:10.5px;padding:5.25px 8.75px;border-width:.875px}
.wb-dialog .wb-project-meta[data-meta-project] .wb-meta-chip[data-meta-weight="secondary"][data-meta-tone="language"]{--meta-ink:#d99ac4}
.wb-dialog .wb-project-meta[data-meta-project] .wb-meta-chip[data-meta-weight="secondary"][data-meta-tone="feature"]{--meta-ink:#b9dc8c}
html[data-theme="light"] .wb-dialog .wb-project-meta[data-meta-project] .wb-meta-chip[data-meta-weight="secondary"][data-meta-tone="language"]{--meta-ink:#8b436f}
html[data-theme="light"] .wb-dialog .wb-project-meta[data-meta-project] .wb-meta-chip[data-meta-weight="secondary"][data-meta-tone="feature"]{--meta-ink:#5d732d}
@media(pointer:coarse){
  .wb-dialog .wb-project-meta[data-meta-project] .wb-meta-entry{min-height:44px;align-items:flex-end}
  .wb-dialog .wb-project-meta[data-meta-project] .wb-meta-chip[data-meta-motion]{min-height:0}
  .wb-dialog .wb-project-meta[data-meta-project] .wb-meta-chip[data-meta-motion]::after{content:"";position:absolute;left:50%;bottom:0;width:max(100%,44px);height:44px;transform:translateX(-50%)}
}

/* Bring the life chart forward without changing gallery images. */
html body:is(.home-page,.portfolio-page) details:is(#home-high,#high)>summary .project-card-backdrop img{transform:scale(1.04);transform-origin:50% 42%}
html body:is(.home-page,.portfolio-page) details:is(#home-high,#high)>summary:focus-visible .project-card-backdrop img{transform:scale(1.055)}
@media(hover:hover){html body:is(.home-page,.portfolio-page) details:is(#home-high,#high)>summary:hover .project-card-backdrop img{transform:scale(1.055)}}
@media(prefers-reduced-motion:reduce){html body:is(.home-page,.portfolio-page) details:is(#home-high,#high)>summary .project-card-backdrop img{transform:scale(1.04)!important}}

@media(max-width:600px){html body:is(.home-page,.portfolio-page) details:is(#home-high,#high)>summary .project-card-backdrop img{transform:scale(1.04)!important}}

/* Music Bot overview: three reserved scenes and a direct Telegram action. */
.wb-dialog .wb-music-gallery{margin:30px 0 4px}
.wb-dialog .wb-music-gallery h4{margin:0 0 14px;color:var(--text);font:600 17px/1.4 "Segoe UI",Arial,sans-serif;letter-spacing:-.3px}
.wb-dialog .wb-music-shots{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
.wb-dialog .wb-music-shots figure{min-width:0;margin:0;overflow:hidden;border:1px solid var(--line);border-radius:12px;background:color-mix(in srgb,var(--surface) 45%,transparent)}
.wb-dialog .wb-music-shot-placeholder{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;aspect-ratio:16/10;border-bottom:1px solid var(--line);background:radial-gradient(ellipse at 50% 40%,rgba(var(--wb-bar-tint),.065),transparent 70%);color:var(--faint);font:10px/1.5 Consolas,"Cascadia Code",monospace}
.wb-dialog .wb-music-shot-number{display:grid;place-items:center;width:46px;height:34px;border:1px solid var(--line);border-radius:6px;box-shadow:inset 0 5px rgba(var(--wb-bar-tint),.035);color:var(--muted);font-size:12px;letter-spacing:.06em}
.wb-dialog .wb-music-shots figcaption{display:flex;flex-direction:column;gap:6px;padding:15px 16px 17px;color:var(--muted);font:12px/1.6 "Segoe UI",Arial,sans-serif}
.wb-dialog .wb-music-shots figcaption strong{color:var(--text);font-size:14px;font-weight:600}
.wb-dialog .wb-footer a.wb-bot-link{margin-left:auto;text-decoration:none;white-space:nowrap}
.wb-dialog .wb-footer a.wb-bot-link::after{content:'\2197'}
@media(max-width:600px){.wb-dialog .wb-music-shots{grid-template-columns:1fr;gap:12px}.wb-dialog .wb-music-shot-placeholder{aspect-ratio:2/1}.wb-dialog .wb-music-shots figcaption{padding:13px 14px 15px}.wb-dialog .wb-footer a.wb-bot-link{min-height:44px;justify-content:center}}

/* Dodger: an abstract shield cover until game captures are ready. */
html body:is(.home-page,.portfolio-page) details.teaser-dodger>summary{position:relative;isolation:isolate;overflow:hidden;display:flex;flex-direction:column;gap:0;min-height:232px}
html body:is(.home-page,.portfolio-page) details.teaser-dodger>summary :is(.project-teaser-title,.portfolio-card-intro){margin-top:auto!important}
html body:is(.home-page,.portfolio-page) details.teaser-dodger>summary .project-tags{margin-top:14px!important;flex-shrink:0}
.teaser-dodger .dodger-cover{position:absolute;inset:0;z-index:-1;pointer-events:none;background:radial-gradient(ellipse at 82% 26%,#638a8433,transparent 62%),linear-gradient(135deg,#182322,#0a1015 74%)}
.teaser-dodger .dodger-cover svg{position:absolute;right:6%;top:8%;width:45%;height:78%;color:#a6d3c5;opacity:.22;fill:none;stroke:currentColor;stroke-width:1.1;stroke-linecap:round;stroke-linejoin:round}
.teaser-dodger .dodger-cover::after{content:'';position:absolute;inset:0;background:linear-gradient(0deg,#06090df5,transparent 80%)}
html body:is(.home-page,.portfolio-page) details.teaser-dodger>summary .project-tags{position:relative;z-index:1}
.wb-dialog .wb-dodger-gallery{margin:28px 0 4px}
.wb-dialog .wb-dodger-gallery>h4{margin:0 0 14px;font:600 17px/1.4 "Segoe UI",Arial,sans-serif;color:var(--text)}
.wb-dialog .wb-dodger-shots{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.wb-dialog .wb-dodger-shots figure{min-width:0;margin:0;overflow:hidden;border:1px solid var(--line);border-radius:12px;background:color-mix(in srgb,var(--surface) 40%,transparent)}
.wb-dialog .wb-dodger-placeholder{display:flex;align-items:center;justify-content:center;flex-direction:column;gap:12px;aspect-ratio:16/9;border-bottom:1px solid var(--line);background:radial-gradient(ellipse at 50% 35%,#8fc7b50d,transparent 70%);color:var(--faint);font:11px/1.5 Consolas,"Cascadia Code",monospace}
.wb-dialog .wb-dodger-placeholder>span:first-child{padding:6px 9px;border:1px solid var(--line);border-radius:6px;color:var(--muted);font-size:10px;letter-spacing:.08em}
.wb-dialog .wb-dodger-shots figcaption{display:flex;flex-direction:column;gap:6px;padding:15px 17px 17px;color:var(--muted);font:12px/1.6 "Segoe UI",Arial,sans-serif}
.wb-dialog .wb-dodger-shots figcaption strong{color:var(--text);font-size:14px;font-weight:600}
.wb-dialog .wb-dodger-gif{grid-column:1/-1}
.wb-dialog .wb-dodger-gif .wb-dodger-placeholder{aspect-ratio:4/1;background:radial-gradient(ellipse at 50% 70%,#80bad814,transparent 65%)}
html[data-theme="light"] .teaser-dodger .dodger-cover{background:radial-gradient(ellipse at 82% 26%,#638a8440,transparent 62%),linear-gradient(135deg,#d9e6e0,#e9edf0 74%)}
html[data-theme="light"] .teaser-dodger .dodger-cover::after{background:linear-gradient(0deg,#e9edf0f5,transparent 90%)}
html[data-theme="light"] .teaser-dodger .dodger-cover svg{color:#235e50;opacity:.25}
@media(max-width:600px){.wb-dialog .wb-dodger-shots{grid-template-columns:1fr}.wb-dialog .wb-dodger-gif{grid-column:auto}.wb-dialog .wb-dodger-placeholder,.wb-dialog .wb-dodger-gif .wb-dodger-placeholder{aspect-ratio:2/1}}

html[data-theme="light"] .teaser-dodger :is(.project-teaser-kicker,.wb-card-tools,.case-index){color:#48635b!important}

/* Programming languages lead after status chips; platform chips stay cyan. */
html body:is(.home-page,.portfolio-page) .project-tags .tag{order:20}
html body:is(.home-page,.portfolio-page) .project-tags .tag-gold{order:0}
html body:is(.home-page,.portfolio-page) .project-tags .tag-language{order:10;color:#e6a0cd;border-color:#e6a0cd66;background:#e6a0cd17}
html body:is(.home-page,.portfolio-page) .project-tags .tag-red{color:#ff7187;border-color:#ff365c88;background:#ed244c24}
.wb-dialog .wb-project-meta[data-meta-project] .wb-meta-chip[data-meta-tone="language"]{--meta-ink:#e6a0cd}
html[data-theme="light"] body:is(.home-page,.portfolio-page) .project-tags .tag-language{color:#994374;border-color:#99437466;background:#99437412}
html[data-theme="light"] body:is(.home-page,.portfolio-page) .project-tags .tag-red{color:#bd163c;border-color:#bd163c88;background:#bd163c18}
html[data-theme="light"] .wb-dialog .wb-project-meta[data-meta-project] .wb-meta-chip[data-meta-tone="language"]{--meta-ink:#994374}
html body:is(.home-page,.portfolio-page) .musicbot-card-bottom>.musicbot-motion{order:30}

/* Uniform translucent pink for programming languages, including covered cards. */
html body:is(.home-page,.portfolio-page) .project-tags .tag.tag-language{--tag-rgb:230,160,205}
html[data-theme="light"] body:is(.home-page,.portfolio-page) .project-tags .tag.tag-language{--tag-rgb:153,67,116}
html body:is(.home-page,.portfolio-page) .project-tags .tag.tag-language:not(.is-text-selected){background-color:rgba(var(--tag-rgb),.09)!important;border-color:rgba(var(--tag-rgb),.4)}
html body:is(.home-page,.portfolio-page) .project-tags .tag.tag-language:not(.is-text-selected):is(:hover,:focus-visible){background-color:rgba(var(--tag-rgb),.14)!important;border-color:rgba(var(--tag-rgb),.62)}
html[data-theme="light"] body:is(.home-page,.portfolio-page) .project-tags .tag.tag-language:not(.is-text-selected){background-color:rgba(var(--tag-rgb),.07)!important}
html[data-theme="light"] body:is(.home-page,.portfolio-page) .project-tags .tag.tag-language:not(.is-text-selected):is(:hover,:focus-visible){background-color:rgba(var(--tag-rgb),.14)!important}
html body:is(.home-page,.portfolio-page) .project-tags :is(.tag-available,.tag-red){order:-10}

/* Image-backed cards retain a dark caption in the light site theme. */
html[data-theme="light"] body:is(.home-page,.portfolio-page) details.wb-card>summary:has(.project-card-backdrop){--text:#e8eaf0;--muted:#a9b0bc;--faint:#8993a3;--surface:#171b22;--surface-raised:#202630;color:#e8eaf0;background-color:#030405}
html[data-theme="light"] body:is(.home-page,.portfolio-page) details.wb-card>summary .project-card-backdrop::after{background:linear-gradient(0deg,#030405fa 0%,#030405b8 22%,#0304053d 55%,transparent 82%),linear-gradient(180deg,#080a0ec7 0%,#080a0e7a 19%,transparent 47%)!important}
html[data-theme="light"] body:is(.home-page,.portfolio-page) details.wb-card.wb-tags-wrapped>summary .project-card-backdrop::after{background:linear-gradient(0deg,#030405fa 0%,#030405e5 30%,#03040594 48%,#03040525 74%,transparent 91%),linear-gradient(180deg,#080a0ec7 0%,#080a0e7a 19%,transparent 47%)!important}
html[data-theme="light"] body:is(.home-page,.portfolio-page) details.wb-card>summary:has(.project-card-backdrop) :is(.card-title,.project-teaser-title,.portfolio-card-title,.portfolio-card-intro,.wb-card-description,.work-card-description,.portfolio-card-description){color:#e8eaf0!important}
html[data-theme="light"] body:is(.home-page,.portfolio-page) details.wb-card>summary:has(.project-card-backdrop) .project-tags .tag{--tag-rgb:164,169,195}
html[data-theme="light"] body:is(.home-page,.portfolio-page) details.wb-card>summary:has(.project-card-backdrop) .project-tags .tag-gold{--tag-rgb:218,187,101}
html[data-theme="light"] body:is(.home-page,.portfolio-page) details.wb-card>summary:has(.project-card-backdrop) .project-tags .tag-blue{--tag-rgb:105,197,229}
html[data-theme="light"] body:is(.home-page,.portfolio-page) details.wb-card>summary:has(.project-card-backdrop) .project-tags .tag-green{--tag-rgb:134,214,157}
html[data-theme="light"] body:is(.home-page,.portfolio-page) details.wb-card>summary:has(.project-card-backdrop) .project-tags .tag-language{--tag-rgb:230,160,205}
html[data-theme="light"] body:is(.home-page,.portfolio-page) details.wb-card>summary:has(.project-card-backdrop) .project-tags .tag-red{--tag-rgb:255,113,135}
html[data-theme="light"] body:is(.home-page,.portfolio-page) details.wb-card>summary:has(.project-card-backdrop) .project-tags .tag:not(.tag-available):not(.is-text-selected){color:rgb(var(--tag-rgb));border-color:rgba(var(--tag-rgb),.4)}
html[data-theme="light"] body:is(.home-page,.portfolio-page) details.wb-card>summary:has(.project-card-backdrop) .tag.tag-available{--current-ink:#c1eda8;--current-border:#749b5e;--current-fill:#202c1e;--current-led:#b9e995;--current-core:#efffe5;--current-hover-ink:#e4ffd3;--current-hover-border:#a7d586;--current-hover-fill:#2b3a24}

/* Fracture Point: abstract LAN topology, not a gameplay capture. */
html body:is(.home-page,.portfolio-page) details.teaser-fracture>summary{position:relative;isolation:isolate;overflow:hidden;display:flex;flex-direction:column;gap:0;min-height:232px}
html body:is(.home-page,.portfolio-page) details.teaser-fracture>summary :is(.project-teaser-title,.portfolio-card-intro){margin-top:auto!important}
html body:is(.home-page,.portfolio-page) details.teaser-fracture>summary .project-tags{margin-top:14px!important;flex-shrink:0}
.teaser-fracture .fracture-cover{position:absolute;inset:0;z-index:-1;pointer-events:none;background:radial-gradient(ellipse at 82% 26%,#8c655b33,transparent 62%),linear-gradient(135deg,#291b20,#0a1015 74%)}
.teaser-fracture .fracture-cover svg{position:absolute;right:6%;top:8%;width:45%;height:78%;color:#e9a986;opacity:.22;fill:none;stroke:currentColor;stroke-width:1.1;stroke-linecap:round;stroke-linejoin:round}
.teaser-fracture .fracture-cover::after{content:'';position:absolute;inset:0;background:linear-gradient(0deg,#06090df5,transparent 80%)}
html body:is(.home-page,.portfolio-page) details.teaser-fracture>summary .project-tags{position:relative;z-index:1}
.wb-dialog .wb-fracture-gallery{margin:28px 0 4px}
.wb-dialog .wb-fracture-gallery>h4{margin:0 0 14px;font:600 17px/1.4 "Segoe UI",Arial,sans-serif;color:var(--text)}
.wb-dialog .wb-fracture-shots{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.wb-dialog .wb-fracture-shots figure{min-width:0;margin:0;overflow:hidden;border:1px solid var(--line);border-radius:12px;background:color-mix(in srgb,var(--surface) 40%,transparent)}
.wb-dialog .wb-fracture-placeholder{display:flex;align-items:center;justify-content:center;flex-direction:column;gap:12px;aspect-ratio:16/9;border-bottom:1px solid var(--line);background:radial-gradient(ellipse at 50% 35%,#8fc7b50d,transparent 70%);color:var(--faint);font:11px/1.5 Consolas,"Cascadia Code",monospace}
.wb-dialog .wb-fracture-placeholder>span:first-child{padding:6px 9px;border:1px solid var(--line);border-radius:6px;color:var(--muted);font-size:10px;letter-spacing:.08em}
.wb-dialog .wb-fracture-shots figcaption{display:flex;flex-direction:column;gap:6px;padding:15px 17px 17px;color:var(--muted);font:12px/1.6 "Segoe UI",Arial,sans-serif}
.wb-dialog .wb-fracture-shots figcaption strong{color:var(--text);font-size:14px;font-weight:600}
.wb-dialog .wb-fracture-gif{grid-column:1/-1}
.wb-dialog .wb-fracture-gif .wb-fracture-placeholder{aspect-ratio:4/1;background:radial-gradient(ellipse at 50% 70%,#80bad814,transparent 65%)}
html[data-theme="light"] .teaser-fracture .fracture-cover{background:radial-gradient(ellipse at 82% 26%,#8c655b40,transparent 62%),linear-gradient(135deg,#d9e6e0,#e9edf0 74%)}
html[data-theme="light"] .teaser-fracture .fracture-cover::after{background:linear-gradient(0deg,#e9edf0f5,transparent 90%)}
html[data-theme="light"] .teaser-fracture .fracture-cover svg{color:#235e50;opacity:.25}
@media(max-width:600px){.wb-dialog .wb-fracture-shots{grid-template-columns:1fr}.wb-dialog .wb-fracture-gif{grid-column:auto}.wb-dialog .wb-fracture-placeholder,.wb-dialog .wb-fracture-gif .wb-fracture-placeholder{aspect-ratio:2/1}}

html[data-theme="light"] .teaser-fracture :is(.project-teaser-kicker,.wb-card-tools,.case-index){color:#48635b!important}

.wb-dialog .wb-meta-group .wb-meta-chip[data-meta-tone="planned"]{--meta-ink:#c7b180}
.wb-dialog .wb-fracture-gallery>p{color:var(--muted);font-size:14px;line-height:1.6}
.wb-dialog .wb-fracture-placeholder{border:1px solid var(--line);border-radius:12px}

html[data-theme="light"] .teaser-fracture .fracture-cover{background:radial-gradient(ellipse at 82% 26%,#8c655b33,transparent 62%),linear-gradient(135deg,#291b20,#0a1015 74%)}
html[data-theme="light"] .teaser-fracture .fracture-cover svg{color:#e9a986;opacity:.22}


/* Small projects live in their own disclosure and numbering sequence. */
html body:is(.home-page,.portfolio-page) .small-projects{margin:24px 0 6px;border-top:0;color:var(--text)}
.small-projects>summary{display:flex;align-items:center;gap:12px;min-height:54px;padding:12px 2px;list-style:none;cursor:pointer;color:var(--muted);font:12px/1.5 Consolas,"Cascadia Code",monospace;user-select:none}
.small-projects>summary::-webkit-details-marker{display:none}
.small-projects>summary::before{content:'';width:7px;height:7px;border:solid currentColor;border-width:0 1.5px 1.5px 0;transform:rotate(-45deg);transition:transform .3s ease,color .3s ease;margin:0 3px}
.small-projects[open]>summary::before{transform:rotate(45deg);color:var(--text)}
.small-projects>summary:hover,.small-projects>summary:focus-visible{color:var(--text)}
.small-projects>summary:focus-visible,.small-projects-grid:focus-visible{outline:1px solid var(--accent,#b9a6ec);outline-offset:3px;border-radius:5px}
.small-projects-label{letter-spacing:.02em}
.small-projects-count{margin-left:auto;font-size:10px;color:var(--faint);font-variant-numeric:tabular-nums}

/* Small project folders and their compact project reader. */
.small-project-folders{max-height:400px;max-height:min(400px,56svh);overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-gutter:stable;padding:2px 6px 6px 1px}
.small-project-folder{border:0;margin:0}
.small-project-folder>summary{display:flex;align-items:center;gap:12px;min-height:46px;padding:10px 8px;list-style:none;cursor:pointer;color:var(--text);font:13px/1.5 "Segoe UI",Arial,sans-serif;border-bottom:1px solid var(--line)}
.small-project-folder>summary::-webkit-details-marker{display:none}
.small-project-folder>summary::before{content:'';width:6px;height:6px;border:solid var(--muted);border-width:0 1px 1px 0;transform:rotate(-45deg);transition:transform .25s ease}
.small-project-folder[open]>summary::before{transform:rotate(45deg)}
.small-folder-count{margin-left:auto;color:var(--faint);font:10px/1.5 Consolas,monospace;white-space:nowrap}
.small-folder-list{display:grid;gap:5px;margin:0;padding:8px 0 4px 20px;list-style:none}
.small-project-row{display:flex;align-items:center;gap:12px;width:100%;min-height:42px;padding:9px 12px;border:1px solid var(--line);border-radius:4px;background:transparent;color:var(--text);text-align:left;cursor:pointer;transition:background .2s ease,border-color .2s ease}
.small-project-row:hover{background:color-mix(in srgb,var(--text) 4%,transparent);border-color:color-mix(in srgb,var(--text) 24%,var(--line))}
.small-row-number{color:var(--faint);font:9px/1.5 Consolas,monospace;font-variant-numeric:tabular-nums}
.small-row-name{font:500 13px/1.4 "Segoe UI",Arial,sans-serif}
.small-row-kind{margin-left:auto;color:var(--faint);font:10px/1.4 Consolas,monospace}
.small-project-row::after{content:'↗';color:var(--faint);font:13px/1 Consolas,monospace}
.small-project-dialog{box-sizing:border-box;width:min(540px,calc(100vw - 28px));max-height:calc(100dvh - 32px);padding:0;border:1px solid var(--line);border-radius:14px;background:var(--surface,#111419);color:var(--text);box-shadow:0 24px 90px #0007;overflow:auto}
.small-project-dialog::backdrop{background:#080a0dcc;backdrop-filter:blur(5px)}
.small-dialog-head{display:flex;align-items:center;gap:15px;padding:18px 22px;border-bottom:1px solid var(--line)}
.small-dialog-kicker{margin:0;color:var(--faint);font:10px/1.5 Consolas,monospace}
.small-dialog-close{margin-left:auto;border:0;padding:6px;background:transparent;color:var(--muted);font:11px/1.5 Consolas,monospace;cursor:pointer}
.small-dialog-body{padding:22px}
.small-project-dialog h2{margin:0 0 13px;font:600 25px/1.2 "Segoe UI",Arial,sans-serif;letter-spacing:-.035em;overflow-wrap:anywhere}
.small-project-dialog p.small-dialog-description{margin:0 0 12px;color:var(--muted);font:14px/1.7 "Segoe UI",Arial,sans-serif}
.small-project-dialog .small-dialog-status{margin:0;color:var(--faint);font:11px/1.7 Consolas,monospace}
.small-dialog-actions{display:flex;gap:8px;flex-wrap:wrap;padding:0 22px 20px}
.small-dialog-actions a,.small-dialog-actions button{display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:10px 16px;border:1px solid var(--line);border-radius:6px;background:color-mix(in srgb,var(--text) 5%,transparent);color:var(--text);font:600 12px/1.5 "Segoe UI",Arial,sans-serif;text-decoration:none}
.small-dialog-actions a:hover{background:color-mix(in srgb,var(--text) 10%,transparent)}
.small-dialog-actions button:disabled{color:var(--faint);background:transparent;cursor:default}
.small-dialog-source-note{margin:0;padding:0 22px 20px;color:var(--faint);font:11px/1.5 "Segoe UI",Arial,sans-serif}
.small-project-folder>summary:focus-visible,.small-project-row:focus-visible,.small-dialog-close:focus-visible,.small-dialog-actions a:focus-visible{outline:1px solid var(--accent,#b9a6ec);outline-offset:3px}
@media(max-width:540px){.small-folder-list{padding-left:10px}.small-project-row{gap:9px;padding:9px}.small-row-kind{font-size:9px;max-width:100px;text-align:right}.small-row-name{font-size:12px}.small-dialog-head,.small-dialog-body{padding:17px}.small-dialog-actions{padding:0 17px 17px}.small-dialog-source-note{padding:0 17px 17px}}
@media(prefers-reduced-motion:reduce){.small-project-row,.small-project-folder>summary::before{transition:none!important}}

/* One-step small projects disclosure and modal backdrop motion. */
.small-folder-heading{display:flex;align-items:center;gap:12px;min-height:40px;padding:8px;color:var(--muted);font:12px/1.5 "Segoe UI",Arial,sans-serif;border-bottom:1px solid var(--line)}
.small-project-folder-single .small-folder-list{padding-left:0}
.small-project-dialog[open]::backdrop{animation:small-dialog-backdrop-in 260ms ease-out both}
.small-project-dialog.small-dialog-closing::backdrop{animation:small-dialog-backdrop-out 180ms ease-in both}
@keyframes small-dialog-backdrop-in{from{background-color:#080a0d00;backdrop-filter:blur(0)}to{background-color:#080a0dcc;backdrop-filter:blur(5px)}}
@keyframes small-dialog-backdrop-out{from{background-color:#080a0dcc;backdrop-filter:blur(5px)}to{background-color:#080a0d00;backdrop-filter:blur(0)}}
@media(prefers-reduced-motion:reduce){.small-project-dialog[open]::backdrop{animation:none}}

/* Private: the entire label lights up like an emergency indicator, without an icon. */
@property --private-alarm{syntax:'<number>';inherits:false;initial-value:0}
html body:is(.home-page,.portfolio-page) :is(.project-tags .tag,.wb-meta-chip).wb-private-tag[data-en][data-ru]{--private-alarm:0;--private-ink:#ef9ba6;--private-bright:#ffe1e3;--private-fill:#301b23;--private-alarm-fill:#801d2d;--private-border:#a35664;position:relative;display:inline-flex;align-items:center;isolation:isolate;overflow:hidden;color:color-mix(in srgb,var(--private-ink),var(--private-bright) calc(var(--private-alarm)*100%))!important;border-color:color-mix(in srgb,var(--private-border),#ff6373 calc(var(--private-alarm)*100%))!important;background:color-mix(in srgb,var(--private-fill),var(--private-alarm-fill) calc(var(--private-alarm)*100%))!important;box-shadow:inset 0 0 10px rgb(255 75 92 / calc(var(--private-alarm)*.18)),0 0 14px rgb(255 64 78 / calc(var(--private-alarm)*.45))!important;text-shadow:0 0 5px rgb(255 132 142 / calc(var(--private-alarm)*.3))!important;transform:none!important;animation:none;transition:--private-alarm .4s ease!important}
html body:is(.home-page,.portfolio-page) .wb-private-tag::before,html body:is(.home-page,.portfolio-page) .wb-private-tag::after{content:none!important;display:none!important;animation:none!important}
html[data-theme="light"] body:is(.home-page,.portfolio-page) .wb-private-tag{--private-ink:#9f3045;--private-bright:#75132a;--private-fill:#f5e5e8;--private-alarm-fill:#f1a3ad;--private-border:#c88694}
html body:is(.home-page,.portfolio-page) summary:focus-visible .wb-private-tag{animation:private-emergency 2.4s ease-in-out infinite!important}
@media(hover:hover) and (pointer:fine){html body:is(.home-page,.portfolio-page) :is(.project-tags .tag,.wb-meta-chip).wb-private-tag[data-en][data-ru]:hover{animation:private-emergency 2.4s ease-in-out infinite!important}}
@keyframes private-emergency{0%,65%,100%{--private-alarm:0}16%{--private-alarm:1}30%{--private-alarm:.12}46%{--private-alarm:.9}}
@media(prefers-reduced-motion:reduce){html body:is(.home-page,.portfolio-page) :is(.project-tags .tag,.wb-meta-chip).wb-private-tag[data-en][data-ru],html body:is(.home-page,.portfolio-page) :is(.project-tags .tag,.wb-meta-chip).wb-private-tag[data-en][data-ru]:hover,html body:is(.home-page,.portfolio-page) summary:focus-visible .wb-private-tag{animation:none!important;transition:none!important}html body:is(.home-page,.portfolio-page) :is(.project-tags .tag,.wb-meta-chip).wb-private-tag[data-en][data-ru]:hover,html body:is(.home-page,.portfolio-page) summary:focus-visible .wb-private-tag{--private-alarm:.65}}

/* Neutral utility rows stay quiet while the global RGB palette cycles. */
.small-project-row{border-color:color-mix(in srgb,var(--text) 13%,transparent)}
.small-project-row:hover{border-color:color-mix(in srgb,var(--text) 25%,transparent)}
/* Runtime reduced motion also finishes JS motion; neither backdrop may linger. */
@media(prefers-reduced-motion:reduce){
 .small-projects>summary::before,
 .small-project-folder>summary::before,
 .small-project-row{transition:none!important}
 .small-project-dialog[open]::backdrop,
 .small-project-dialog.small-dialog-closing::backdrop{animation:none!important}
}

/* Cover identity: a quiet frame belongs to the artwork, not the page RGB clock. */
html body:is(.home-page,.portfolio-page) details.work-scene.wb-card{
 --project-frame-rgb:174,184,192;--project-shell:#090c11;
 border-color:rgba(190,202,212,.22);background:var(--project-shell);
 box-shadow:inset 0 1px 0 #ffffff05;
}
html body:is(.home-page,.portfolio-page) details.work-scene.wb-card:is(:hover,[open],:focus-within,.wb-selected){
 background:var(--project-shell);border-color:rgba(var(--project-frame-rgb),.62);
 box-shadow:inset 0 1px 0 rgba(var(--project-frame-rgb),.09),0 0 18px rgba(var(--project-frame-rgb),.055);
}
html body:is(.home-page,.portfolio-page) details.work-scene.wb-card:is(#home-high,#high){--project-frame-rgb:145,182,162}
html body:is(.home-page,.portfolio-page) details.work-scene.wb-card:is(#home-payday-the-heist,#payday-the-heist){--project-frame-rgb:182,166,143}
html body:is(.home-page,.portfolio-page) details.work-scene.wb-card:is(#home-music-bot,#music-bot){--project-frame-rgb:221,226,232}
html body:is(.home-page,.portfolio-page) details.work-scene.wb-card:is(#home-fracture-point-multiplayer,#fracture-point-multiplayer){--project-frame-rgb:197,156,136}
html body:is(.home-page,.portfolio-page) details.work-scene.wb-card:is(#home-payday3,#payday3){--project-frame-rgb:158,185,132}
html body:is(.home-page,.portfolio-page) details.work-scene.wb-card:is(#home-mechabellum,#mechabellum){--project-frame-rgb:143,182,174}
html body:is(.home-page,.portfolio-page) details.work-scene.wb-card:is(#home-dodger,#dodger){--project-frame-rgb:148,185,172}
html body:is(.home-page,.portfolio-page) details.work-scene.wb-card:is(#home-phasmophobia,#phasmophobia){--project-frame-rgb:149,180,151}
html body:is(.home-page,.portfolio-page) details.work-scene.wb-card>summary :is(.wb-card-chevron,.summary-action .toggle-mark){color:#aab0ba;background:transparent;border:0;box-shadow:none}
html body:is(.home-page,.portfolio-page) details.work-scene.wb-card:is(:hover,:focus-within,.wb-selected)>summary :is(.wb-card-chevron,.summary-action .toggle-mark){color:rgb(var(--project-frame-rgb));background:transparent;border-color:transparent}
html body:is(.home-page,.portfolio-page) details.work-scene.wb-card>summary::before{background:linear-gradient(90deg,transparent,rgba(var(--project-frame-rgb),.22),transparent)}
html[data-theme="light"] body:is(.home-page,.portfolio-page) details.work-scene.wb-card{--project-shell:#eef1f2;border-color:#bfc6cc}
html[data-theme="light"] body:is(.home-page,.portfolio-page) details.work-scene.wb-card:is(:hover,[open],:focus-within,.wb-selected){border-color:color-mix(in srgb,rgb(var(--project-frame-rgb)) 75%,#26313a);box-shadow:inset 0 1px 0 #ffffff90,0 0 18px rgba(var(--project-frame-rgb),.08)}
/* Independent translate keeps the authored zoom/crop, raster filter and logo animation. */
html body:is(.home-page,.portfolio-page) details.work-scene.wb-card [data-project-parallax-layer]{translate:var(--project-parallax-x,0px) var(--project-parallax-y,0px)}
html body:is(.home-page,.portfolio-page) details.work-scene.wb-card [data-project-parallax-active="true"]{will-change:translate}
/* Keep the new PDR scene vivid above the caption; the caption still has its own veil. */
html body:is(.home-page,.portfolio-page) details.work-scene.wb-card:is(#home-payday-the-heist,#payday-the-heist)>summary .project-card-backdrop::after{
 background:linear-gradient(0deg,#070a0df5 0%,#070a0dd6 17%,#070a0d82 36%,#070a0d10 66%,transparent 87%),linear-gradient(180deg,#080b1066,transparent 27%)!important;
}
@media(prefers-reduced-motion:reduce),(hover:none),(pointer:coarse){
 html body:is(.home-page,.portfolio-page) details.work-scene.wb-card [data-project-parallax-layer]{translate:none!important;will-change:auto}
}
@media (max-width:760px) {
  /* Existing phone artwork stays still, including hover-capable narrow windows.
     Music Bot's independent logo/album animation is not a backdrop raster. */
  html body:is(.home-page,.portfolio-page) details.work-scene.wb-card>summary .project-card-backdrop img {
    transform:none!important;
    translate:none!important;
    scale:none!important;
    will-change:auto;
  }

  html body:is(.home-page,.portfolio-page) details.work-scene.wb-card:is(#home-high,#high,#home-payday-the-heist,#payday-the-heist)>summary {
    --mobile-cover-height:clamp(136px,38vw,190px);
    background:#070a0d!important;
  }

  /* The existing phone summary is a flex column. Keep its metadata first,
     then the artwork, then the unchanged title/copy/tags. */
  html body:is(.home-page,.portfolio-page) details.work-scene.wb-card:is(#home-high,#high,#home-payday-the-heist,#payday-the-heist)>summary>:not(.project-card-backdrop) {
    order:2;
  }

  html body:is(.home-page,.portfolio-page) details.work-scene.wb-card:is(#home-high,#high,#home-payday-the-heist,#payday-the-heist)>summary>:is(.project-teaser-kicker,.portfolio-card-top) {
    order:0;
    margin:0!important;
  }

  /* High's work-card-copy uses display:contents. These children are therefore
     flex items too, even though they are not direct summary children in the DOM. */
  html body:is(.home-page,.portfolio-page) details.work-scene.wb-card:is(#home-high,#high,#home-payday-the-heist,#payday-the-heist)>summary :is(.card-description,.project-tags) {
    order:2;
  }

  html body:is(.home-page,.portfolio-page) details.work-scene.wb-card:is(#home-high,#high,#home-payday-the-heist,#payday-the-heist)>summary .project-card-backdrop {
    position:relative!important;
    inset:auto!important;
    order:1;
    flex:0 0 auto;
    align-self:stretch;
    width:calc(100% + 32px);
    height:var(--mobile-cover-height);
    margin:4px -16px 14px;
    border-radius:0;
    overflow:hidden;
    z-index:0;
  }

  html body:is(.home-page,.portfolio-page) details.work-scene.wb-card:is(#home-high,#high,#home-payday-the-heist,#payday-the-heist)>summary .project-card-backdrop img {
    top:0!important;
    bottom:0!important;
    left:0!important;
    right:auto!important;
    width:100%!important;
    height:100%!important;
    object-fit:cover!important;
    object-position:50% 50%!important;
    transform:none!important;
    translate:none!important;
    scale:none!important;
    mask-image:none!important;
    -webkit-mask-image:none!important;
    filter:none!important;
    opacity:.96!important;
    will-change:auto;
  }

  html body:is(.home-page,.portfolio-page) details.work-scene.wb-card:is(#home-high,#high)>summary .project-card-backdrop img {
    left:-16%!important;
    width:132%!important;
    object-position:50% 58%!important;
  }

  html body:is(.home-page,.portfolio-page) details.work-scene.wb-card:is(#home-payday-the-heist,#payday-the-heist)>summary .project-card-backdrop img {
    object-position:78% 42%!important;
  }

  /* Only the final 18px merge into the caption. No full-card dark veil. */
  html body:is(.home-page,.portfolio-page) details.work-scene.wb-card:is(#home-high,#high,#home-payday-the-heist,#payday-the-heist)>summary .project-card-backdrop::after {
    background:linear-gradient(180deg,transparent 0%,transparent calc(100% - 18px),#070a0d 100%)!important;
  }
}
/* End cover identity and parallax styles. */


/* The first visible tag row owns the mobile label's vertical alignment. */
@media(max-width:760px){
 .wb-dialog .wb-content .wb-project-intro .wb-meta-grouped .wb-meta-label{padding-top:var(--wb-meta-label-top,6px);padding-bottom:0;align-self:start}
}
/* End mobile fact-label alignment styles. */

/* High release: four platforms keep a compact, wrapping picker. */
.high-downloads .high-platform-picker{flex-wrap:wrap;max-width:100%;box-sizing:border-box}
.high-downloads .high-release-update{margin:10px 0 18px;max-width:68ch;color:var(--muted);font-size:13px;line-height:1.7}
@media(max-width:480px){.high-downloads .high-platform-picker{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));width:100%}.high-downloads .high-platform-choice{min-width:0}}
/* End High release platform layout. */


/* Dodger media: prepared gameplay loop with a still, legible caption layer. */
html body:is(.home-page,.portfolio-page) details.teaser-dodger[data-dodger-card]>summary>.dodger-cover {
  position:absolute!important;inset:0!important;z-index:-1!important;
  margin:0!important;width:auto!important;height:auto!important;flex:none!important;
}
[data-dodger-card] .dodger-cover {
  position:absolute;inset:0;overflow:hidden;pointer-events:none;
  background:#080c10;
}
/* Keep desktop gameplay scale; center the hero and cover narrow cards without a top gap. */
[data-dodger-card] .dodger-cover > :is(.dodger-cover-poster,[data-dodger-cover-video]) {
  position:absolute;inset:47% auto auto 0;display:block;width:100%;height:auto;
  max-width:none;min-height:100%;max-height:none;aspect-ratio:960 / 460;
  object-fit:cover;object-position:50% 50%;
  -webkit-mask-image:linear-gradient(180deg,#000 0%,#000 86%,transparent 100%);
  mask-image:linear-gradient(180deg,#000 0%,#000 86%,transparent 100%);
  border:0;border-radius:0;transform:translateY(-61%)!important;translate:none!important;scale:none!important;
  animation:none!important;transition:opacity .24s ease;will-change:auto;
}
[data-dodger-card] .dodger-cover::before {content:none;}
[data-dodger-card] .dodger-cover > .dodger-cover-poster {opacity:1;}
[data-dodger-card] .dodger-cover > [data-dodger-cover-video] {opacity:0;}
[data-dodger-card] .dodger-cover[data-dodger-cover-frame="video"] > [data-dodger-cover-video] {opacity:1;}
[data-dodger-card] .dodger-cover::after {
  content:'';position:absolute;inset:0;pointer-events:none;
  background:linear-gradient(0deg,#06090df5 0%,#06090dc9 12%,#06090d66 30%,transparent 58%),linear-gradient(90deg,#06090d88,transparent 62%),linear-gradient(180deg,#06090d38,transparent 20%);
}
html body:is(.home-page,.portfolio-page) details.teaser-dodger[data-dodger-card]>summary>[data-dodger-motion-toggle] {
  position:absolute!important;right:22px;top:50%;transform:translateY(-50%);margin:0;
  z-index:2;display:inline-flex;align-items:center;justify-content:center;
  flex-shrink:0;gap:6px;min-height:30px;padding:5px 10px;
  border:1px solid #dce9e342;border-radius:6px;background:#0b1119b8;color:#dae5e0;
  font:11px/1.5 Consolas,"Cascadia Code",monospace;cursor:pointer;
  transition:border-color .18s ease,background-color .18s ease,color .18s ease;
}
[data-dodger-card] [data-dodger-motion-toggle]:hover {border-color:#dce9e38c;background:#182329e8;color:#fff;}
[data-dodger-card] [data-dodger-motion-toggle]:focus-visible {outline:2px solid #c0ded2;outline-offset:3px;}
[data-dodger-card] [data-dodger-motion-toggle][hidden] {display:none!important;}
[data-dodger-card] [data-dodger-motion-toggle][aria-pressed="true"] {border-color:#dce9e36b;}
[data-dodger-card]>summary .wb-card-description {padding-right:112px;}
[data-dodger-card] .wb-dodger-shots {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:start;gap:16px;}
[data-dodger-card] .wb-dodger-shots figure {min-width:0;margin:0;overflow:hidden;}
[data-dodger-card] .wb-dodger-shots a[data-image-preview] {
  display:flex;align-items:center;justify-content:center;width:100%;min-width:0;padding:0;
  overflow:hidden;border:0;border-bottom:1px solid var(--line,#ffffff21);border-radius:0;
  background:#0b1015;box-shadow:none;
}
[data-dodger-card] .wb-dodger-shots img {
  display:block;width:100%;height:auto;max-width:100%;object-fit:contain;
  border:0;border-radius:0;background:#0b1015;box-shadow:none;
}
[data-dodger-card] .wb-dodger-panel a[data-image-preview] {padding:14px;background:#11151a;}
[data-dodger-card] .wb-dodger-panel img {width:100%;height:auto;max-height:441px;object-fit:contain;background:transparent;}
[data-dodger-card] .wb-dodger-shots img[data-project-image-state="loading"],
[data-dodger-card] .wb-dodger-shots img[data-project-image-state="error"] {aspect-ratio:var(--wb-image-ratio,960 / 460);}
[data-dodger-card] .wb-dodger-shots img[data-project-image-state="error"] {visibility:hidden;}
html[data-theme="light"] [data-dodger-card] .dodger-cover::after {
  /* Gameplay remains a dark photographic surface in both page themes. */
  background:linear-gradient(0deg,#06090df5 0%,#06090dc9 12%,#06090d66 30%,transparent 58%),linear-gradient(90deg,#06090d88,transparent 62%),linear-gradient(180deg,#06090d38,transparent 20%);
}
html[data-theme="light"] [data-dodger-card] :is(.project-teaser-kicker,.wb-card-tools,.case-index,.project-teaser-title,.portfolio-card-intro,.wb-card-description) {color:#eff3f2!important;}
html[data-theme="light"] details[data-dodger-card]>summary :is(h2,.case-status) {color:#eff3f2!important;}
html[data-theme="light"] details[data-dodger-card]>summary :is(.case-index *,.project-teaser-kicker *,.summary-action) {color:#d0dcd7!important;}
html[data-theme="light"] details[data-dodger-card]>summary .tag {color:#c4ccd7!important;background:#171d27e8!important;border-color:#8995a060!important;}
html[data-theme="light"] details[data-dodger-card]>summary .tag-gold {color:#e4c46a!important;background:#302a14db!important;border-color:#b49c4f70!important;}
html[data-theme="light"] details[data-dodger-card]>summary .tag-blue {color:#70d6f6!important;background:#112d36e8!important;border-color:#66bed96b!important;}
html[data-theme="light"] details[data-dodger-card]>summary .tag-green {color:#a2d5ba!important;background:#182c22e8!important;border-color:#82b7976b!important;}
html[data-theme="light"] details[data-dodger-card]>summary .tag-language {color:#e6a0cd!important;background:#382333e8!important;border-color:#c68bb368!important;}
@media(max-width:900px) {
  [data-dodger-card]>summary .wb-card-description {padding-right:48px;}
  [data-dodger-card] [data-dodger-motion-label] {display:none;}
  [data-dodger-card] [data-dodger-motion-toggle] {min-width:36px;}
}
@media(max-width:700px) {
  [data-dodger-card] .wb-dodger-shots {grid-template-columns:minmax(0,1fr);gap:16px;}
  [data-dodger-card] .wb-dodger-panel a[data-image-preview] {padding:12px;}
  html body:is(.home-page,.portfolio-page) details.teaser-dodger[data-dodger-card]>summary>[data-dodger-motion-toggle] {right:16px;min-height:36px;padding:7px 10px;}
}
@media(prefers-reduced-motion:reduce) {
  [data-dodger-card] .dodger-cover > [data-dodger-cover-video] {opacity:0!important;}
  [data-dodger-card] .dodger-cover > :is(.dodger-cover-poster,[data-dodger-cover-video]),
  [data-dodger-card] [data-dodger-motion-toggle] {transition:none;}
}
/* End Dodger media. */


/* Fracture release: official Steam artwork with a separate multiplayer marker. */
html body:is(.home-page,.portfolio-page) details.teaser-fracture[data-fracture-release]>summary>.fracture-cover{
 position:absolute!important;inset:0!important;z-index:-1!important;width:auto!important;height:auto!important;margin:0!important;flex:none!important;overflow:hidden;background:#080b10!important;
}
html body:is(.home-page,.portfolio-page) details.teaser-fracture[data-fracture-release]>summary .fracture-cover img{
 position:absolute!important;inset:0!important;display:block;width:100%!important;height:100%!important;object-fit:cover!important;object-position:50% 50%!important;border:0;border-radius:0;
}
html body:is(.home-page,.portfolio-page) details.teaser-fracture[data-fracture-release]>summary .fracture-cover::after{
 background:linear-gradient(0deg,#070b10f2 0%,#070b10b8 23%,#070b1020 66%,transparent 90%),linear-gradient(90deg,#070b10b8 0%,#070b1070 43%,#070b1015 80%),linear-gradient(180deg,#070b1070,transparent 30%)!important;
}
html body:is(.home-page,.portfolio-page) details.teaser-fracture[data-fracture-release]>summary .project-tags{padding-right:43px}
html body:is(.home-page,.portfolio-page) details.teaser-fracture[data-fracture-release]>summary>.fracture-mp-badge{
 position:absolute!important;inset:auto 22px 24px auto!important;width:29px!important;margin:0!important;flex:none!important;z-index:2;display:grid;place-items:center;min-width:29px;height:24px;padding:0 5px;
 border:1px solid #e4c59a65;border-radius:4px;background:#11100de0;color:#f1dab6;font:600 10px/1 Consolas,"Cascadia Code",monospace;letter-spacing:.07em;pointer-events:none;
}
html[data-theme="light"] body:is(.home-page,.portfolio-page) details.teaser-fracture[data-fracture-release]>summary :is(.project-teaser-kicker,.wb-card-tools,.case-index,.case-index *,.project-teaser-title,.portfolio-card-intro,.portfolio-card-intro h2,.wb-card-description,.summary-action){color:#edf0ef!important}
.wb-dialog .wb-fracture-gallery[data-fracture-gallery] .wb-fracture-shots{display:block}
.wb-dialog .wb-fracture-gallery[data-fracture-gallery] a[data-image-preview]{display:block;padding:0;border:0;border-radius:0;background:#090c10}
.wb-dialog .wb-fracture-gallery[data-fracture-gallery] img{display:block;width:100%;height:auto;object-fit:contain;aspect-ratio:16/9;border:0;border-radius:0}
.wb-dialog .wb-fracture-gallery[data-fracture-gallery] figcaption{gap:3px}
.wb-dialog .wb-fracture-gallery[data-fracture-gallery] figcaption a{align-self:flex-start;color:var(--muted);font:11px/1.6 Consolas,"Cascadia Code",monospace;text-decoration:none}
.wb-dialog .wb-fracture-gallery[data-fracture-gallery] figcaption a:hover{color:var(--text)}
.wb-dialog:has([data-fracture-gallery]) .wb-cover{display:none}
.wb-dialog .wb-fracture-actions{display:flex;align-items:center;justify-content:flex-end;gap:8px;margin-left:auto;flex-shrink:0}
.wb-dialog .wb-fracture-actions .wb-download{text-decoration:none;white-space:nowrap}
.wb-dialog .wb-fracture-actions .wb-fracture-source::after{content:'↗'}
@media(max-width:600px){
 html body:is(.home-page,.portfolio-page) details.teaser-fracture[data-fracture-release]>summary>.fracture-mp-badge{inset:auto 18px 22px auto!important}
 .wb-dialog .wb-footer:has(.wb-fracture-actions){flex-wrap:wrap;gap:10px}
 .wb-dialog .wb-footer:has(.wb-fracture-actions)>p{flex-basis:100%}
 .wb-dialog .wb-fracture-actions .wb-download{min-height:44px;padding:9px 12px}
}
/* End Fracture release. */


/* Compact the transition to small projects; keep the existing disclosure and list. */
html body:is(.home-page,.portfolio-page) .small-projects {margin-top:12px;}
html body.home-page .small-projects>summary {min-height:44px;padding-block:8px;}
html body.home-page .works-section {padding-bottom:16px;}
@media(max-width:600px) {
 html body:is(.home-page,.portfolio-page) .small-projects {margin-top:10px;}
}
/* End compact small-project transition. */

/* Dodger release: portable archive and public source. */
.wb-dialog .wb-dodger-actions{display:flex;align-items:center;justify-content:flex-end;gap:8px;margin-left:auto;flex-shrink:0}
.wb-dialog .wb-dodger-actions .wb-download{text-decoration:none;white-space:nowrap}
.wb-dialog .wb-dodger-actions .wb-dodger-source::after{content:'↗'}
@media(max-width:600px){
 .wb-dialog .wb-footer:has(.wb-dodger-actions){flex-wrap:wrap;gap:10px}
 .wb-dialog .wb-footer:has(.wb-dodger-actions)>p{flex-basis:100%}
 .wb-dialog .wb-dodger-actions .wb-download{min-height:44px;padding:9px 12px}
}
/* End Dodger release. */


/* Fracture uses the same corner metadata and lower caption as other projects. */
html body:is(.home-page,.portfolio-page) details.teaser-fracture[data-fracture-cover-layout="3"]>summary{
 position:relative;display:flex!important;flex-direction:column;gap:0!important;min-height:274px!important;height:auto!important;box-sizing:border-box;padding:24px!important;overflow:hidden;isolation:isolate;background:#080b0f!important;
}
html body:is(.home-page,.portfolio-page) details.teaser-fracture[data-fracture-cover-layout="3"]>summary>:not(.fracture-card-art){position:relative;z-index:2}
html body:is(.home-page,.portfolio-page) details.teaser-fracture[data-fracture-cover-layout="3"]>summary>.project-teaser-kicker{
 display:flex;align-items:center;justify-content:space-between;gap:16px;width:100%;min-height:22px;margin:0!important;padding:0;font:500 10px/1.4 Consolas,"Cascadia Code",monospace;letter-spacing:.05em;text-transform:lowercase;color:#e6e8ee!important;
}
html body:is(.home-page,.portfolio-page) details.teaser-fracture[data-fracture-cover-layout="3"]>summary .wb-card-tools{display:inline-flex;align-items:center;gap:12px;margin-left:auto;flex:none;color:#e6e8ee!important}
html body:is(.home-page,.portfolio-page) details.teaser-fracture[data-fracture-cover-layout="3"]>summary .project-teaser-index{margin:0;padding:0;min-width:0;background:none;border:0;font:500 11px/1.4 Consolas,"Cascadia Code",monospace;color:inherit!important}
html body:is(.home-page,.portfolio-page) details.teaser-fracture[data-fracture-cover-layout="3"]>summary .wb-card-chevron{display:block;position:static!important;width:16px;height:16px;flex:none;margin:0;padding:0;color:inherit;background:none!important;border:0;transform:none!important}
html body:is(.home-page,.portfolio-page) details.teaser-fracture[data-fracture-cover-layout="3"]>summary>.project-teaser-title{display:flex;align-items:center;margin:auto 0 0!important;padding:0;max-width:100%;color:#edf0ef!important;font:600 26px/1.2 "Segoe UI",Arial,sans-serif;letter-spacing:-.6px}
html body:is(.home-page,.portfolio-page) details.teaser-fracture[data-fracture-cover-layout="3"]>summary>.wb-card-description{margin:10px 0 0!important;max-width:min(82%,820px);color:#edf0ef!important;font:400 13px/1.55 "Segoe UI",Arial,sans-serif;text-wrap:pretty}
html body:is(.home-page,.portfolio-page) details.teaser-fracture[data-fracture-cover-layout="3"]>summary>.project-tags{display:flex;flex-wrap:wrap;gap:7px;align-items:flex-end;margin:16px 0 0!important;padding:0!important;max-width:100%;flex-shrink:0}
html body:is(.home-page,.portfolio-page) details.teaser-fracture[data-fracture-cover-layout="3"]>summary>.fracture-card-art{display:block;position:absolute!important;inset:0!important;z-index:0;width:100%;height:100%;max-width:none;pointer-events:none;background:none;overflow:hidden}
html body:is(.home-page,.portfolio-page) details.teaser-fracture[data-fracture-cover-layout="3"]>summary .fracture-card-art img{display:block!important;position:static!important;inset:auto!important;width:100%!important;height:100%!important;object-fit:cover!important;object-position:center 14%!important;filter:none!important;transform:none!important;opacity:1!important;clip-path:none!important;mask-image:none!important;border:0;border-radius:0;transition:none!important;will-change:auto!important}
html body:is(.home-page,.portfolio-page) details.teaser-fracture[data-fracture-cover-layout="3"]>summary .fracture-card-art::after{content:'';position:absolute;inset:0;z-index:1;background:linear-gradient(0deg,#06090df5 0%,#06090dd1 19%,#06090d83 43%,#06090d26 72%,#06090d24 100%),linear-gradient(90deg,#080b0f3d,transparent 72%)}
html body:is(.home-page,.portfolio-page) details.teaser-fracture[data-fracture-cover-layout="3"]>summary .fracture-card-art>.fracture-mp-badge{position:absolute!important;inset:auto 14px 14px auto!important;z-index:3;display:grid;place-items:center;width:28px!important;min-width:28px;height:22px;margin:0!important;padding:0 4px;box-sizing:border-box;border:1px solid #ffffff60;border-radius:3px;background:#0c0f13db;color:#f5f5f5;font:600 10px/1 Consolas,"Cascadia Code",monospace;letter-spacing:.06em;pointer-events:none}
.wb-dialog .wb-fracture-gallery[data-fracture-gallery] img{width:100%;max-width:616px;height:auto;aspect-ratio:616/353;object-fit:contain;filter:none;transform:none;opacity:1;margin-inline:auto}
@media(max-width:760px){
 html body:is(.home-page,.portfolio-page) details.teaser-fracture[data-fracture-cover-layout="3"]>summary{min-height:340px!important;padding:18px!important}
 html body:is(.home-page,.portfolio-page) details.teaser-fracture[data-fracture-cover-layout="3"]>summary>.project-teaser-title{margin-top:auto!important;max-width:100%;font-size:24px;line-height:1.2}
 html body:is(.home-page,.portfolio-page) details.teaser-fracture[data-fracture-cover-layout="3"]>summary>.wb-card-description{max-width:100%;margin-top:9px!important}
 html body:is(.home-page,.portfolio-page) details.teaser-fracture[data-fracture-cover-layout="3"]>summary>.project-tags{margin-top:14px!important}
 html body:is(.home-page,.portfolio-page) details.teaser-fracture[data-fracture-cover-layout="3"]>summary>.fracture-card-art{width:100%;height:100%;bottom:0!important}
 html body:is(.home-page,.portfolio-page) details.teaser-fracture[data-fracture-cover-layout="3"]>summary .fracture-card-art img{object-position:right center!important}
 html body:is(.home-page,.portfolio-page) details.teaser-fracture[data-fracture-cover-layout="3"]>summary .fracture-card-art::after{background:linear-gradient(0deg,#06090df7 0%,#06090de0 27%,#06090d80 58%,#06090d26 84%,#06090d24 100%),linear-gradient(90deg,#080b0f40,transparent 75%)}
 .wb-dialog .wb-fracture-actions{flex-wrap:wrap;max-width:100%;flex-shrink:1}
 .wb-dialog .wb-fracture-actions .wb-download{font-size:11px;gap:7px;padding:9px 10px}
}
/* End Fracture standard card. */

/* Keep the Music Bot status joke together, beside the other project tags. */
html body:is(.home-page,.portfolio-page) details.teaser-musicbot>summary .music-status-tags{display:inline-flex;align-items:flex-end;gap:5px;flex:none;order:-10;white-space:nowrap}
html body:is(.home-page,.portfolio-page) details.teaser-musicbot>summary .music-status-tags>.tag{flex-shrink:0}
html body:is(.home-page,.portfolio-page) details.teaser-musicbot>summary .music-status-tags>.music-wip{padding-inline:7px;text-transform:uppercase!important;letter-spacing:.02em}
@media(min-width:1100px){html body:is(.home-page,.portfolio-page) details.teaser-musicbot>summary .project-tags{gap:6px}}

/* Static metadata labels share the same text inset as interactive labels. */
.wb-dialog .wb-content .wb-project-intro .wb-meta-grouped .wb-meta-label:not([data-meta-trigger]){padding-inline:6px;align-self:start}


/* Black caption bases for the two independent Fracture/PDR cover treatments.
   Append after the existing cover rules in project-frames.css. */
html body:is(.home-page,.portfolio-page) details.work-scene.wb-card:is(#home-payday-the-heist,#payday-the-heist)>summary {
  background:#030405!important;
}

/* An opaque lower band keeps bright artwork out of the tags in either theme.
   Preserve the current upper scene and its small top veil. */
html body:is(.home-page,.portfolio-page) details.work-scene.wb-card:is(#home-payday-the-heist,#payday-the-heist)>summary .project-card-backdrop::after {
  background:linear-gradient(0deg,#030405 0%,#030405 20%,#030405ed 32%,#03040582 46%,#070a0d10 66%,transparent 87%),linear-gradient(180deg,#080b1066,transparent 27%)!important;
}

html body:is(.home-page,.portfolio-page) details.work-scene.wb-card:is(#home-fracture-point-multiplayer,#fracture-point-multiplayer)>summary .fracture-card-art::after {
  background:linear-gradient(0deg,#030405 0%,#030405 20%,#030405ed 32%,#03040583 43%,#06090d26 72%,#06090d24 100%),linear-gradient(90deg,#080b0f3d,transparent 72%)!important;
}

@media(max-width:760px) {
  /* PDR already uses a separate cover strip above its caption on phones.
     Preserve that strip's fade geometry and join it to the same black base. */
  html body:is(.home-page,.portfolio-page) details.work-scene.wb-card:is(#home-payday-the-heist,#payday-the-heist)>summary .project-card-backdrop::after {
    background:linear-gradient(180deg,transparent 0%,transparent calc(100% - 18px),#030405 100%)!important;
  }

  /* Fracture remains a full-card image on phones. Keep the existing upper
     stops while extending the opaque base under its wrapped tag rows. */
  html body:is(.home-page,.portfolio-page) details.work-scene.wb-card:is(#home-fracture-point-multiplayer,#fracture-point-multiplayer)>summary .fracture-card-art::after {
    background:linear-gradient(0deg,#030405 0%,#030405 24%,#030405ed 38%,#03040580 58%,#06090d26 84%,#06090d24 100%),linear-gradient(90deg,#080b0f40,transparent 75%)!important;
  }
}


/* Technology resonance styles: preserve each tag's original hue and hover. */
html body:is(.home-page,.portfolio-page) details.work-scene.wb-card > summary .project-tags .tag > .wb-tech-resonance-light {
  position:absolute;
  inset:0;
  border-radius:inherit;
  background:rgba(var(--tag-rgb),.16);
  box-shadow:inset 0 0 0 1px rgba(var(--tag-rgb),.55);
  opacity:0;
  pointer-events:none;
  user-select:none;
  transition:none;
  animation:none;
}
@media(forced-colors:active) {
  html body:is(.home-page,.portfolio-page) details.work-scene.wb-card > summary .project-tags .tag > .wb-tech-resonance-light {
    background:transparent;
    box-shadow:inset 0 0 0 1px Highlight;
    forced-color-adjust:none;
  }
}
/* End technology resonance styles. */

/* Portfolio card categories: quiet lowercase labels without left-hand indices. */
html body.portfolio-page .portfolio-section details.work-scene>summary :is(.case-index,.case-index>[data-en],.project-teaser-kicker>[data-en]) {
 color:#e0e3e9!important;
 font:500 10px/1.4 Consolas,"Cascadia Code",monospace;
 letter-spacing:.06em;
 text-transform:lowercase;
}
@media(max-width:700px) {
 html body.portfolio-page .portfolio-section details.work-scene>summary :is(.case-index,.case-index>[data-en],.project-teaser-kicker>[data-en]) {font-size:9px;}
}
/* End portfolio card categories. */
