/* Portfolio Design Standard / Visual-first, precise assets and consistent interactions.
   All illustrations are local SVGs: no JS animation loop, network SDK or layout shift. */
.bento>.tile .tile-art:has(>.project-scene){isolation:isolate}
.bento>.tile .project-scene{
  position:absolute;inset:0;z-index:2;display:block;width:100%;height:100%;
  object-fit:cover;object-position:center;pointer-events:none;
  transform:scale(1.005);transform-origin:center;
  transition:transform .8s cubic-bezier(.19,.8,.2,1),filter .8s ease;
  filter:saturate(.92);
}
.bento>.tile .tile-art:has(>.project-scene)::before{
  content:"";position:absolute;inset:0;z-index:3;pointer-events:none;
  background:linear-gradient(90deg,rgba(4,9,24,.18),transparent 52%),linear-gradient(0deg,rgba(3,8,22,.20),transparent 68%);
}
.bento>.tile:is(:hover,:focus-within) .project-scene{transform:scale(1.045);filter:saturate(1.08)}
/* The legacy CSS drawings remain in DOM as graceful non-image fallbacks; the new
   scenes fully cover them without changing the card's layout or text regions. */
.bento>.tile .tile-art:has(>.project-scene) > :not(.project-scene){visibility:hidden}
.bento>.tile .tile-art:has(>.project-scene) > .project-scene{visibility:visible}
/* One coherent stroke icon language; the browser must never render emoji arrows. */
.ui-arrow-wrap,.project-launch-icon{display:inline-flex;align-items:center;justify-content:center;flex:none;line-height:1;vertical-align:middle}
.ui-arrow{display:block;width:19px;height:19px;overflow:visible;color:inherit;filter:drop-shadow(0 2px 2px rgba(6,9,33,.14))}
.project-launch-icon .ui-arrow{width:23px;height:23px;stroke-width:1.9}
.bento>.tile .round-link .project-launch-icon{font-size:0;text-shadow:none}
.bento>.tile .round-link:is(:hover,:focus-visible) .project-launch-icon{transform:translate(2px,-2px)}
:where(.header-enter,.header-contact,.scene-cta,.scene-instagram,.primary-button,.end-cta,.nav-contact,.constellation-preview-cta) .ui-arrow-wrap{margin-inline-start:4px;transition:transform .22s ease}
:where(.header-enter,.header-contact,.scene-cta,.scene-instagram,.primary-button,.end-cta,.nav-contact,.constellation-preview-cta):is(:hover,:focus-visible) .ui-arrow-wrap{transform:translate(2px,-2px)}
:where(.header-contact,.scene-cta,.scene-instagram,.primary-button,.end-cta,.nav-contact,.constellation-preview-cta):focus-visible{outline:3px solid #e2f88f;outline-offset:4px}
.bento>.tile .round-link{min-width:48px;min-height:48px}
@media(max-width:700px){
  .bento>.tile .project-scene{transform:none;object-position:center}
  .bento>.tile:is(:hover,:focus-within) .project-scene{transform:none;filter:none}
  .bento>.tile .tile-art:has(>.project-scene)::before{background:linear-gradient(0deg,rgba(3,8,22,.14),transparent 60%)}
  .ui-arrow{width:17px;height:17px}
}
@media(prefers-reduced-motion:reduce){
  .bento>.tile .project-scene,
  .ui-arrow-wrap,.bento>.tile .project-launch-icon{transition:none!important;animation:none!important;transform:none!important}
  .bento>.tile:is(:hover,:focus-within) .project-scene{transform:none!important}
  :where(.header-enter,.header-contact,.scene-cta,.scene-instagram,.primary-button,.end-cta,.nav-contact,.constellation-preview-cta):is(:hover,:focus-visible) .ui-arrow-wrap{transform:none!important}
}

/* Windows high-contrast mode: shadows disappear in forced colors, so preserve
   clearly bounded controls and discernible icon strokes without relying on glow. */
@media(forced-colors:active){
  .bento>.tile .round-link,.header-contact,.scene-cta,.scene-instagram,.primary-button,.end-cta{
    forced-color-adjust:auto;border:2px solid ButtonText;box-shadow:none!important
  }
  :where(a,button):focus-visible{outline:3px solid Highlight!important;outline-offset:4px}
  .ui-arrow{color:ButtonText;filter:none}
}
