@layer five-worlds {
  #project-0 { --world: #ffd890; --world-field: #241b13; --world-edge: #8b704a; }
  #project-1 { --world: #dcbaff; --world-field: #1d152c; --world-edge: #73568b; }
  #project-2 { --world: #85d4ff; --world-field: #101e32; --world-edge: #386e95; }
  #project-3 { --world: #b6ecc3; --world-field: #111f19; --world-edge: #527960; }
  #project-4 { --world: #cbcbff; --world-field: #151932; --world-edge: #6469a0; }

  .project-panel[id] { --panel-accent: var(--world); background: var(--world-field); border-color: var(--world-edge); }
  .project-art { background: var(--world-field); contain: paint; }
  .project-art img { object-position: center 52%; }
  .project-art.genesis img { object-position: center 48%; }
  .project-art.memory img { object-position: center 51%; }
  .project-art.cyber img { object-position: center 56%; }
  .project-art.diwaniya img { object-position: center 54%; }
  .project-art.education img { object-position: center 47%; }
  .project-art::after {
    background: linear-gradient(0deg, var(--world-field), transparent 29%);
    opacity: .58;
  }
  .project-art.diwaniya::after {
    background: linear-gradient(125deg,#0a1914a3, transparent 68%, #91602b4d);
  }
  .project-art.cyber::after {
    background: linear-gradient(165deg,transparent 59%,#06162999);
    box-shadow: none;
  }
  @media (min-width: 801px) {
    #project-4 .project-art::after {
      opacity: 1;
      background: linear-gradient(to left,#10152afa 3%,#10152af5 29%,#10152a44 68%,transparent 100%);
    }
  }
  @keyframes world-cut {
    from { opacity: .46; clip-path: inset(5% 0); }
    to { opacity: 1; clip-path: inset(0); }
  }
  @keyframes world-copy {
    from { opacity: .55; translate: 0 7px; }
    to { opacity: 1; translate: 0 0; }
  }
  @keyframes core-ignition {
    from { transform: scale(1.075); filter: brightness(.78); }
    58% { filter: brightness(1.09); }
    to { transform: scale(1); filter: brightness(1); }
  }
  @keyframes neural-refraction {
    from { transform: scale(1.055) translateX(-1.25%); }
    to { transform: scale(1); }
  }
  @keyframes command-approach {
    from { transform: scale(1.065) translateY(1.6%); }
    to { transform: scale(1); }
  }
  @keyframes majlis-reveal {
    from { transform: scale(1.06) translateX(1.6%); }
    to { transform: scale(1); }
  }
  @keyframes archive-focus {
    from { transform: scale(1.045) translateY(-1.25%); }
    to { transform: scale(1); }
  }
  @media (prefers-reduced-motion: no-preference) {
    html[data-cinematic-motion=on] .project-panel:not([hidden]) .project-art[data-ready] { animation: world-cut .46s ease-out both; }
    html[data-cinematic-motion=on] .project-panel:not([hidden]):has(.project-art[data-ready]) .project-copy { animation: world-copy .43s .09s ease-out both; }
    html[data-cinematic-motion=on] .project-panel:not([hidden]) .project-art[data-ready] img {
      animation: var(--world-motion) 1.12s cubic-bezier(.18,.68,.24,1) both;
    }
    .genesis { --world-motion: core-ignition; }
    .memory { --world-motion: neural-refraction; }
    .cyber { --world-motion: command-approach; }
    .diwaniya { --world-motion: majlis-reveal; }
    .education { --world-motion: archive-focus; }
  }
}
