/* Interaction layer: preserve the editorial composition and animate its depth. */
.button, .mini-project, .next-project, .nav-arrow, .icon-button,
.project-tabs button, .experience-categories button, .company-switcher button,
.about-facts button, .about-facts a, .pipeline-node {
  transition: background .25s, color .25s, border-color .25s, box-shadow .3s, translate .35s cubic-bezier(.16,1,.3,1);
}
.button svg, .round-arrow, .icon-tile, .chapter-nav i {
  transition: transform .4s cubic-bezier(.16,1,.3,1), background .25s, box-shadow .3s;
}
@media (hover: hover) and (pointer: fine) {
  .button:hover, .mini-project:hover, .next-project:hover { translate: 0 -4px; box-shadow: 0 14px 32px #5231c525; }
  .button:hover > svg:last-child { transform: translate(3px,-3px); }
  .mini-project:hover .icon-tile, .next-project:hover .icon-tile { transform: rotate(-7deg) scale(1.06); }
  button:hover .round-arrow { transform: rotate(-35deg); }
  .project-tabs button:hover, .experience-categories button:hover { translate: 4px 0; }
  .chapter-nav a:hover i { transform: scale(1.45); box-shadow: 0 0 0 6px #6f4bff12; }
}
.chapter-nav a[aria-current="page"] i { box-shadow: 0 0 0 5px #6845ff13; }
.reference-intro-art img, .chapter-art, .hero-portrait {
  translate: none;
  animation: none;
}
.ribbon-canvas { position: absolute; pointer-events: none; z-index: 0; }
.ribbon-rendered { opacity: 0 !important; }
.hero-flow-placement .flow-ambient { animation: none; }
.contact-ribbon { position: absolute; left: 0; right: 0; bottom: 8%; height: 36%; pointer-events: none; opacity: .45; overflow: hidden; mask-image: linear-gradient(transparent, #000 20%, #000 80%, transparent); }
.contact-ribbon img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.contact-panel > :not(.contact-ribbon) { z-index: 1; }
.chapter-art-frame { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.status-dot { animation: status-glow 2.8s ease-out infinite; }
.experience-metric { animation: metric-float 6s ease-in-out infinite alternate; }
.experience-metric:last-child { animation-delay: -3s; }
.contact-panel .contact-star { animation-duration: 18s; }
#detail-dialog::backdrop { backdrop-filter: blur(8px); }
.scene-canvas { position: absolute; pointer-events: none; z-index: 0; opacity: 0; }
.scene-live .scene-canvas { opacity: 1; }
.scene-live .reference-work-art { opacity: 0; }
.scene-live .scene-frame { z-index: 1; }
.scene-toolbar { position: absolute; right: 2%; bottom: 0; z-index: 2; display: flex; align-items: center; gap: 14px; font-size: 10px; letter-spacing: .12em; color: #797398; visibility: hidden; }
.scene-live .scene-toolbar { visibility: visible; }
.scene-toolbar > span { display: flex; gap: 7px; align-items: center; }
.scene-toolbar > span::before { content: ""; width: 5px; height: 5px; background: #8464ec; border-radius: 50%; box-shadow: 0 0 0 4px #8464ec12; }
.scene-replay { background: #ffffffd9; border: 1px solid #e6dff7; color: #5938bb; padding: 8px 12px; border-radius: 20px; font-size: 11px; letter-spacing: 0; }
.scene-replay:disabled { opacity: .45; cursor: default; }
@media ((min-width: 1025px) or ((min-width: 761px) and (orientation: landscape))) {
  .scene-toolbar > span { display: none; }
  /* Keep hit targets aligned with the objects and captions in the PNG. */
  .scene-live.reference-scene-active .scene-frame .structured-card { width: 39%; }
  .scene-live.reference-scene-active .scene-frame .pipeline-node:hover { background: transparent; }
}
@media ((max-width: 760px) or ((max-width: 1024px) and (orientation: portrait))) {
  .scene-toolbar { top: -18px; bottom: auto; right: 0; font-size: 8px; gap: 8px; }
  .scene-replay { font-size: 10px; padding: 6px 10px; }
  .scene-live .scene-frame .pipeline-node { transition: background .25s, box-shadow .25s; }
  .scene-live .scene-frame .pipeline-node:hover { background: #f2edff; box-shadow: 0 6px 20px #6845ff16; }
}
@keyframes artwork-breathe { from { transform: scale(1.005); } to { transform: scale(1.025); } }
@keyframes portrait-float { from { transform: translateY(0); } to { transform: translateY(-8px); } }
@keyframes metric-float { from { translate: 0 0; } to { translate: 0 -7px; } }
@keyframes status-glow { 0%,100% { box-shadow: 0 0 0 0 #7f67e500; } 40% { box-shadow: 0 0 0 6px #7f67e519; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reference-intro-art img, .chapter-art, .hero-portrait, .button, .mini-project, .next-project { translate: none !important; }
}
