/* Passive native recordings preserve the tool's original rendering. */
.su-case{--su-case-gradient:linear-gradient(145deg,#c5dff5,#c5c6e8 55%,#dfcde8)}
html[data-theme="dark"] .su-case{--su-case-gradient:radial-gradient(ellipse at 50% 50%,#62c8e5,#3d8dbd 25%,#4f4a89 53%,#27243f 80%,#171b2c)}
.su-case :is(.su-hero,.su-control-art){background:var(--su-case-gradient);border-radius:var(--nd-radius-preview-canvas)}
.su-case .su-hero{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:var(--case-hero-action-gap);padding:clamp(16px,4vw,56px);overflow:hidden}
.su-case .su-hero-object{position:relative;width:min(100%,1040px);flex:none;overflow:hidden;border-radius:var(--nd-radius-media);background:#101012}
.su-case .su-hero-object>:is(video,.su-reduced-poster){position:absolute;inset:0;width:100%;height:100%;object-fit:contain;pointer-events:none}
.su-case .su-hero>.case-prototype-entry--hero{position:static;transform:none;display:flex;justify-content:center;width:auto;margin:0;padding:0}
.su-reduced-poster{display:none!important}
.su-themes .case-carousel-track{gap:24px;padding:0;overflow-y:hidden}
.su-themes .case-carousel-slide{margin:0;flex-basis:88%}
.su-case .su-themes .case-editorial-board{aspect-ratio:1;padding:0;overflow:hidden;border-radius:var(--nd-radius-preview-canvas);background:var(--su-theme-backdrop),#18181b}
.su-case .su-themes :is(.case-editorial-screen,.cms-image-zoom,img){border-radius:0;width:100%;height:auto;max-height:none;box-shadow:none}
.su-case .su-themes .case-editorial-board img{transform:scale(.84)}
.su-control-art{margin:0;padding:clamp(24px,3vw,40px)}
.su-shape-image{position:relative;aspect-ratio:6/5;width:100%;margin-bottom:16px}
.su-shape-image > img {position:absolute;inset:0;display:block;width:100%;height:100%;object-fit:cover;pointer-events:none}
.su-shape-live {position:absolute;inset-inline:11%;inset-block-start:50%;aspect-ratio:1;translate:0 -50%;visibility:hidden}
.su-shape-image.is-live > img {visibility:hidden}
.su-shape-image.is-live > .su-shape-live {visibility:visible}
.su-shape-tools {position:absolute;inset-block-start:0;inset-inline-end:0;margin:0;pointer-events:none}
.su-shape-tools button {pointer-events:auto}
/* This in-canvas picker keeps the tool's orange selection in either theme. */
.su-case .su-choice-grid--shapes{
 --case-tab-selected-surface:#ff9500;
 --case-tab-selected-shadow:none;
 display:grid;grid-template-columns:repeat(10,minmax(0,1fr));max-width:none;width:100%;box-sizing:border-box;margin:0;gap:3px;padding:5px;background:var(--case-tab-surface);border:1px solid var(--case-tab-border);border-radius:16px
}
.su-case .su-choice-grid--shapes::before{content:none}
.su-case .su-choice-grid--shapes .control{display:grid;place-items:center;height:auto;min-height:32px;aspect-ratio:1;padding:0;border:0;border-radius:10px;color:var(--case-tab-text);background:transparent;cursor:pointer}
.su-case .su-choice-grid--shapes .control svg{width:clamp(14px,1.6vw,22px);height:clamp(14px,1.6vw,22px);pointer-events:none}
.su-case .su-choice-grid--shapes .control[aria-pressed=true]{background:var(--case-tab-selected-surface);color:var(--case-tab-selected-ink);box-shadow:var(--case-tab-selected-shadow)}
.su-case .su-choice-grid--shapes button:focus-visible{outline:2px solid var(--heading);outline-offset:3px}
@media(hover:hover) and (pointer:fine){
 .su-case .su-choice-grid--shapes .control:not([aria-pressed=true]):hover{color:var(--case-tab-hover-text);background:var(--case-tab-hover-surface)}
}
.su-case [hidden]{display:none!important}
.su-embed-window{position:relative;aspect-ratio:4/3;overflow:hidden;border-radius:var(--nd-radius-preview-canvas);background:#101012;pointer-events:none}
.su-embed-scroll{position:absolute;inset:0 auto auto 0;height:0;display:block;width:100%}
.su-embed-window iframe{position:absolute;top:0;left:0;display:block;margin:0;border:0;transform-origin:top left;max-width:none;pointer-events:none;background:#101012}
/* The nebula action uses one synchronized surface transform. */
:is(.su-case,.ai-prototype-entry[data-prototype="small-universe"]) .prototype-launch{
 --prototype-text:var(--small-universe-accent-ink);--prototype-focus:#9cd3ff;
 --prototype-ring:156 211 255;--prototype-shadow:145 100 235;
}
:is(.su-case,.ai-prototype-entry[data-prototype="small-universe"]) .prototype-launch::before{border:0;background:var(--small-universe-accent-surface);box-shadow:inset 0 0 0 1px #ffffff40,inset 0 2px 10px #ffffff38}
:is(.su-case,.ai-prototype-entry[data-prototype="small-universe"]) .prototype-launch::before,:is(.su-case,.ai-prototype-entry[data-prototype="small-universe"]) .prototype-launch::after{transition:transform .2s cubic-bezier(.22,.8,.25,1),filter .2s ease,box-shadow .2s ease;backface-visibility:hidden}
html.work-grid.home-gallery .cms-project-card.cms-tool-banner{grid-column:auto}
html.work-grid.home-gallery .cms-project-card.cms-tool-banner .music-tool-link .home-project-visual.music-tool-surface{box-sizing:border-box;aspect-ratio:1;min-height:0;padding:0}
html.work-grid.home-gallery .cms-project-card.cms-tool-banner .music-tool-demo{width:86%}
/* Reuse the gallery material, feathered edge and inner hover scale. */
.su-home-art{display:grid;place-items:center;background:transparent}
.su-home-art>video{width:100%;height:100%;object-fit:contain;pointer-events:none}
html.work-grid.home-gallery .cms-universe-card .su-home-art .homepage-preview-media{width:100%;height:100%}
.su-home-art .homepage-preview-media:not(.is-playing)>video{opacity:0}
@media(max-width:991px){.su-case .case-view-controls{margin:24px 0 0}}
@media(max-width:767px){
 .su-shape-image{aspect-ratio:10/9}
 .su-case .su-choice-grid--shapes{grid-template-columns:repeat(5,minmax(0,1fr));gap:4px}
 .su-case .su-choice-grid--shapes .control{min-height:36px}.su-case .su-choice-grid--shapes .control svg{width:20px;height:20px}
}
@media(prefers-reduced-motion:reduce){
 .su-case .su-hero-object>video{display:none}.su-case .su-hero-object>.su-reduced-poster{display:block!important}
 html.work-grid.home-gallery .cms-universe-card .project-hover-plane>*{scale:1}
 :is(.su-case,.ai-prototype-entry[data-prototype="small-universe"]) .prototype-launch::before,:is(.su-case,.ai-prototype-entry[data-prototype="small-universe"]) .prototype-launch::after{transition:none}
}
@media(forced-colors:active){.su-case .su-choice-grid--shapes button{border:1px solid ButtonText}.su-case .su-choice-grid--shapes button[aria-pressed=true]{outline:2px solid Highlight}}

/* Bloom's flowers keep their native detail while reading clearly in the gallery. */
.su-case .su-themes img[src*="theme-bloom-frontal-v2"]{filter:brightness(1.5) saturate(1.35)}
