/* Only the existing Simple view receives depth. Typography, palettes and layout stay in the base styles. */
#simple-view.cinematic-enabled .section {
  position: relative;
  isolation: isolate;
  perspective: var(--cinematic-perspective, 1200px);
  perspective-origin: 50% 40%;
}
#simple-view.cinematic-enabled .section::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: var(--cinematic-glow, 0);
  background: radial-gradient(
    ellipse at 80% 45%,
    var(--accent),
    transparent 68%
  );
}
#simple-view.cinematic-enabled
  :is(.about-grid, .career-timeline, .projects-grid, .approach-grid) {
  perspective: var(--cinematic-perspective, 1200px);
}
#simple-view.cinematic-enabled
  :is(.section-heading, .portrait, .project-cover) {
  transform-style: preserve-3d;
}
#simple-view.cinematic-enabled .cinematic-transform {
  backface-visibility: hidden;
}
#simple-view.cinematic-enabled .cinematic-moving {
  will-change: transform;
}
#simple-view.cinematic-enabled .skill-item {
  position: relative;
  transform-style: flat;
}
#simple-view.cinematic-enabled .skill-item::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), transparent);
  transform: scaleX(var(--skill-line, 0));
  transform-origin: left;
  opacity: var(--skill-glint, 0);
  pointer-events: none;
}
#simple-view.cinematic-enabled .project-cover .art-structure {
  transition: none;
}
#simple-view.cinematic-enabled .project-cover:hover .art-structure {
  /* Its scroll transform replaces the pre-existing hover transform. */
  transform: none;
}
#simple-view.cinematic-enabled
  :is(.project-cover, .skill-item summary):focus-visible {
  outline-offset: 3px;
}
@media (prefers-reduced-motion: reduce) {
  #simple-view.cinematic-enabled .cinematic-transform {
    transform: none !important;
    opacity: 1 !important;
    will-change: auto !important;
  }
  #simple-view.cinematic-enabled .section::before {
    opacity: 0;
  }
}
