/* Color roles change with the theme; hero scenes and image pixels stay intact. */
html[data-portfolio-theme=dark]{background:var(--yhy-surface);color-scheme:dark}
html[data-portfolio-theme=light]{color-scheme:light}
.yhy-integrated.final-preview .case-page>.case-hero{background:var(--yhy-home-media-surface)}
body[data-portfolio-theme=dark].yhy-integrated{
  background:var(--yhy-surface);color:var(--yhy-ink);
  --bg:var(--yhy-surface);--ink:var(--yhy-ink);--muted:var(--yhy-muted);--line:var(--yhy-line);--stage:var(--yhy-media-surface);--home-stage:var(--yhy-home-media-surface);
  --ds-content-ink:var(--yhy-muted);--ds-control-ink:var(--yhy-muted);--ds-action-ink:var(--yhy-ink);
  --context-bg:var(--yhy-surface);--context-border:var(--yhy-line);--context-title:var(--yhy-ink);--context-muted:var(--yhy-muted);
}
body[data-portfolio-theme=dark].yhy-integrated .site-nav{background:var(--yhy-surface)!important;border-color:var(--yhy-line)!important}
body[data-portfolio-theme=dark].yhy-integrated :is(.work-card,.next-project){--ink:var(--yhy-ink);--bg:var(--yhy-surface);--muted:var(--yhy-muted);--line:var(--yhy-line);--ds-edge:var(--yhy-line);--stage:var(--yhy-home-media-surface);--ds-content-ink:var(--yhy-muted);--ds-action-ink:var(--yhy-ink)}
/* Night artwork has no added contour; section and interactive focus edges stay. */
body[data-portfolio-theme=dark].yhy-integrated main:is(.home,.case-page) :is(img,.approved-thumb-panel,.ds-visual-screen,.vbl-screen,.pm3__tile-window,.fp-screen,.ios-screen,.rv-system-crop,.surface-handoff-crop){border:0}
body[data-portfolio-theme=dark].yhy-integrated main:is(.home,.case-page) :is(img,.approved-thumb-panel,.ds-visual-screen,.vbl-screen,.pm3__tile-window,.fp-screen,.ios-screen,.rv-system-crop,.surface-handoff-crop):not(:focus-visible){outline:0}
body[data-portfolio-theme=dark].yhy-integrated main:is(.home,.case-page) :is(.approved-thumb-panel,.ds-visual-screen,.vbl-screen,.pm3__tile-window,.fp-screen,.ios-screen,.rv-system-crop,.surface-handoff-crop)::before,
body[data-portfolio-theme=dark].yhy-integrated main:is(.home,.case-page) :is(.approved-thumb-panel,.ds-visual-screen,.vbl-screen,.pm3__tile-window,.fp-screen,.ios-screen,.rv-system-crop,.surface-handoff-crop)::after{border:0;outline:0}
/* White image backing can bleed through the rounded clip's antialiased edge. */
body[data-portfolio-theme=dark].yhy-integrated .approved-thumb-panel img{background:transparent}
/* Transparent artwork corners reveal the page instead of a legacy white backing.
   The dedicated Riot, navigation, Paris-tile and iOS artwork backings remain. */
body[data-portfolio-theme=dark].yhy-integrated .case-page img:not([data-source*="assets/riot-"]),
body[data-portfolio-theme=dark].yhy-integrated .case-page :is(.visual.schedule .ds-visual-screen,.visual.volleyball .ds-visual-screen,.vbl-screen,.fp-screen){background:transparent}
body[data-portfolio-theme=dark].yhy-integrated :is(.work-meta h2,.next-project h2,.case-facts.rv-facts){color:var(--yhy-ink)}
body[data-portfolio-theme=dark].yhy-integrated :is(.work-meta p,.case-facts.rv-facts>div>.eyebrow){color:var(--yhy-muted)}
body[data-portfolio-theme=dark].yhy-integrated :is(.work-link,.next-project>a):focus-visible .round-arrow{background:var(--yhy-ink);color:var(--yhy-on-fill)}
@media(hover:hover){body[data-portfolio-theme=dark].yhy-integrated :is(.work-link,.next-project>a):hover .round-arrow{background:var(--yhy-ink);color:var(--yhy-on-fill)}}
@media(hover:none){body[data-portfolio-theme=dark].yhy-integrated :is(.work-link,.next-project>a):hover:not(:focus-visible) .round-arrow{background:transparent;color:var(--yhy-ink)}}
.yhy-integrated .site-nav>.portfolio-system-nav{gap:var(--yhy-space-3)}
.yhy-integrated .site-nav .portfolio-theme-trigger{align-self:center}
@media(max-width:760px){
  .yhy-integrated .site-nav{column-gap:8px}
  .yhy-integrated .site-nav>nav{gap:16px}
  .yhy-integrated .site-nav>.portfolio-system-nav{gap:0;margin-left:auto}
}
@media print{.portfolio-theme-trigger{display:none!important}}
